Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.0008676/0.0008675, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.0007965/0.0007967, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.58/1.58, allocations: 205.4 MB / 222.1 MB, free: 5.887 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.539/1.539, allocations: 252 MB / 0.5102 GB, free: 4.84 MB / 414.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.0005022/0.0005025, allocations: 12.22 kB / 0.6243 GB, free: 1.137 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5849/0.5854, allocations: 106.3 MB / 0.7281 GB, free: 11.42 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003666/0.5892, allocations: 2.503 MB / 0.7306 GB, free: 8.902 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002083/0.5913, allocations: 1.119 MB / 0.7317 GB, free: 7.773 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002904/0.5916, allocations: 15.94 kB / 0.7317 GB, free: 7.758 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0002187/0.5918, allocations: 55.45 kB / 0.7317 GB, free: 7.703 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.592, allocations: 43.58 kB / 0.7318 GB, free: 7.66 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007423/0.5927, allocations: 242.1 kB / 0.732 GB, free: 7.426 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006737/0.5934, allocations: 0.6092 MB / 0.7326 GB, free: 6.816 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005377/0.594, allocations: 356.1 kB / 0.7329 GB, free: 6.457 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.5942, allocations: 159.2 kB / 0.7331 GB, free: 6.301 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.5944, allocations: 187 kB / 0.7333 GB, free: 6.117 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.05e-05/0.5945, allocations: 16 kB / 0.7333 GB, free: 6.102 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 8.602e-05/0.5946, allocations: 24 kB / 0.7333 GB, free: 6.078 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.5947, allocations: 83.59 kB / 0.7334 GB, free: 5.996 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 9.797e-05/0.5948, allocations: 109.5 kB / 0.7335 GB, free: 5.883 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005167/0.5953, allocations: 0.5435 MB / 0.734 GB, free: 5.34 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.5953, allocations: 0 / 0.734 GB, free: 5.34 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5953, allocations: 0 / 0.734 GB, free: 5.34 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.187e-05/0.5954, allocations: 0 / 0.734 GB, free: 5.34 MB / 0.545 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.001513/0.5969, allocations: 0.7962 MB / 0.7348 GB, free: 4.484 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.5969, allocations: 12.03 kB / 0.7348 GB, free: 4.473 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.5971, allocations: 59.3 kB / 0.7349 GB, free: 4.414 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006246/0.5977, allocations: 423.6 kB / 0.7353 GB, free: 3.957 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.292e-05/0.5977, allocations: 45 kB / 0.7353 GB, free: 3.91 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.439e-05/0.5978, allocations: 44 kB / 0.7354 GB, free: 3.867 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001024/0.5989, allocations: 0.5391 MB / 0.7359 GB, free: 3.293 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.5989, allocations: 3.938 kB / 0.7359 GB, free: 3.289 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.614e-05/0.5989, allocations: 24 kB / 0.7359 GB, free: 3.266 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.599, allocations: 15.94 kB / 0.7359 GB, free: 3.25 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009554/0.5999, allocations: 419.6 kB / 0.7363 GB, free: 2.84 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.6023, allocations: 1.864 MB / 0.7381 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008801/0.6032, allocations: 358.9 kB / 0.7385 GB, free: 0.5391 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000371/0.6036, allocations: 183.7 kB / 0.7387 GB, free: 368 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.915e-05/0.6036, allocations: 4 kB / 0.7387 GB, free: 364 kB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005525/0.6042, allocations: 229.5 kB / 0.7389 GB, free: 124 kB / 0.545 GB Notification: Performance of pre-optimization done (n=34): time 1.954e-06/0.6042, allocations: 0 / 0.7389 GB, free: 124 kB / 0.545 GB Notification: Performance of matching and sorting (n=34): time 0.001273/0.6055, allocations: 0.4973 MB / 0.7394 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.819e-05/0.6055, allocations: 71.33 kB / 0.7394 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004598/0.606, allocations: 393.5 kB / 0.7398 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/0.6061, allocations: 45.7 kB / 0.7399 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/0.6063, allocations: 256.1 kB / 0.7401 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.431e-05/0.6064, allocations: 94.7 kB / 0.7402 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.394e-05/0.6064, allocations: 12 kB / 0.7402 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.6066, allocations: 350.8 kB / 0.7405 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004066/0.607, allocations: 165 kB / 0.7407 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000484/0.6075, allocations: 281.9 kB / 0.741 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004559/0.608, allocations: 195.2 kB / 0.7412 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.608, allocations: 4 kB / 0.7412 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001067/0.609, allocations: 0.5343 MB / 0.7417 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.332e-05/0.6091, allocations: 39.56 kB / 0.7417 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.6091, allocations: 4 kB / 0.7417 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.6091, allocations: 4 kB / 0.7417 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.6095, allocations: 80.14 kB / 0.7418 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.6095, allocations: 7.938 kB / 0.7418 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003364/0.6098, allocations: 87.42 kB / 0.7419 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.389e-05/0.6099, allocations: 23.98 kB / 0.7419 GB, free: 12.91 MB / 0.5606 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,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.active,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002707/0.6102, allocations: 205.7 kB / 0.7421 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.756e-05/0.6102, allocations: 39.53 kB / 0.7421 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009343/0.6112, allocations: 409.5 kB / 0.7425 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.6112, allocations: 8 kB / 0.7425 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.6112, allocations: 0 / 0.7425 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.6112, allocations: 11.92 kB / 0.7426 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001537/0.6128, allocations: 0.9718 MB / 0.7435 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.6128, allocations: 0 / 0.7435 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002676/0.6131, allocations: 59.92 kB / 0.7436 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.6131, allocations: 0 / 0.7436 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.674e-05/0.6131, allocations: 8 kB / 0.7436 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.6131, allocations: 3.938 kB / 0.7436 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.6131, allocations: 0 / 0.7436 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.6144, allocations: 0.6672 MB / 0.7442 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.6145, allocations: 148.5 kB / 0.7444 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.121e-05/0.6146, allocations: 8 kB / 0.7444 GB, free: 10.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002818/0.6149, allocations: 48.02 kB / 0.7444 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.615, allocations: 51.92 kB / 0.7445 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.6151, allocations: 4 kB / 0.7445 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002822/0.6153, allocations: 267.2 kB / 0.7447 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6154, allocations: 0 / 0.7447 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004207/0.6158, allocations: 95.75 kB / 0.7448 GB, free: 9.812 MB / 0.5606 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 (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.0001808/0.616, allocations: 129.4 kB / 0.7449 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009339/0.6169, allocations: 451.7 kB / 0.7454 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.6169, allocations: 128 / 0.7454 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004305/0.6174, allocations: 188.4 kB / 0.7456 GB, free: 9.043 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005869/0.618, allocations: 92.08 kB / 0.7456 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.6194, allocations: 0.8619 MB / 0.7465 GB, free: 8.062 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.6199, allocations: 0.8315 MB / 0.7473 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002089/0.6201, allocations: 59.39 kB / 0.7474 GB, free: 7.141 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.6202, allocations: 35.42 kB / 0.7474 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.6202, allocations: 0 / 0.7474 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of Templates: time 0.009543/0.6298, allocations: 4.415 MB / 0.7517 GB, free: 2.734 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1) Environment - environmentSimulation: