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.919/1.919, allocations: 292.6 MB / 307.5 MB, free: 5.242 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.001589/0.001589, allocations: 193 kB / 377.1 MB, free: 1.527 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.4 MB / 0.6366 GB, free: 9.551 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.001044/0.001044, allocations: 84.66 kB / 0.7509 GB, free: 62.73 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003674/0.0003674, allocations: 8 kB / 0.8749 GB, free: 11.25 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3088, allocations: 116.3 MB / 0.9884 GB, free: 6.805 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8393/1.148, allocations: 146.7 MB / 1.132 GB, free: 29.71 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/1.148, allocations: 97.95 kB / 1.132 GB, free: 29.63 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.02519/1.174, allocations: 8.778 MB / 1.14 GB, free: 23.65 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.275e-06/1.174, allocations: 4 kB / 1.14 GB, free: 23.65 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.457e-05/1.174, allocations: 8 kB / 1.14 GB, free: 23.64 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.001908/1.176, allocations: 0.8034 MB / 1.141 GB, free: 22.86 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/1.176, allocations: 16.58 kB / 1.141 GB, free: 22.84 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002159/1.176, allocations: 81.81 kB / 1.141 GB, free: 22.77 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001694/1.176, allocations: 64.47 kB / 1.141 GB, free: 22.7 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007654/1.177, allocations: 430.3 kB / 1.142 GB, free: 22.29 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.573e-05/1.177, allocations: 37.61 kB / 1.142 GB, free: 22.26 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.587e-05/1.177, allocations: 48.75 kB / 1.142 GB, free: 22.21 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/1.178, allocations: 0.5611 MB / 1.142 GB, free: 21.7 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/1.178, allocations: 0 / 1.142 GB, free: 21.7 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.109e-05/1.178, allocations: 23.89 kB / 1.142 GB, free: 21.68 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.533e-05/1.178, allocations: 17.73 kB / 1.142 GB, free: 21.66 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/1.179, allocations: 453.2 kB / 1.143 GB, free: 21.29 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002647/1.182, allocations: 1.895 MB / 1.145 GB, free: 19.61 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/1.183, allocations: 422.3 kB / 1.145 GB, free: 19.24 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.969e-05/1.183, allocations: 4 kB / 1.145 GB, free: 19.24 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005702/1.184, allocations: 250.9 kB / 1.145 GB, free: 19.03 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=34): time 2.775e-06/1.184, allocations: 3.938 kB / 1.145 GB, free: 19.02 MB / 0.7292 GB Notification: Performance of matching and sorting (n=34): time 0.001317/1.185, allocations: 0.5355 MB / 1.146 GB, free: 18.55 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/1.185, allocations: 112.1 kB / 1.146 GB, free: 18.42 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000411/1.186, allocations: 370.3 kB / 1.146 GB, free: 18.09 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.816e-05/1.186, allocations: 47.2 kB / 1.146 GB, free: 18.04 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/1.186, allocations: 247 kB / 1.147 GB, free: 17.82 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.526e-05/1.186, allocations: 91.08 kB / 1.147 GB, free: 17.73 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.125e-05/1.186, allocations: 12 kB / 1.147 GB, free: 17.72 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.831e-05/1.186, allocations: 357.3 kB / 1.147 GB, free: 17.38 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004092/1.187, allocations: 179.1 kB / 1.147 GB, free: 17.23 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000476/1.187, allocations: 300.4 kB / 1.148 GB, free: 16.92 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004273/1.187, allocations: 215.6 kB / 1.148 GB, free: 16.72 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/1.188, allocations: 0.75 kB / 1.148 GB, free: 16.72 MB / 0.7292 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001031/1.189, allocations: 0.561 MB / 1.148 GB, free: 16.2 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.232e-05/1.189, allocations: 35.02 kB / 1.148 GB, free: 16.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/1.189, allocations: 0 / 1.148 GB, free: 16.16 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/1.189, allocations: 8.609 kB / 1.148 GB, free: 16.16 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/1.189, allocations: 87.09 kB / 1.148 GB, free: 16.09 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/1.189, allocations: 8.703 kB / 1.148 GB, free: 16.08 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000404/1.189, allocations: 80.58 kB / 1.148 GB, free: 16.01 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.534e-05/1.189, allocations: 19.58 kB / 1.149 GB, free: 16 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 () * Number of clocked 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.000268/1.19, allocations: 212.2 kB / 1.149 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.703e-05/1.19, allocations: 40.19 kB / 1.149 GB, free: 15.75 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009675/1.191, allocations: 437.8 kB / 1.149 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/1.191, allocations: 4 kB / 1.149 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/1.191, allocations: 0 / 1.149 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/1.191, allocations: 1.969 kB / 1.149 GB, free: 15.38 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/1.192, allocations: 1.036 MB / 1.15 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/1.193, allocations: 4.609 kB / 1.15 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002821/1.193, allocations: 55.75 kB / 1.15 GB, free: 14.41 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/1.193, allocations: 0 / 1.15 GB, free: 14.41 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/1.193, allocations: 13.34 kB / 1.15 GB, free: 14.4 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/1.193, allocations: 5.531 kB / 1.15 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/1.193, allocations: 1.031 kB / 1.15 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/1.194, allocations: 0.7374 MB / 1.151 GB, free: 13.7 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/1.194, allocations: 153.3 kB / 1.151 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.666e-05/1.194, allocations: 8.797 kB / 1.151 GB, free: 13.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003477/1.195, allocations: 52.91 kB / 1.151 GB, free: 13.5 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/1.195, allocations: 50.47 kB / 1.151 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.078e-05/1.195, allocations: 14.77 kB / 1.151 GB, free: 13.46 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002823/1.195, allocations: 269.9 kB / 1.151 GB, free: 13.22 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.31e-07/1.195, allocations: 0 / 1.151 GB, free: 13.22 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004245/1.196, allocations: 92.41 kB / 1.152 GB, free: 13.13 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) * Number of clocked states: 0 () * 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.001551/1.197, allocations: 1.362 MB / 1.153 GB, free: 11.81 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001039/1.198, allocations: 482.6 kB / 1.153 GB, free: 11.38 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/1.198, allocations: 0 / 1.153 GB, free: 11.38 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004544/1.199, allocations: 210 kB / 1.154 GB, free: 11.2 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005516/1.199, allocations: 77.77 kB / 1.154 GB, free: 11.14 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004601/1.204, allocations: 4.397 MB / 1.158 GB, free: 6.902 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/1.204, allocations: 0.838 MB / 1.159 GB, free: 6.102 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002553/1.205, allocations: 57.11 kB / 1.159 GB, free: 6.055 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002256/1.205, allocations: 160.3 kB / 1.159 GB, free: 5.914 MB / 0.7292 GB Notification: Performance of SimCode: time 1.153e-06/1.205, allocations: 0 / 1.159 GB, free: 5.914 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02229/1.227, allocations: 8.932 MB / 1.168 GB, free: 14.82 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000191/1.227, allocations: 189.2 kB / 1.168 GB, free: 14.58 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.528/3.755, allocations: 0 / 1.168 GB, free: 14.58 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)