Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,fileNamePrefix="Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00212/0.00212, allocations: 195.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.257/1.257, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.19/2.19, allocations: 390.3 MB / 0.6647 GB, free: 264 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 55.91 kB / 0.8126 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5527/0.5541, allocations: 140.4 MB / 0.9497 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003576/0.5577, allocations: 2.935 MB / 0.9526 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001507/0.5592, allocations: 1.103 MB / 0.9537 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000213/0.5595, allocations: 13.44 kB / 0.9537 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002077/0.5597, allocations: 76.98 kB / 0.9537 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.5599, allocations: 78.22 kB / 0.9538 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006002/0.5605, allocations: 338.7 kB / 0.9541 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005548/0.561, allocations: 0.7088 MB / 0.9548 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004878/0.5615, allocations: 0.4965 MB / 0.9553 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.5617, allocations: 248.8 kB / 0.9556 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/0.5619, allocations: 248.2 kB / 0.9558 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.676e-05/0.562, allocations: 69.97 kB / 0.9559 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.5621, allocations: 80.44 kB / 0.9559 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.448e-05/0.5622, allocations: 150 kB / 0.9561 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.5624, allocations: 277.1 kB / 0.9563 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004759/0.5629, allocations: 0.7204 MB / 0.957 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.5629, allocations: 1.031 kB / 0.957 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.5629, allocations: 0 / 0.957 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.726e-06/0.5629, allocations: 0 / 0.957 GB, free: 3.453 MB / 0.7169 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.001421/0.5643, allocations: 0.8829 MB / 0.9579 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.5644, allocations: 14.45 kB / 0.9579 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.546e-05/0.5645, allocations: 81.09 kB / 0.958 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.749e-05/0.5646, allocations: 58.5 kB / 0.9581 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004803/0.5651, allocations: 444.1 kB / 0.9585 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.922e-05/0.5651, allocations: 38.91 kB / 0.9585 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.38e-05/0.5652, allocations: 49.12 kB / 0.9586 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008477/0.566, allocations: 0.5381 MB / 0.9591 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.5661, allocations: 1.375 kB / 0.9591 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.901e-05/0.5661, allocations: 16.12 kB / 0.9591 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.5661, allocations: 11 kB / 0.9591 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008874/0.567, allocations: 404.6 kB / 0.9595 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.5688, allocations: 1.854 MB / 0.9613 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009455/0.5698, allocations: 360.1 kB / 0.9617 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003978/0.5702, allocations: 173 kB / 0.9618 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.5702, allocations: 11.64 kB / 0.9618 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005593/0.5708, allocations: 251.8 kB / 0.9621 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=35): time 1.723e-06/0.5708, allocations: 0 / 0.9621 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=35): time 0.001248/0.572, allocations: 476.2 kB / 0.9625 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.5721, allocations: 90.89 kB / 0.9626 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003897/0.5725, allocations: 408.3 kB / 0.963 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.216e-05/0.5725, allocations: 39.48 kB / 0.963 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.5727, allocations: 246.3 kB / 0.9633 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 9.501e-05/0.5728, allocations: 99.48 kB / 0.9634 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.573, allocations: 109.2 kB / 0.9635 GB, free: 14.48 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.5731, allocations: 351.9 kB / 0.9638 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004133/0.5735, allocations: 160.7 kB / 0.964 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004839/0.574, allocations: 264.5 kB / 0.9642 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008067/0.5748, allocations: 408.2 kB / 0.9646 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5748, allocations: 1.281 kB / 0.9646 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001078/0.5759, allocations: 0.521 MB / 0.9651 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.576, allocations: 32.11 kB / 0.9651 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.576, allocations: 3.156 kB / 0.9651 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.576, allocations: 6.156 kB / 0.9652 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003154/0.5763, allocations: 73.7 kB / 0.9652 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.879e-05/0.5764, allocations: 17.39 kB / 0.9652 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003584/0.5767, allocations: 74.5 kB / 0.9653 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.698e-05/0.5768, allocations: 23.33 kB / 0.9653 GB, free: 13.13 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 35 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,preHeatCoil.toOn.t_start,$PRE.preHeatCoil.toOn.t_start,preHeatCoil.stateGraphRoot.resume,preHeatCoil.stateGraphRoot.suspend,preHeatCoil.toOff.t_start,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.fire,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.active,preHeatCoil.pumOn.oldActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.toOn.enableFire,preHeatCoil.pumOff.oldActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.active,preHeatCoil.preHeaOn.y,$PRE.preHeatCoil.preHeaOn.y,TMix.count,$PRE.TMix.count,TMix.T_start,$PRE.TMix.T_start,$whenCondition1,$whenCondition2,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 (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002093/0.577, allocations: 204.1 kB / 0.9655 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.591e-05/0.5771, allocations: 50.33 kB / 0.9656 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009463/0.578, allocations: 392.7 kB / 0.9659 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.578, allocations: 3.719 kB / 0.966 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.5781, allocations: 0.75 kB / 0.966 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.5781, allocations: 4.719 kB / 0.966 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.5796, allocations: 0.9451 MB / 0.9669 GB, free: 11.99 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.5796, allocations: 5.031 kB / 0.9669 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002593/0.5799, allocations: 55.61 kB / 0.9669 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.5799, allocations: 2.125 kB / 0.9669 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.5799, allocations: 11.05 kB / 0.967 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.5799, allocations: 2.25 kB / 0.967 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.5799, allocations: 1 kB / 0.967 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.5812, allocations: 0.6526 MB / 0.9676 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.5814, allocations: 148.2 kB / 0.9677 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.775e-05/0.5814, allocations: 11.38 kB / 0.9677 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003196/0.5818, allocations: 37.64 kB / 0.9678 GB, free: 11.36 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.5819, allocations: 50.47 kB / 0.9678 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.5819, allocations: 9.344 kB / 0.9678 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002596/0.5822, allocations: 266.5 kB / 0.9681 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5822, allocations: 0 / 0.9681 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000392/0.5826, allocations: 94.06 kB / 0.9682 GB, free: 11.13 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (preHeatCoil.preHeaCoiCon.I.y) * Number of discrete variables: 21 (preHeatCoil.toOn.t_start,preHeatCoil.toOff.enableFire,preHeatCoil.pumOn.active,preHeatCoil.pumOff.active,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.toOff.fire,preHeatCoil.toOff.t_start) * Number of discrete states: 5 (TMix.count,preHeatCoil.pumOff.newActive,preHeatCoil.pumOn.newActive,preHeatCoil.preHeaOn.y,preHeatCoil.toOn.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001575/0.5842, allocations: 1.217 MB / 0.9694 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001014/0.5852, allocations: 450 kB / 0.9698 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.5852, allocations: 1.188 kB / 0.9698 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000442/0.5857, allocations: 187 kB / 0.97 GB, free: 9.855 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005162/0.5862, allocations: 101.1 kB / 0.9701 GB, free: 9.797 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005329/0.5915, allocations: 4.006 MB / 0.974 GB, free: 6.918 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000351/0.5919, allocations: 0.8313 MB / 0.9748 GB, free: 6.152 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002031/0.5921, allocations: 52 kB / 0.9748 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.5923, allocations: 157.4 kB / 0.975 GB, free: 6 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.5923, allocations: 1.406 kB / 0.975 GB, free: 6 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07737/0.6697, allocations: 9.056 MB / 0.9838 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.4/8.07, allocations: 18.03 kB / 0.9839 GB, free: 14.17 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_DualFanDualDuct_Controls_Examples_PreHeatCoil.fmu > Buildings_9_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)