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.718/1.718, allocations: 289.7 MB / 302.2 MB, free: 2.164 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.001125/0.001125, allocations: 176.2 kB / 371.6 MB, free: 3.391 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.653/1.653, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.000952/0.000952, allocations: 95.17 kB / 0.745 GB, free: 54.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.522e-05/4.567e-05, allocations: 4 kB / 0.8663 GB, free: 15 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.3237, allocations: 116.3 MB / 0.9799 GB, free: 10.53 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.987/1.311, allocations: 146.7 MB / 1.123 GB, free: 38.8 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/1.311, allocations: 89.08 kB / 1.123 GB, free: 38.77 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.02231/1.334, allocations: 8.746 MB / 1.132 GB, free: 34.24 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.044e-06/1.334, allocations: 6.953 kB / 1.132 GB, free: 34.23 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.217e-05/1.334, allocations: 16 kB / 1.132 GB, free: 34.22 MB / 0.7448 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.00167/1.335, allocations: 0.7465 MB / 1.132 GB, free: 33.54 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/1.335, allocations: 8.031 kB / 1.133 GB, free: 33.53 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001766/1.336, allocations: 82.08 kB / 1.133 GB, free: 33.48 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002017/1.336, allocations: 66.17 kB / 1.133 GB, free: 33.42 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008277/1.337, allocations: 422.8 kB / 1.133 GB, free: 33.1 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.508e-05/1.337, allocations: 36.62 kB / 1.133 GB, free: 33.07 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/1.337, allocations: 53 kB / 1.133 GB, free: 33.04 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009468/1.338, allocations: 0.4979 MB / 1.134 GB, free: 32.71 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/1.338, allocations: 4.844 kB / 1.134 GB, free: 32.71 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.617e-05/1.338, allocations: 25.98 kB / 1.134 GB, free: 32.7 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/1.338, allocations: 12 kB / 1.134 GB, free: 32.69 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006699/1.339, allocations: 341.9 kB / 1.134 GB, free: 32.49 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002554/1.341, allocations: 1.904 MB / 1.136 GB, free: 31.18 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006196/1.342, allocations: 294.7 kB / 1.136 GB, free: 31 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/1.342, allocations: 134.8 kB / 1.136 GB, free: 30.92 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.117e-05/1.342, allocations: 9.312 kB / 1.136 GB, free: 30.91 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000333/1.342, allocations: 186 kB / 1.136 GB, free: 30.79 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=34): time 2.425e-06/1.342, allocations: 0 / 1.136 GB, free: 30.79 MB / 0.7448 GB Notification: Performance of matching and sorting (n=34): time 0.0005673/1.343, allocations: 295.6 kB / 1.137 GB, free: 30.59 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.926e-05/1.343, allocations: 110.2 kB / 1.137 GB, free: 30.46 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004083/1.343, allocations: 362.7 kB / 1.137 GB, free: 30.2 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.789e-05/1.344, allocations: 37.58 kB / 1.137 GB, free: 30.17 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001543/1.344, allocations: 254.1 kB / 1.137 GB, free: 30 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.484e-05/1.344, allocations: 99.33 kB / 1.138 GB, free: 29.93 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.478e-05/1.344, allocations: 11.81 kB / 1.138 GB, free: 29.93 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001181/1.344, allocations: 355.6 kB / 1.138 GB, free: 29.6 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002365/1.344, allocations: 123.2 kB / 1.138 GB, free: 29.53 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002949/1.345, allocations: 243.2 kB / 1.138 GB, free: 29.31 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002644/1.345, allocations: 161.9 kB / 1.138 GB, free: 29.21 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/1.345, allocations: 0 / 1.138 GB, free: 29.21 MB / 0.7448 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007193/1.346, allocations: 462.1 kB / 1.139 GB, free: 28.87 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.165e-05/1.346, allocations: 37.12 kB / 1.139 GB, free: 28.83 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/1.346, allocations: 4 kB / 1.139 GB, free: 28.83 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/1.346, allocations: 4 kB / 1.139 GB, free: 28.82 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/1.346, allocations: 81.92 kB / 1.139 GB, free: 28.76 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.873e-05/1.346, allocations: 8.125 kB / 1.139 GB, free: 28.75 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004577/1.346, allocations: 83.28 kB / 1.139 GB, free: 28.7 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.81e-05/1.347, allocations: 19.56 kB / 1.139 GB, free: 28.68 MB / 0.7448 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.0001551/1.347, allocations: 152.5 kB / 1.139 GB, free: 28.55 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.716e-05/1.347, allocations: 47.38 kB / 1.139 GB, free: 28.5 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006082/1.347, allocations: 336.7 kB / 1.14 GB, free: 28.31 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/1.347, allocations: 4 kB / 1.14 GB, free: 28.31 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/1.347, allocations: 0 / 1.14 GB, free: 28.31 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/1.347, allocations: 0 / 1.14 GB, free: 28.31 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001281/1.349, allocations: 0.9214 MB / 1.14 GB, free: 27.7 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/1.349, allocations: 0 / 1.14 GB, free: 27.7 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/1.349, allocations: 65.72 kB / 1.141 GB, free: 27.66 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/1.349, allocations: 0 / 1.141 GB, free: 27.66 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.203e-05/1.349, allocations: 7.75 kB / 1.141 GB, free: 27.65 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/1.349, allocations: 6 kB / 1.141 GB, free: 27.65 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/1.349, allocations: 3.953 kB / 1.141 GB, free: 27.64 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007598/1.35, allocations: 0.5643 MB / 1.141 GB, free: 27.23 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001704/1.35, allocations: 155.8 kB / 1.141 GB, free: 27.09 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.71e-05/1.35, allocations: 7.938 kB / 1.141 GB, free: 27.09 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003703/1.351, allocations: 58.05 kB / 1.141 GB, free: 27.05 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/1.351, allocations: 47.77 kB / 1.141 GB, free: 27.03 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.148e-05/1.351, allocations: 16.3 kB / 1.141 GB, free: 27.02 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002983/1.351, allocations: 267.8 kB / 1.142 GB, free: 26.83 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2e-07/1.351, allocations: 5.312 kB / 1.142 GB, free: 26.82 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0004549/1.352, allocations: 91.34 kB / 1.142 GB, free: 26.75 MB / 0.7448 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.001128/1.353, allocations: 1.202 MB / 1.143 GB, free: 25.69 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0006381/1.353, allocations: 376.1 kB / 1.143 GB, free: 25.42 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/1.353, allocations: 0 / 1.143 GB, free: 25.42 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002525/1.354, allocations: 149.5 kB / 1.143 GB, free: 25.32 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004967/1.354, allocations: 77.62 kB / 1.143 GB, free: 25.29 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/1.356, allocations: 0.614 MB / 1.144 GB, free: 24.79 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/1.356, allocations: 0.8401 MB / 1.145 GB, free: 23.98 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0002493/1.356, allocations: 54.91 kB / 1.145 GB, free: 23.95 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002543/1.357, allocations: 160.9 kB / 1.145 GB, free: 23.91 MB / 0.7448 GB Notification: Performance of SimCode: time 4.81e-07/1.357, allocations: 0 / 1.145 GB, free: 23.91 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03129/1.388, allocations: 8.886 MB / 1.154 GB, free: 18.75 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/1.388, allocations: 169 kB / 1.154 GB, free: 18.52 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.476/3.864, allocations: 0 / 1.154 GB, free: 18.52 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)