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.001183/0.001189, allocations: 104.2 kB / 16.36 MB, free: 6.301 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.00114/0.00114, allocations: 192.5 kB / 17.29 MB, free: 5.875 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.357/1.357, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.844/1.844, allocations: 292.3 MB / 0.5496 GB, free: 17.38 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.001397/0.001397, allocations: 75.88 kB / 0.6729 GB, free: 5.832 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2287, allocations: 114.6 MB / 0.7848 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004638/0.2334, allocations: 2.938 MB / 0.7877 GB, free: 208 kB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.4098/0.6432, allocations: 1.146 MB / 0.7888 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003964/0.6437, allocations: 15.44 kB / 0.7888 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0002985/0.644, allocations: 78.67 kB / 0.7889 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.6442, allocations: 74.92 kB / 0.7889 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008324/0.6451, allocations: 346 kB / 0.7893 GB, free: 46.47 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0006807/0.6458, allocations: 0.7108 MB / 0.79 GB, free: 46.47 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005794/0.6463, allocations: 498.6 kB / 0.7904 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002132/0.6466, allocations: 237.9 kB / 0.7907 GB, free: 46.4 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002261/0.6468, allocations: 258.6 kB / 0.7909 GB, free: 46.34 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 7.902e-05/0.6469, allocations: 70.97 kB / 0.791 GB, free: 46.34 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.647, allocations: 74.55 kB / 0.791 GB, free: 46.34 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.6471, allocations: 140.9 kB / 0.7912 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002035/0.6474, allocations: 274.9 kB / 0.7914 GB, free: 46.24 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0005952/0.648, allocations: 0.7404 MB / 0.7922 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.648, allocations: 2.625 kB / 0.7922 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.375e-06/0.648, allocations: 0 / 0.7922 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.66e-05/0.648, allocations: 0 / 0.7922 GB, free: 46.14 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.001548/0.6496, allocations: 0.87 MB / 0.793 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.6496, allocations: 11.09 kB / 0.793 GB, free: 45.59 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.6497, allocations: 65.31 kB / 0.7931 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006733/0.6504, allocations: 446.4 kB / 0.7935 GB, free: 45.32 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.6505, allocations: 40.62 kB / 0.7936 GB, free: 45.32 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.142e-05/0.6505, allocations: 46.94 kB / 0.7936 GB, free: 45.32 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009336/0.6515, allocations: 0.5345 MB / 0.7941 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.6515, allocations: 5.922 kB / 0.7941 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.339e-05/0.6516, allocations: 18.34 kB / 0.7941 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.6516, allocations: 10.75 kB / 0.7942 GB, free: 45.2 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008714/0.6525, allocations: 407.8 kB / 0.7945 GB, free: 45.19 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/0.6544, allocations: 1.831 MB / 0.7963 GB, free: 43.99 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008688/0.6553, allocations: 344.2 kB / 0.7967 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003618/0.6556, allocations: 170.9 kB / 0.7968 GB, free: 43.8 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.259e-05/0.6557, allocations: 14.97 kB / 0.7968 GB, free: 43.8 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004883/0.6562, allocations: 210 kB / 0.797 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=34): time 2.294e-06/0.6562, allocations: 0 / 0.797 GB, free: 43.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=34): time 0.001217/0.6574, allocations: 476.2 kB / 0.7975 GB, free: 43.54 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.6575, allocations: 55.72 kB / 0.7975 GB, free: 43.48 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004046/0.6579, allocations: 405.4 kB / 0.7979 GB, free: 43.27 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.506e-05/0.6579, allocations: 46 kB / 0.798 GB, free: 43.23 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001722/0.6581, allocations: 252.9 kB / 0.7982 GB, free: 43.03 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 7.331e-05/0.6582, allocations: 94 kB / 0.7983 GB, free: 42.96 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.6584, allocations: 115.3 kB / 0.7984 GB, free: 42.89 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.286e-05/0.6585, allocations: 351.5 kB / 0.7987 GB, free: 42.56 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003932/0.6589, allocations: 155.5 kB / 0.7989 GB, free: 42.52 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004395/0.6593, allocations: 263.5 kB / 0.7991 GB, free: 42.33 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000743/0.6601, allocations: 403.4 kB / 0.7995 GB, free: 42.08 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.6601, allocations: 0 / 0.7995 GB, free: 42.08 MB / 0.6544 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001014/0.6611, allocations: 0.5151 MB / 0.8 GB, free: 41.87 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.6611, allocations: 35.2 kB / 0.8001 GB, free: 41.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.6612, allocations: 2.875 kB / 0.8001 GB, free: 41.84 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.6612, allocations: 9.281 kB / 0.8001 GB, free: 41.83 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003163/0.6615, allocations: 75.89 kB / 0.8002 GB, free: 41.83 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.6615, allocations: 7.016 kB / 0.8002 GB, free: 41.83 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003674/0.6619, allocations: 73.39 kB / 0.8002 GB, free: 41.79 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.954e-05/0.662, allocations: 22.84 kB / 0.8003 GB, free: 41.79 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.0002097/0.6622, allocations: 211.1 kB / 0.8005 GB, free: 41.63 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.818e-05/0.6622, allocations: 42.06 kB / 0.8005 GB, free: 41.61 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009236/0.6632, allocations: 380.3 kB / 0.8009 GB, free: 41.46 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.6632, allocations: 7.125 kB / 0.8009 GB, free: 41.45 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.6632, allocations: 3.469 kB / 0.8009 GB, free: 41.45 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.6632, allocations: 4.922 kB / 0.8009 GB, free: 41.45 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.6648, allocations: 0.9441 MB / 0.8018 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.6648, allocations: 4.734 kB / 0.8018 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002629/0.6651, allocations: 46.36 kB / 0.8018 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.573e-06/0.6651, allocations: 1.656 kB / 0.8018 GB, free: 40.9 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.93e-05/0.6651, allocations: 13.5 kB / 0.8019 GB, free: 40.89 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.6651, allocations: 0 / 0.8019 GB, free: 40.89 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.6652, allocations: 4.312 kB / 0.8019 GB, free: 40.89 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/0.6665, allocations: 0.6355 MB / 0.8025 GB, free: 40.57 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.6666, allocations: 150.8 kB / 0.8026 GB, free: 40.43 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.657e-05/0.6667, allocations: 9.031 kB / 0.8026 GB, free: 40.42 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003208/0.667, allocations: 40.5 kB / 0.8027 GB, free: 40.41 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.6672, allocations: 44.89 kB / 0.8027 GB, free: 40.4 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.07e-05/0.6672, allocations: 13.56 kB / 0.8027 GB, free: 40.39 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002998/0.6675, allocations: 266 kB / 0.803 GB, free: 40.26 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6675, allocations: 0.5938 kB / 0.803 GB, free: 40.26 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0004594/0.668, allocations: 94 kB / 0.8031 GB, free: 40.23 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.0001798/0.6682, allocations: 136.2 kB / 0.8032 GB, free: 40.13 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001089/0.6693, allocations: 424.3 kB / 0.8036 GB, free: 39.98 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.6693, allocations: 4.25 kB / 0.8036 GB, free: 39.97 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0004671/0.6698, allocations: 172.5 kB / 0.8038 GB, free: 39.93 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005688/0.6703, allocations: 88.41 kB / 0.8039 GB, free: 39.9 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001622/0.672, allocations: 0.772 MB / 0.8046 GB, free: 39.43 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003674/0.6724, allocations: 0.8215 MB / 0.8054 GB, free: 38.73 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.6725, allocations: 46.36 kB / 0.8055 GB, free: 38.71 MB / 0.6544 GB Notification: Performance of SimCode: time 6.21e-07/0.6725, allocations: 0 / 0.8055 GB, free: 38.71 MB / 0.6544 GB Notification: Performance of Templates: time 0.01536/0.6879, allocations: 5.915 MB / 0.8112 GB, free: 38.22 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 -lv LOG_STATS > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)