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.004776/0.004776, allocations: 103 kB / 15.73 MB, free: 6.051 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.001163/0.001163, allocations: 197.6 kB / 16.68 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.189/1.189, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.372/1.372, allocations: 251.7 MB / 0.5094 GB, free: 3.023 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.001301/0.001301, allocations: 66.09 kB / 0.7258 GB, free: 9.039 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1764, allocations: 104.7 MB / 0.828 GB, free: 228 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.00366/0.1801, allocations: 2.932 MB / 0.8309 GB, free: 13.27 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00164/0.1818, allocations: 1.166 MB / 0.832 GB, free: 12.1 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001861/0.182, allocations: 15.88 kB / 0.832 GB, free: 12.08 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.000252/0.1822, allocations: 87.12 kB / 0.8321 GB, free: 12 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.1824, allocations: 79.27 kB / 0.8322 GB, free: 11.92 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006522/0.1831, allocations: 343.1 kB / 0.8325 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0005865/0.1837, allocations: 0.7146 MB / 0.8332 GB, free: 10.87 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004925/0.1842, allocations: 492.3 kB / 0.8337 GB, free: 10.38 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.1844, allocations: 247.1 kB / 0.8339 GB, free: 10.14 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.1846, allocations: 254.8 kB / 0.8342 GB, free: 9.891 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 7.116e-05/0.1847, allocations: 68 kB / 0.8342 GB, free: 9.824 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 9.773e-05/0.1848, allocations: 80 kB / 0.8343 GB, free: 9.746 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.1849, allocations: 139.5 kB / 0.8344 GB, free: 9.609 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.1851, allocations: 270.7 kB / 0.8347 GB, free: 9.344 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0005551/0.1857, allocations: 0.7474 MB / 0.8354 GB, free: 8.594 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1857, allocations: 0 / 0.8354 GB, free: 8.594 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.523e-06/0.1857, allocations: 0 / 0.8354 GB, free: 8.594 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.1857, allocations: 0 / 0.8354 GB, free: 8.594 MB / 0.6544 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.001343/0.187, allocations: 0.882 MB / 0.8363 GB, free: 7.652 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.1871, allocations: 8.031 kB / 0.8363 GB, free: 7.645 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.666e-05/0.1872, allocations: 60.28 kB / 0.8364 GB, free: 7.586 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005576/0.1877, allocations: 444.6 kB / 0.8368 GB, free: 7.109 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.1878, allocations: 37.38 kB / 0.8368 GB, free: 7.074 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.012e-05/0.1879, allocations: 52.38 kB / 0.8369 GB, free: 7.023 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008481/0.1887, allocations: 0.5394 MB / 0.8374 GB, free: 6.449 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.1887, allocations: 3.938 kB / 0.8374 GB, free: 6.445 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.969e-05/0.1888, allocations: 16 kB / 0.8374 GB, free: 6.43 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1888, allocations: 12 kB / 0.8374 GB, free: 6.418 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008243/0.1896, allocations: 399.7 kB / 0.8378 GB, free: 6.031 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.1914, allocations: 1.833 MB / 0.8396 GB, free: 4.117 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007759/0.1922, allocations: 346.8 kB / 0.8399 GB, free: 3.77 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003346/0.1926, allocations: 171.6 kB / 0.8401 GB, free: 3.602 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.1926, allocations: 7.938 kB / 0.8401 GB, free: 3.594 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004168/0.193, allocations: 217.5 kB / 0.8403 GB, free: 3.371 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=34): time 1.813e-06/0.193, allocations: 0 / 0.8403 GB, free: 3.371 MB / 0.6544 GB Notification: Performance of matching and sorting (n=34): time 0.001065/0.1941, allocations: 473.6 kB / 0.8408 GB, free: 2.902 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.1942, allocations: 59.41 kB / 0.8408 GB, free: 2.832 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003455/0.1945, allocations: 409.3 kB / 0.8412 GB, free: 2.426 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.531e-05/0.1946, allocations: 41.7 kB / 0.8412 GB, free: 2.379 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.1947, allocations: 252.2 kB / 0.8415 GB, free: 2.129 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 7.007e-05/0.1948, allocations: 94.75 kB / 0.8416 GB, free: 2.035 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/0.1949, allocations: 106.1 kB / 0.8417 GB, free: 1.922 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.195, allocations: 362.8 kB / 0.842 GB, free: 1.559 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003487/0.1954, allocations: 149 kB / 0.8422 GB, free: 1.414 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000397/0.1958, allocations: 269.8 kB / 0.8424 GB, free: 1.109 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006561/0.1965, allocations: 399.4 kB / 0.8428 GB, free: 0.6719 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1965, allocations: 0 / 0.8428 GB, free: 0.6719 MB / 0.6544 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008862/0.1974, allocations: 0.5144 MB / 0.8433 GB, free: 148 kB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.1974, allocations: 37.69 kB / 0.8433 GB, free: 104 kB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1974, allocations: 4 kB / 0.8433 GB, free: 100 kB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.1974, allocations: 4.406 kB / 0.8433 GB, free: 96 kB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.1977, allocations: 79.83 kB / 0.8434 GB, free: 16 kB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.417e-06/0.1977, allocations: 4 kB / 0.8434 GB, free: 12 kB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003085/0.1981, allocations: 71.48 kB / 0.8435 GB, free: 15.94 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.051e-05/0.1981, allocations: 27.92 kB / 0.8435 GB, free: 15.91 MB / 0.67 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,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 (58): * Single equations (assignments): 57 * 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.0001868/0.1983, allocations: 205.7 kB / 0.8437 GB, free: 15.71 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.853e-05/0.1984, allocations: 47.38 kB / 0.8438 GB, free: 15.66 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00079/0.1991, allocations: 377.6 kB / 0.8441 GB, free: 15.28 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1992, allocations: 4 kB / 0.8441 GB, free: 15.28 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.1992, allocations: 7.984 kB / 0.8441 GB, free: 15.27 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.1992, allocations: 0 / 0.8441 GB, free: 15.27 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.2005, allocations: 0.9565 MB / 0.8451 GB, free: 14.25 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2005, allocations: 0 / 0.8451 GB, free: 14.25 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002255/0.2007, allocations: 51.92 kB / 0.8451 GB, free: 14.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.2007, allocations: 7.938 kB / 0.8451 GB, free: 14.19 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.47e-05/0.2008, allocations: 8 kB / 0.8451 GB, free: 14.18 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2008, allocations: 4 kB / 0.8451 GB, free: 14.18 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2008, allocations: 0 / 0.8451 GB, free: 14.18 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.2019, allocations: 0.6366 MB / 0.8458 GB, free: 13.52 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.202, allocations: 148.5 kB / 0.8459 GB, free: 13.36 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.397e-05/0.2021, allocations: 8 kB / 0.8459 GB, free: 13.35 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.2024, allocations: 47.95 kB / 0.846 GB, free: 13.3 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.2025, allocations: 43.88 kB / 0.846 GB, free: 13.26 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.2025, allocations: 12 kB / 0.846 GB, free: 13.25 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0002321/0.2027, allocations: 267.2 kB / 0.8463 GB, free: 12.99 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2027, allocations: 0 / 0.8463 GB, free: 12.99 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0003469/0.2031, allocations: 103.7 kB / 0.8464 GB, free: 12.89 MB / 0.67 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.active,preHeatCoil.pumOff.active,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,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 (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.0001387/0.2032, allocations: 121.4 kB / 0.8465 GB, free: 12.77 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0008245/0.2041, allocations: 427.6 kB / 0.8469 GB, free: 12.34 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2041, allocations: 0 / 0.8469 GB, free: 12.34 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0003834/0.2045, allocations: 188.3 kB / 0.8471 GB, free: 12.15 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000449/0.2049, allocations: 81.48 kB / 0.8471 GB, free: 12.07 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.2062, allocations: 0.7388 MB / 0.8479 GB, free: 11.3 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.2066, allocations: 0.8312 MB / 0.8487 GB, free: 10.44 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0001726/0.2067, allocations: 51.45 kB / 0.8487 GB, free: 10.38 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.2069, allocations: 39.42 kB / 0.8488 GB, free: 10.34 MB / 0.67 GB Notification: Performance of SimCode: time 2.4e-07/0.2069, allocations: 3.938 kB / 0.8488 GB, free: 10.34 MB / 0.67 GB Notification: Performance of Templates: time 0.0099/0.2168, allocations: 5.001 MB / 0.8536 GB, free: 5.387 MB / 0.67 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (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)