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.001051/0.001051, allocations: 105.4 kB / 15.98 MB, free: 6.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 199.3 kB / 16.91 MB, free: 6.191 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.371/1.371, allocations: 205.1 MB / 222.8 MB, free: 4.688 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.668/1.668, allocations: 292.3 MB / 0.5492 GB, free: 13.6 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.001329/0.00133, allocations: 71.02 kB / 0.6716 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2405, allocations: 114.6 MB / 0.7835 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004679/0.2452, allocations: 3.004 MB / 0.7864 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002194/0.2474, allocations: 1.139 MB / 0.7876 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004508/0.2479, allocations: 15.88 kB / 0.7876 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003512/0.2483, allocations: 55.52 kB / 0.7876 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002866/0.2486, allocations: 55.5 kB / 0.7877 GB, free: 9.605 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008801/0.2495, allocations: 314.5 kB / 0.788 GB, free: 9.301 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0008361/0.2503, allocations: 0.7107 MB / 0.7887 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006956/0.251, allocations: 0.4963 MB / 0.7892 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003112/0.2513, allocations: 247.1 kB / 0.7894 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002928/0.2516, allocations: 242.8 kB / 0.7896 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001174/0.2518, allocations: 72 kB / 0.7897 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.2519, allocations: 83.94 kB / 0.7898 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.252, allocations: 139.6 kB / 0.7899 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002593/0.2523, allocations: 274.6 kB / 0.7902 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005701/0.2529, allocations: 0.573 MB / 0.7907 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.2529, allocations: 3.938 kB / 0.7907 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.984e-06/0.2529, allocations: 0 / 0.7907 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.11e-05/0.2529, allocations: 0 / 0.7907 GB, free: 6.469 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.001777/0.2547, allocations: 0.8743 MB / 0.7916 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.2548, allocations: 8.031 kB / 0.7916 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.2549, allocations: 64.19 kB / 0.7917 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006303/0.2555, allocations: 444.5 kB / 0.7921 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.769e-05/0.2556, allocations: 37.38 kB / 0.7921 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.001e-05/0.2557, allocations: 52.36 kB / 0.7922 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001026/0.2567, allocations: 0.5316 MB / 0.7927 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.2567, allocations: 0 / 0.7927 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.515e-05/0.2568, allocations: 23.94 kB / 0.7927 GB, free: 4.312 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.2568, allocations: 12 kB / 0.7927 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009326/0.2578, allocations: 399.7 kB / 0.7931 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002166/0.2599, allocations: 1.84 MB / 0.7949 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008891/0.2608, allocations: 349.9 kB / 0.7952 GB, free: 1.645 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003763/0.2612, allocations: 168.8 kB / 0.7954 GB, free: 1.477 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.829e-05/0.2613, allocations: 7.938 kB / 0.7954 GB, free: 1.469 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005747/0.2619, allocations: 213.4 kB / 0.7956 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=34): time 1.974e-06/0.2619, allocations: 0 / 0.7956 GB, free: 1.25 MB / 0.6075 GB Notification: Performance of matching and sorting (n=34): time 0.001192/0.2631, allocations: 478.8 kB / 0.7961 GB, free: 0.7773 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.2631, allocations: 59.39 kB / 0.7961 GB, free: 0.707 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004328/0.2636, allocations: 409.3 kB / 0.7965 GB, free: 308 kB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.155e-05/0.2636, allocations: 37.7 kB / 0.7965 GB, free: 264 kB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.2638, allocations: 256.2 kB / 0.7968 GB, free: 4 kB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.2639, allocations: 98.73 kB / 0.7969 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.2641, allocations: 110.2 kB / 0.797 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.2643, allocations: 346.8 kB / 0.7973 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003959/0.2647, allocations: 153 kB / 0.7975 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004336/0.2651, allocations: 261.9 kB / 0.7977 GB, free: 14.99 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007728/0.2659, allocations: 403.3 kB / 0.7981 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.2659, allocations: 0 / 0.7981 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001051/0.267, allocations: 0.5225 MB / 0.7986 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/0.267, allocations: 37.77 kB / 0.7986 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.267, allocations: 4 kB / 0.7986 GB, free: 13.97 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.2671, allocations: 7.938 kB / 0.7987 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003165/0.2674, allocations: 75.81 kB / 0.7987 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.2674, allocations: 8 kB / 0.7987 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003751/0.2678, allocations: 75.39 kB / 0.7988 GB, free: 13.81 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.8e-05/0.2678, allocations: 20 kB / 0.7988 GB, free: 13.79 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.0002678/0.2681, allocations: 214.3 kB / 0.799 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.2682, allocations: 43.47 kB / 0.7991 GB, free: 13.53 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008809/0.2691, allocations: 390.1 kB / 0.7994 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.2691, allocations: 4 kB / 0.7994 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.2691, allocations: 0 / 0.7994 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.2691, allocations: 0 / 0.7994 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001492/0.2706, allocations: 0.9527 MB / 0.8004 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.2706, allocations: 0 / 0.8004 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002523/0.2709, allocations: 47.89 kB / 0.8004 GB, free: 12.08 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.2709, allocations: 4 kB / 0.8004 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.2709, allocations: 4 kB / 0.8004 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.2709, allocations: 4 kB / 0.8004 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.271, allocations: 3.984 kB / 0.8004 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.2722, allocations: 0.6281 MB / 0.8011 GB, free: 11.41 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/0.2724, allocations: 156.5 kB / 0.8012 GB, free: 11.24 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.949e-05/0.2724, allocations: 7.984 kB / 0.8012 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.2727, allocations: 35.95 kB / 0.8012 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.2729, allocations: 43.89 kB / 0.8013 GB, free: 11.16 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.2729, allocations: 12 kB / 0.8013 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002772/0.2732, allocations: 267.2 kB / 0.8016 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of sort global known variables: time 4.11e-07/0.2732, allocations: 8 kB / 0.8016 GB, free: 10.88 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004343/0.2736, allocations: 95.69 kB / 0.8017 GB, free: 10.78 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.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.0001758/0.2738, allocations: 121.4 kB / 0.8018 GB, free: 10.65 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001036/0.2749, allocations: 447.3 kB / 0.8022 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2749, allocations: 0 / 0.8022 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000406/0.2753, allocations: 180.4 kB / 0.8024 GB, free: 10.03 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005607/0.2759, allocations: 89.77 kB / 0.8025 GB, free: 9.941 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.2775, allocations: 0.9285 MB / 0.8034 GB, free: 8.973 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.2779, allocations: 0.8313 MB / 0.8042 GB, free: 8.113 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.2781, allocations: 39.42 kB / 0.8042 GB, free: 8.078 MB / 0.6231 GB Notification: Performance of SimCode: time 4.41e-07/0.2781, allocations: 3.938 kB / 0.8042 GB, free: 8.074 MB / 0.6231 GB Notification: Performance of Templates: time 0.009638/0.2877, allocations: 5.919 MB / 0.81 GB, free: 2.188 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)