Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.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.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conMix.TRoo|conMix.TRooSetHea|conMix.TRooSetCoo|conMix.yHot|conMix.yCol|m_flow.y",fileNamePrefix="Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conMix.TRoo|conMix.TRooSetHea|conMix.TRooSetCoo|conMix.yHot|conMix.yCol|m_flow.y",fileNamePrefix="Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.722/1.722, allocations: 387.2 MB / 394.5 MB, free: 13.65 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.0009546/0.0009546, allocations: 193.2 kB / 487 MB, free: 5.355 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.075/1.075, allocations: 221.3 MB / 0.7819 GB, free: 1.41 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008332/0.0008332, allocations: 88.59 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.531e-06/5.551e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1667, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4577/0.6245, allocations: 153.1 MB / 1.355 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.6247, allocations: 79.09 kB / 1.355 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.02554/0.6503, allocations: 11.81 MB / 1.366 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.532e-05/0.6503, allocations: 16 kB / 1.366 GB, free: 10.66 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 179 * Number of variables: 179 Notification: Performance of Generate backend data structure: time 0.001357/0.6517, allocations: 1.042 MB / 1.367 GB, free: 9.609 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.763e-05/0.6517, allocations: 9.031 kB / 1.367 GB, free: 9.602 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.6518, allocations: 90.88 kB / 1.367 GB, free: 9.512 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000517/0.6523, allocations: 0.5041 MB / 1.368 GB, free: 9.086 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.6524, allocations: 20 kB / 1.368 GB, free: 9.066 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.203e-05/0.6525, allocations: 47.98 kB / 1.368 GB, free: 9.02 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006931/0.6532, allocations: 467.2 kB / 1.368 GB, free: 8.758 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007985/0.654, allocations: 0.6009 MB / 1.369 GB, free: 8.32 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.654, allocations: 0 / 1.369 GB, free: 8.32 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.62e-05/0.654, allocations: 3.984 kB / 1.369 GB, free: 8.316 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.6541, allocations: 20 kB / 1.369 GB, free: 8.297 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.6564, allocations: 2.205 MB / 1.371 GB, free: 6.625 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007232/0.6571, allocations: 0.514 MB / 1.372 GB, free: 6.281 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003018/0.6574, allocations: 255.1 kB / 1.372 GB, free: 6.137 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.918e-05/0.6575, allocations: 8.438 kB / 1.372 GB, free: 6.129 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00031/0.6578, allocations: 260.7 kB / 1.372 GB, free: 5.945 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=57): time 1.694e-06/0.6578, allocations: 0 / 1.372 GB, free: 5.945 MB / 0.8073 GB Notification: Performance of matching and sorting (n=57): time 0.0005677/0.6584, allocations: 427.1 kB / 1.373 GB, free: 5.641 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.6584, allocations: 137 kB / 1.373 GB, free: 5.473 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003037/0.6587, allocations: 386.2 kB / 1.373 GB, free: 5.184 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.602e-05/0.6587, allocations: 29.7 kB / 1.373 GB, free: 5.148 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 9.764e-05/0.6589, allocations: 281.5 kB / 1.373 GB, free: 4.902 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.235e-05/0.6589, allocations: 173.8 kB / 1.374 GB, free: 4.754 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.431e-05/0.659, allocations: 3.938 kB / 1.374 GB, free: 4.75 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.025e-05/0.659, allocations: 366.8 kB / 1.374 GB, free: 4.406 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002267/0.6593, allocations: 168.6 kB / 1.374 GB, free: 4.312 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002628/0.6595, allocations: 265.5 kB / 1.374 GB, free: 4.109 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.6598, allocations: 176.6 kB / 1.375 GB, free: 4.012 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.6598, allocations: 0 / 1.375 GB, free: 4.012 MB / 0.8073 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0005997/0.6604, allocations: 0.4919 MB / 1.375 GB, free: 3.648 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.686e-05/0.6604, allocations: 364 kB / 1.375 GB, free: 3.277 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.6604, allocations: 0 / 1.375 GB, free: 3.277 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.6605, allocations: 4 kB / 1.375 GB, free: 3.273 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005899/0.6611, allocations: 167.6 kB / 1.376 GB, free: 3.113 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.6611, allocations: 4 kB / 1.376 GB, free: 3.109 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005106/0.6616, allocations: 131.5 kB / 1.376 GB, free: 2.98 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.748e-05/0.6616, allocations: 23.12 kB / 1.376 GB, free: 2.965 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.529e-06/0.6616, allocations: 4 kB / 1.376 GB, free: 2.961 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004916/0.6621, allocations: 380.4 kB / 1.376 GB, free: 2.711 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.655e-06/0.6621, allocations: 7.984 kB / 1.376 GB, free: 2.703 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.747e-06/0.6622, allocations: 0 / 1.376 GB, free: 2.703 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004637/0.6626, allocations: 135 kB / 1.376 GB, free: 2.574 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.546e-06/0.6626, allocations: 7.938 kB / 1.376 GB, free: 2.566 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004068/0.663, allocations: 107.1 kB / 1.376 GB, free: 2.465 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.871e-05/0.6631, allocations: 15.94 kB / 1.376 GB, free: 2.453 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.TRoo.T_start,TRoo.T_start,$PRE.TRoo.count,TRoo.count,$PRE.m_flow.T_start,m_flow.T_start,$PRE.m_flow.count,m_flow.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 2 * 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 8.844e-05/0.6632, allocations: 118.3 kB / 1.376 GB, free: 2.332 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.817e-05/0.6632, allocations: 59.23 kB / 1.376 GB, free: 2.273 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005873/0.6638, allocations: 453.5 kB / 1.377 GB, free: 1.973 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.6638, allocations: 15.94 kB / 1.377 GB, free: 1.957 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.6639, allocations: 4 kB / 1.377 GB, free: 1.953 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.6639, allocations: 0 / 1.377 GB, free: 1.953 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009449/0.6648, allocations: 1.12 MB / 1.378 GB, free: 1.121 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.6648, allocations: 3.938 kB / 1.378 GB, free: 1.117 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005766/0.6654, allocations: 159.5 kB / 1.378 GB, free: 0.9648 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.6654, allocations: 0 / 1.378 GB, free: 0.9648 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.259e-05/0.6655, allocations: 7 kB / 1.378 GB, free: 0.9609 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.6655, allocations: 4 kB / 1.378 GB, free: 0.957 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.6655, allocations: 3.984 kB / 1.378 GB, free: 0.9531 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008047/0.6663, allocations: 0.7686 MB / 1.379 GB, free: 424 kB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.281e-05/0.6663, allocations: 138.9 kB / 1.379 GB, free: 272 kB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.286e-05/0.6664, allocations: 7.484 kB / 1.379 GB, free: 268 kB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004775/0.6669, allocations: 87.92 kB / 1.379 GB, free: 180 kB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.438e-05/0.667, allocations: 55.23 kB / 1.379 GB, free: 136 kB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.667, allocations: 19.11 kB / 1.379 GB, free: 120 kB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0002651/0.6673, allocations: 285 kB / 1.38 GB, free: 15.91 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.000524/0.6679, allocations: 246 kB / 1.38 GB, free: 15.67 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (conMix.conHea.I.y,conMix.conCoo.I.y,conMix.conFloRat.I.y) * Number of discrete variables: 9 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,TRoo.T_start,TRoo.count,m_flow.T_start,m_flow.count) * Number of discrete states: 2 (m_flow.count,TRoo.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 53 * 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.0001289/0.668, allocations: 123 kB / 1.38 GB, free: 15.54 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0009123/0.6689, allocations: 0.7605 MB / 1.381 GB, free: 14.98 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.6689, allocations: 384 / 1.381 GB, free: 14.98 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002927/0.6692, allocations: 233.4 kB / 1.381 GB, free: 14.83 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004629/0.6697, allocations: 87.53 kB / 1.381 GB, free: 14.76 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001429/0.6711, allocations: 0.8429 MB / 1.382 GB, free: 14.02 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005479/0.6717, allocations: 0.9808 MB / 1.383 GB, free: 13.02 MB / 0.823 GB Notification: Performance of SimCode: time 2.61e-07/0.6717, allocations: 0 / 1.383 GB, free: 13.02 MB / 0.823 GB Notification: Performance of Templates: time 0.01342/0.6851, allocations: 9.305 MB / 1.392 GB, free: 3.793 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & ./Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.csv","../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches