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.001404/0.001404, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 186.7 kB / 16.62 MB, free: 6.582 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.38/1.38, allocations: 205.1 MB / 222.5 MB, free: 4.473 MB / 174.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.726/1.726, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.002461/0.002461, allocations: 70.81 kB / 0.6722 GB, free: 25.88 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.252, allocations: 114.5 MB / 0.7841 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.005015/0.2571, allocations: 2.931 MB / 0.787 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002538/0.2597, allocations: 1.158 MB / 0.7881 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005167/0.2602, allocations: 15.94 kB / 0.7881 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003716/0.2607, allocations: 75.14 kB / 0.7882 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004112/0.2611, allocations: 79.25 kB / 0.7883 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.2621, allocations: 342.5 kB / 0.7886 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0009656/0.2631, allocations: 0.7185 MB / 0.7893 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007781/0.2639, allocations: 496.2 kB / 0.7898 GB, free: 6.93 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003883/0.2643, allocations: 247.1 kB / 0.79 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003714/0.2647, allocations: 246.8 kB / 0.7902 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001377/0.2648, allocations: 68 kB / 0.7903 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001481/0.265, allocations: 83.98 kB / 0.7904 GB, free: 6.297 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.2651, allocations: 139.5 kB / 0.7905 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002824/0.2654, allocations: 274.6 kB / 0.7908 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007954/0.2662, allocations: 0.7435 MB / 0.7915 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2662, allocations: 0 / 0.7915 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.954e-06/0.2663, allocations: 0 / 0.7915 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.833e-05/0.2663, allocations: 0 / 0.7915 GB, free: 5.145 MB / 0.6075 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.001831/0.2681, allocations: 0.8743 MB / 0.7924 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.2682, allocations: 8.031 kB / 0.7924 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.2683, allocations: 64.19 kB / 0.7924 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006806/0.269, allocations: 448.5 kB / 0.7929 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.052e-05/0.269, allocations: 41.31 kB / 0.7929 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.93e-05/0.2691, allocations: 48.38 kB / 0.7929 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009742/0.2701, allocations: 0.5355 MB / 0.7935 GB, free: 3.008 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.2701, allocations: 3.938 kB / 0.7935 GB, free: 3.004 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-05/0.2702, allocations: 20 kB / 0.7935 GB, free: 2.984 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.2702, allocations: 12 kB / 0.7935 GB, free: 2.973 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009364/0.2711, allocations: 399.7 kB / 0.7939 GB, free: 2.578 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.2732, allocations: 1.829 MB / 0.7957 GB, free: 0.6719 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000878/0.2741, allocations: 346.9 kB / 0.796 GB, free: 332 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000371/0.2745, allocations: 171.9 kB / 0.7962 GB, free: 160 kB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.2746, allocations: 7.938 kB / 0.7962 GB, free: 152 kB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005003/0.2751, allocations: 217.4 kB / 0.7964 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=34): time 2.004e-06/0.2751, allocations: 4 kB / 0.7964 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of matching and sorting (n=34): time 0.001225/0.2763, allocations: 470.8 kB / 0.7968 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.2764, allocations: 55.41 kB / 0.7969 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004068/0.2768, allocations: 417.3 kB / 0.7973 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.716e-05/0.2768, allocations: 37.7 kB / 0.7973 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.277, allocations: 252.3 kB / 0.7976 GB, free: 14.68 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 8.757e-05/0.2771, allocations: 98.66 kB / 0.7977 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.2773, allocations: 106.2 kB / 0.7978 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2774, allocations: 350.8 kB / 0.7981 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003987/0.2778, allocations: 149 kB / 0.7982 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004538/0.2783, allocations: 269.8 kB / 0.7985 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007585/0.2791, allocations: 399.4 kB / 0.7989 GB, free: 13.23 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2791, allocations: 0 / 0.7989 GB, free: 13.23 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001015/0.2801, allocations: 0.5223 MB / 0.7994 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.971e-05/0.2802, allocations: 33.7 kB / 0.7994 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.2802, allocations: 4 kB / 0.7994 GB, free: 12.65 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.2802, allocations: 4 kB / 0.7994 GB, free: 12.65 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003119/0.2805, allocations: 75.83 kB / 0.7995 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.2805, allocations: 7.984 kB / 0.7995 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003426/0.2809, allocations: 79.59 kB / 0.7996 GB, free: 12.49 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.948e-05/0.2809, allocations: 23.98 kB / 0.7996 GB, free: 12.46 MB / 0.6231 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.0002438/0.2812, allocations: 198.3 kB / 0.7998 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.774e-05/0.2813, allocations: 51.45 kB / 0.7998 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009347/0.2822, allocations: 390.1 kB / 0.8002 GB, free: 11.83 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2822, allocations: 4 kB / 0.8002 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.2822, allocations: 0 / 0.8002 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2822, allocations: 0 / 0.8002 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001467/0.2837, allocations: 0.9534 MB / 0.8011 GB, free: 10.81 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2837, allocations: 3.938 kB / 0.8011 GB, free: 10.81 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002543/0.284, allocations: 51.89 kB / 0.8012 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.284, allocations: 3.984 kB / 0.8012 GB, free: 10.75 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/0.284, allocations: 8 kB / 0.8012 GB, free: 10.75 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.284, allocations: 4 kB / 0.8012 GB, free: 10.74 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.284, allocations: 4.031 kB / 0.8012 GB, free: 10.74 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.2853, allocations: 0.6331 MB / 0.8018 GB, free: 10.08 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.2855, allocations: 144.6 kB / 0.802 GB, free: 9.922 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.439e-05/0.2855, allocations: 11.98 kB / 0.802 GB, free: 9.91 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003062/0.2858, allocations: 31.97 kB / 0.802 GB, free: 9.879 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.286, allocations: 47.88 kB / 0.8021 GB, free: 9.832 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.687e-05/0.286, allocations: 12 kB / 0.8021 GB, free: 9.82 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002556/0.2862, allocations: 271.2 kB / 0.8023 GB, free: 9.555 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2863, allocations: 0 / 0.8023 GB, free: 9.555 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003864/0.2866, allocations: 99.69 kB / 0.8024 GB, free: 9.457 MB / 0.6231 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.0001689/0.2868, allocations: 117.4 kB / 0.8025 GB, free: 9.336 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009384/0.2878, allocations: 435.1 kB / 0.8029 GB, free: 8.898 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2878, allocations: 0 / 0.8029 GB, free: 8.898 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004251/0.2882, allocations: 180.4 kB / 0.8031 GB, free: 8.723 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005253/0.2887, allocations: 100.7 kB / 0.8032 GB, free: 8.637 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.2901, allocations: 0.7356 MB / 0.8039 GB, free: 7.871 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.2905, allocations: 0.8274 MB / 0.8047 GB, free: 7.016 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001958/0.2907, allocations: 55.38 kB / 0.8048 GB, free: 6.957 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.2908, allocations: 43.42 kB / 0.8048 GB, free: 6.918 MB / 0.6231 GB Notification: Performance of SimCode: time 2.61e-07/0.2908, allocations: 4 kB / 0.8048 GB, free: 6.914 MB / 0.6231 GB Notification: Performance of Templates: time 0.008962/0.2998, allocations: 4.933 MB / 0.8097 GB, free: 2.027 MB / 0.6231 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)