Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 1.702/1.702, allocations: 390.4 MB / 397.7 MB, free: 11.22 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.0008926/0.0008926, allocations: 184.6 kB / 490.8 MB, free: 1.902 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.063/1.063, allocations: 221.4 MB / 0.7863 GB, free: 13.65 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.0007974/0.0007974, allocations: 90.8 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.17e-06/5.19e-06, allocations: 3.938 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1652, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4488/0.614, allocations: 153.9 MB / 1.362 GB, free: 17.4 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001891/0.6143, allocations: 82.44 kB / 1.362 GB, free: 17.4 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.02566/0.6399, allocations: 11.8 MB / 1.373 GB, free: 16.64 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.912e-05/0.64, allocations: 16 kB / 1.373 GB, free: 16.64 MB / 0.823 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.001532/0.6415, allocations: 1.043 MB / 1.375 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.838e-05/0.6416, allocations: 9.062 kB / 1.375 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.6417, allocations: 93.8 kB / 1.375 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000575/0.6423, allocations: 0.4961 MB / 1.375 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.6423, allocations: 32.16 kB / 1.375 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.342e-05/0.6424, allocations: 44.53 kB / 1.375 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007599/0.6432, allocations: 465.5 kB / 1.376 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009165/0.6441, allocations: 0.6076 MB / 1.376 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.6441, allocations: 0.9688 kB / 1.376 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.582e-05/0.6442, allocations: 2.344 kB / 1.376 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.745e-05/0.6442, allocations: 17.41 kB / 1.376 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002799/0.647, allocations: 2.205 MB / 1.378 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008118/0.6478, allocations: 0.5001 MB / 1.379 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003288/0.6482, allocations: 255.5 kB / 1.379 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.143e-05/0.6482, allocations: 14.33 kB / 1.379 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003373/0.6486, allocations: 258.3 kB / 1.379 GB, free: 30.74 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=57): time 1.763e-06/0.6486, allocations: 3.938 kB / 1.379 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of matching and sorting (n=57): time 0.0006286/0.6492, allocations: 429.8 kB / 1.38 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.6493, allocations: 147.6 kB / 1.38 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003468/0.6496, allocations: 378.5 kB / 1.38 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.743e-05/0.6496, allocations: 26.98 kB / 1.38 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.6498, allocations: 284.8 kB / 1.381 GB, free: 30.1 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.635e-05/0.6499, allocations: 172.1 kB / 1.381 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.469e-05/0.6499, allocations: 1.281 kB / 1.381 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.65, allocations: 365.7 kB / 1.381 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.6503, allocations: 161.9 kB / 1.381 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002856/0.6506, allocations: 268 kB / 1.382 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002485/0.6508, allocations: 180.9 kB / 1.382 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.6508, allocations: 1.219 kB / 1.382 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006759/0.6515, allocations: 493.9 kB / 1.382 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.633e-05/0.6516, allocations: 373.9 kB / 1.383 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.6516, allocations: 1.094 kB / 1.383 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.6516, allocations: 4.375 kB / 1.383 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006154/0.6523, allocations: 167.5 kB / 1.383 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.6523, allocations: 3.688 kB / 1.383 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005127/0.6528, allocations: 131 kB / 1.383 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.95e-05/0.6528, allocations: 16.56 kB / 1.383 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.68e-06/0.6528, allocations: 6.406 kB / 1.383 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005418/0.6534, allocations: 382.5 kB / 1.383 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-06/0.6534, allocations: 1.25 kB / 1.383 GB, free: 28.89 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.738e-06/0.6534, allocations: 7.844 kB / 1.383 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004924/0.6539, allocations: 139.3 kB / 1.383 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.6539, allocations: 7.047 kB / 1.383 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004263/0.6544, allocations: 99.06 kB / 1.383 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.201e-05/0.6544, allocations: 16.81 kB / 1.383 GB, free: 28.8 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: 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 0.0001071/0.6545, allocations: 130.4 kB / 1.384 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.768e-05/0.6546, allocations: 60.03 kB / 1.384 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006358/0.6552, allocations: 446.7 kB / 1.384 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.6552, allocations: 5.312 kB / 1.384 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.6552, allocations: 0 / 1.384 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.6553, allocations: 5.234 kB / 1.384 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.6563, allocations: 1.12 MB / 1.385 GB, free: 28.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.6563, allocations: 5.156 kB / 1.385 GB, free: 28.06 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000586/0.6569, allocations: 154 kB / 1.385 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.6569, allocations: 1.25 kB / 1.385 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.289e-05/0.657, allocations: 13.98 kB / 1.385 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.657, allocations: 6.656 kB / 1.385 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.657, allocations: 0 / 1.385 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009095/0.6579, allocations: 0.7744 MB / 1.386 GB, free: 27.8 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.033e-05/0.658, allocations: 138.9 kB / 1.386 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.551e-05/0.6581, allocations: 1.312 kB / 1.386 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004955/0.6586, allocations: 95.52 kB / 1.386 GB, free: 27.63 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.6587, allocations: 46.02 kB / 1.386 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.371e-05/0.6587, allocations: 18.98 kB / 1.386 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002511/0.659, allocations: 286.8 kB / 1.387 GB, free: 27.51 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005438/0.6595, allocations: 250.7 kB / 1.387 GB, free: 27.43 MB / 0.8386 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.0001201/0.6596, allocations: 109.8 kB / 1.387 GB, free: 27.34 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009007/0.6606, allocations: 0.7741 MB / 1.388 GB, free: 27.15 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.6606, allocations: 0 / 1.388 GB, free: 27.15 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002882/0.6609, allocations: 225.5 kB / 1.388 GB, free: 27.14 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004742/0.6613, allocations: 93.59 kB / 1.388 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.6628, allocations: 0.8451 MB / 1.389 GB, free: 26.75 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000592/0.6634, allocations: 0.9869 MB / 1.39 GB, free: 25.93 MB / 0.8386 GB Notification: Performance of SimCode: time 6.31e-07/0.6634, allocations: 0 / 1.39 GB, free: 25.93 MB / 0.8386 GB Notification: Performance of Templates: time 0.01305/0.6764, allocations: 9.301 MB / 1.399 GB, free: 21.45 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.makefile (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & ./Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.csv","../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches