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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001065/0.001065, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.00888/0.00888, allocations: 171.8 kB / 16.26 MB, free: 6.613 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.425/1.425, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.839/2.839, allocations: 462.7 MB / 0.7364 GB, free: 256 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003662, allocations: 8.344 kB / 0.9028 GB, free: 36.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3511, allocations: 159.6 MB / 1.059 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.EvaporationFlowReversal): time 0.002781/0.3539, allocations: 2.076 MB / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1775/0.5314, allocations: 147.1 MB / 1.204 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004006/0.5319, allocations: 3.938 kB / 1.204 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005306/0.5324, allocations: 83.61 kB / 1.204 GB, free: 15.57 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0009424/0.5334, allocations: 210.9 kB / 1.205 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002051/0.5355, allocations: 0.5863 MB / 1.205 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0007466/0.5362, allocations: 410.6 kB / 1.206 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.5364, allocations: 36.73 kB / 1.206 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004487/0.5369, allocations: 167.4 kB / 1.206 GB, free: 14.19 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004874/0.5374, allocations: 183.4 kB / 1.206 GB, free: 14.01 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.477e-05/0.5375, allocations: 16 kB / 1.206 GB, free: 14 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001669/0.5392, allocations: 0.6745 MB / 1.207 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.5393, allocations: 75.72 kB / 1.207 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002651/0.5396, allocations: 168.9 kB / 1.207 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001359/0.541, allocations: 0.6465 MB / 1.208 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.541, allocations: 0 / 1.208 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.404e-06/0.541, allocations: 4 kB / 1.208 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.156e-06/0.541, allocations: 4 kB / 1.208 GB, free: 12.42 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.001544/0.5426, allocations: 0.6794 MB / 1.208 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.5426, allocations: 8.031 kB / 1.208 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001539/0.5442, allocations: 168.3 kB / 1.208 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004866/0.5447, allocations: 310.8 kB / 1.209 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.152e-05/0.5448, allocations: 49.7 kB / 1.209 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.368e-05/0.5448, allocations: 23.98 kB / 1.209 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004315/0.5453, allocations: 206.1 kB / 1.209 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.5453, allocations: 0 / 1.209 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.227e-05/0.5453, allocations: 12 kB / 1.209 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.5453, allocations: 7.938 kB / 1.209 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003042/0.5457, allocations: 120.2 kB / 1.209 GB, free: 10.74 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002415/0.5481, allocations: 1 MB / 1.21 GB, free: 9.68 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000761/0.5489, allocations: 162.4 kB / 1.21 GB, free: 9.512 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002071/0.5491, allocations: 100.8 kB / 1.21 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.5491, allocations: 4 kB / 1.21 GB, free: 9.406 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003959/0.5495, allocations: 198.1 kB / 1.211 GB, free: 9.195 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=19): time 1.713e-06/0.5495, allocations: 0 / 1.211 GB, free: 9.195 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.004113/0.5537, allocations: 0.8726 MB / 1.211 GB, free: 8.289 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.855e-05/0.5537, allocations: 89.09 kB / 1.211 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004249/0.5542, allocations: 340.4 kB / 1.212 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.27e-05/0.5542, allocations: 37.69 kB / 1.212 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.5544, allocations: 148.6 kB / 1.212 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.897e-05/0.5544, allocations: 55.25 kB / 1.212 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.559e-05/0.5545, allocations: 37.7 kB / 1.212 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000162/0.5547, allocations: 346.7 kB / 1.212 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003423/0.555, allocations: 144.5 kB / 1.213 GB, free: 7.059 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003989/0.5554, allocations: 213.4 kB / 1.213 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006278/0.5561, allocations: 352.7 kB / 1.213 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.5561, allocations: 0 / 1.213 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.003698/0.5598, allocations: 0.8689 MB / 1.214 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.779e-05/0.5598, allocations: 37.69 kB / 1.214 GB, free: 5.535 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.5599, allocations: 4 kB / 1.214 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009927/0.5609, allocations: 201.7 kB / 1.214 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.5611, allocations: 43.91 kB / 1.214 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002895/0.564, allocations: 2.239 MB / 1.216 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004588/0.5645, allocations: 43.58 kB / 1.216 GB, free: 2.836 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.244e-05/0.5645, allocations: 27.97 kB / 1.216 GB, free: 2.809 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.0002554/0.5648, allocations: 186.8 kB / 1.217 GB, free: 2.613 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.956e-05/0.5649, allocations: 35.62 kB / 1.217 GB, free: 2.578 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.489e-05/0.5649, allocations: 27.17 kB / 1.217 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.5649, allocations: 0 / 1.217 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.5649, allocations: 4 kB / 1.217 GB, free: 2.551 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.565, allocations: 0 / 1.217 GB, free: 2.551 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003322/0.5683, allocations: 1.063 MB / 1.218 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.5683, allocations: 0 / 1.218 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.491e-05/0.5684, allocations: 12 kB / 1.218 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003037/0.5687, allocations: 112.8 kB / 1.218 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.5687, allocations: 15.92 kB / 1.218 GB, free: 1.281 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000895/0.5696, allocations: 0.7442 MB / 1.219 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.5696, allocations: 0 / 1.219 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003217/0.5728, allocations: 0.897 MB / 1.219 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.573, allocations: 136.7 kB / 1.22 GB, free: 15.44 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.045e-05/0.5731, allocations: 12.06 kB / 1.22 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000265/0.5734, allocations: 15.98 kB / 1.22 GB, free: 15.41 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.79e-05/0.5734, allocations: 11.92 kB / 1.22 GB, free: 15.4 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.5735, allocations: 8 kB / 1.22 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003157/0.5738, allocations: 239 kB / 1.22 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5738, allocations: 0 / 1.22 GB, free: 15.16 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000591/0.5744, allocations: 119.9 kB / 1.22 GB, free: 15.05 MB / 0.9825 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.0003946/0.5748, allocations: 185 kB / 1.22 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001659/0.5765, allocations: 0.5692 MB / 1.221 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5765, allocations: 3.938 kB / 1.221 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0007545/0.5773, allocations: 240.2 kB / 1.221 GB, free: 14 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005544/0.5778, allocations: 72.42 kB / 1.221 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.5793, allocations: 0.7175 MB / 1.222 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.5797, allocations: 0.7638 MB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001744/0.5798, allocations: 30.23 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.575e-05/0.5799, allocations: 23.42 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of SimCode: time 3.1e-07/0.5799, allocations: 0 / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of Templates: time 0.01352/0.5934, allocations: 6.8 MB / 1.229 GB, free: 5.621 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/jenkins/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