Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.0009996/0.0009997, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006269/0.00627, allocations: 170.7 kB / 16.26 MB, free: 6.676 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.382/1.382, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.858/2.858, allocations: 473.4 MB / 0.7469 GB, free: 6.066 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000335/0.000335, allocations: 15.09 kB / 0.9158 GB, free: 33.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3191, allocations: 162.2 MB / 1.074 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003975/0.3231, allocations: 2.623 MB / 1.077 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002042/0.3252, allocations: 1.091 MB / 1.078 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002426/0.3255, allocations: 15.94 kB / 1.078 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.3257, allocations: 59.45 kB / 1.078 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001833/0.3259, allocations: 59.56 kB / 1.078 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007782/0.3267, allocations: 311.6 kB / 1.078 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006267/0.3273, allocations: 0.6482 MB / 1.079 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005606/0.3279, allocations: 416.7 kB / 1.079 GB, free: 2.305 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002017/0.3281, allocations: 171.1 kB / 1.079 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002407/0.3284, allocations: 190.9 kB / 1.08 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.887e-05/0.3284, allocations: 16 kB / 1.08 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.814e-05/0.3285, allocations: 31.98 kB / 1.08 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.827e-05/0.3286, allocations: 83.55 kB / 1.08 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002052/0.3288, allocations: 236.3 kB / 1.08 GB, free: 1.582 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005479/0.3294, allocations: 0.6464 MB / 1.081 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3294, allocations: 4 kB / 1.081 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3294, allocations: 0 / 1.081 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.318e-06/0.3294, allocations: 0 / 1.081 GB, free: 0.9297 MB / 0.8262 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.001573/0.331, allocations: 0.7973 MB / 1.081 GB, free: 76 kB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.331, allocations: 8.031 kB / 1.081 GB, free: 68 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.3311, allocations: 64.19 kB / 1.081 GB, free: 4 kB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006199/0.3318, allocations: 440.6 kB / 1.082 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.434e-05/0.3318, allocations: 37.38 kB / 1.082 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.714e-05/0.3319, allocations: 52.36 kB / 1.082 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.333, allocations: 0.5472 MB / 1.082 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.3331, allocations: 3.938 kB / 1.082 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.093e-05/0.3331, allocations: 19.98 kB / 1.082 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.856e-05/0.3331, allocations: 16 kB / 1.082 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.3342, allocations: 423.6 kB / 1.083 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002319/0.3365, allocations: 1.86 MB / 1.085 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009991/0.3375, allocations: 377.6 kB / 1.085 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004409/0.338, allocations: 181.6 kB / 1.085 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.338, allocations: 11.97 kB / 1.085 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005986/0.3386, allocations: 273.4 kB / 1.085 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=35): time 1.803e-06/0.3387, allocations: 0 / 1.085 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35): time 0.001379/0.34, allocations: 0.5074 MB / 1.086 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.3401, allocations: 85.11 kB / 1.086 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00042/0.3405, allocations: 405.4 kB / 1.086 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.08e-05/0.3406, allocations: 45.81 kB / 1.086 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/0.3408, allocations: 248.2 kB / 1.087 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.012e-05/0.3409, allocations: 102.6 kB / 1.087 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.221e-05/0.341, allocations: 61.69 kB / 1.087 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3411, allocations: 362.7 kB / 1.087 GB, free: 9.762 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004468/0.3415, allocations: 165 kB / 1.087 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000519/0.3421, allocations: 277.9 kB / 1.088 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008893/0.343, allocations: 439.3 kB / 1.088 GB, free: 8.812 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.343, allocations: 0 / 1.088 GB, free: 8.812 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00116/0.3442, allocations: 0.5418 MB / 1.089 GB, free: 8.258 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.804e-05/0.3442, allocations: 37.69 kB / 1.089 GB, free: 8.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3442, allocations: 4 kB / 1.089 GB, free: 8.211 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.3442, allocations: 4 kB / 1.089 GB, free: 8.207 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000349/0.3446, allocations: 79.83 kB / 1.089 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.3446, allocations: 7.984 kB / 1.089 GB, free: 8.121 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00038/0.345, allocations: 79.72 kB / 1.089 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.817e-05/0.3451, allocations: 27.97 kB / 1.089 GB, free: 8.016 MB / 0.8419 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.0002392/0.3453, allocations: 205.7 kB / 1.089 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.989e-05/0.3454, allocations: 47.45 kB / 1.089 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.3464, allocations: 414.7 kB / 1.089 GB, free: 7.348 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.3464, allocations: 4 kB / 1.089 GB, free: 7.344 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.3464, allocations: 4 kB / 1.089 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.3464, allocations: 0 / 1.089 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00163/0.3481, allocations: 0.9827 MB / 1.09 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3481, allocations: 0 / 1.09 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002759/0.3484, allocations: 59.89 kB / 1.09 GB, free: 6.238 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.696e-06/0.3484, allocations: 0 / 1.09 GB, free: 6.238 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.755e-05/0.3484, allocations: 16.02 kB / 1.091 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.3484, allocations: 7.938 kB / 1.091 GB, free: 6.215 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3484, allocations: 0 / 1.091 GB, free: 6.215 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001417/0.3499, allocations: 0.6777 MB / 1.091 GB, free: 5.516 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.35, allocations: 148.6 kB / 1.091 GB, free: 5.352 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.905e-05/0.3501, allocations: 12 kB / 1.091 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003484/0.3504, allocations: 48.02 kB / 1.091 GB, free: 5.293 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.3506, allocations: 47.88 kB / 1.091 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.647e-05/0.3506, allocations: 15.98 kB / 1.091 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002823/0.3509, allocations: 263.2 kB / 1.092 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.71e-07/0.3509, allocations: 0 / 1.092 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004161/0.3513, allocations: 95.69 kB / 1.092 GB, free: 4.879 MB / 0.8419 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.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: 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.0001992/0.3515, allocations: 141.3 kB / 1.092 GB, free: 4.73 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001016/0.3526, allocations: 459.6 kB / 1.092 GB, free: 4.27 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3526, allocations: 0 / 1.092 GB, free: 4.27 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004831/0.3531, allocations: 200.1 kB / 1.093 GB, free: 4.074 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006188/0.3537, allocations: 84.8 kB / 1.093 GB, free: 3.992 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.3551, allocations: 0.9132 MB / 1.094 GB, free: 3.043 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.3555, allocations: 0.8313 MB / 1.094 GB, free: 2.188 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002148/0.3558, allocations: 51.45 kB / 1.094 GB, free: 2.133 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.3559, allocations: 39.42 kB / 1.094 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.3559, allocations: 0 / 1.094 GB, free: 2.094 MB / 0.8419 GB Notification: Performance of Templates: time 0.009344/0.3652, allocations: 4.588 MB / 1.099 GB, free: 13.55 MB / 0.8575 GB make -j1 -f Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)