Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.802/1.802, allocations: 387.2 MB / 394.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009941/0.0009942, allocations: 177.3 kB / 487 MB, free: 5.34 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.148/1.148, allocations: 221.3 MB / 0.7819 GB, free: 1.41 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008728/0.0008728, allocations: 100.4 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.42/0.4209, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.6028, allocations: 142.3 MB / 1.205 GB, free: 26.12 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4991/1.102, allocations: 156.1 MB / 1.358 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/1.102, allocations: 86.47 kB / 1.358 GB, free: 15.88 MB / 0.8073 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.02086/1.123, allocations: 9.25 MB / 1.367 GB, free: 10.47 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.876e-05/1.123, allocations: 8 kB / 1.367 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.418e-05/1.123, allocations: 59.33 kB / 1.367 GB, free: 10.4 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004624/1.124, allocations: 430.8 kB / 1.367 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.346e-05/1.124, allocations: 19.98 kB / 1.367 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.879e-05/1.124, allocations: 28 kB / 1.367 GB, free: 9.984 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004836/1.124, allocations: 303.6 kB / 1.368 GB, free: 9.816 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005651/1.125, allocations: 456.4 kB / 1.368 GB, free: 9.449 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/1.125, allocations: 7.922 kB / 1.368 GB, free: 9.441 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/1.125, allocations: 0 / 1.368 GB, free: 9.441 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/1.125, allocations: 12 kB / 1.368 GB, free: 9.43 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/1.127, allocations: 1.8 MB / 1.37 GB, free: 7.922 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004529/1.127, allocations: 295.1 kB / 1.37 GB, free: 7.711 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/1.127, allocations: 119.9 kB / 1.37 GB, free: 7.637 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/1.127, allocations: 7.984 kB / 1.37 GB, free: 7.629 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002169/1.127, allocations: 204.7 kB / 1.371 GB, free: 7.461 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=35): time 1.363e-06/1.127, allocations: 0 / 1.371 GB, free: 7.461 MB / 0.8073 GB Notification: Performance of matching and sorting (n=35): time 0.0003821/1.128, allocations: 262.5 kB / 1.371 GB, free: 7.262 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.719e-05/1.128, allocations: 148.3 kB / 1.371 GB, free: 7.09 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002165/1.128, allocations: 283.1 kB / 1.371 GB, free: 6.871 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.841e-05/1.128, allocations: 32.83 kB / 1.371 GB, free: 6.836 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 8.02e-05/1.128, allocations: 217.1 kB / 1.371 GB, free: 6.641 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 6.545e-05/1.128, allocations: 96.69 kB / 1.372 GB, free: 6.562 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.944e-05/1.128, allocations: 4.031 kB / 1.372 GB, free: 6.559 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.592e-05/1.128, allocations: 351.2 kB / 1.372 GB, free: 6.223 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002008/1.129, allocations: 114.4 kB / 1.372 GB, free: 6.164 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/1.129, allocations: 231.6 kB / 1.372 GB, free: 5.949 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/1.129, allocations: 123.3 kB / 1.372 GB, free: 5.875 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/1.129, allocations: 4 kB / 1.372 GB, free: 5.871 MB / 0.8073 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0004877/1.129, allocations: 378.6 kB / 1.373 GB, free: 5.582 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.285e-06/1.129, allocations: 4 kB / 1.373 GB, free: 5.578 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/1.129, allocations: 4.375 kB / 1.373 GB, free: 5.574 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/1.129, allocations: 12 kB / 1.373 GB, free: 5.562 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003254/1.13, allocations: 90.12 kB / 1.373 GB, free: 5.48 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/1.13, allocations: 8 kB / 1.373 GB, free: 5.473 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/1.13, allocations: 67.7 kB / 1.373 GB, free: 5.406 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/1.13, allocations: 19.31 kB / 1.373 GB, free: 5.391 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.toOn.t_start,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 (58): * Single equations (assignments): 57 * 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 8.783e-05/1.13, allocations: 143.8 kB / 1.373 GB, free: 5.246 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.363e-05/1.13, allocations: 35.53 kB / 1.373 GB, free: 5.211 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004342/1.131, allocations: 289.1 kB / 1.373 GB, free: 5.008 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/1.131, allocations: 4 kB / 1.373 GB, free: 5.004 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/1.131, allocations: 0 / 1.373 GB, free: 5.004 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/1.131, allocations: 4 kB / 1.373 GB, free: 5 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008551/1.132, allocations: 0.8181 MB / 1.374 GB, free: 4.348 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/1.132, allocations: 3.906 kB / 1.374 GB, free: 4.344 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002715/1.132, allocations: 67.86 kB / 1.374 GB, free: 4.277 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/1.132, allocations: 4 kB / 1.374 GB, free: 4.273 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/1.132, allocations: 3.562 kB / 1.374 GB, free: 4.273 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/1.132, allocations: 7.938 kB / 1.374 GB, free: 4.266 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.132, allocations: 0 / 1.374 GB, free: 4.266 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005778/1.133, allocations: 0.5592 MB / 1.375 GB, free: 3.816 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000751/1.133, allocations: 1.065 MB / 1.376 GB, free: 2.934 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/1.134, allocations: 151.2 kB / 1.376 GB, free: 2.789 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.033e-05/1.134, allocations: 7.984 kB / 1.376 GB, free: 2.781 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003539/1.134, allocations: 55.39 kB / 1.376 GB, free: 2.73 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.608e-05/1.134, allocations: 51.36 kB / 1.376 GB, free: 2.688 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.273e-05/1.134, allocations: 11.44 kB / 1.376 GB, free: 2.68 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001314/1.134, allocations: 207 kB / 1.376 GB, free: 2.52 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008711/1.135, allocations: 83.75 kB / 1.376 GB, free: 2.438 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 21 (preHeatCoil.toOn.t_start,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: 5 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y,preHeatCoil.toOn.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001191/1.135, allocations: 131.9 kB / 1.376 GB, free: 2.312 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0004104/1.136, allocations: 330.7 kB / 1.377 GB, free: 2.082 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/1.136, allocations: 4.312 kB / 1.377 GB, free: 2.078 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.000199/1.136, allocations: 146.3 kB / 1.377 GB, free: 1.984 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/1.136, allocations: 60.55 kB / 1.377 GB, free: 1.934 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008946/1.137, allocations: 0.5296 MB / 1.377 GB, free: 1.449 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004027/1.138, allocations: 0.8851 MB / 1.378 GB, free: 16.54 MB / 0.823 GB Notification: Performance of SimCode: time 2.81e-07/1.138, allocations: 0 / 1.378 GB, free: 16.54 MB / 0.823 GB (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)