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: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.52/1.52, allocations: 292.3 MB / 308.1 MB, free: 4.238 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.001145/0.001145, allocations: 194.4 kB / 376.9 MB, free: 1.773 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.247/1.247, allocations: 205.1 MB / 0.6354 GB, free: 9.801 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.0008836/0.0008836, allocations: 102.1 kB / 0.748 GB, free: 61.1 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 47.92 kB / 0.8704 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2502/0.2514, allocations: 114.5 MB / 0.9822 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004619/0.256, allocations: 3.015 MB / 0.9852 GB, free: 7.359 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002092/0.2582, allocations: 1.146 MB / 0.9863 GB, free: 6.203 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004101/0.2586, allocations: 15.88 kB / 0.9863 GB, free: 6.188 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0003155/0.2589, allocations: 55.52 kB / 0.9863 GB, free: 6.133 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0002837/0.2593, allocations: 59.5 kB / 0.9864 GB, free: 6.074 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008822/0.2602, allocations: 307.7 kB / 0.9867 GB, free: 5.773 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0008861/0.2611, allocations: 0.656 MB / 0.9873 GB, free: 5.113 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006602/0.2617, allocations: 439.8 kB / 0.9878 GB, free: 4.684 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002813/0.262, allocations: 203.1 kB / 0.9879 GB, free: 4.484 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002963/0.2623, allocations: 234.7 kB / 0.9882 GB, free: 4.254 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 8.279e-05/0.2624, allocations: 32 kB / 0.9882 GB, free: 4.223 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.2625, allocations: 36 kB / 0.9882 GB, free: 4.188 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.2626, allocations: 111.5 kB / 0.9883 GB, free: 4.078 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.2629, allocations: 222.7 kB / 0.9886 GB, free: 3.859 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0006061/0.2635, allocations: 0.6853 MB / 0.9892 GB, free: 3.172 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2635, allocations: 4 kB / 0.9892 GB, free: 3.168 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.011e-06/0.2635, allocations: 0 / 0.9892 GB, free: 3.168 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.532e-05/0.2635, allocations: 0 / 0.9892 GB, free: 3.168 MB / 0.7136 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.001892/0.2654, allocations: 0.8626 MB / 0.9901 GB, free: 2.246 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.2655, allocations: 12.03 kB / 0.9901 GB, free: 2.234 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.2656, allocations: 64.17 kB / 0.9901 GB, free: 2.172 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006349/0.2663, allocations: 444.6 kB / 0.9906 GB, free: 1.699 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.2663, allocations: 37.38 kB / 0.9906 GB, free: 1.664 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.7e-05/0.2664, allocations: 52.36 kB / 0.9907 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009682/0.2674, allocations: 0.5355 MB / 0.9912 GB, free: 1.047 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.2674, allocations: 3.938 kB / 0.9912 GB, free: 1.043 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.104e-05/0.2675, allocations: 16 kB / 0.9912 GB, free: 1.027 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.2675, allocations: 12 kB / 0.9912 GB, free: 1.016 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009506/0.2684, allocations: 399.7 kB / 0.9916 GB, free: 0.625 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002228/0.2707, allocations: 1.864 MB / 0.9934 GB, free: 14.68 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008662/0.2715, allocations: 338.9 kB / 0.9937 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003706/0.2719, allocations: 160.8 kB / 0.9939 GB, free: 14.18 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 4.216e-05/0.272, allocations: 11.94 kB / 0.9939 GB, free: 14.17 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005747/0.2726, allocations: 213.4 kB / 0.9941 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=34): time 2.204e-06/0.2726, allocations: 0 / 0.9941 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of matching and sorting (n=34): time 0.001173/0.2738, allocations: 473.6 kB / 0.9946 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/0.2738, allocations: 63.41 kB / 0.9946 GB, free: 13.41 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003818/0.2742, allocations: 405.3 kB / 0.995 GB, free: 13 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.267e-05/0.2743, allocations: 45.7 kB / 0.995 GB, free: 12.95 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.2744, allocations: 248.2 kB / 0.9953 GB, free: 12.7 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.779e-05/0.2745, allocations: 106.7 kB / 0.9954 GB, free: 12.6 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.2747, allocations: 102.1 kB / 0.9955 GB, free: 12.49 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.2748, allocations: 354.8 kB / 0.9958 GB, free: 12.14 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003978/0.2752, allocations: 153 kB / 0.996 GB, free: 11.99 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004444/0.2756, allocations: 269.8 kB / 0.9962 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007625/0.2764, allocations: 399.4 kB / 0.9966 GB, free: 11.24 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.2764, allocations: 4 kB / 0.9966 GB, free: 11.24 MB / 0.7292 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001008/0.2774, allocations: 0.5105 MB / 0.9971 GB, free: 10.71 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.2775, allocations: 34.11 kB / 0.9971 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.2775, allocations: 8 kB / 0.9971 GB, free: 10.67 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.2775, allocations: 4 kB / 0.9971 GB, free: 10.66 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002934/0.2778, allocations: 79.81 kB / 0.9972 GB, free: 10.59 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.2778, allocations: 7.938 kB / 0.9972 GB, free: 10.58 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003456/0.2782, allocations: 75.42 kB / 0.9973 GB, free: 10.5 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.476e-05/0.2782, allocations: 23.94 kB / 0.9973 GB, free: 10.48 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.preHeatCoil.toOn.enableFire,$PRE.preHeatCoil.toOff.enableFire,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 (58): * Single equations (assignments): 57 * 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.0002067/0.2785, allocations: 209.7 kB / 0.9975 GB, free: 10.27 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.614e-05/0.2785, allocations: 43.47 kB / 0.9976 GB, free: 10.23 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008563/0.2794, allocations: 385.6 kB / 0.9979 GB, free: 9.844 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2794, allocations: 4 kB / 0.9979 GB, free: 9.84 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2794, allocations: 0 / 0.9979 GB, free: 9.84 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.2794, allocations: 3.984 kB / 0.9979 GB, free: 9.836 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.2809, allocations: 0.9516 MB / 0.9989 GB, free: 8.824 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.2809, allocations: 0 / 0.9989 GB, free: 8.824 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002424/0.2811, allocations: 51.91 kB / 0.9989 GB, free: 8.773 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2811, allocations: 0 / 0.9989 GB, free: 8.773 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.2812, allocations: 11.98 kB / 0.9989 GB, free: 8.762 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2812, allocations: 0 / 0.9989 GB, free: 8.762 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2812, allocations: 0 / 0.9989 GB, free: 8.762 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00315/0.2843, allocations: 2.228 MB / 1.001 GB, free: 6.387 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.2845, allocations: 144.5 kB / 1.001 GB, free: 6.227 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.608e-05/0.2845, allocations: 11.94 kB / 1.001 GB, free: 6.215 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002912/0.2848, allocations: 31.95 kB / 1.001 GB, free: 6.184 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.285, allocations: 47.94 kB / 1.001 GB, free: 6.137 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.285, allocations: 8 kB / 1.001 GB, free: 6.129 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002505/0.2853, allocations: 267.2 kB / 1.002 GB, free: 5.867 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2853, allocations: 8 kB / 1.002 GB, free: 5.859 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004701/0.2857, allocations: 115.7 kB / 1.002 GB, free: 5.746 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.active,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,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 (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.0001653/0.2859, allocations: 123.9 kB / 1.002 GB, free: 5.617 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0009159/0.2868, allocations: 435.3 kB / 1.002 GB, free: 5.18 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2869, allocations: 0 / 1.002 GB, free: 5.18 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004155/0.2873, allocations: 179.9 kB / 1.002 GB, free: 5.004 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005224/0.2878, allocations: 87.16 kB / 1.003 GB, free: 4.926 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.2894, allocations: 1.145 MB / 1.004 GB, free: 3.742 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003506/0.2897, allocations: 0.8352 MB / 1.004 GB, free: 2.879 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002208/0.29, allocations: 59.44 kB / 1.004 GB, free: 2.816 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.2901, allocations: 39.38 kB / 1.005 GB, free: 2.777 MB / 0.7292 GB Notification: Performance of SimCode: time 2.5e-07/0.2901, allocations: 0 / 1.005 GB, free: 2.777 MB / 0.7292 GB Notification: Performance of Templates: time 0.009601/0.2997, allocations: 5.014 MB / 1.009 GB, free: 13.8 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (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 & ./Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)