Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.111/2.111, allocations: 284.8 MB / 292.1 MB, free: 10.74 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.001602/0.001602, allocations: 177.3 kB / 360.3 MB, free: 7.508 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.624/1.624, allocations: 205.1 MB / 0.6187 GB, free: 12.44 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.001216/0.001216, allocations: 91.81 kB / 0.7317 GB, free: 45 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2422/0.2434, allocations: 121.4 MB / 0.8502 GB, free: 3.785 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5406/0.7841, allocations: 115.2 MB / 0.9627 GB, free: 78.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2159/1, allocations: 144.8 MB / 1.104 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003376/1, allocations: 94 kB / 1.104 GB, free: 11.93 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.03817/1.039, allocations: 9.17 MB / 1.113 GB, free: 2.816 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/1.039, allocations: 8 kB / 1.113 GB, free: 2.809 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/1.039, allocations: 59.34 kB / 1.113 GB, free: 2.75 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009549/1.04, allocations: 425.8 kB / 1.114 GB, free: 2.301 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.006e-05/1.04, allocations: 20 kB / 1.114 GB, free: 2.281 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/1.04, allocations: 31.98 kB / 1.114 GB, free: 2.25 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001075/1.041, allocations: 309.8 kB / 1.114 GB, free: 1.945 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001206/1.042, allocations: 456.9 kB / 1.114 GB, free: 1.465 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/1.042, allocations: 0 / 1.114 GB, free: 1.465 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.229e-05/1.042, allocations: 0 / 1.114 GB, free: 1.465 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.411e-05/1.043, allocations: 23.73 kB / 1.114 GB, free: 1.445 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003706/1.046, allocations: 1.792 MB / 1.116 GB, free: 15.59 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009325/1.047, allocations: 267.1 kB / 1.116 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003535/1.048, allocations: 128.8 kB / 1.117 GB, free: 15.19 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.358e-05/1.048, allocations: 4 kB / 1.117 GB, free: 15.18 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004428/1.048, allocations: 165.3 kB / 1.117 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=34): time 3.106e-06/1.048, allocations: 0 / 1.117 GB, free: 15.01 MB / 0.7292 GB Notification: Performance of matching and sorting (n=34): time 0.0008148/1.049, allocations: 255 kB / 1.117 GB, free: 14.75 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/1.049, allocations: 118.8 kB / 1.117 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005303/1.05, allocations: 287.6 kB / 1.117 GB, free: 14.33 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 8.229e-05/1.05, allocations: 33.7 kB / 1.117 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/1.05, allocations: 223.9 kB / 1.118 GB, free: 14.07 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/1.05, allocations: 86.8 kB / 1.118 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.338e-05/1.05, allocations: 4 kB / 1.118 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001764/1.05, allocations: 350.7 kB / 1.118 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003784/1.051, allocations: 113 kB / 1.118 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/1.051, allocations: 229.2 kB / 1.118 GB, free: 13.24 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/1.052, allocations: 121.2 kB / 1.118 GB, free: 13.12 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/1.052, allocations: 4 kB / 1.118 GB, free: 13.12 MB / 0.7292 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001043/1.053, allocations: 374 kB / 1.119 GB, free: 12.75 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/1.053, allocations: 8 kB / 1.119 GB, free: 12.74 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/1.053, allocations: 1.5 kB / 1.119 GB, free: 12.74 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.279e-05/1.053, allocations: 11.94 kB / 1.119 GB, free: 12.73 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006975/1.053, allocations: 87.97 kB / 1.119 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/1.053, allocations: 11.88 kB / 1.119 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007702/1.054, allocations: 67.7 kB / 1.119 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.051e-05/1.054, allocations: 20 kB / 1.119 GB, free: 12.55 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.0001876/1.055, allocations: 136.7 kB / 1.119 GB, free: 12.41 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.393e-05/1.055, allocations: 36.59 kB / 1.119 GB, free: 12.37 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000976/1.056, allocations: 289.7 kB / 1.119 GB, free: 12.09 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/1.056, allocations: 7.984 kB / 1.119 GB, free: 12.08 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/1.056, allocations: 0 / 1.119 GB, free: 12.08 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/1.056, allocations: 1.5 kB / 1.119 GB, free: 12.08 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00189/1.058, allocations: 0.826 MB / 1.12 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/1.058, allocations: 0 / 1.12 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000578/1.058, allocations: 63.92 kB / 1.12 GB, free: 11.14 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.079e-05/1.058, allocations: 4 kB / 1.12 GB, free: 11.14 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.968e-05/1.058, allocations: 7.984 kB / 1.12 GB, free: 11.13 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.745e-06/1.058, allocations: 6.5 kB / 1.12 GB, free: 11.13 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.058, allocations: 0 / 1.12 GB, free: 11.13 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001256/1.06, allocations: 0.5323 MB / 1.121 GB, free: 10.57 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001764/1.061, allocations: 1.045 MB / 1.122 GB, free: 9.496 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002517/1.062, allocations: 152.6 kB / 1.122 GB, free: 9.328 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/1.062, allocations: 7.984 kB / 1.122 GB, free: 9.32 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007374/1.062, allocations: 51.95 kB / 1.122 GB, free: 9.27 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/1.063, allocations: 43.92 kB / 1.122 GB, free: 9.227 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.317e-05/1.063, allocations: 12 kB / 1.122 GB, free: 9.215 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0003501/1.063, allocations: 211.1 kB / 1.122 GB, free: 9.008 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001473/1.065, allocations: 81.06 kB / 1.122 GB, free: 8.93 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.000238/1.065, allocations: 122.8 kB / 1.123 GB, free: 8.801 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0009007/1.066, allocations: 317.7 kB / 1.123 GB, free: 8.484 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/1.066, allocations: 4.688 kB / 1.123 GB, free: 8.48 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004293/1.066, allocations: 143.9 kB / 1.123 GB, free: 8.34 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007248/1.067, allocations: 67.7 kB / 1.123 GB, free: 8.277 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/1.069, allocations: 0.5119 MB / 1.124 GB, free: 7.738 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007798/1.07, allocations: 0.8866 MB / 1.124 GB, free: 6.824 MB / 0.7292 GB Notification: Performance of SimCode: time 8.61e-07/1.07, allocations: 0 / 1.124 GB, free: 6.824 MB / 0.7292 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_8.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)