Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.014/2.014, allocations: 391.2 MB / 407 MB, free: 10.82 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 183.5 kB / 499.1 MB, free: 4.621 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 0.7948 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009887/0.0009887, allocations: 111.2 kB / 0.9329 GB, free: 7.051 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 53.84 kB / 1.081 GB, free: 218.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2225, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003495/0.226, allocations: 2.993 MB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001498/0.2276, allocations: 1.099 MB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001923/0.2278, allocations: 19.88 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.228, allocations: 51.52 kB / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.2281, allocations: 59.52 kB / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.000565/0.2287, allocations: 315.3 kB / 1.223 GB, free: 112.7 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0004202/0.2292, allocations: 0.6599 MB / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004035/0.2296, allocations: 455.5 kB / 1.224 GB, free: 111.5 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.2297, allocations: 203.1 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.2299, allocations: 230.8 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 5.498e-05/0.23, allocations: 32 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 8.029e-05/0.23, allocations: 39.94 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 7.027e-05/0.2301, allocations: 107.6 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.2303, allocations: 230.7 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0003816/0.2306, allocations: 0.6794 MB / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.2307, allocations: 3.938 kB / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of FrontEnd: time 6.82e-07/0.2307, allocations: 0 / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.2307, allocations: 0 / 1.225 GB, free: 110 MB / 0.823 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.001296/0.232, allocations: 0.8792 MB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 2.956e-05/0.232, allocations: 12.03 kB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.33e-05/0.2321, allocations: 60.19 kB / 1.226 GB, free: 109 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004392/0.2325, allocations: 436.6 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.2326, allocations: 37.38 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.02e-05/0.2326, allocations: 56.36 kB / 1.226 GB, free: 108.5 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007433/0.2334, allocations: 0.5316 MB / 1.227 GB, free: 107.9 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.2334, allocations: 3.938 kB / 1.227 GB, free: 107.9 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.2335, allocations: 27.92 kB / 1.227 GB, free: 107.9 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.2335, allocations: 8 kB / 1.227 GB, free: 107.9 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000773/0.2343, allocations: 395.7 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.2358, allocations: 1.848 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007548/0.2366, allocations: 365.5 kB / 1.23 GB, free: 105.2 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000325/0.2369, allocations: 171.7 kB / 1.23 GB, free: 105 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.024e-05/0.237, allocations: 4 kB / 1.23 GB, free: 105 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004874/0.2375, allocations: 261.4 kB / 1.23 GB, free: 104.7 MB / 0.823 GB Notification: Performance of pre-optimization done (n=35): time 1.653e-06/0.2375, allocations: 0 / 1.23 GB, free: 104.7 MB / 0.823 GB Notification: Performance of matching and sorting (n=35): time 0.001071/0.2385, allocations: 476.8 kB / 1.23 GB, free: 104.3 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.2386, allocations: 89.23 kB / 1.231 GB, free: 104.1 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/0.2389, allocations: 413.3 kB / 1.231 GB, free: 103.7 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.2389, allocations: 41.7 kB / 1.231 GB, free: 103.7 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.239, allocations: 248.3 kB / 1.231 GB, free: 103.4 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 5.403e-05/0.2391, allocations: 102.6 kB / 1.231 GB, free: 103.3 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001166/0.2392, allocations: 102.2 kB / 1.231 GB, free: 103.2 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 6.148e-05/0.2393, allocations: 354.8 kB / 1.232 GB, free: 102.9 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003411/0.2396, allocations: 157 kB / 1.232 GB, free: 102.7 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/0.24, allocations: 273.8 kB / 1.232 GB, free: 102.4 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006355/0.2407, allocations: 407.4 kB / 1.233 GB, free: 102 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2407, allocations: 0 / 1.233 GB, free: 102 MB / 0.823 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008567/0.2415, allocations: 0.5223 MB / 1.233 GB, free: 101.4 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.2416, allocations: 33.7 kB / 1.233 GB, free: 101.4 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.2416, allocations: 7.984 kB / 1.233 GB, free: 101.4 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.2416, allocations: 4 kB / 1.233 GB, free: 101.4 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002813/0.2419, allocations: 75.83 kB / 1.233 GB, free: 101.3 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.2419, allocations: 4.25 kB / 1.233 GB, free: 101.3 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000313/0.2422, allocations: 83.33 kB / 1.233 GB, free: 101.2 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.2423, allocations: 23.94 kB / 1.233 GB, free: 101.2 MB / 0.823 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.0001604/0.2424, allocations: 203.2 kB / 1.233 GB, free: 101 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.287e-05/0.2425, allocations: 43.47 kB / 1.234 GB, free: 101 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007588/0.2432, allocations: 389.5 kB / 1.234 GB, free: 100.6 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.2433, allocations: 7.938 kB / 1.234 GB, free: 100.6 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2433, allocations: 4 kB / 1.234 GB, free: 100.6 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.2433, allocations: 3.984 kB / 1.234 GB, free: 100.6 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.2445, allocations: 0.9514 MB / 1.235 GB, free: 99.54 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2445, allocations: 0 / 1.235 GB, free: 99.54 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002276/0.2447, allocations: 59.92 kB / 1.235 GB, free: 99.48 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.2447, allocations: 0 / 1.235 GB, free: 99.48 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.2447, allocations: 8 kB / 1.235 GB, free: 99.47 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.2448, allocations: 3.984 kB / 1.235 GB, free: 99.47 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2448, allocations: 4 kB / 1.235 GB, free: 99.46 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002664/0.2474, allocations: 2.229 MB / 1.237 GB, free: 97.09 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.2475, allocations: 152.5 kB / 1.237 GB, free: 96.92 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/0.2476, allocations: 8 kB / 1.237 GB, free: 96.91 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002862/0.2479, allocations: 39.95 kB / 1.237 GB, free: 96.88 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.248, allocations: 51.88 kB / 1.237 GB, free: 96.82 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.266e-05/0.248, allocations: 8 kB / 1.237 GB, free: 96.82 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.000202/0.2482, allocations: 267.2 kB / 1.238 GB, free: 96.55 MB / 0.823 GB Notification: Performance of sort global known variables: time 2.61e-07/0.2482, allocations: 0 / 1.238 GB, free: 96.55 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0004191/0.2487, allocations: 115.7 kB / 1.238 GB, free: 96.44 MB / 0.823 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.0001346/0.2488, allocations: 133.5 kB / 1.238 GB, free: 96.3 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0007775/0.2496, allocations: 431.6 kB / 1.238 GB, free: 95.86 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2496, allocations: 8 kB / 1.238 GB, free: 95.86 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003822/0.25, allocations: 187.6 kB / 1.238 GB, free: 95.67 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004916/0.2505, allocations: 80.59 kB / 1.238 GB, free: 95.6 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.2517, allocations: 1.156 MB / 1.24 GB, free: 94.39 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.2519, allocations: 0.8391 MB / 1.24 GB, free: 93.53 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0001843/0.2521, allocations: 47.45 kB / 1.24 GB, free: 93.48 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.2522, allocations: 39.42 kB / 1.241 GB, free: 93.44 MB / 0.823 GB Notification: Performance of SimCode: time 2.01e-07/0.2522, allocations: 0 / 1.241 GB, free: 93.44 MB / 0.823 GB Notification: Performance of Templates: time 0.007327/0.2595, allocations: 5.035 MB / 1.245 GB, free: 88.45 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)