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: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) [: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.28/1.28, allocations: 285.5 MB / 292.8 MB, free: 0.7188 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008888/0.0008888, allocations: 180 kB / 361.1 MB, free: 15.33 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9891/0.9891, allocations: 205.1 MB / 0.6195 GB, free: 5.859 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007711/0.0007711, allocations: 95.78 kB / 0.7325 GB, free: 47.38 MB / 0.5184 GB Notification: Performance of FrontEnd - loaded program: time 0.1684/0.1692, allocations: 121.4 MB / 0.8512 GB, free: 12.68 MB / 0.5965 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4166/0.5858, allocations: 115.3 MB / 0.9637 GB, free: 85.71 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1348/0.7207, allocations: 145 MB / 1.105 GB, free: 4.562 MB / 0.7059 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002134/0.7209, allocations: 83.95 kB / 1.105 GB, free: 4.48 MB / 0.7059 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.02097/0.7419, allocations: 9.176 MB / 1.114 GB, free: 11.31 MB / 0.7215 GB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.7419, allocations: 8.5 kB / 1.114 GB, free: 11.3 MB / 0.7215 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.7421, allocations: 63.28 kB / 1.114 GB, free: 11.24 MB / 0.7215 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005177/0.7426, allocations: 431.5 kB / 1.115 GB, free: 10.78 MB / 0.7215 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.7426, allocations: 16 kB / 1.115 GB, free: 10.77 MB / 0.7215 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.037e-05/0.7427, allocations: 29.22 kB / 1.115 GB, free: 10.74 MB / 0.7215 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005334/0.7432, allocations: 302 kB / 1.115 GB, free: 10.44 MB / 0.7215 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006183/0.7439, allocations: 456.9 kB / 1.116 GB, free: 9.961 MB / 0.7215 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.7439, allocations: 0 / 1.116 GB, free: 9.961 MB / 0.7215 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.92e-05/0.7439, allocations: 7.984 kB / 1.116 GB, free: 9.953 MB / 0.7215 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.7439, allocations: 8 kB / 1.116 GB, free: 9.945 MB / 0.7215 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001937/0.7459, allocations: 1.801 MB / 1.117 GB, free: 8.078 MB / 0.7215 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004973/0.7464, allocations: 267.2 kB / 1.118 GB, free: 7.809 MB / 0.7215 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001836/0.7466, allocations: 126.6 kB / 1.118 GB, free: 7.684 MB / 0.7215 GB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/0.7466, allocations: 6.391 kB / 1.118 GB, free: 7.68 MB / 0.7215 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002343/0.7469, allocations: 169.2 kB / 1.118 GB, free: 7.5 MB / 0.7215 GB Notification: Performance of pre-optimization done (n=34): time 1.833e-06/0.7469, allocations: 0 / 1.118 GB, free: 7.5 MB / 0.7215 GB Notification: Performance of matching and sorting (n=34): time 0.0004229/0.7473, allocations: 255.1 kB / 1.118 GB, free: 7.246 MB / 0.7215 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.7473, allocations: 114.8 kB / 1.118 GB, free: 7.109 MB / 0.7215 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002629/0.7476, allocations: 287.6 kB / 1.119 GB, free: 6.824 MB / 0.7215 GB Notification: Performance of collectPreVariables (initialization): time 4.038e-05/0.7477, allocations: 33.7 kB / 1.119 GB, free: 6.785 MB / 0.7215 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.7478, allocations: 219.9 kB / 1.119 GB, free: 6.566 MB / 0.7215 GB Notification: Performance of collectInitialBindings (initialization): time 7.069e-05/0.7479, allocations: 94.73 kB / 1.119 GB, free: 6.473 MB / 0.7215 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.85e-05/0.7479, allocations: 0 / 1.119 GB, free: 6.473 MB / 0.7215 GB Notification: Performance of setup shared object (initialization): time 9.81e-05/0.748, allocations: 350.7 kB / 1.119 GB, free: 6.121 MB / 0.7215 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.7482, allocations: 113 kB / 1.119 GB, free: 6.012 MB / 0.7215 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.7485, allocations: 236.4 kB / 1.12 GB, free: 5.734 MB / 0.7215 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/0.7487, allocations: 121.6 kB / 1.12 GB, free: 5.617 MB / 0.7215 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.7487, allocations: 0 / 1.12 GB, free: 5.617 MB / 0.7215 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005471/0.7492, allocations: 379.1 kB / 1.12 GB, free: 5.242 MB / 0.7215 GB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.7492, allocations: 4 kB / 1.12 GB, free: 5.238 MB / 0.7215 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.7492, allocations: 4 kB / 1.12 GB, free: 5.234 MB / 0.7215 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.7493, allocations: 4 kB / 1.12 GB, free: 5.23 MB / 0.7215 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.7496, allocations: 92.19 kB / 1.12 GB, free: 5.141 MB / 0.7215 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.425e-06/0.7496, allocations: 8 kB / 1.12 GB, free: 5.133 MB / 0.7215 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003764/0.75, allocations: 71.7 kB / 1.12 GB, free: 5.062 MB / 0.7215 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.992e-05/0.7501, allocations: 19.98 kB / 1.12 GB, free: 5.043 MB / 0.7215 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.0001056/0.7502, allocations: 132.6 kB / 1.12 GB, free: 4.906 MB / 0.7215 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.089e-05/0.7502, allocations: 39.53 kB / 1.12 GB, free: 4.867 MB / 0.7215 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004832/0.7507, allocations: 280.1 kB / 1.121 GB, free: 4.594 MB / 0.7215 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.7507, allocations: 8 kB / 1.121 GB, free: 4.586 MB / 0.7215 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-06/0.7507, allocations: 0 / 1.121 GB, free: 4.586 MB / 0.7215 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.7508, allocations: 4.547 kB / 1.121 GB, free: 4.582 MB / 0.7215 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009964/0.7518, allocations: 0.8266 MB / 1.121 GB, free: 3.711 MB / 0.7215 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.7518, allocations: 4 kB / 1.121 GB, free: 3.707 MB / 0.7215 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002855/0.7521, allocations: 67.92 kB / 1.122 GB, free: 3.641 MB / 0.7215 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.7521, allocations: 0 / 1.122 GB, free: 3.641 MB / 0.7215 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/0.7521, allocations: 4 kB / 1.122 GB, free: 3.637 MB / 0.7215 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.7521, allocations: 5.25 kB / 1.122 GB, free: 3.633 MB / 0.7215 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.7521, allocations: 3.938 kB / 1.122 GB, free: 3.629 MB / 0.7215 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006767/0.7528, allocations: 0.5285 MB / 1.122 GB, free: 3.074 MB / 0.7215 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009103/0.7537, allocations: 1.053 MB / 1.123 GB, free: 1.992 MB / 0.7215 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.7539, allocations: 152.5 kB / 1.123 GB, free: 1.824 MB / 0.7215 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.165e-05/0.7539, allocations: 4.875 kB / 1.123 GB, free: 1.82 MB / 0.7215 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003647/0.7543, allocations: 57.14 kB / 1.123 GB, free: 1.766 MB / 0.7215 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.928e-05/0.7544, allocations: 43.92 kB / 1.123 GB, free: 1.723 MB / 0.7215 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.7544, allocations: 12 kB / 1.123 GB, free: 1.711 MB / 0.7215 GB Notification: Performance of sort global known variables: time 0.0001699/0.7546, allocations: 203.1 kB / 1.124 GB, free: 1.512 MB / 0.7215 GB Notification: Performance of remove unused functions: time 0.0008854/0.7555, allocations: 83.73 kB / 1.124 GB, free: 1.43 MB / 0.7215 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.0001485/0.7557, allocations: 117.2 kB / 1.124 GB, free: 1.301 MB / 0.7215 GB Notification: Performance of simCode: created initialization part: time 0.0004548/0.7561, allocations: 334.3 kB / 1.124 GB, free: 0.9688 MB / 0.7215 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.7561, allocations: 0 / 1.124 GB, free: 0.9688 MB / 0.7215 GB Notification: Performance of simCode: created simulation system equations: time 0.0002372/0.7564, allocations: 143.9 kB / 1.124 GB, free: 0.8281 MB / 0.7215 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000374/0.7568, allocations: 59.47 kB / 1.124 GB, free: 0.7773 MB / 0.7215 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000999/0.7578, allocations: 0.52 MB / 1.125 GB, free: 236 kB / 0.7215 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004507/0.7582, allocations: 0.8806 MB / 1.126 GB, free: 15.33 MB / 0.7371 GB Notification: Performance of SimCode: time 3e-07/0.7582, allocations: 3.938 kB / 1.126 GB, free: 15.32 MB / 0.7371 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)