Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_EvaporationFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_EvaporationFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004569/0.004569, allocations: 100.9 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 188.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.238/2.238, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 68.33 kB / 0.9504 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2243, allocations: 140.4 MB / 1.088 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal): time 0.003173/0.2275, allocations: 2.408 MB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1387/0.3662, allocations: 151 MB / 1.237 GB, free: 8 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002599/0.3665, allocations: 7.938 kB / 1.237 GB, free: 7.992 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004183/0.3669, allocations: 99.48 kB / 1.237 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008353/0.3678, allocations: 226.6 kB / 1.238 GB, free: 7.672 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00175/0.3696, allocations: 0.6579 MB / 1.238 GB, free: 7.02 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0005437/0.3701, allocations: 434.6 kB / 1.239 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.3702, allocations: 48.72 kB / 1.239 GB, free: 6.551 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002654/0.3705, allocations: 179.4 kB / 1.239 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003447/0.3709, allocations: 199.3 kB / 1.239 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.638e-05/0.3709, allocations: 32 kB / 1.239 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001253/0.3722, allocations: 0.6239 MB / 1.24 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.3724, allocations: 83.72 kB / 1.24 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002153/0.3726, allocations: 163.2 kB / 1.24 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.3736, allocations: 0.6514 MB / 1.241 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.3737, allocations: 7.938 kB / 1.241 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.883e-06/0.3737, allocations: 0 / 1.241 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.3737, allocations: 0 / 1.241 GB, free: 4.621 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001525/0.3752, allocations: 0.7338 MB / 1.241 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.3753, allocations: 15.97 kB / 1.241 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.199e-05/0.3753, allocations: 46.73 kB / 1.241 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/0.3769, allocations: 164 kB / 1.242 GB, free: 3.602 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005637/0.3774, allocations: 318.1 kB / 1.242 GB, free: 3.246 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.774e-05/0.3775, allocations: 49.69 kB / 1.242 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.002e-05/0.3776, allocations: 20 kB / 1.242 GB, free: 3.172 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004081/0.378, allocations: 213 kB / 1.242 GB, free: 2.949 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.567e-06/0.378, allocations: 0 / 1.242 GB, free: 2.949 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.3781, allocations: 7.984 kB / 1.242 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.3781, allocations: 7.938 kB / 1.242 GB, free: 2.934 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002633/0.3783, allocations: 116.1 kB / 1.242 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.3808, allocations: 0.9847 MB / 1.243 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007912/0.3816, allocations: 162.5 kB / 1.243 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.3818, allocations: 96.81 kB / 1.243 GB, free: 1.512 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.3818, allocations: 4 kB / 1.243 GB, free: 1.508 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003487/0.3822, allocations: 196.9 kB / 1.244 GB, free: 1.297 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=19): time 2.295e-06/0.3822, allocations: 0 / 1.244 GB, free: 1.297 MB / 0.9981 GB Notification: Performance of matching and sorting (n=19): time 0.004172/0.3864, allocations: 0.8577 MB / 1.244 GB, free: 416 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.698e-05/0.3865, allocations: 85.11 kB / 1.245 GB, free: 312 kB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005861/0.3871, allocations: 348.4 kB / 1.245 GB, free: 15.95 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.3873, allocations: 37.64 kB / 1.245 GB, free: 15.91 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.3874, allocations: 148.6 kB / 1.245 GB, free: 15.76 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 8.292e-05/0.3875, allocations: 55.2 kB / 1.245 GB, free: 15.71 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/0.3877, allocations: 81.94 kB / 1.245 GB, free: 15.62 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.3879, allocations: 342.8 kB / 1.246 GB, free: 15.28 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003778/0.3883, allocations: 136.5 kB / 1.246 GB, free: 15.14 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004297/0.3887, allocations: 221.3 kB / 1.246 GB, free: 14.91 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006643/0.3894, allocations: 344.9 kB / 1.246 GB, free: 14.55 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3894, allocations: 0 / 1.246 GB, free: 14.55 MB / 1.014 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00366/0.3931, allocations: 0.8525 MB / 1.247 GB, free: 13.68 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.765e-05/0.3931, allocations: 45.62 kB / 1.247 GB, free: 13.63 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.3931, allocations: 4 kB / 1.247 GB, free: 13.63 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009623/0.3941, allocations: 201.5 kB / 1.247 GB, free: 13.43 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/0.3944, allocations: 39.97 kB / 1.247 GB, free: 13.39 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002831/0.3972, allocations: 2.345 MB / 1.25 GB, free: 10.88 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004904/0.3977, allocations: 47.52 kB / 1.25 GB, free: 10.83 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.913e-05/0.3978, allocations: 15.98 kB / 1.25 GB, free: 10.81 MB / 1.014 GB Warning: Assuming fixed start value for the following 1 variables: eva.off:DISCRETE(fixed = true protected = true ) "Signal, true when component is off" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.eva.off,eva.off,$whenCondition2,mAir_flow.nextEventScaled,mAir_flow.nextEvent,$PRE.mAir_flow.nextEvent,mAir_flow.last,mAir_flow.b,mAir_flow.a,$whenCondition1,int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {7} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000259/0.3981, allocations: 196.9 kB / 1.25 GB, free: 10.61 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.05e-05/0.3981, allocations: 31.62 kB / 1.25 GB, free: 10.57 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.764e-05/0.3982, allocations: 27.12 kB / 1.25 GB, free: 10.55 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.3982, allocations: 7.984 kB / 1.25 GB, free: 10.54 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.3982, allocations: 0 / 1.25 GB, free: 10.54 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.3982, allocations: 0 / 1.25 GB, free: 10.54 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003227/0.4015, allocations: 1.032 MB / 1.251 GB, free: 9.445 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.4015, allocations: 7.922 kB / 1.251 GB, free: 9.438 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.921e-05/0.4016, allocations: 8 kB / 1.251 GB, free: 9.43 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003173/0.4019, allocations: 120.8 kB / 1.251 GB, free: 9.309 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.4019, allocations: 11.98 kB / 1.251 GB, free: 9.297 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008681/0.4028, allocations: 0.7419 MB / 1.252 GB, free: 8.531 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4028, allocations: 0 / 1.252 GB, free: 8.531 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003172/0.406, allocations: 0.8742 MB / 1.253 GB, free: 7.633 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002056/0.4062, allocations: 132.7 kB / 1.253 GB, free: 7.484 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.845e-05/0.4063, allocations: 8 kB / 1.253 GB, free: 7.477 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.4066, allocations: 11.98 kB / 1.253 GB, free: 7.465 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.49e-05/0.4067, allocations: 11.98 kB / 1.253 GB, free: 7.453 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.474e-05/0.4067, allocations: 11.92 kB / 1.253 GB, free: 7.441 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.000317/0.407, allocations: 243.1 kB / 1.253 GB, free: 7.203 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4071, allocations: 0 / 1.253 GB, free: 7.203 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0005702/0.4076, allocations: 115.9 kB / 1.253 GB, free: 7.09 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (eva.m,int.y) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,eva.off,mAir_flow.a,mAir_flow.b,mAir_flow.last,mAir_flow.nextEvent,mAir_flow.nextEventScaled) * Number of discrete states: 7 (eva.off,mAir_flow.nextEvent,mAir_flow.last,mAir_flow.nextEventScaled,mAir_flow.b,mAir_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {7} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001657/0.4093, allocations: 1.236 MB / 1.254 GB, free: 5.824 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001655/0.411, allocations: 0.5732 MB / 1.255 GB, free: 5.223 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.411, allocations: 0 / 1.255 GB, free: 5.223 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0007366/0.4117, allocations: 248.1 kB / 1.255 GB, free: 4.965 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.4123, allocations: 76.95 kB / 1.255 GB, free: 4.891 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.4236, allocations: 4.339 MB / 1.259 GB, free: 448 kB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4486/0.8722, allocations: 0.7523 MB / 1.26 GB, free: 174.2 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001963/0.8725, allocations: 30.58 kB / 1.26 GB, free: 174.2 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.8726, allocations: 84.28 kB / 1.26 GB, free: 174.2 MB / 1.014 GB Notification: Performance of SimCode: time 9.82e-07/0.8726, allocations: 0 / 1.26 GB, free: 174.2 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03327/0.9059, allocations: 10.35 MB / 1.27 GB, free: 173.5 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/12.05, allocations: 14.34 kB / 1.27 GB, free: 173.5 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal_res.csv --start-time 0 --stop-time 2400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.96 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_EvaporationFlowReversal.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.EvaporationFlowReversal.pipe 2>&1)