Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.212/2.212, allocations: 248.5 MB / 261.1 MB, free: 6.008 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.001529/0.001528, allocations: 175.8 kB / 320.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.2 MB / 0.571 GB, free: 11.78 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.001166/0.001165, allocations: 103.8 kB / 0.6754 GB, free: 0.8672 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.544e-05/4.562e-05, allocations: 4 kB / 0.7869 GB, free: 97.79 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2172, allocations: 106.2 MB / 0.8907 GB, free: 7.445 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9013/1.119, allocations: 139.3 MB / 1.027 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/1.119, allocations: 88.64 kB / 1.027 GB, free: 11.67 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.03954/1.159, allocations: 8.799 MB / 1.035 GB, free: 4.27 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.916e-06/1.159, allocations: 0 / 1.035 GB, free: 4.27 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 6.102e-05/1.159, allocations: 12.88 kB / 1.035 GB, free: 4.258 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.002412/1.161, allocations: 0.7412 MB / 1.036 GB, free: 3.496 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.951e-05/1.161, allocations: 12.03 kB / 1.036 GB, free: 3.484 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002695/1.161, allocations: 82.45 kB / 1.036 GB, free: 3.422 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002444/1.162, allocations: 63.25 kB / 1.036 GB, free: 3.359 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/1.163, allocations: 424.7 kB / 1.037 GB, free: 2.984 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.146e-05/1.163, allocations: 38 kB / 1.037 GB, free: 2.965 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/1.163, allocations: 49.88 kB / 1.037 GB, free: 2.93 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/1.165, allocations: 0.5081 MB / 1.037 GB, free: 2.539 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/1.165, allocations: 0 / 1.037 GB, free: 2.539 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.048e-05/1.165, allocations: 17.44 kB / 1.037 GB, free: 2.535 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.437e-05/1.165, allocations: 15.94 kB / 1.037 GB, free: 2.52 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/1.166, allocations: 343 kB / 1.038 GB, free: 2.312 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004166/1.17, allocations: 1.899 MB / 1.039 GB, free: 0.7148 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/1.171, allocations: 303.5 kB / 1.04 GB, free: 0.5117 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003545/1.172, allocations: 122.5 kB / 1.04 GB, free: 452 kB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.176e-05/1.172, allocations: 4 kB / 1.04 GB, free: 448 kB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000525/1.172, allocations: 191.5 kB / 1.04 GB, free: 292 kB / 0.6511 GB Notification: Performance of pre-optimization done (n=34): time 3.617e-06/1.172, allocations: 0 / 1.04 GB, free: 292 kB / 0.6511 GB Notification: Performance of matching and sorting (n=34): time 0.0009543/1.173, allocations: 293 kB / 1.04 GB, free: 64 kB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001552/1.173, allocations: 117.9 kB / 1.04 GB, free: 15.93 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007365/1.174, allocations: 358.9 kB / 1.041 GB, free: 15.65 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001463/1.174, allocations: 44.64 kB / 1.041 GB, free: 15.61 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002646/1.175, allocations: 251.9 kB / 1.041 GB, free: 15.43 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/1.175, allocations: 93.58 kB / 1.041 GB, free: 15.35 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.452e-05/1.175, allocations: 14.38 kB / 1.041 GB, free: 15.34 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001751/1.175, allocations: 353.2 kB / 1.041 GB, free: 15 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003918/1.175, allocations: 119 kB / 1.042 GB, free: 14.94 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005061/1.176, allocations: 244.5 kB / 1.042 GB, free: 14.71 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000425/1.176, allocations: 158.1 kB / 1.042 GB, free: 14.59 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.126e-06/1.176, allocations: 4 kB / 1.042 GB, free: 14.59 MB / 0.6667 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001276/1.178, allocations: 459.4 kB / 1.042 GB, free: 14.23 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 5.336e-05/1.178, allocations: 33.77 kB / 1.042 GB, free: 14.2 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/1.178, allocations: 4 kB / 1.042 GB, free: 14.19 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.344e-05/1.178, allocations: 11.98 kB / 1.042 GB, free: 14.18 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006888/1.178, allocations: 75.58 kB / 1.043 GB, free: 14.11 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.019e-05/1.178, allocations: 7.938 kB / 1.043 GB, free: 14.1 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008141/1.179, allocations: 98.39 kB / 1.043 GB, free: 14.01 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.371e-05/1.179, allocations: 19.42 kB / 1.043 GB, free: 14 MB / 0.6667 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.0002288/1.18, allocations: 154.3 kB / 1.043 GB, free: 13.86 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/1.18, allocations: 39.53 kB / 1.043 GB, free: 13.82 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009966/1.181, allocations: 333 kB / 1.043 GB, free: 13.59 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/1.181, allocations: 4 kB / 1.043 GB, free: 13.58 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/1.181, allocations: 0 / 1.043 GB, free: 13.58 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/1.181, allocations: 4 kB / 1.043 GB, free: 13.58 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002287/1.183, allocations: 0.9186 MB / 1.044 GB, free: 12.83 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/1.183, allocations: 0 / 1.044 GB, free: 12.83 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005837/1.184, allocations: 59.33 kB / 1.044 GB, free: 12.78 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.23e-05/1.184, allocations: 4 kB / 1.044 GB, free: 12.77 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.947e-05/1.184, allocations: 11.19 kB / 1.044 GB, free: 12.77 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.396e-05/1.184, allocations: 4 kB / 1.044 GB, free: 12.76 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.184, allocations: 3.938 kB / 1.044 GB, free: 12.76 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/1.185, allocations: 0.5712 MB / 1.045 GB, free: 12.31 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003331/1.186, allocations: 155.4 kB / 1.045 GB, free: 12.16 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/1.186, allocations: 14.14 kB / 1.045 GB, free: 12.16 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006808/1.187, allocations: 51.52 kB / 1.045 GB, free: 12.11 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/1.187, allocations: 54.67 kB / 1.045 GB, free: 12.07 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.524e-05/1.187, allocations: 11.75 kB / 1.045 GB, free: 12.06 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0004843/1.187, allocations: 261 kB / 1.045 GB, free: 11.86 MB / 0.6667 GB Notification: Performance of sort global known variables: time 4.41e-07/1.187, allocations: 0 / 1.045 GB, free: 11.86 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0006984/1.188, allocations: 97.84 kB / 1.045 GB, free: 11.77 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.001912/1.19, allocations: 1.193 MB / 1.046 GB, free: 10.7 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001068/1.191, allocations: 380.7 kB / 1.047 GB, free: 10.42 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/1.191, allocations: 0 / 1.047 GB, free: 10.42 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004553/1.192, allocations: 153.6 kB / 1.047 GB, free: 10.31 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/1.193, allocations: 74.77 kB / 1.047 GB, free: 10.26 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002451/1.195, allocations: 0.6216 MB / 1.048 GB, free: 9.695 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005354/1.196, allocations: 0.8318 MB / 1.048 GB, free: 8.84 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0004511/1.196, allocations: 55.38 kB / 1.049 GB, free: 8.785 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003751/1.197, allocations: 161 kB / 1.049 GB, free: 8.734 MB / 0.6667 GB Notification: Performance of SimCode: time 2.104e-06/1.197, allocations: 0 / 1.049 GB, free: 8.734 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04101/1.238, allocations: 8.9 MB / 1.057 GB, free: 4 kB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003587/1.238, allocations: 171 kB / 1.058 GB, free: 15.79 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.924/4.162, allocations: 0 / 1.058 GB, free: 15.79 MB / 0.6823 GB