Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") [: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 8.0.1-maint.8.0.x/package.mo): time 1.39/1.39, allocations: 285.5 MB / 292.8 MB, free: 9.941 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009373/0.0009374, allocations: 183.6 kB / 361.1 MB, free: 392 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.063/1.063, allocations: 205.1 MB / 0.6195 GB, free: 2.941 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007919/0.0007919, allocations: 86.75 kB / 0.7326 GB, free: 1.109 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 5.941e-06/5.981e-06, allocations: 2.062 kB / 0.8511 GB, free: 151.8 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1422, allocations: 115.3 MB / 0.9637 GB, free: 56.38 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4133/0.5555, allocations: 144.9 MB / 1.105 GB, free: 24 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001669/0.5557, allocations: 89.59 kB / 1.105 GB, free: 24 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01845/0.5742, allocations: 8.389 MB / 1.113 GB, free: 23.45 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.381e-05/0.5742, allocations: 15.47 kB / 1.114 GB, free: 23.45 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001039/0.5753, allocations: 0.7568 MB / 1.114 GB, free: 22.93 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.924e-05/0.5753, allocations: 7.75 kB / 1.114 GB, free: 22.93 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.239e-05/0.5754, allocations: 58.47 kB / 1.114 GB, free: 22.91 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004626/0.5759, allocations: 428.7 kB / 1.115 GB, free: 22.66 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.5759, allocations: 15.5 kB / 1.115 GB, free: 22.66 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.712e-05/0.576, allocations: 31.06 kB / 1.115 GB, free: 22.66 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004978/0.5765, allocations: 306.2 kB / 1.115 GB, free: 22.65 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005766/0.5771, allocations: 456.4 kB / 1.115 GB, free: 22.52 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.5771, allocations: 3.906 kB / 1.115 GB, free: 22.52 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.855e-05/0.5771, allocations: 0 / 1.115 GB, free: 22.52 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.5771, allocations: 11.62 kB / 1.116 GB, free: 22.52 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001668/0.5788, allocations: 1.796 MB / 1.117 GB, free: 21.6 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004786/0.5793, allocations: 275.9 kB / 1.118 GB, free: 21.57 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.5795, allocations: 114.3 kB / 1.118 GB, free: 21.56 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.337e-05/0.5795, allocations: 3.844 kB / 1.118 GB, free: 21.56 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002203/0.5797, allocations: 181.9 kB / 1.118 GB, free: 21.5 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=34): time 1.553e-06/0.5798, allocations: 0 / 1.118 GB, free: 21.5 MB / 0.7136 GB Notification: Performance of matching and sorting (n=34): time 0.000415/0.5802, allocations: 251.7 kB / 1.118 GB, free: 21.44 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.116e-05/0.5802, allocations: 116.5 kB / 1.118 GB, free: 21.32 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002389/0.5805, allocations: 286 kB / 1.118 GB, free: 21.21 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.883e-05/0.5805, allocations: 32.67 kB / 1.118 GB, free: 21.18 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.861e-05/0.5806, allocations: 222.8 kB / 1.119 GB, free: 21.03 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.967e-05/0.5807, allocations: 90.86 kB / 1.119 GB, free: 20.98 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.936e-05/0.5807, allocations: 4 kB / 1.119 GB, free: 20.98 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.5808, allocations: 352.3 kB / 1.119 GB, free: 36.66 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.581, allocations: 110.1 kB / 1.119 GB, free: 36.66 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.5812, allocations: 234.1 kB / 1.119 GB, free: 36.52 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.5814, allocations: 121 kB / 1.12 GB, free: 36.52 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.5814, allocations: 0 / 1.12 GB, free: 36.52 MB / 0.7292 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004988/0.5819, allocations: 372.7 kB / 1.12 GB, free: 36.44 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.5819, allocations: 7.75 kB / 1.12 GB, free: 36.44 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.872e-06/0.5819, allocations: 384 / 1.12 GB, free: 36.44 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.5819, allocations: 11.44 kB / 1.12 GB, free: 36.44 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003397/0.5823, allocations: 83.36 kB / 1.12 GB, free: 36.43 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.5823, allocations: 18.77 kB / 1.12 GB, free: 36.42 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003792/0.5827, allocations: 68.86 kB / 1.12 GB, free: 36.41 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.875e-05/0.5827, allocations: 22.22 kB / 1.12 GB, free: 36.4 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,preHeatCoil.preHeaCoiCon.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0001156/0.5829, allocations: 140.3 kB / 1.12 GB, free: 36.28 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.487e-05/0.5829, allocations: 34.75 kB / 1.12 GB, free: 36.26 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004932/0.5834, allocations: 285.1 kB / 1.121 GB, free: 36.21 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.5834, allocations: 3.781 kB / 1.121 GB, free: 36.21 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.5834, allocations: 2.719 kB / 1.121 GB, free: 36.21 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.5834, allocations: 0 / 1.121 GB, free: 36.21 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009404/0.5844, allocations: 0.8246 MB / 1.121 GB, free: 35.91 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.5844, allocations: 3.781 kB / 1.121 GB, free: 35.91 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002862/0.5847, allocations: 65.08 kB / 1.121 GB, free: 35.9 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.5847, allocations: 0 / 1.121 GB, free: 35.9 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.5847, allocations: 6.891 kB / 1.121 GB, free: 35.9 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.5848, allocations: 7.938 kB / 1.121 GB, free: 35.89 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.5848, allocations: 3.938 kB / 1.121 GB, free: 35.89 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006353/0.5854, allocations: 0.5236 MB / 1.122 GB, free: 35.71 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.5855, allocations: 149.5 kB / 1.122 GB, free: 35.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.153e-05/0.5856, allocations: 3 kB / 1.122 GB, free: 35.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003607/0.586, allocations: 54.47 kB / 1.122 GB, free: 35.59 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.5861, allocations: 49.83 kB / 1.122 GB, free: 35.58 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.5861, allocations: 11.75 kB / 1.122 GB, free: 35.58 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001558/0.5863, allocations: 207.9 kB / 1.122 GB, free: 35.5 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003575/0.5866, allocations: 77.47 kB / 1.122 GB, free: 35.49 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 20 (preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.active,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 4 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001406/0.5868, allocations: 130 kB / 1.123 GB, free: 35.38 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004313/0.5872, allocations: 325.2 kB / 1.123 GB, free: 35.33 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.5872, allocations: 0 / 1.123 GB, free: 35.33 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001921/0.5874, allocations: 151.7 kB / 1.123 GB, free: 35.32 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.5878, allocations: 66.28 kB / 1.123 GB, free: 35.32 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009365/0.5888, allocations: 0.5111 MB / 1.124 GB, free: 35.12 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004291/0.5892, allocations: 0.882 MB / 1.124 GB, free: 34.41 MB / 0.7292 GB Notification: Performance of SimCode: time 2.81e-07/0.5892, allocations: 0 / 1.124 GB, free: 34.41 MB / 0.7292 GB Notification: Performance of Templates: time 0.007675/0.5969, allocations: 4.955 MB / 1.129 GB, free: 34.05 MB / 0.7292 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)