Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.DXSystems.Cooling.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal,fileNamePrefix="Buildings_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_EvaporationFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal,fileNamePrefix="Buildings_10_Buildings_Fluid_DXSystems_Cooling_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.007938/0.007938, allocations: 103.8 kB / 15.73 MB, free: 6.039 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.001991/0.001991, allocations: 194.1 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.575/2.575, allocations: 437 MB / 0.7105 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.89 kB / 1.018 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2451, allocations: 151.6 MB / 1.166 GB, free: 7.246 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal): time 0.00314/0.2483, allocations: 2.379 MB / 1.169 GB, free: 4.848 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.6769/0.9252, allocations: 151 MB / 1.316 GB, free: 12.02 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001947/0.9254, allocations: 6.125 kB / 1.316 GB, free: 12.02 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000339/0.9258, allocations: 92.97 kB / 1.316 GB, free: 11.99 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0007358/0.9266, allocations: 235.8 kB / 1.316 GB, free: 11.91 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001766/0.9283, allocations: 0.6591 MB / 1.317 GB, free: 11.82 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0005839/0.9289, allocations: 434.5 kB / 1.317 GB, free: 11.75 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.9291, allocations: 59.19 kB / 1.317 GB, free: 11.73 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002454/0.9293, allocations: 175.6 kB / 1.318 GB, free: 11.7 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003404/0.9297, allocations: 203.8 kB / 1.318 GB, free: 11.67 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 6.511e-05/0.9298, allocations: 33.72 kB / 1.318 GB, free: 11.67 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00135/0.9311, allocations: 0.6199 MB / 1.318 GB, free: 11.63 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.9313, allocations: 87.27 kB / 1.318 GB, free: 11.62 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0002005/0.9315, allocations: 164.6 kB / 1.319 GB, free: 11.57 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.00114/0.9326, allocations: 0.6566 MB / 1.319 GB, free: 11.49 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.9326, allocations: 0 / 1.319 GB, free: 11.49 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.292e-06/0.9326, allocations: 0 / 1.319 GB, free: 11.49 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.9327, allocations: 0.9688 kB / 1.319 GB, free: 11.49 MB / 1.014 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.001658/0.9343, allocations: 0.7407 MB / 1.32 GB, free: 10.96 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.9344, allocations: 12 kB / 1.32 GB, free: 10.96 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.937e-05/0.9344, allocations: 44.5 kB / 1.32 GB, free: 10.92 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001617/0.9361, allocations: 161.9 kB / 1.32 GB, free: 10.9 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005339/0.9366, allocations: 319.6 kB / 1.32 GB, free: 10.66 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.03e-05/0.9367, allocations: 50.36 kB / 1.321 GB, free: 10.63 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.735e-05/0.9368, allocations: 17.39 kB / 1.321 GB, free: 10.63 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004228/0.9372, allocations: 208.1 kB / 1.321 GB, free: 10.57 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.9372, allocations: 0 / 1.321 GB, free: 10.57 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.9372, allocations: 6.766 kB / 1.321 GB, free: 10.57 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.9373, allocations: 2.156 kB / 1.321 GB, free: 10.57 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002782/0.9375, allocations: 124.8 kB / 1.321 GB, free: 10.56 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002607/0.9402, allocations: 0.9861 MB / 1.322 GB, free: 10.09 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008324/0.941, allocations: 160.3 kB / 1.322 GB, free: 10.07 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002193/0.9412, allocations: 99.98 kB / 1.322 GB, free: 10.05 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.9413, allocations: 0.9062 kB / 1.322 GB, free: 10.05 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003696/0.9417, allocations: 195.7 kB / 1.322 GB, free: 9.973 MB / 1.014 GB Notification: Performance of pre-optimization done (n=19): time 2.374e-06/0.9417, allocations: 0 / 1.322 GB, free: 9.973 MB / 1.014 GB Notification: Performance of matching and sorting (n=19): time 0.004272/0.9459, allocations: 0.8592 MB / 1.323 GB, free: 9.758 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/0.946, allocations: 88.45 kB / 1.323 GB, free: 9.66 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004523/0.9465, allocations: 342 kB / 1.324 GB, free: 9.539 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 7.992e-05/0.9466, allocations: 31.7 kB / 1.324 GB, free: 9.508 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.9467, allocations: 153.2 kB / 1.324 GB, free: 9.418 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 5.789e-05/0.9468, allocations: 59.95 kB / 1.324 GB, free: 9.379 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/0.9469, allocations: 83.75 kB / 1.324 GB, free: 9.344 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.9471, allocations: 343.5 kB / 1.324 GB, free: 9.016 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003726/0.9474, allocations: 139.9 kB / 1.324 GB, free: 8.969 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004368/0.9479, allocations: 220.7 kB / 1.325 GB, free: 8.859 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006592/0.9486, allocations: 341.4 kB / 1.325 GB, free: 8.652 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.9486, allocations: 0.9375 kB / 1.325 GB, free: 8.652 MB / 1.014 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003871/0.9525, allocations: 0.8511 MB / 1.326 GB, free: 8.383 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.836e-05/0.9525, allocations: 41.05 kB / 1.326 GB, free: 8.348 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.9525, allocations: 9.469 kB / 1.326 GB, free: 8.34 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009702/0.9535, allocations: 186.3 kB / 1.326 GB, free: 8.293 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002616/0.9538, allocations: 43.5 kB / 1.326 GB, free: 8.285 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003014/0.9568, allocations: 2.356 MB / 1.328 GB, free: 6.113 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005161/0.9574, allocations: 48.03 kB / 1.328 GB, free: 6.086 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-05/0.9574, allocations: 21.89 kB / 1.328 GB, free: 6.082 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.0002511/0.9577, allocations: 190.2 kB / 1.328 GB, free: 5.914 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.353e-05/0.9578, allocations: 31.34 kB / 1.329 GB, free: 5.898 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.58e-05/0.9578, allocations: 29.56 kB / 1.329 GB, free: 5.879 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.9578, allocations: 2.719 kB / 1.329 GB, free: 5.879 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.9578, allocations: 0 / 1.329 GB, free: 5.879 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.9578, allocations: 5.891 kB / 1.329 GB, free: 5.875 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003349/0.9612, allocations: 1.033 MB / 1.33 GB, free: 5.355 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.9612, allocations: 2.156 kB / 1.33 GB, free: 5.355 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.973e-05/0.9613, allocations: 9.625 kB / 1.33 GB, free: 5.352 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003303/0.9616, allocations: 118 kB / 1.33 GB, free: 5.309 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.332e-05/0.9617, allocations: 13.22 kB / 1.33 GB, free: 5.301 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009096/0.9626, allocations: 0.7422 MB / 1.33 GB, free: 4.66 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.9626, allocations: 0 / 1.33 GB, free: 4.66 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003289/0.9659, allocations: 0.8757 MB / 1.331 GB, free: 4.305 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001847/0.9661, allocations: 129.5 kB / 1.331 GB, free: 4.184 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.338e-05/0.9662, allocations: 10.08 kB / 1.331 GB, free: 4.18 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.9665, allocations: 18.72 kB / 1.331 GB, free: 4.172 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.904e-05/0.9665, allocations: 7.406 kB / 1.331 GB, free: 4.172 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.522e-05/0.9666, allocations: 12.73 kB / 1.331 GB, free: 4.168 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0003202/0.9669, allocations: 237.6 kB / 1.332 GB, free: 4.043 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.5e-07/0.9669, allocations: 1.156 kB / 1.332 GB, free: 4.043 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.000583/0.9675, allocations: 112.9 kB / 1.332 GB, free: 4.027 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.001667/0.9692, allocations: 1.238 MB / 1.333 GB, free: 3.141 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001653/0.9708, allocations: 0.5641 MB / 1.334 GB, free: 2.828 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.9708, allocations: 0 / 1.334 GB, free: 2.828 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0007703/0.9716, allocations: 259.8 kB / 1.334 GB, free: 2.695 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005446/0.9722, allocations: 68.14 kB / 1.334 GB, free: 2.668 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/0.9837, allocations: 4.358 MB / 1.338 GB, free: 368 kB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.984, allocations: 0.7588 MB / 1.339 GB, free: 15.66 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001859/0.9842, allocations: 25.72 kB / 1.339 GB, free: 15.66 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.9843, allocations: 86.06 kB / 1.339 GB, free: 15.59 MB / 1.029 GB Notification: Performance of SimCode: time 5.81e-07/0.9843, allocations: 1.125 kB / 1.339 GB, free: 15.59 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03427/1.019, allocations: 10.33 MB / 1.349 GB, free: 12.98 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/12.28, allocations: 7.375 kB / 1.349 GB, free: 12.97 MB / 1.029 GB (rm -f Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe ; mkfifo Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe >> ../files/Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.DXSystems.Cooling.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_10_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_EvaporationFlowReversal.fmu > Buildings_10_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe 2>&1)