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.004927/0.004927, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.00121/0.00121, allocations: 197.1 kB / 16.68 MB, free: 5.969 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.187/1.187, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.365/1.365, allocations: 251.7 MB / 0.5094 GB, free: 3.055 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.001255/0.001255, allocations: 74.08 kB / 0.7258 GB, free: 9.062 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1729/0.1742, allocations: 104.7 MB / 0.828 GB, free: 256 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003588/0.1778, allocations: 2.931 MB / 0.8309 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001634/0.1795, allocations: 1.158 MB / 0.832 GB, free: 12.14 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001819/0.1797, allocations: 23.88 kB / 0.832 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002066/0.1799, allocations: 79.19 kB / 0.8321 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.18, allocations: 79.14 kB / 0.8322 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006461/0.1807, allocations: 346.2 kB / 0.8325 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0006016/0.1813, allocations: 0.7146 MB / 0.8332 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000505/0.1818, allocations: 488.4 kB / 0.8337 GB, free: 10.42 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/0.182, allocations: 243.1 kB / 0.8339 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.1823, allocations: 258.7 kB / 0.8342 GB, free: 9.93 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 7.999e-05/0.1824, allocations: 72 kB / 0.8342 GB, free: 9.859 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.1825, allocations: 72 kB / 0.8343 GB, free: 9.789 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.1826, allocations: 139.6 kB / 0.8344 GB, free: 9.652 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001904/0.1828, allocations: 274.6 kB / 0.8347 GB, free: 9.383 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000617/0.1834, allocations: 0.7432 MB / 0.8354 GB, free: 8.637 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1834, allocations: 3.938 kB / 0.8354 GB, free: 8.633 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1834, allocations: 0 / 0.8354 GB, free: 8.633 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.776e-06/0.1834, allocations: 4 kB / 0.8354 GB, free: 8.629 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.001382/0.1848, allocations: 0.8893 MB / 0.8363 GB, free: 7.68 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.059e-05/0.1849, allocations: 12.03 kB / 0.8363 GB, free: 7.668 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.599e-05/0.185, allocations: 60.56 kB / 0.8364 GB, free: 7.609 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005634/0.1855, allocations: 452.8 kB / 0.8368 GB, free: 7.125 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.022e-05/0.1856, allocations: 37.38 kB / 0.8368 GB, free: 7.09 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.444e-05/0.1856, allocations: 48.38 kB / 0.8369 GB, free: 7.043 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008807/0.1865, allocations: 0.5432 MB / 0.8374 GB, free: 6.465 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.1866, allocations: 0 / 0.8374 GB, free: 6.465 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.99e-05/0.1866, allocations: 16 kB / 0.8374 GB, free: 6.449 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.1866, allocations: 12 kB / 0.8374 GB, free: 6.438 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008712/0.1875, allocations: 399.6 kB / 0.8378 GB, free: 6.051 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.1894, allocations: 1.845 MB / 0.8396 GB, free: 4.125 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008187/0.1902, allocations: 354.1 kB / 0.84 GB, free: 3.773 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003601/0.1906, allocations: 168.8 kB / 0.8401 GB, free: 3.605 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.1906, allocations: 7.938 kB / 0.8401 GB, free: 3.598 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004529/0.1911, allocations: 217.4 kB / 0.8403 GB, free: 3.375 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=34): time 3.376e-06/0.1911, allocations: 4 kB / 0.8403 GB, free: 3.371 MB / 0.6544 GB Notification: Performance of matching and sorting (n=34): time 0.001113/0.1922, allocations: 473.8 kB / 0.8408 GB, free: 2.902 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.714e-05/0.1922, allocations: 55.41 kB / 0.8408 GB, free: 2.836 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003587/0.1926, allocations: 401.6 kB / 0.8412 GB, free: 2.438 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.1926, allocations: 45.7 kB / 0.8413 GB, free: 2.387 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.1928, allocations: 260.6 kB / 0.8415 GB, free: 2.129 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 7.652e-05/0.1929, allocations: 107.1 kB / 0.8416 GB, free: 2.023 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.193, allocations: 102.2 kB / 0.8417 GB, free: 1.914 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.1932, allocations: 358.8 kB / 0.8421 GB, free: 1.555 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003705/0.1935, allocations: 145 kB / 0.8422 GB, free: 1.414 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004282/0.194, allocations: 269.9 kB / 0.8425 GB, free: 1.109 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007165/0.1947, allocations: 403.4 kB / 0.8428 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1947, allocations: 4 kB / 0.8428 GB, free: 0.6641 MB / 0.6544 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.000951/0.1957, allocations: 0.5225 MB / 0.8433 GB, free: 132 kB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.1957, allocations: 29.7 kB / 0.8434 GB, free: 96 kB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1957, allocations: 4 kB / 0.8434 GB, free: 92 kB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.1957, allocations: 8 kB / 0.8434 GB, free: 84 kB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.196, allocations: 75.81 kB / 0.8435 GB, free: 8 kB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.196, allocations: 4 kB / 0.8435 GB, free: 4 kB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00033/0.1964, allocations: 76.03 kB / 0.8435 GB, free: 15.93 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.1964, allocations: 20 kB / 0.8436 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.0001894/0.1966, allocations: 201.7 kB / 0.8437 GB, free: 15.7 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.192e-05/0.1967, allocations: 51.66 kB / 0.8438 GB, free: 15.65 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008348/0.1975, allocations: 377.7 kB / 0.8442 GB, free: 15.27 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1975, allocations: 4 kB / 0.8442 GB, free: 15.27 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1975, allocations: 0 / 0.8442 GB, free: 15.27 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.964e-06/0.1976, allocations: 7.969 kB / 0.8442 GB, free: 15.26 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.1989, allocations: 0.9643 MB / 0.8451 GB, free: 14.23 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1989, allocations: 0 / 0.8451 GB, free: 14.23 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002408/0.1992, allocations: 39.97 kB / 0.8451 GB, free: 14.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1992, allocations: 7.938 kB / 0.8452 GB, free: 14.19 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.549e-05/0.1992, allocations: 7.984 kB / 0.8452 GB, free: 14.18 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.1992, allocations: 7.938 kB / 0.8452 GB, free: 14.17 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1992, allocations: 7.969 kB / 0.8452 GB, free: 14.16 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.2004, allocations: 0.6369 MB / 0.8458 GB, free: 13.51 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.2005, allocations: 152.8 kB / 0.8459 GB, free: 13.34 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.882e-05/0.2006, allocations: 8 kB / 0.846 GB, free: 13.33 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002868/0.2009, allocations: 35.95 kB / 0.846 GB, free: 13.3 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.201, allocations: 43.89 kB / 0.846 GB, free: 13.25 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.201, allocations: 11.98 kB / 0.846 GB, free: 13.24 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0002404/0.2012, allocations: 271.2 kB / 0.8463 GB, free: 12.98 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2012, allocations: 0 / 0.8463 GB, free: 12.98 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0003386/0.2016, allocations: 99.73 kB / 0.8464 GB, free: 12.88 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.0001388/0.2017, allocations: 125.4 kB / 0.8465 GB, free: 12.75 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0008523/0.2026, allocations: 435.1 kB / 0.8469 GB, free: 12.32 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2026, allocations: 0 / 0.8469 GB, free: 12.32 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0003951/0.203, allocations: 184.2 kB / 0.8471 GB, free: 12.14 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.2035, allocations: 96.38 kB / 0.8472 GB, free: 12.04 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.2046, allocations: 0.7378 MB / 0.8479 GB, free: 11.27 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/0.205, allocations: 0.8276 MB / 0.8487 GB, free: 10.41 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0001756/0.2052, allocations: 55.42 kB / 0.8488 GB, free: 10.36 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.2053, allocations: 39.42 kB / 0.8488 GB, free: 10.32 MB / 0.67 GB Notification: Performance of SimCode: time 2.61e-07/0.2053, allocations: 4 kB / 0.8488 GB, free: 10.31 MB / 0.67 GB Notification: Performance of Templates: time 0.008265/0.2136, allocations: 5.001 MB / 0.8537 GB, free: 5.359 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)