Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.08/2.08, allocations: 284.9 MB / 292.2 MB, free: 10.74 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001564/0.001564, allocations: 176.4 kB / 360.4 MB, free: 7.5 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.654/1.654, allocations: 205.1 MB / 0.6188 GB, free: 12.43 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001206/0.001206, allocations: 96.11 kB / 0.7318 GB, free: 44.97 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.091e-05/1.095e-05, allocations: 4 kB / 0.8502 GB, free: 3.836 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5256/0.5256, allocations: 115.2 MB / 0.9628 GB, free: 78.32 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2116/0.7373, allocations: 144.8 MB / 1.104 GB, free: 12.01 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/0.7376, allocations: 89.56 kB / 1.104 GB, free: 11.92 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.03514/0.7728, allocations: 8.395 MB / 1.112 GB, free: 3.602 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 5.01e-05/0.7729, allocations: 15.94 kB / 1.112 GB, free: 3.586 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.002021/0.7749, allocations: 0.7582 MB / 1.113 GB, free: 2.777 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.775, allocations: 8.531 kB / 1.113 GB, free: 2.77 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.7751, allocations: 57.97 kB / 1.113 GB, free: 2.715 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009082/0.7761, allocations: 427.5 kB / 1.114 GB, free: 2.262 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.32e-05/0.7761, allocations: 23.94 kB / 1.114 GB, free: 2.238 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.7763, allocations: 32.64 kB / 1.114 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001036/0.7773, allocations: 306 kB / 1.114 GB, free: 1.906 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.7785, allocations: 452.9 kB / 1.114 GB, free: 1.43 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.7786, allocations: 0 / 1.114 GB, free: 1.43 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.155e-05/0.7786, allocations: 4 kB / 1.114 GB, free: 1.426 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.939e-05/0.7787, allocations: 12 kB / 1.114 GB, free: 1.414 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003501/0.7822, allocations: 1.794 MB / 1.116 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009266/0.7831, allocations: 267.1 kB / 1.116 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003428/0.7835, allocations: 124.8 kB / 1.117 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.7836, allocations: 7.984 kB / 1.117 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004811/0.784, allocations: 173.2 kB / 1.117 GB, free: 14.97 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=34): time 3.407e-06/0.7841, allocations: 0 / 1.117 GB, free: 14.97 MB / 0.7292 GB Notification: Performance of matching and sorting (n=34): time 0.0008132/0.7849, allocations: 255 kB / 1.117 GB, free: 14.71 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.785, allocations: 114.8 kB / 1.117 GB, free: 14.58 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004929/0.7855, allocations: 290.2 kB / 1.117 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 7.57e-05/0.7856, allocations: 37.7 kB / 1.117 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.7858, allocations: 223.9 kB / 1.118 GB, free: 14.03 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.7859, allocations: 86.8 kB / 1.118 GB, free: 13.94 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.293e-05/0.786, allocations: 0 / 1.118 GB, free: 13.94 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.7861, allocations: 354.7 kB / 1.118 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003681/0.7865, allocations: 113 kB / 1.118 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004858/0.787, allocations: 229.2 kB / 1.118 GB, free: 13.2 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003613/0.7874, allocations: 121.6 kB / 1.119 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.7874, allocations: 0 / 1.119 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001056/0.7885, allocations: 378.1 kB / 1.119 GB, free: 12.71 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.7885, allocations: 4.781 kB / 1.119 GB, free: 12.7 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.7885, allocations: 5.875 kB / 1.119 GB, free: 12.7 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.7885, allocations: 11.94 kB / 1.119 GB, free: 12.69 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006906/0.7892, allocations: 91.94 kB / 1.119 GB, free: 12.6 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.7893, allocations: 4 kB / 1.119 GB, free: 12.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007546/0.79, allocations: 67.7 kB / 1.119 GB, free: 12.53 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.425e-05/0.7901, allocations: 24 kB / 1.119 GB, free: 12.5 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.0001787/0.7903, allocations: 136.6 kB / 1.119 GB, free: 12.36 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.828e-05/0.7904, allocations: 35.53 kB / 1.119 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008947/0.7913, allocations: 286.4 kB / 1.119 GB, free: 12.05 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.7913, allocations: 4 kB / 1.12 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.7913, allocations: 0 / 1.12 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.7914, allocations: 0 / 1.12 GB, free: 12.04 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/0.7932, allocations: 0.8264 MB / 1.12 GB, free: 11.17 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.7933, allocations: 0 / 1.12 GB, free: 11.17 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005668/0.7938, allocations: 63.92 kB / 1.12 GB, free: 11.11 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.869e-06/0.7939, allocations: 4 kB / 1.12 GB, free: 11.11 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.943e-05/0.7939, allocations: 9.578 kB / 1.12 GB, free: 11.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.7939, allocations: 0 / 1.12 GB, free: 11.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.333e-06/0.794, allocations: 7.984 kB / 1.12 GB, free: 11.09 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001295/0.7953, allocations: 0.5323 MB / 1.121 GB, free: 10.53 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002265/0.7955, allocations: 148.6 kB / 1.121 GB, free: 10.37 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.538e-05/0.7956, allocations: 4 kB / 1.121 GB, free: 10.36 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000719/0.7963, allocations: 63.91 kB / 1.121 GB, free: 10.3 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.7965, allocations: 43.94 kB / 1.121 GB, free: 10.26 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.14e-05/0.7966, allocations: 11.98 kB / 1.121 GB, free: 10.25 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0003285/0.7969, allocations: 203.1 kB / 1.121 GB, free: 10.05 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0006155/0.7975, allocations: 75.84 kB / 1.121 GB, free: 9.973 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.0002282/0.7978, allocations: 121.2 kB / 1.122 GB, free: 9.844 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0008779/0.7987, allocations: 337.7 kB / 1.122 GB, free: 9.508 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.7987, allocations: 0 / 1.122 GB, free: 9.508 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004192/0.7991, allocations: 147.9 kB / 1.122 GB, free: 9.363 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006747/0.7998, allocations: 67.02 kB / 1.122 GB, free: 9.305 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.8016, allocations: 0.5078 MB / 1.123 GB, free: 8.77 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000709/0.8024, allocations: 0.8788 MB / 1.123 GB, free: 7.863 MB / 0.7292 GB Notification: Performance of SimCode: time 1.012e-06/0.8024, allocations: 0 / 1.123 GB, free: 7.863 MB / 0.7292 GB Notification: Performance of Templates: time 0.01573/0.8181, allocations: 4.948 MB / 1.128 GB, free: 3.051 MB / 0.7292 GB make -j1 -f Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)