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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 108 kB / 15.61 MB, free: 152 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.001373/0.001373, allocations: 195.5 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.276/1.276, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.645/1.645, allocations: 292.3 MB / 0.5489 GB, free: 12.86 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002719/0.002719, allocations: 67.92 kB / 0.6715 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2564, allocations: 114.5 MB / 0.7834 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004259/0.2607, allocations: 2.931 MB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00189/0.2626, allocations: 1.158 MB / 0.7874 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002268/0.2629, allocations: 15.94 kB / 0.7874 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.2632, allocations: 75.14 kB / 0.7874 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.2633, allocations: 75.25 kB / 0.7875 GB, free: 9.207 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007103/0.264, allocations: 354.9 kB / 0.7878 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006157/0.2647, allocations: 0.703 MB / 0.7885 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005355/0.2652, allocations: 0.4886 MB / 0.789 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.2655, allocations: 247.1 kB / 0.7892 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002246/0.2657, allocations: 242.8 kB / 0.7895 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.118e-05/0.2658, allocations: 71.98 kB / 0.7895 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.2659, allocations: 87.98 kB / 0.7896 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.266, allocations: 135.5 kB / 0.7898 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000193/0.2662, allocations: 278.5 kB / 0.79 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00057/0.2668, allocations: 0.7127 MB / 0.7907 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.2668, allocations: 0 / 0.7907 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2668, allocations: 0 / 0.7907 GB, free: 5.906 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.2668, allocations: 0 / 0.7907 GB, free: 5.906 MB / 0.6075 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.001474/0.2683, allocations: 0.8806 MB / 0.7916 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.2683, allocations: 8.031 kB / 0.7916 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.2685, allocations: 68.19 kB / 0.7917 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005421/0.269, allocations: 436.6 kB / 0.7921 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.2691, allocations: 37.38 kB / 0.7921 GB, free: 4.391 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.2e-05/0.2691, allocations: 48.38 kB / 0.7922 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009413/0.2701, allocations: 0.5355 MB / 0.7927 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.2701, allocations: 0 / 0.7927 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.537e-05/0.2702, allocations: 20 kB / 0.7927 GB, free: 3.758 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.2702, allocations: 12 kB / 0.7927 GB, free: 3.746 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009378/0.2711, allocations: 407.6 kB / 0.7931 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002025/0.2731, allocations: 1.833 MB / 0.7949 GB, free: 1.434 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009012/0.2741, allocations: 353.7 kB / 0.7952 GB, free: 1.082 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.2745, allocations: 168.8 kB / 0.7954 GB, free: 0.9141 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.2745, allocations: 11.92 kB / 0.7954 GB, free: 0.9023 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005478/0.2751, allocations: 217.3 kB / 0.7956 GB, free: 0.6797 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=34): time 1.873e-06/0.2751, allocations: 0 / 0.7956 GB, free: 0.6797 MB / 0.6075 GB Notification: Performance of matching and sorting (n=34): time 0.001194/0.2763, allocations: 474.8 kB / 0.7961 GB, free: 216 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.2763, allocations: 55.41 kB / 0.7961 GB, free: 148 kB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004066/0.2767, allocations: 413.3 kB / 0.7965 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.041e-05/0.2768, allocations: 41.7 kB / 0.7965 GB, free: 15.69 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.277, allocations: 248.3 kB / 0.7968 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 7.57e-05/0.277, allocations: 106.5 kB / 0.7969 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/0.2772, allocations: 106.2 kB / 0.797 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.2773, allocations: 350.8 kB / 0.7973 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004138/0.2777, allocations: 153 kB / 0.7975 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004549/0.2782, allocations: 265.9 kB / 0.7977 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000768/0.279, allocations: 403.4 kB / 0.7981 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.279, allocations: 0 / 0.7981 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00103/0.28, allocations: 0.5184 MB / 0.7986 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.846e-05/0.2801, allocations: 41.69 kB / 0.7986 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2801, allocations: 4 kB / 0.7986 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.2801, allocations: 4 kB / 0.7987 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003127/0.2804, allocations: 71.83 kB / 0.7987 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.2804, allocations: 11.98 kB / 0.7987 GB, free: 13.31 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.2808, allocations: 79.5 kB / 0.7988 GB, free: 13.23 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-05/0.2809, allocations: 19.98 kB / 0.7988 GB, free: 13.21 MB / 0.6231 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.0002107/0.2811, allocations: 201.7 kB / 0.799 GB, free: 13.01 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.393e-05/0.2811, allocations: 39.47 kB / 0.7991 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009213/0.2821, allocations: 394.2 kB / 0.7994 GB, free: 12.58 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.2821, allocations: 7.984 kB / 0.7994 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.2821, allocations: 0 / 0.7994 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.2821, allocations: 0 / 0.7994 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/0.2836, allocations: 0.9566 MB / 0.8004 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.2836, allocations: 0 / 0.8004 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002578/0.2839, allocations: 47.95 kB / 0.8004 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2839, allocations: 0 / 0.8004 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.2839, allocations: 8 kB / 0.8004 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.2839, allocations: 4 kB / 0.8004 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2839, allocations: 7.969 kB / 0.8004 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.2852, allocations: 0.6319 MB / 0.8011 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.2853, allocations: 144.5 kB / 0.8012 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.515e-05/0.2854, allocations: 8 kB / 0.8012 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000324/0.2857, allocations: 31.95 kB / 0.8012 GB, free: 10.64 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.2858, allocations: 51.88 kB / 0.8013 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-05/0.2859, allocations: 8 kB / 0.8013 GB, free: 10.58 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002626/0.2861, allocations: 275.2 kB / 0.8016 GB, free: 10.31 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.242e-06/0.2862, allocations: 0 / 0.8016 GB, free: 10.31 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003807/0.2865, allocations: 99.62 kB / 0.8016 GB, free: 10.21 MB / 0.6231 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.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: 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.0001671/0.2867, allocations: 117.4 kB / 0.8018 GB, free: 10.09 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001026/0.2877, allocations: 455 kB / 0.8022 GB, free: 9.633 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2878, allocations: 0 / 0.8022 GB, free: 9.633 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004429/0.2882, allocations: 184.4 kB / 0.8024 GB, free: 9.453 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005449/0.2888, allocations: 88.58 kB / 0.8025 GB, free: 9.371 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.2901, allocations: 0.7512 MB / 0.8032 GB, free: 8.586 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.2905, allocations: 0.8274 MB / 0.804 GB, free: 7.73 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000194/0.2907, allocations: 55.42 kB / 0.804 GB, free: 7.672 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.2908, allocations: 35.44 kB / 0.8041 GB, free: 7.641 MB / 0.6231 GB Notification: Performance of SimCode: time 2.3e-07/0.2908, allocations: 0 / 0.8041 GB, free: 7.641 MB / 0.6231 GB Notification: Performance of Templates: time 0.008892/0.2997, allocations: 4.942 MB / 0.8089 GB, free: 2.75 MB / 0.6231 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)