Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.23/1.23, allocations: 249.4 MB / 256.7 MB, free: 7.031 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009803/0.0009802, allocations: 181.3 kB / 316 MB, free: 3.527 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.234/1.234, allocations: 205.2 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007871/0.000787, allocations: 94.14 kB / 0.671 GB, free: 4.723 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3655/0.3664, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1768/0.5432, allocations: 106.3 MB / 0.8847 GB, free: 12.52 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5565/1.1, allocations: 139.7 MB / 1.021 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/1.1, allocations: 89.44 kB / 1.021 GB, free: 14.77 MB / 0.6511 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.02331/1.123, allocations: 9.199 MB / 1.03 GB, free: 7.047 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/1.123, allocations: 12 kB / 1.03 GB, free: 7.035 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/1.124, allocations: 59.25 kB / 1.03 GB, free: 6.977 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006616/1.124, allocations: 427.2 kB / 1.031 GB, free: 6.602 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.538e-05/1.124, allocations: 19.75 kB / 1.031 GB, free: 6.586 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.217e-05/1.124, allocations: 28 kB / 1.031 GB, free: 6.559 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005898/1.125, allocations: 312.5 kB / 1.031 GB, free: 6.379 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007458/1.126, allocations: 462.5 kB / 1.031 GB, free: 6.012 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/1.126, allocations: 3.938 kB / 1.031 GB, free: 6.008 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.442e-05/1.126, allocations: 4 kB / 1.031 GB, free: 6.004 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/1.126, allocations: 12 kB / 1.031 GB, free: 5.992 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002304/1.128, allocations: 1.799 MB / 1.033 GB, free: 4.473 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005836/1.129, allocations: 269.7 kB / 1.033 GB, free: 4.293 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001999/1.129, allocations: 119.9 kB / 1.034 GB, free: 4.219 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.813e-05/1.129, allocations: 7.438 kB / 1.034 GB, free: 4.215 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/1.129, allocations: 167.8 kB / 1.034 GB, free: 4.082 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=34): time 2.434e-06/1.129, allocations: 0 / 1.034 GB, free: 4.082 MB / 0.6511 GB Notification: Performance of matching and sorting (n=34): time 0.0005029/1.13, allocations: 261.8 kB / 1.034 GB, free: 3.883 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/1.13, allocations: 110.6 kB / 1.034 GB, free: 3.754 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/1.13, allocations: 291.5 kB / 1.034 GB, free: 3.52 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.527e-05/1.13, allocations: 32.95 kB / 1.034 GB, free: 3.484 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/1.13, allocations: 224.2 kB / 1.035 GB, free: 3.285 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.508e-05/1.13, allocations: 87.91 kB / 1.035 GB, free: 3.211 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.029e-05/1.13, allocations: 0 / 1.035 GB, free: 3.211 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001169/1.131, allocations: 347.4 kB / 1.035 GB, free: 2.879 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/1.131, allocations: 119.6 kB / 1.035 GB, free: 2.812 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000262/1.131, allocations: 228.9 kB / 1.035 GB, free: 2.602 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002024/1.131, allocations: 118.9 kB / 1.036 GB, free: 2.527 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.131, allocations: 0 / 1.036 GB, free: 2.527 MB / 0.6511 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005973/1.132, allocations: 377.7 kB / 1.036 GB, free: 2.242 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/1.132, allocations: 11.89 kB / 1.036 GB, free: 2.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/1.132, allocations: 4 kB / 1.036 GB, free: 2.227 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/1.132, allocations: 4 kB / 1.036 GB, free: 2.223 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003517/1.132, allocations: 87.95 kB / 1.036 GB, free: 2.141 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/1.132, allocations: 11.98 kB / 1.036 GB, free: 2.129 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004015/1.133, allocations: 67.8 kB / 1.036 GB, free: 2.062 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/1.133, allocations: 14.88 kB / 1.036 GB, free: 2.051 MB / 0.6511 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.0001301/1.133, allocations: 132.3 kB / 1.036 GB, free: 1.918 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-05/1.133, allocations: 39.53 kB / 1.036 GB, free: 1.879 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005298/1.134, allocations: 289.9 kB / 1.036 GB, free: 1.672 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/1.134, allocations: 15.92 kB / 1.037 GB, free: 1.656 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/1.134, allocations: 3.938 kB / 1.037 GB, free: 1.652 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/1.134, allocations: 4 kB / 1.037 GB, free: 1.648 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/1.135, allocations: 0.8122 MB / 1.037 GB, free: 0.9961 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/1.135, allocations: 3.969 kB / 1.037 GB, free: 0.9922 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003/1.135, allocations: 59.95 kB / 1.037 GB, free: 0.9336 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/1.135, allocations: 0 / 1.037 GB, free: 0.9336 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.013e-05/1.135, allocations: 15.73 kB / 1.037 GB, free: 0.9219 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/1.135, allocations: 3.906 kB / 1.037 GB, free: 0.918 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.135, allocations: 3.938 kB / 1.037 GB, free: 0.9141 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007083/1.136, allocations: 0.5215 MB / 1.038 GB, free: 0.5078 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001046/1.137, allocations: 1.052 MB / 1.039 GB, free: 15.64 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/1.137, allocations: 145 kB / 1.039 GB, free: 15.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.062e-05/1.137, allocations: 7.875 kB / 1.039 GB, free: 15.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000385/1.137, allocations: 67.89 kB / 1.039 GB, free: 15.43 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/1.138, allocations: 45.75 kB / 1.039 GB, free: 15.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/1.138, allocations: 11.98 kB / 1.039 GB, free: 15.39 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0002054/1.138, allocations: 205.5 kB / 1.039 GB, free: 15.23 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001044/1.139, allocations: 83.83 kB / 1.039 GB, free: 15.15 MB / 0.6667 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.0002006/1.139, allocations: 120.8 kB / 1.04 GB, free: 15.03 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0005611/1.14, allocations: 322.2 kB / 1.04 GB, free: 14.8 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/1.14, allocations: 0 / 1.04 GB, free: 14.8 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0002324/1.14, allocations: 144.9 kB / 1.04 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004384/1.14, allocations: 67.38 kB / 1.04 GB, free: 14.66 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/1.142, allocations: 0.5172 MB / 1.041 GB, free: 14.18 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006108/1.142, allocations: 0.8811 MB / 1.041 GB, free: 13.27 MB / 0.6667 GB Notification: Performance of SimCode: time 2.61e-07/1.142, allocations: 0 / 1.041 GB, free: 13.27 MB / 0.6667 GB (rm -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)