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: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.45/1.45, allocations: 289.8 MB / 297.1 MB, free: 6.68 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.001159/0.001159, allocations: 176.4 kB / 366.3 MB, free: 1.996 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.081/1.081, allocations: 205.1 MB / 0.6256 GB, free: 7.473 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.0008133/0.0008133, allocations: 90.48 kB / 0.7395 GB, free: 39.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1832/0.184, allocations: 122.4 MB / 0.8591 GB, free: 13.52 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4247/0.6088, allocations: 116.3 MB / 0.9726 GB, free: 76.23 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1491/0.7579, allocations: 145.9 MB / 1.115 GB, free: 4.574 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.7582, allocations: 88.94 kB / 1.115 GB, free: 4.488 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.02204/0.7802, allocations: 9.155 MB / 1.124 GB, free: 11.34 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.7803, allocations: 8 kB / 1.124 GB, free: 11.34 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001078/0.7804, allocations: 60.28 kB / 1.124 GB, free: 11.28 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005497/0.781, allocations: 435.5 kB / 1.125 GB, free: 10.81 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.781, allocations: 16 kB / 1.125 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.556e-05/0.7811, allocations: 31.98 kB / 1.125 GB, free: 10.77 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005504/0.7816, allocations: 313.8 kB / 1.125 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006605/0.7823, allocations: 456.9 kB / 1.125 GB, free: 9.977 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.7823, allocations: 1.375 kB / 1.125 GB, free: 9.977 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.85e-05/0.7824, allocations: 4 kB / 1.125 GB, free: 9.973 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.7824, allocations: 8 kB / 1.125 GB, free: 9.965 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002076/0.7845, allocations: 1.8 MB / 1.127 GB, free: 8.105 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005292/0.785, allocations: 263.9 kB / 1.127 GB, free: 7.84 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.7852, allocations: 129.5 kB / 1.128 GB, free: 7.711 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.7852, allocations: 4.797 kB / 1.128 GB, free: 7.707 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002496/0.7855, allocations: 165.3 kB / 1.128 GB, free: 7.531 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=34): time 1.654e-06/0.7855, allocations: 0 / 1.128 GB, free: 7.531 MB / 0.7292 GB Notification: Performance of matching and sorting (n=34): time 0.0004462/0.786, allocations: 259.9 kB / 1.128 GB, free: 7.273 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.786, allocations: 118.8 kB / 1.128 GB, free: 7.133 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002774/0.7863, allocations: 287.6 kB / 1.128 GB, free: 6.844 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.242e-05/0.7864, allocations: 29.7 kB / 1.128 GB, free: 6.809 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.7865, allocations: 223.9 kB / 1.129 GB, free: 6.586 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.628e-05/0.7866, allocations: 94.8 kB / 1.129 GB, free: 6.492 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.028e-05/0.7866, allocations: 0 / 1.129 GB, free: 6.492 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.7867, allocations: 350.7 kB / 1.129 GB, free: 6.141 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/0.7869, allocations: 113 kB / 1.129 GB, free: 6.027 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002671/0.7872, allocations: 225.2 kB / 1.129 GB, free: 5.758 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/0.7874, allocations: 126.7 kB / 1.129 GB, free: 5.637 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.7874, allocations: 0 / 1.129 GB, free: 5.637 MB / 0.7292 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005823/0.788, allocations: 381.9 kB / 1.13 GB, free: 5.258 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.788, allocations: 4 kB / 1.13 GB, free: 5.254 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.7881, allocations: 4 kB / 1.13 GB, free: 5.25 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.7881, allocations: 4 kB / 1.13 GB, free: 5.246 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000358/0.7884, allocations: 88.25 kB / 1.13 GB, free: 5.16 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.7885, allocations: 15.88 kB / 1.13 GB, free: 5.145 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003983/0.7889, allocations: 71.7 kB / 1.13 GB, free: 5.074 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.031e-05/0.7889, allocations: 16 kB / 1.13 GB, free: 5.059 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.0001157/0.789, allocations: 132.9 kB / 1.13 GB, free: 4.922 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.241e-05/0.7891, allocations: 39.53 kB / 1.13 GB, free: 4.883 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005243/0.7896, allocations: 291.6 kB / 1.13 GB, free: 4.59 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.7896, allocations: 9.375 kB / 1.13 GB, free: 4.582 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.7896, allocations: 0 / 1.13 GB, free: 4.582 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.76e-06/0.7897, allocations: 0 / 1.13 GB, free: 4.582 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.7907, allocations: 0.8159 MB / 1.131 GB, free: 3.719 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.7908, allocations: 4 kB / 1.131 GB, free: 3.715 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000318/0.7911, allocations: 63.92 kB / 1.131 GB, free: 3.652 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.7911, allocations: 0 / 1.131 GB, free: 3.652 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.814e-05/0.7911, allocations: 8.641 kB / 1.131 GB, free: 3.645 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.7911, allocations: 4 kB / 1.131 GB, free: 3.641 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.7911, allocations: 1.812 kB / 1.131 GB, free: 3.641 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007198/0.7919, allocations: 0.5363 MB / 1.132 GB, free: 3.078 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009765/0.7928, allocations: 1.049 MB / 1.133 GB, free: 2 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.793, allocations: 148.5 kB / 1.133 GB, free: 1.836 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.498e-05/0.7931, allocations: 7.984 kB / 1.133 GB, free: 1.828 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003822/0.7935, allocations: 60.67 kB / 1.133 GB, free: 1.77 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.7936, allocations: 43.92 kB / 1.133 GB, free: 1.727 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.7936, allocations: 8 kB / 1.133 GB, free: 1.719 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001858/0.7938, allocations: 207.1 kB / 1.133 GB, free: 1.52 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0009642/0.7948, allocations: 79.75 kB / 1.133 GB, free: 1.441 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.0001637/0.7949, allocations: 125.2 kB / 1.134 GB, free: 1.312 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004903/0.7954, allocations: 325.7 kB / 1.134 GB, free: 0.9883 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.7955, allocations: 4.5 kB / 1.134 GB, free: 0.9844 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002251/0.7957, allocations: 144.5 kB / 1.134 GB, free: 0.8438 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003997/0.7961, allocations: 71.3 kB / 1.134 GB, free: 0.7812 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.7971, allocations: 0.5124 MB / 1.135 GB, free: 244 kB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005033/0.7976, allocations: 0.8783 MB / 1.135 GB, free: 15.33 MB / 0.7448 GB Notification: Performance of SimCode: time 2.61e-07/0.7976, allocations: 0 / 1.135 GB, free: 15.33 MB / 0.7448 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)