Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vavBoxCon.TRooHeaSet|vavBoxCon.TRooCooSet|vavBoxCon.TRoo|vavBoxCon.conHea.y|vavBoxCon.conCoo.y|vavBoxCon.yDam|vavBoxCon.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV") translateModel(Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vavBoxCon.TRooHeaSet|vavBoxCon.TRooCooSet|vavBoxCon.TRoo|vavBoxCon.conHea.y|vavBoxCon.conCoo.y|vavBoxCon.yDam|vavBoxCon.yVal",fileNamePrefix="Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.431/2.431, allocations: 390.5 MB / 398 MB, free: 10.93 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.001129/0.001129, allocations: 184.8 kB / 491.2 MB, free: 1.555 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.671/1.671, allocations: 221.5 MB / 0.7868 GB, free: 13.35 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.0009954/0.0009954, allocations: 91.58 kB / 0.9269 GB, free: 13.85 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.802e-05/1.803e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3085, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.127/1.435, allocations: 153.9 MB / 1.363 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/1.436, allocations: 89.61 kB / 1.363 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0198/1.455, allocations: 8.689 MB / 1.371 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.273e-06/1.455, allocations: 0 / 1.371 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.425e-05/1.456, allocations: 11.41 kB / 1.371 GB, free: 32.77 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001053/1.457, allocations: 0.763 MB / 1.372 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/1.457, allocations: 11.84 kB / 1.372 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/1.457, allocations: 69.72 kB / 1.372 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005414/1.457, allocations: 433 kB / 1.372 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/1.457, allocations: 15.38 kB / 1.372 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.445e-05/1.457, allocations: 30.78 kB / 1.372 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005705/1.458, allocations: 323.2 kB / 1.373 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006466/1.459, allocations: 434.8 kB / 1.373 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/1.459, allocations: 3.938 kB / 1.373 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.835e-05/1.459, allocations: 4 kB / 1.373 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/1.459, allocations: 15.38 kB / 1.373 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/1.461, allocations: 1.625 MB / 1.375 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009566/1.462, allocations: 460.2 kB / 1.375 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/1.462, allocations: 172.4 kB / 1.375 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.59e-05/1.462, allocations: 7.547 kB / 1.375 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002969/1.462, allocations: 212.5 kB / 1.376 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 1.443e-06/1.462, allocations: 3.938 kB / 1.376 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.0004794/1.463, allocations: 296.8 kB / 1.376 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/1.463, allocations: 162 kB / 1.376 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003087/1.463, allocations: 329.3 kB / 1.376 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/1.463, allocations: 25.7 kB / 1.376 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/1.463, allocations: 291.4 kB / 1.377 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.956e-05/1.463, allocations: 111.4 kB / 1.377 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.536e-05/1.463, allocations: 0 / 1.377 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001087/1.464, allocations: 356.1 kB / 1.377 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/1.464, allocations: 100.5 kB / 1.377 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/1.464, allocations: 185 kB / 1.377 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/1.464, allocations: 124.1 kB / 1.378 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/1.464, allocations: 0 / 1.378 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004515/1.464, allocations: 330 kB / 1.378 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001577/1.465, allocations: 373.6 kB / 1.378 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/1.465, allocations: 0 / 1.378 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/1.465, allocations: 3.906 kB / 1.378 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000344/1.465, allocations: 82.38 kB / 1.378 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/1.465, allocations: 4 kB / 1.378 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002967/1.465, allocations: 71.02 kB / 1.378 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.755e-05/1.465, allocations: 7.781 kB / 1.378 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.366e-06/1.465, allocations: 7.875 kB / 1.378 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003761/1.466, allocations: 244.6 kB / 1.379 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-06/1.466, allocations: 0 / 1.379 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.001e-06/1.466, allocations: 7.828 kB / 1.379 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002837/1.466, allocations: 71.27 kB / 1.379 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/1.466, allocations: 7.859 kB / 1.379 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/1.466, allocations: 60.28 kB / 1.379 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/1.466, allocations: 11.59 kB / 1.379 GB, free: 29.68 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,$PRE.vavBoxCon.hysWitHol.y,vavBoxCon.hysWitHol.y,vavBoxCon.assMes.u) * 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.0001105/1.467, allocations: 112.6 kB / 1.379 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.704e-05/1.467, allocations: 45.44 kB / 1.379 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005182/1.467, allocations: 315.2 kB / 1.379 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/1.467, allocations: 7.703 kB / 1.379 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/1.467, allocations: 0 / 1.379 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/1.467, allocations: 7.812 kB / 1.379 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/1.468, allocations: 0.9372 MB / 1.38 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/1.468, allocations: 3.969 kB / 1.38 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003247/1.469, allocations: 83.05 kB / 1.38 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/1.469, allocations: 3.844 kB / 1.38 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/1.469, allocations: 3.953 kB / 1.38 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/1.469, allocations: 3.844 kB / 1.38 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.469, allocations: 2.344 kB / 1.38 GB, free: 29.1 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006296/1.469, allocations: 0.5642 MB / 1.381 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.44e-05/1.469, allocations: 121.4 kB / 1.381 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.256e-05/1.469, allocations: 3.953 kB / 1.381 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002767/1.47, allocations: 45.34 kB / 1.381 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.361e-05/1.47, allocations: 34.77 kB / 1.381 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/1.47, allocations: 7.75 kB / 1.381 GB, free: 28.78 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002841/1.47, allocations: 255.2 kB / 1.381 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.47, allocations: 0 / 1.381 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005731/1.471, allocations: 177.2 kB / 1.381 GB, free: 28.64 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (vavBoxCon.conHea.I.y,vavBoxCon.conCoo.I.y) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,vavBoxCon.hysWitHol.y,vavBoxCon.assMes.u) * Number of discrete states: 1 (vavBoxCon.hysWitHol.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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 Backend phase and start with SimCode phase: time 0.0002332/1.471, allocations: 111.3 kB / 1.382 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006905/1.472, allocations: 433.3 kB / 1.382 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.472, allocations: 0 / 1.382 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001859/1.472, allocations: 151.6 kB / 1.382 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004961/1.472, allocations: 72.67 kB / 1.382 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/1.474, allocations: 0.6022 MB / 1.383 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/1.474, allocations: 0.8728 MB / 1.384 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003119/1.474, allocations: 69.31 kB / 1.384 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.474e-05/1.474, allocations: 32.45 kB / 1.384 GB, free: 27.53 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/1.474, allocations: 0 / 1.384 GB, free: 27.53 MB / 0.8386 GB Notification: Performance of Templates: time 0.008566/1.483, allocations: 4.502 MB / 1.388 GB, free: 25.89 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.makefile (rm -f Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe ; mkfifo Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe >> ../files/Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.sim & ./Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_VAVReheat_BaseClasses_Controls_Examples_RoomVAV.csv","../files/Buildings_latest_Buildings.Examples.VAVReheat.BaseClasses.Controls.Examples.RoomVAV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches