Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001127/0.001127, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001367/0.001367, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.377/1.377, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.818/2.818, allocations: 472.6 MB / 0.7448 GB, free: 4.898 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 67.17 kB / 0.9115 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.3593, allocations: 159.9 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004757/0.3641, allocations: 3.004 MB / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002356/0.3665, allocations: 1.106 MB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002884/0.3668, allocations: 15.94 kB / 1.072 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002723/0.3671, allocations: 51.52 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002083/0.3674, allocations: 67.5 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007831/0.3681, allocations: 307.3 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007089/0.3689, allocations: 0.7224 MB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006282/0.3695, allocations: 492.2 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002714/0.3698, allocations: 251.1 kB / 1.074 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002773/0.3701, allocations: 242.8 kB / 1.074 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.53e-05/0.3702, allocations: 79.94 kB / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.3703, allocations: 79.98 kB / 1.074 GB, free: 4.418 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.3704, allocations: 135.6 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002159/0.3707, allocations: 278.6 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006518/0.3713, allocations: 0.7207 MB / 1.075 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3713, allocations: 0 / 1.075 GB, free: 3.289 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.905e-06/0.3713, allocations: 4 kB / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.415e-05/0.3714, allocations: 0 / 1.075 GB, free: 3.285 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.001589/0.373, allocations: 0.883 MB / 1.076 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.373, allocations: 12.03 kB / 1.076 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.3731, allocations: 56.28 kB / 1.076 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006272/0.3738, allocations: 440.5 kB / 1.076 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.3738, allocations: 41.38 kB / 1.076 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.74e-05/0.3739, allocations: 48.38 kB / 1.076 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009758/0.3749, allocations: 0.5355 MB / 1.077 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.3749, allocations: 3.938 kB / 1.077 GB, free: 1.148 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.176e-05/0.375, allocations: 23.98 kB / 1.077 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.375, allocations: 12 kB / 1.077 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008985/0.3759, allocations: 395.7 kB / 1.077 GB, free: 0.7266 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.378, allocations: 1.852 MB / 1.079 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008997/0.379, allocations: 354.1 kB / 1.08 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003872/0.3794, allocations: 179.4 kB / 1.08 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.769e-05/0.3794, allocations: 7.984 kB / 1.08 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006101/0.38, allocations: 249.5 kB / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=35): time 2.104e-06/0.38, allocations: 0 / 1.08 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35): time 0.001265/0.3813, allocations: 491.9 kB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.016e-05/0.3814, allocations: 85.11 kB / 1.081 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004151/0.3818, allocations: 397.5 kB / 1.081 GB, free: 13 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.243e-05/0.3819, allocations: 49.69 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001681/0.382, allocations: 244.2 kB / 1.081 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.176e-05/0.3821, allocations: 106.6 kB / 1.081 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.3823, allocations: 102.2 kB / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3824, allocations: 366.7 kB / 1.082 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003928/0.3828, allocations: 157 kB / 1.082 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.3833, allocations: 265.8 kB / 1.082 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007635/0.384, allocations: 411.4 kB / 1.083 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.3841, allocations: 0 / 1.083 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001034/0.3851, allocations: 0.5107 MB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.248e-05/0.3852, allocations: 37.7 kB / 1.083 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.3852, allocations: 4 kB / 1.083 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.3852, allocations: 4.406 kB / 1.083 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003198/0.3855, allocations: 83.81 kB / 1.083 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.532e-05/0.3856, allocations: 7.938 kB / 1.083 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/0.3859, allocations: 71.48 kB / 1.083 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-05/0.386, allocations: 20 kB / 1.083 GB, free: 10.46 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.0002193/0.3862, allocations: 205.8 kB / 1.083 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.257e-05/0.3863, allocations: 47.38 kB / 1.083 GB, free: 10.21 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009239/0.3872, allocations: 386.8 kB / 1.084 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.3872, allocations: 4 kB / 1.084 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3872, allocations: 4 kB / 1.084 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.3873, allocations: 7.984 kB / 1.084 GB, free: 9.812 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.3888, allocations: 0.9515 MB / 1.085 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3888, allocations: 4.031 kB / 1.085 GB, free: 8.797 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002619/0.3891, allocations: 51.89 kB / 1.085 GB, free: 8.746 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.3891, allocations: 0 / 1.085 GB, free: 8.746 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.009e-05/0.3892, allocations: 8 kB / 1.085 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.167e-06/0.3892, allocations: 4 kB / 1.085 GB, free: 8.734 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3892, allocations: 0 / 1.085 GB, free: 8.734 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.3905, allocations: 0.6465 MB / 1.085 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.3906, allocations: 148.6 kB / 1.086 GB, free: 7.902 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.17e-05/0.3907, allocations: 12 kB / 1.086 GB, free: 7.891 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003127/0.391, allocations: 36.02 kB / 1.086 GB, free: 7.855 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.3911, allocations: 43.89 kB / 1.086 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.863e-05/0.3912, allocations: 15.98 kB / 1.086 GB, free: 7.797 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002757/0.3915, allocations: 263.2 kB / 1.086 GB, free: 7.535 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3915, allocations: 0 / 1.086 GB, free: 7.535 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004315/0.3919, allocations: 103.7 kB / 1.086 GB, free: 7.434 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.0001906/0.3921, allocations: 129.4 kB / 1.086 GB, free: 7.297 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001053/0.3932, allocations: 459.5 kB / 1.087 GB, free: 6.836 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3932, allocations: 0 / 1.087 GB, free: 6.836 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004524/0.3936, allocations: 191.6 kB / 1.087 GB, free: 6.648 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005821/0.3942, allocations: 88.02 kB / 1.087 GB, free: 6.562 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001513/0.3958, allocations: 0.9115 MB / 1.088 GB, free: 5.617 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.3962, allocations: 0.8273 MB / 1.089 GB, free: 4.766 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002281/0.3964, allocations: 51.44 kB / 1.089 GB, free: 4.711 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.3965, allocations: 43.42 kB / 1.089 GB, free: 4.668 MB / 0.8419 GB Notification: Performance of SimCode: time 3.6e-07/0.3965, allocations: 0 / 1.089 GB, free: 4.668 MB / 0.8419 GB Notification: Performance of Templates: time 0.01/0.4065, allocations: 4.866 MB / 1.093 GB, free: 15.84 MB / 0.8575 GB make -j1 -f Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)