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.001192/0.001192, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001493/0.001493, allocations: 198 kB / 16.14 MB, free: 6.664 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.385/1.385, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.804/2.804, allocations: 472.6 MB / 0.7447 GB, free: 4.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.05 kB / 0.9113 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3234, allocations: 159.9 MB / 1.068 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004827/0.3282, allocations: 3.02 MB / 1.07 GB, free: 7.91 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002388/0.3307, allocations: 1.103 MB / 1.072 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000466/0.3312, allocations: 15.94 kB / 1.072 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003364/0.3315, allocations: 59.45 kB / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002813/0.3318, allocations: 55.56 kB / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000827/0.3327, allocations: 311.7 kB / 1.072 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0008344/0.3335, allocations: 0.6482 MB / 1.073 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007117/0.3342, allocations: 439.6 kB / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003107/0.3345, allocations: 203 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003043/0.3349, allocations: 226.8 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.265e-05/0.335, allocations: 32 kB / 1.073 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.3351, allocations: 36 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.3352, allocations: 107.5 kB / 1.074 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002287/0.3354, allocations: 242.6 kB / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006478/0.3361, allocations: 0.6739 MB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.3361, allocations: 0 / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3361, allocations: 0 / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.633e-05/0.3362, allocations: 0 / 1.074 GB, free: 3.777 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.001865/0.338, allocations: 0.883 MB / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3381, allocations: 12.03 kB / 1.075 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.3382, allocations: 56.28 kB / 1.075 GB, free: 2.77 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006467/0.3389, allocations: 444.5 kB / 1.076 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.342e-05/0.3389, allocations: 45.36 kB / 1.076 GB, free: 2.25 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.784e-05/0.339, allocations: 48.38 kB / 1.076 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.3401, allocations: 0.5316 MB / 1.076 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.3401, allocations: 4 kB / 1.076 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.7e-05/0.3401, allocations: 20 kB / 1.076 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.3402, allocations: 15.94 kB / 1.076 GB, free: 1.602 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001001/0.3412, allocations: 399.6 kB / 1.077 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002283/0.3435, allocations: 1.844 MB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009458/0.3444, allocations: 359.4 kB / 1.079 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00042/0.3449, allocations: 181.6 kB / 1.079 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.3449, allocations: 3.984 kB / 1.079 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006118/0.3455, allocations: 249.5 kB / 1.079 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=35): time 1.893e-06/0.3455, allocations: 4 kB / 1.079 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35): time 0.001321/0.3469, allocations: 483.8 kB / 1.08 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/0.3469, allocations: 93.17 kB / 1.08 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000435/0.3474, allocations: 401.5 kB / 1.08 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.771e-05/0.3474, allocations: 41.7 kB / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.3476, allocations: 252.2 kB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.447e-05/0.3477, allocations: 106.6 kB / 1.081 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.3479, allocations: 98.23 kB / 1.081 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.348, allocations: 362.7 kB / 1.081 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004248/0.3484, allocations: 153 kB / 1.081 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004924/0.3489, allocations: 265.9 kB / 1.082 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000829/0.3498, allocations: 407.4 kB / 1.082 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.3498, allocations: 4 kB / 1.082 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001114/0.3509, allocations: 0.5186 MB / 1.082 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.351, allocations: 39.41 kB / 1.083 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.351, allocations: 4 kB / 1.083 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.351, allocations: 4 kB / 1.083 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.3513, allocations: 79.81 kB / 1.083 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.3514, allocations: 4 kB / 1.083 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.3517, allocations: 75.7 kB / 1.083 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.963e-05/0.3518, allocations: 23.98 kB / 1.083 GB, free: 10.95 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.0002341/0.352, allocations: 197.7 kB / 1.083 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.455e-05/0.3521, allocations: 47.38 kB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009718/0.3531, allocations: 394.8 kB / 1.083 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.3531, allocations: 4 kB / 1.083 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.3531, allocations: 3.984 kB / 1.083 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.3531, allocations: 0 / 1.083 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.3547, allocations: 0.9554 MB / 1.084 GB, free: 9.285 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3547, allocations: 4 kB / 1.084 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002793/0.355, allocations: 51.89 kB / 1.084 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.3551, allocations: 4.031 kB / 1.084 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.3551, allocations: 11.98 kB / 1.084 GB, free: 9.215 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3551, allocations: 4 kB / 1.084 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3551, allocations: 0 / 1.084 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.3565, allocations: 0.6464 MB / 1.085 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.3566, allocations: 148.6 kB / 1.085 GB, free: 8.379 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.679e-05/0.3567, allocations: 12 kB / 1.085 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/0.357, allocations: 36.02 kB / 1.085 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.3572, allocations: 51.86 kB / 1.085 GB, free: 8.281 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.3572, allocations: 12 kB / 1.085 GB, free: 8.27 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002834/0.3575, allocations: 267.2 kB / 1.085 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.61e-07/0.3575, allocations: 0 / 1.085 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000418/0.3579, allocations: 99.69 kB / 1.086 GB, free: 7.906 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.0001905/0.3581, allocations: 125.4 kB / 1.086 GB, free: 7.773 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001005/0.3591, allocations: 431.1 kB / 1.086 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.3592, allocations: 4.812 kB / 1.086 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004708/0.3596, allocations: 191.6 kB / 1.086 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000567/0.3602, allocations: 82.45 kB / 1.086 GB, free: 7.066 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.3618, allocations: 0.9063 MB / 1.087 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/0.3622, allocations: 0.8235 MB / 1.088 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002193/0.3624, allocations: 59.44 kB / 1.088 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.3625, allocations: 43.42 kB / 1.088 GB, free: 5.18 MB / 0.8419 GB Notification: Performance of SimCode: time 4.01e-07/0.3625, allocations: 0 / 1.088 GB, free: 5.18 MB / 0.8419 GB Notification: Performance of Templates: time 0.00946/0.372, allocations: 4.63 MB / 1.093 GB, free: 0.5938 MB / 0.8419 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)