Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaCon.yVal|heaCon.yValSwi|heaCon.dT|heaCon.y",fileNamePrefix="Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat") translateModel(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaCon.yVal|heaCon.yValSwi|heaCon.dT|heaCon.y",fileNamePrefix="Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.415/2.415, allocations: 387.1 MB / 399.7 MB, free: 9.453 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 180.9 kB / 492.3 MB, free: 0.5977 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.646/1.646, allocations: 221.3 MB / 0.7871 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009368/0.0009372, allocations: 89.61 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.326e-05/3.327e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3048, allocations: 142.3 MB / 1.212 GB, free: 38.5 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.075/1.379, allocations: 152.1 MB / 1.361 GB, free: 18.79 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/1.38, allocations: 91.62 kB / 1.361 GB, free: 18.79 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01284/1.393, allocations: 4.793 MB / 1.366 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.823e-06/1.393, allocations: 0 / 1.366 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.894e-05/1.393, allocations: 12.41 kB / 1.366 GB, free: 34.14 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0007017/1.393, allocations: 0.5019 MB / 1.366 GB, free: 33.72 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/1.393, allocations: 15.03 kB / 1.366 GB, free: 33.72 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.423e-05/1.393, allocations: 35.16 kB / 1.366 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003152/1.394, allocations: 259 kB / 1.366 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/1.394, allocations: 26.14 kB / 1.366 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.506e-05/1.394, allocations: 29.75 kB / 1.367 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004856/1.394, allocations: 294.7 kB / 1.367 GB, free: 33.44 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/1.394, allocations: 0 / 1.367 GB, free: 33.44 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/1.394, allocations: 13.44 kB / 1.367 GB, free: 33.44 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/1.394, allocations: 11.8 kB / 1.367 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003349/1.395, allocations: 217 kB / 1.367 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/1.396, allocations: 0.9568 MB / 1.368 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004347/1.397, allocations: 237.3 kB / 1.368 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/1.397, allocations: 106.6 kB / 1.368 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.197e-05/1.397, allocations: 4.078 kB / 1.368 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002222/1.397, allocations: 152.7 kB / 1.368 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=30): time 1.423e-06/1.397, allocations: 3.938 kB / 1.368 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30): time 0.0003823/1.397, allocations: 216.2 kB / 1.369 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/1.398, allocations: 74.03 kB / 1.369 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/1.398, allocations: 182.1 kB / 1.369 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/1.398, allocations: 36.77 kB / 1.369 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.842e-05/1.398, allocations: 152.4 kB / 1.369 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.94e-05/1.398, allocations: 77.2 kB / 1.369 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.478e-05/1.398, allocations: 7.438 kB / 1.369 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001188/1.398, allocations: 332.7 kB / 1.369 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/1.398, allocations: 82.03 kB / 1.37 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/1.398, allocations: 141.4 kB / 1.37 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001289/1.398, allocations: 79.16 kB / 1.37 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/1.398, allocations: 0 / 1.37 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003787/1.399, allocations: 284.1 kB / 1.37 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/1.399, allocations: 8.875 kB / 1.37 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/1.399, allocations: 3.875 kB / 1.37 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/1.399, allocations: 3.812 kB / 1.37 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001961/1.399, allocations: 40.16 kB / 1.37 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/1.399, allocations: 3.844 kB / 1.37 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/1.399, allocations: 54.84 kB / 1.37 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/1.399, allocations: 15.5 kB / 1.37 GB, free: 32.05 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.heaCon.offToOn.enableFire,$PRE.heaCon.onToOff.enableFire,$whenCondition2,$whenCondition1,$PRE.heaCon.off.localActive,heaCon.off.localActive,$PRE.heaCon.off.newActive,heaCon.off.newActive,$PRE.heaCon.off.oldActive,heaCon.off.oldActive,heaCon.off.active,$PRE.heaCon.on.localActive,heaCon.on.localActive,$PRE.heaCon.on.newActive,heaCon.on.newActive,$PRE.heaCon.on.oldActive,heaCon.on.oldActive,heaCon.on.active,heaCon.offToOn.enableFire,heaCon.offToOn.fire,$PRE.heaCon.offToOn.t_start,heaCon.offToOn.t_start,heaCon.offToOn.condition,heaCon.onToOff.enableFire,heaCon.onToOff.fire,$PRE.heaCon.onToOff.t_start,heaCon.onToOff.t_start,heaCon.onToOff.condition,heaCon.stateGraphRoot.activeSteps,heaCon.stateGraphRoot.resume,heaCon.stateGraphRoot.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001106/1.399, allocations: 135.5 kB / 1.37 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.129e-05/1.399, allocations: 22.36 kB / 1.37 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004127/1.4, allocations: 257.3 kB / 1.371 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/1.4, allocations: 3.656 kB / 1.371 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/1.4, allocations: 0 / 1.371 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/1.4, allocations: 2.953 kB / 1.371 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008375/1.401, allocations: 0.7097 MB / 1.371 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/1.401, allocations: 0 / 1.371 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001406/1.401, allocations: 33.22 kB / 1.371 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/1.401, allocations: 7.875 kB / 1.371 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/1.401, allocations: 14.7 kB / 1.371 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/1.401, allocations: 6.875 kB / 1.371 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/1.401, allocations: 0 / 1.371 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003539/1.401, allocations: 323.6 kB / 1.372 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.838e-05/1.401, allocations: 96.52 kB / 1.372 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.588e-05/1.401, allocations: 7.297 kB / 1.372 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/1.402, allocations: 41.03 kB / 1.372 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/1.402, allocations: 41.77 kB / 1.372 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/1.402, allocations: 14.28 kB / 1.372 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 8.964e-05/1.402, allocations: 125.3 kB / 1.372 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.402, allocations: 0 / 1.372 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002946/1.402, allocations: 64.27 kB / 1.372 GB, free: 31.19 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 21 (heaCon.offToOn.enableFire,heaCon.onToOff.enableFire,heaCon.on.localActive,heaCon.off.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,heaCon.off.newActive,heaCon.off.oldActive,heaCon.off.active,heaCon.on.newActive,heaCon.on.oldActive,heaCon.on.active,heaCon.offToOn.fire,heaCon.offToOn.t_start,heaCon.offToOn.condition,heaCon.onToOff.fire,heaCon.onToOff.t_start,heaCon.onToOff.condition,heaCon.stateGraphRoot.activeSteps) * Number of discrete states: 2 (heaCon.off.newActive,heaCon.on.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001718/1.402, allocations: 119.3 kB / 1.372 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003488/1.403, allocations: 228.8 kB / 1.372 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/1.403, allocations: 3.812 kB / 1.372 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001682/1.403, allocations: 120.6 kB / 1.372 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/1.403, allocations: 28.48 kB / 1.372 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006169/1.404, allocations: 323.4 kB / 1.373 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003881/1.404, allocations: 0.767 MB / 1.374 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001163/1.404, allocations: 22.59 kB / 1.374 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.362e-05/1.404, allocations: 28.97 kB / 1.374 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of SimCode: time 6.11e-07/1.404, allocations: 4 kB / 1.374 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of Templates: time 0.005837/1.41, allocations: 2.557 MB / 1.376 GB, free: 30.04 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.makefile (rm -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; mkfifo Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; head -c 1048576 < Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe >> ../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.sim & ./Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat.csv","../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches