Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eva.m|eva.mEva_flow|eva.mAir_flow|int.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal") translateModel(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eva.m|eva.mEva_flow|eva.mAir_flow|int.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002134/0.002134, allocations: 197.8 kB / 16.79 MB, free: 6.809 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.496/1.496, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.858/2.858, allocations: 461.9 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001328, allocations: 64.59 kB / 0.8991 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.3525, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal): time 0.004589/0.3571, allocations: 2.437 MB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1703/0.5275, allocations: 148.7 MB / 1.2 GB, free: 0.5547 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004145/0.528, allocations: 7.938 kB / 1.2 GB, free: 0.5469 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0005048/0.5285, allocations: 87.61 kB / 1.2 GB, free: 472 kB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000968/0.5295, allocations: 206.9 kB / 1.201 GB, free: 264 kB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.5314, allocations: 0.584 MB / 1.201 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0006516/0.5321, allocations: 410.6 kB / 1.202 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001472/0.5323, allocations: 52.64 kB / 1.202 GB, free: 15.23 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003993/0.5327, allocations: 167.4 kB / 1.202 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004062/0.5331, allocations: 187.3 kB / 1.202 GB, free: 14.88 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.00012/0.5332, allocations: 20 kB / 1.202 GB, free: 14.86 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001488/0.5347, allocations: 0.6706 MB / 1.203 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.5349, allocations: 75.72 kB / 1.203 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002212/0.5351, allocations: 155.2 kB / 1.203 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0007644/0.5359, allocations: 471 kB / 1.203 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.5359, allocations: 0 / 1.203 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.773e-06/0.5359, allocations: 0 / 1.203 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.286e-05/0.5359, allocations: 0 / 1.203 GB, free: 13.5 MB / 0.9669 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.001915/0.5378, allocations: 0.7455 MB / 1.204 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.5379, allocations: 15.97 kB / 1.204 GB, free: 12.69 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001753/0.5397, allocations: 160.4 kB / 1.204 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005595/0.5402, allocations: 306.8 kB / 1.205 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.539e-05/0.5403, allocations: 53.64 kB / 1.205 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.685e-05/0.5404, allocations: 23.84 kB / 1.205 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000463/0.5409, allocations: 208.1 kB / 1.205 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.5409, allocations: 0 / 1.205 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.5409, allocations: 12 kB / 1.205 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.541, allocations: 0 / 1.205 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000315/0.5413, allocations: 120.2 kB / 1.205 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002743/0.544, allocations: 0.9886 MB / 1.206 GB, free: 10.71 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008417/0.5449, allocations: 164.6 kB / 1.206 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.5452, allocations: 100.8 kB / 1.206 GB, free: 10.45 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.5452, allocations: 0 / 1.206 GB, free: 10.45 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004894/0.5457, allocations: 198.3 kB / 1.206 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=19): time 2.514e-06/0.5457, allocations: 0 / 1.206 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.004514/0.5502, allocations: 0.8532 MB / 1.207 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.621e-05/0.5503, allocations: 93.09 kB / 1.207 GB, free: 9.238 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005005/0.5508, allocations: 332.5 kB / 1.208 GB, free: 8.902 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 9.032e-05/0.5509, allocations: 37.69 kB / 1.208 GB, free: 8.859 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.5511, allocations: 152.6 kB / 1.208 GB, free: 8.707 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.225e-05/0.5512, allocations: 59.11 kB / 1.208 GB, free: 8.648 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.5514, allocations: 85.94 kB / 1.208 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.5515, allocations: 342.8 kB / 1.208 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000352/0.5519, allocations: 144.5 kB / 1.208 GB, free: 8.07 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004313/0.5523, allocations: 221.3 kB / 1.209 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006543/0.553, allocations: 340.6 kB / 1.209 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.553, allocations: 0 / 1.209 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003882/0.5569, allocations: 0.8649 MB / 1.21 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.69e-05/0.557, allocations: 33.7 kB / 1.21 GB, free: 6.559 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.557, allocations: 3.938 kB / 1.21 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009637/0.5579, allocations: 201.7 kB / 1.21 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000259/0.5582, allocations: 39.91 kB / 1.21 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003097/0.5613, allocations: 2.23 MB / 1.212 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005185/0.5619, allocations: 43.73 kB / 1.212 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.078e-05/0.5619, allocations: 19.98 kB / 1.212 GB, free: 3.855 MB / 0.9669 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.0002993/0.5622, allocations: 196.2 kB / 1.212 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.822e-05/0.5623, allocations: 27.62 kB / 1.212 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.055e-05/0.5624, allocations: 31.17 kB / 1.212 GB, free: 3.594 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.5624, allocations: 8 kB / 1.212 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.5624, allocations: 0 / 1.212 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.5624, allocations: 0 / 1.212 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003384/0.5658, allocations: 1.035 MB / 1.214 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.5658, allocations: 0 / 1.214 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.596e-05/0.5659, allocations: 11.94 kB / 1.214 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003284/0.5662, allocations: 112.8 kB / 1.214 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.5663, allocations: 8 kB / 1.214 GB, free: 2.352 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009495/0.5672, allocations: 0.7536 MB / 1.214 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.5673, allocations: 0 / 1.214 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00335/0.5706, allocations: 0.8736 MB / 1.215 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001964/0.5708, allocations: 140.6 kB / 1.215 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.369e-05/0.5709, allocations: 4 kB / 1.215 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002873/0.5712, allocations: 15.98 kB / 1.215 GB, free: 0.5 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.013e-05/0.5713, allocations: 11.97 kB / 1.215 GB, free: 500 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.848e-05/0.5713, allocations: 11.98 kB / 1.215 GB, free: 488 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0003048/0.5716, allocations: 235 kB / 1.216 GB, free: 256 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.81e-07/0.5717, allocations: 4.062 kB / 1.216 GB, free: 252 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0005813/0.5722, allocations: 116 kB / 1.216 GB, free: 136 kB / 0.9669 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.000428/0.5727, allocations: 183.9 kB / 1.216 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00173/0.5744, allocations: 0.5606 MB / 1.216 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5744, allocations: 0 / 1.216 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0007982/0.5752, allocations: 240.2 kB / 1.217 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006071/0.5759, allocations: 75.31 kB / 1.217 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001572/0.5774, allocations: 0.7098 MB / 1.217 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.5778, allocations: 0.756 MB / 1.218 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.701e-05/0.5779, allocations: 27.42 kB / 1.218 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of SimCode: time 5.31e-07/0.5779, allocations: 0 / 1.218 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of Templates: time 0.01061/0.5885, allocations: 6.507 MB / 1.225 GB, free: 7.008 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.makefile (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.sim & ./Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_EvaporationFlowReversal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches