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.596/1.596, allocations: 289.9 MB / 297.4 MB, free: 6.379 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.001276/0.001276, allocations: 184.8 kB / 366.7 MB, free: 1.672 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.524/1.524, allocations: 205.3 MB / 0.626 GB, free: 7.164 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.0007935/0.0007936, allocations: 86.97 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.442e-05/1.443e-05, allocations: 4 kB / 0.8597 GB, free: 13.06 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5927/0.5927, allocations: 116.3 MB / 0.9732 GB, free: 76.29 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1837/0.7765, allocations: 146 MB / 1.116 GB, free: 4.191 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.7768, allocations: 95.92 kB / 1.116 GB, free: 4.098 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02227/0.7991, allocations: 8.662 MB / 1.124 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.855e-06/0.7992, allocations: 0 / 1.124 GB, free: 11.5 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.422e-05/0.7992, allocations: 11.94 kB / 1.124 GB, free: 11.49 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.001335/0.8006, allocations: 0.7352 MB / 1.125 GB, free: 10.7 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.8006, allocations: 8.031 kB / 1.125 GB, free: 10.7 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.8008, allocations: 63.3 kB / 1.125 GB, free: 10.63 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006672/0.8015, allocations: 424.7 kB / 1.126 GB, free: 10.18 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.617e-05/0.8015, allocations: 20 kB / 1.126 GB, free: 10.16 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.15e-05/0.8016, allocations: 30.62 kB / 1.126 GB, free: 10.13 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005876/0.8022, allocations: 310.5 kB / 1.126 GB, free: 9.824 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007106/0.8029, allocations: 457 kB / 1.126 GB, free: 9.344 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.803, allocations: 0 / 1.126 GB, free: 9.344 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.028e-05/0.803, allocations: 7.953 kB / 1.126 GB, free: 9.336 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.803, allocations: 13.69 kB / 1.126 GB, free: 9.324 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002189/0.8052, allocations: 1.792 MB / 1.128 GB, free: 7.469 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005308/0.8058, allocations: 280.6 kB / 1.128 GB, free: 7.188 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001952/0.806, allocations: 128.9 kB / 1.129 GB, free: 7.059 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/0.806, allocations: 4.797 kB / 1.129 GB, free: 7.055 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003006/0.8063, allocations: 173.3 kB / 1.129 GB, free: 6.871 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=34): time 1.833e-06/0.8063, allocations: 0 / 1.129 GB, free: 6.871 MB / 0.7292 GB Notification: Performance of matching and sorting (n=34): time 0.0004981/0.8068, allocations: 271 kB / 1.129 GB, free: 6.602 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.129e-05/0.8069, allocations: 106.8 kB / 1.129 GB, free: 6.473 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000314/0.8072, allocations: 297.4 kB / 1.129 GB, free: 6.176 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 4.414e-05/0.8073, allocations: 33.7 kB / 1.129 GB, free: 6.137 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.8075, allocations: 259.9 kB / 1.13 GB, free: 5.879 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.016e-05/0.8076, allocations: 90.81 kB / 1.13 GB, free: 5.789 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.041e-05/0.8076, allocations: 1.312 kB / 1.13 GB, free: 5.789 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.8077, allocations: 350.8 kB / 1.13 GB, free: 5.438 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.8079, allocations: 113.1 kB / 1.13 GB, free: 5.328 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002809/0.8082, allocations: 229.7 kB / 1.13 GB, free: 5.051 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002331/0.8085, allocations: 121.6 kB / 1.13 GB, free: 4.934 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.8085, allocations: 0 / 1.13 GB, free: 4.934 MB / 0.7292 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006141/0.8091, allocations: 386 kB / 1.131 GB, free: 4.551 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.644e-05/0.8092, allocations: 42.88 kB / 1.131 GB, free: 4.504 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.8092, allocations: 4 kB / 1.131 GB, free: 4.5 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.8092, allocations: 5.312 kB / 1.131 GB, free: 4.496 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.8095, allocations: 76.17 kB / 1.131 GB, free: 4.422 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/0.8096, allocations: 19.92 kB / 1.131 GB, free: 4.402 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003797/0.8099, allocations: 59.7 kB / 1.131 GB, free: 4.344 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.675e-05/0.81, allocations: 20 kB / 1.131 GB, free: 4.324 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 () * 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.0001298/0.8101, allocations: 138.3 kB / 1.131 GB, free: 4.184 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.242e-05/0.8102, allocations: 35.61 kB / 1.131 GB, free: 4.148 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005729/0.8108, allocations: 313.4 kB / 1.132 GB, free: 3.832 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.8108, allocations: 4 kB / 1.132 GB, free: 3.828 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.8108, allocations: 0 / 1.132 GB, free: 3.828 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.493e-05/0.8108, allocations: 0 / 1.132 GB, free: 3.828 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.812, allocations: 0.8239 MB / 1.132 GB, free: 2.957 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.812, allocations: 3.984 kB / 1.132 GB, free: 2.953 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002878/0.8123, allocations: 59.89 kB / 1.132 GB, free: 2.895 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.8123, allocations: 0 / 1.132 GB, free: 2.895 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/0.8124, allocations: 12.03 kB / 1.132 GB, free: 2.883 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.8124, allocations: 1.75 kB / 1.132 GB, free: 2.883 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.8124, allocations: 0 / 1.132 GB, free: 2.883 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007569/0.8132, allocations: 0.5441 MB / 1.133 GB, free: 2.312 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.8133, allocations: 148.6 kB / 1.133 GB, free: 2.148 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.771e-05/0.8134, allocations: 0 / 1.133 GB, free: 2.148 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.8137, allocations: 48.02 kB / 1.133 GB, free: 2.102 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.8139, allocations: 55.86 kB / 1.133 GB, free: 2.047 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/0.8139, allocations: 8 kB / 1.133 GB, free: 2.039 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001963/0.8141, allocations: 216.6 kB / 1.133 GB, free: 1.832 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8141, allocations: 0 / 1.133 GB, free: 1.832 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004091/0.8145, allocations: 90.69 kB / 1.133 GB, free: 1.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.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) * 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.0001945/0.8147, allocations: 127.2 kB / 1.134 GB, free: 1.617 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005325/0.8153, allocations: 347.5 kB / 1.134 GB, free: 1.266 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.8153, allocations: 0.75 kB / 1.134 GB, free: 1.266 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002183/0.8155, allocations: 143.9 kB / 1.134 GB, free: 1.125 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/0.816, allocations: 68.22 kB / 1.134 GB, free: 1.059 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.817, allocations: 0.5145 MB / 1.135 GB, free: 0.5156 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004391/0.8175, allocations: 0.8397 MB / 1.135 GB, free: 15.65 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0002221/0.8177, allocations: 49.88 kB / 1.136 GB, free: 15.6 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.8178, allocations: 31.44 kB / 1.136 GB, free: 15.57 MB / 0.7448 GB Notification: Performance of SimCode: time 2.41e-07/0.8178, allocations: 0 / 1.136 GB, free: 15.57 MB / 0.7448 GB Notification: Performance of Templates: time 0.008671/0.8265, allocations: 4.246 MB / 1.14 GB, free: 11.45 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)