Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001496/0.001496, allocations: 104.3 kB / 16.36 MB, free: 5.961 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.001161/0.001161, allocations: 192.8 kB / 17.3 MB, free: 5.578 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.344/1.344, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.821/1.821, allocations: 292.3 MB / 0.5496 GB, free: 17.4 MB / 462.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.00206/0.00206, allocations: 67.91 kB / 0.6729 GB, free: 5.785 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.209, allocations: 114.6 MB / 0.7848 GB, free: 3.113 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004157/0.2132, allocations: 2.938 MB / 0.7876 GB, free: 152 kB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3291/0.5423, allocations: 1.141 MB / 0.7888 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.5425, allocations: 14.34 kB / 0.7888 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002254/0.5428, allocations: 76.09 kB / 0.7888 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.543, allocations: 80.03 kB / 0.7889 GB, free: 47.17 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006302/0.5436, allocations: 347.9 kB / 0.7893 GB, free: 47.16 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0005024/0.5441, allocations: 0.7118 MB / 0.79 GB, free: 47.15 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004698/0.5446, allocations: 498.1 kB / 0.7904 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001713/0.5448, allocations: 248.6 kB / 0.7907 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.545, allocations: 248.3 kB / 0.7909 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 7.374e-05/0.5451, allocations: 68.34 kB / 0.791 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.5452, allocations: 73.28 kB / 0.791 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.419e-05/0.5453, allocations: 146.9 kB / 0.7912 GB, free: 47.01 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.5455, allocations: 274.6 kB / 0.7914 GB, free: 46.93 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0004538/0.5459, allocations: 0.7374 MB / 0.7922 GB, free: 46.82 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.5459, allocations: 2.969 kB / 0.7922 GB, free: 46.82 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.333e-06/0.5459, allocations: 2.625 kB / 0.7922 GB, free: 46.82 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.335e-06/0.546, allocations: 3 kB / 0.7922 GB, free: 46.82 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.001336/0.5473, allocations: 0.8737 MB / 0.793 GB, free: 46.28 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.5473, allocations: 10.41 kB / 0.793 GB, free: 46.28 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.598e-05/0.5474, allocations: 61.91 kB / 0.7931 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004868/0.5479, allocations: 432.8 kB / 0.7935 GB, free: 46 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.458e-05/0.548, allocations: 44.78 kB / 0.7935 GB, free: 46 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.131e-05/0.5481, allocations: 46.91 kB / 0.7936 GB, free: 46 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008458/0.5489, allocations: 0.5325 MB / 0.7941 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.5489, allocations: 5.719 kB / 0.7941 GB, free: 45.73 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.087e-05/0.549, allocations: 14.62 kB / 0.7941 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.549, allocations: 13.12 kB / 0.7941 GB, free: 45.71 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008579/0.5499, allocations: 400.9 kB / 0.7945 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.5515, allocations: 1.839 MB / 0.7963 GB, free: 44.3 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008258/0.5524, allocations: 348.2 kB / 0.7967 GB, free: 44.17 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003502/0.5528, allocations: 167 kB / 0.7968 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-05/0.5528, allocations: 7.844 kB / 0.7968 GB, free: 44.11 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005022/0.5533, allocations: 213.6 kB / 0.797 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=34): time 2.465e-06/0.5533, allocations: 1.5 kB / 0.797 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of matching and sorting (n=34): time 0.001083/0.5544, allocations: 473.5 kB / 0.7975 GB, free: 43.85 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/0.5544, allocations: 60.77 kB / 0.7975 GB, free: 43.78 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003355/0.5548, allocations: 400 kB / 0.7979 GB, free: 43.58 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.026e-05/0.5548, allocations: 46.02 kB / 0.798 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.555, allocations: 265.5 kB / 0.7982 GB, free: 43.33 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 6.282e-05/0.555, allocations: 89.34 kB / 0.7983 GB, free: 43.27 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.5552, allocations: 107.5 kB / 0.7984 GB, free: 43.21 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.005e-05/0.5553, allocations: 355.6 kB / 0.7987 GB, free: 42.88 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003776/0.5556, allocations: 151.9 kB / 0.7989 GB, free: 42.83 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000399/0.556, allocations: 259.7 kB / 0.7991 GB, free: 42.66 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006835/0.5567, allocations: 406.5 kB / 0.7995 GB, free: 42.4 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.5568, allocations: 0 / 0.7995 GB, free: 42.4 MB / 0.6544 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009452/0.5577, allocations: 0.5144 MB / 0.8 GB, free: 42.19 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.5577, allocations: 34.05 kB / 0.8001 GB, free: 42.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5578, allocations: 4.031 kB / 0.8001 GB, free: 42.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.5578, allocations: 5.625 kB / 0.8001 GB, free: 42.16 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003128/0.5581, allocations: 77.27 kB / 0.8001 GB, free: 42.15 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.5581, allocations: 8.938 kB / 0.8001 GB, free: 42.15 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000345/0.5585, allocations: 80.75 kB / 0.8002 GB, free: 42.11 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.5585, allocations: 20.05 kB / 0.8002 GB, free: 42.11 MB / 0.6544 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.00018/0.5587, allocations: 201.6 kB / 0.8004 GB, free: 41.95 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.091e-05/0.5588, allocations: 42.69 kB / 0.8005 GB, free: 41.93 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008688/0.5596, allocations: 390.9 kB / 0.8008 GB, free: 41.77 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.5596, allocations: 5.094 kB / 0.8009 GB, free: 41.77 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.5597, allocations: 0.5156 kB / 0.8009 GB, free: 41.77 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.5597, allocations: 3.375 kB / 0.8009 GB, free: 41.77 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001451/0.5611, allocations: 0.9478 MB / 0.8018 GB, free: 41.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.5611, allocations: 5.375 kB / 0.8018 GB, free: 41.22 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002628/0.5614, allocations: 48 kB / 0.8018 GB, free: 41.21 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.5614, allocations: 3.781 kB / 0.8018 GB, free: 41.21 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.5615, allocations: 12.33 kB / 0.8018 GB, free: 41.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.5615, allocations: 3.844 kB / 0.8019 GB, free: 41.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.5615, allocations: 32 / 0.8019 GB, free: 41.21 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.5627, allocations: 0.642 MB / 0.8025 GB, free: 40.88 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001261/0.5628, allocations: 145.4 kB / 0.8026 GB, free: 40.74 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.363e-05/0.5629, allocations: 12.66 kB / 0.8026 GB, free: 40.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003132/0.5632, allocations: 32.58 kB / 0.8027 GB, free: 40.73 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.5633, allocations: 48.06 kB / 0.8027 GB, free: 40.71 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.5634, allocations: 9.422 kB / 0.8027 GB, free: 40.71 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002561/0.5636, allocations: 273.5 kB / 0.803 GB, free: 40.57 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5636, allocations: 0 / 0.803 GB, free: 40.57 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003977/0.564, allocations: 97.95 kB / 0.8031 GB, free: 40.54 MB / 0.6544 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.0001377/0.5642, allocations: 128.4 kB / 0.8032 GB, free: 40.45 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0009585/0.5651, allocations: 434.1 kB / 0.8036 GB, free: 40.28 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.5652, allocations: 0 / 0.8036 GB, free: 40.28 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0004103/0.5656, allocations: 175.9 kB / 0.8038 GB, free: 40.24 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005176/0.5661, allocations: 89.12 kB / 0.8039 GB, free: 40.2 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.5674, allocations: 0.7379 MB / 0.8046 GB, free: 39.77 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.5676, allocations: 0.8271 MB / 0.8054 GB, free: 39.06 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0002036/0.5679, allocations: 54.64 kB / 0.8054 GB, free: 39.05 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001115/0.568, allocations: 39.84 kB / 0.8055 GB, free: 39.04 MB / 0.6544 GB Notification: Performance of SimCode: time 4.61e-07/0.568, allocations: 0 / 0.8055 GB, free: 39.04 MB / 0.6544 GB Notification: Performance of Templates: time 0.01039/0.5784, allocations: 4.939 MB / 0.8103 GB, free: 38.84 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)