Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.315/1.315, allocations: 289.8 MB / 297.1 MB, free: 6.641 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.001051/0.001051, allocations: 181.3 kB / 366.3 MB, free: 1.961 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.975/0.975, allocations: 205.1 MB / 0.6256 GB, free: 5.832 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008134/0.0008134, allocations: 87.06 kB / 0.7396 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.921e-06/6.031e-06, allocations: 0 / 0.859 GB, free: 13.37 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3795/0.3796, allocations: 116.3 MB / 0.9726 GB, free: 68.74 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.5121, allocations: 145.9 MB / 1.115 GB, free: 2.617 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.5123, allocations: 85.08 kB / 1.115 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.02007/0.5324, allocations: 8.395 MB / 1.123 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.699e-05/0.5324, allocations: 11.94 kB / 1.123 GB, free: 10.14 MB / 0.7292 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.001156/0.5336, allocations: 0.7591 MB / 1.124 GB, free: 9.332 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 2.896e-05/0.5336, allocations: 12.03 kB / 1.124 GB, free: 9.32 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.5337, allocations: 59.34 kB / 1.124 GB, free: 9.262 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005561/0.5343, allocations: 428.1 kB / 1.125 GB, free: 8.805 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/0.5343, allocations: 19.98 kB / 1.125 GB, free: 8.785 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.843e-05/0.5344, allocations: 28 kB / 1.125 GB, free: 8.758 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005559/0.535, allocations: 302 kB / 1.125 GB, free: 8.461 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000656/0.5356, allocations: 456.9 kB / 1.125 GB, free: 7.98 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.5356, allocations: 0 / 1.125 GB, free: 7.98 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.741e-05/0.5357, allocations: 5.016 kB / 1.125 GB, free: 7.977 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.5357, allocations: 12 kB / 1.125 GB, free: 7.965 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.5377, allocations: 1.798 MB / 1.127 GB, free: 6.102 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005021/0.5382, allocations: 271.2 kB / 1.127 GB, free: 5.828 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.5384, allocations: 127.1 kB / 1.127 GB, free: 5.703 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.5384, allocations: 0 / 1.127 GB, free: 5.703 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002459/0.5387, allocations: 173.3 kB / 1.128 GB, free: 5.52 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=34): time 2.915e-06/0.5387, allocations: 0 / 1.128 GB, free: 5.52 MB / 0.7292 GB Notification: Performance of matching and sorting (n=34): time 0.000436/0.5392, allocations: 263 kB / 1.128 GB, free: 5.258 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.5392, allocations: 106.8 kB / 1.128 GB, free: 5.129 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.5395, allocations: 287.6 kB / 1.128 GB, free: 4.84 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.347e-05/0.5395, allocations: 37.69 kB / 1.128 GB, free: 4.797 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.5397, allocations: 223.9 kB / 1.129 GB, free: 4.574 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.397e-05/0.5398, allocations: 82.81 kB / 1.129 GB, free: 4.492 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.931e-05/0.5398, allocations: 0 / 1.129 GB, free: 4.492 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.5399, allocations: 362.7 kB / 1.129 GB, free: 4.129 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002012/0.5401, allocations: 109 kB / 1.129 GB, free: 4.023 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002578/0.5404, allocations: 229.2 kB / 1.129 GB, free: 3.75 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001872/0.5406, allocations: 117.6 kB / 1.129 GB, free: 3.637 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.5406, allocations: 8 kB / 1.129 GB, free: 3.629 MB / 0.7292 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005614/0.5411, allocations: 373.9 kB / 1.13 GB, free: 3.258 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.5412, allocations: 8 kB / 1.13 GB, free: 3.25 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.5412, allocations: 3.938 kB / 1.13 GB, free: 3.246 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.5412, allocations: 8.375 kB / 1.13 GB, free: 3.238 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.5415, allocations: 87.88 kB / 1.13 GB, free: 3.152 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.5416, allocations: 7.938 kB / 1.13 GB, free: 3.145 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003792/0.5419, allocations: 71.7 kB / 1.13 GB, free: 3.074 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.141e-05/0.542, allocations: 23.98 kB / 1.13 GB, free: 3.051 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.000106/0.5421, allocations: 130.6 kB / 1.13 GB, free: 2.918 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.674e-05/0.5422, allocations: 39.53 kB / 1.13 GB, free: 2.879 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004998/0.5427, allocations: 289.2 kB / 1.13 GB, free: 2.586 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.5427, allocations: 4 kB / 1.13 GB, free: 2.582 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.5427, allocations: 0 / 1.13 GB, free: 2.582 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.5427, allocations: 3.984 kB / 1.13 GB, free: 2.578 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.5437, allocations: 0.8237 MB / 1.131 GB, free: 1.707 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.5438, allocations: 4 kB / 1.131 GB, free: 1.703 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002907/0.544, allocations: 67.92 kB / 1.131 GB, free: 1.637 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-06/0.5441, allocations: 4 kB / 1.131 GB, free: 1.633 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.5441, allocations: 0 / 1.131 GB, free: 1.633 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.5441, allocations: 4 kB / 1.131 GB, free: 1.629 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.5441, allocations: 0 / 1.131 GB, free: 1.629 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006786/0.5448, allocations: 0.5364 MB / 1.132 GB, free: 1.066 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.5449, allocations: 144.7 kB / 1.132 GB, free: 0.9062 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.236e-05/0.545, allocations: 4 kB / 1.132 GB, free: 0.9023 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003612/0.5454, allocations: 63.84 kB / 1.132 GB, free: 0.8398 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.5455, allocations: 39.94 kB / 1.132 GB, free: 0.8008 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/0.5455, allocations: 11.98 kB / 1.132 GB, free: 0.7891 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.000177/0.5457, allocations: 212.1 kB / 1.132 GB, free: 0.5859 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000339/0.5461, allocations: 79.84 kB / 1.132 GB, free: 0.5078 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.0001458/0.5462, allocations: 125.1 kB / 1.132 GB, free: 388 kB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004728/0.5467, allocations: 325.8 kB / 1.133 GB, free: 56 kB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.5467, allocations: 4.75 kB / 1.133 GB, free: 52 kB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002268/0.5469, allocations: 139.9 kB / 1.133 GB, free: 15.91 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003652/0.5473, allocations: 69.66 kB / 1.133 GB, free: 15.85 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.5483, allocations: 0.5101 MB / 1.133 GB, free: 15.31 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00047/0.5488, allocations: 0.886 MB / 1.134 GB, free: 14.39 MB / 0.7448 GB Notification: Performance of SimCode: time 2.5e-07/0.5488, allocations: 0 / 1.134 GB, free: 14.39 MB / 0.7448 GB Notification: Performance of Templates: time 0.008258/0.5571, allocations: 4.935 MB / 1.139 GB, free: 9.551 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)