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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.733/1.733, allocations: 289.9 MB / 297.4 MB, free: 6.336 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.001538/0.001538, allocations: 176.9 kB / 366.7 MB, free: 1.652 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.908/1.908, allocations: 205.2 MB / 0.626 GB, free: 7.18 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.001059/0.001059, allocations: 95.3 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.206e-05/2.22e-05, allocations: 4 kB / 0.8598 GB, free: 12.98 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7647/0.7647, allocations: 116.3 MB / 0.9733 GB, free: 76.18 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2144/0.9792, allocations: 146 MB / 1.116 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.9795, allocations: 91.94 kB / 1.116 GB, free: 4.094 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02363/1.003, allocations: 8.661 MB / 1.124 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.543e-06/1.003, allocations: 0 / 1.124 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.17e-05/1.003, allocations: 15.94 kB / 1.124 GB, free: 11.48 MB / 0.7292 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.001451/1.005, allocations: 0.7508 MB / 1.125 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/1.005, allocations: 8.031 kB / 1.125 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001316/1.005, allocations: 59.3 kB / 1.125 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006603/1.006, allocations: 424.7 kB / 1.126 GB, free: 10.16 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.467e-05/1.006, allocations: 23 kB / 1.126 GB, free: 10.14 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.048e-05/1.006, allocations: 28 kB / 1.126 GB, free: 10.11 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006397/1.006, allocations: 306.6 kB / 1.126 GB, free: 9.812 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000793/1.007, allocations: 461 kB / 1.126 GB, free: 9.328 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/1.007, allocations: 0 / 1.126 GB, free: 9.328 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.2e-05/1.007, allocations: 3.953 kB / 1.126 GB, free: 9.324 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/1.007, allocations: 12 kB / 1.126 GB, free: 9.312 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002503/1.01, allocations: 1.796 MB / 1.128 GB, free: 7.453 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006196/1.01, allocations: 280.9 kB / 1.128 GB, free: 7.172 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002103/1.011, allocations: 116.9 kB / 1.129 GB, free: 7.055 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.929e-05/1.011, allocations: 4.797 kB / 1.129 GB, free: 7.051 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003539/1.011, allocations: 183.9 kB / 1.129 GB, free: 6.859 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=34): time 2.475e-06/1.011, allocations: 0 / 1.129 GB, free: 6.859 MB / 0.7292 GB Notification: Performance of matching and sorting (n=34): time 0.000546/1.012, allocations: 267.1 kB / 1.129 GB, free: 6.594 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.125e-05/1.012, allocations: 114.8 kB / 1.129 GB, free: 6.457 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003605/1.012, allocations: 293.4 kB / 1.129 GB, free: 6.164 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.022e-05/1.012, allocations: 33.7 kB / 1.129 GB, free: 6.125 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/1.012, allocations: 259.9 kB / 1.13 GB, free: 5.867 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.978e-05/1.012, allocations: 82.81 kB / 1.13 GB, free: 5.785 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.12e-05/1.012, allocations: 0 / 1.13 GB, free: 5.785 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.000168/1.013, allocations: 354.8 kB / 1.13 GB, free: 5.43 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/1.013, allocations: 117.1 kB / 1.13 GB, free: 5.316 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003009/1.013, allocations: 225.7 kB / 1.13 GB, free: 5.043 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/1.013, allocations: 121.6 kB / 1.131 GB, free: 4.926 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/1.013, allocations: 0 / 1.131 GB, free: 4.926 MB / 0.7292 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006469/1.014, allocations: 381.9 kB / 1.131 GB, free: 4.547 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.525e-05/1.014, allocations: 34.48 kB / 1.131 GB, free: 4.508 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/1.014, allocations: 11.92 kB / 1.131 GB, free: 4.496 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/1.014, allocations: 4 kB / 1.131 GB, free: 4.492 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003648/1.014, allocations: 91.58 kB / 1.131 GB, free: 4.406 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/1.014, allocations: 4 kB / 1.131 GB, free: 4.402 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004059/1.015, allocations: 71.69 kB / 1.131 GB, free: 4.332 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.604e-05/1.015, allocations: 20 kB / 1.131 GB, free: 4.312 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.0001464/1.015, allocations: 134 kB / 1.131 GB, free: 4.172 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000427/1.016, allocations: 265.1 kB / 1.132 GB, free: 3.906 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.014e-05/1.016, allocations: 43.52 kB / 1.132 GB, free: 3.863 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000581/1.016, allocations: 305.6 kB / 1.132 GB, free: 3.555 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/1.016, allocations: 8 kB / 1.132 GB, free: 3.547 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/1.016, allocations: 0 / 1.132 GB, free: 3.547 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/1.016, allocations: 1.594 kB / 1.132 GB, free: 3.547 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/1.018, allocations: 0.8238 MB / 1.133 GB, free: 2.676 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/1.018, allocations: 0 / 1.133 GB, free: 2.676 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003063/1.018, allocations: 63.98 kB / 1.133 GB, free: 2.613 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/1.018, allocations: 0 / 1.133 GB, free: 2.613 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5e-05/1.018, allocations: 7 kB / 1.133 GB, free: 2.609 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.688e-06/1.018, allocations: 0 / 1.133 GB, free: 2.609 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.018, allocations: 3.938 kB / 1.133 GB, free: 2.605 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000817/1.019, allocations: 0.548 MB / 1.133 GB, free: 2.031 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/1.019, allocations: 148.7 kB / 1.133 GB, free: 1.867 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.83e-05/1.019, allocations: 0 / 1.133 GB, free: 1.867 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003583/1.019, allocations: 48.02 kB / 1.133 GB, free: 1.82 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/1.02, allocations: 51.88 kB / 1.134 GB, free: 1.77 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/1.02, allocations: 12 kB / 1.134 GB, free: 1.758 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002211/1.02, allocations: 204.6 kB / 1.134 GB, free: 1.562 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.3e-07/1.02, allocations: 0 / 1.134 GB, free: 1.562 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004716/1.02, allocations: 91.67 kB / 1.134 GB, free: 1.473 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.001294/1.022, allocations: 1.175 MB / 1.135 GB, free: 276 kB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006788/1.022, allocations: 347.5 kB / 1.135 GB, free: 15.92 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.758e-06/1.022, allocations: 4.75 kB / 1.135 GB, free: 15.91 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002476/1.023, allocations: 139.9 kB / 1.135 GB, free: 15.78 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005495/1.023, allocations: 73.14 kB / 1.136 GB, free: 15.71 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/1.025, allocations: 0.5822 MB / 1.136 GB, free: 15.08 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/1.025, allocations: 0.8396 MB / 1.137 GB, free: 14.21 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0002502/1.026, allocations: 45.08 kB / 1.137 GB, free: 14.17 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002823/1.026, allocations: 159.4 kB / 1.137 GB, free: 14.02 MB / 0.7448 GB Notification: Performance of SimCode: time 1.103e-06/1.026, allocations: 0 / 1.137 GB, free: 14.02 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03231/1.058, allocations: 7.78 MB / 1.145 GB, free: 6.465 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002191/1.059, allocations: 160.2 kB / 1.145 GB, free: 6.266 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.493/3.552, allocations: 0 / 1.145 GB, free: 6.266 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)