Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.74/1.74, allocations: 288.3 MB / 303.2 MB, free: 8.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 185 kB / 371.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.658/1.658, allocations: 205.4 MB / 0.6306 GB, free: 10.02 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008255/0.0008256, allocations: 101.6 kB / 0.7439 GB, free: 5.949 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003545, allocations: 11.09 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2554, allocations: 115.3 MB / 0.9794 GB, free: 27.71 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.0037/0.2591, allocations: 2.511 MB / 0.9819 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.003075/0.2623, allocations: 1.088 MB / 0.9829 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007446/0.2631, allocations: 19.88 kB / 0.983 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0003622/0.2635, allocations: 39.59 kB / 0.983 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0008803/0.2644, allocations: 95.64 kB / 0.9831 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.2657, allocations: 234 kB / 0.9833 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001013/0.2667, allocations: 416.4 kB / 0.9837 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008123/0.2676, allocations: 348.2 kB / 0.984 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00034/0.2679, allocations: 175.3 kB / 0.9842 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003056/0.2682, allocations: 175 kB / 0.9844 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 8.825e-05/0.2683, allocations: 20 kB / 0.9844 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.2685, allocations: 23.98 kB / 0.9844 GB, free: 22.56 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 9.834e-05/0.2686, allocations: 83.61 kB / 0.9845 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.2687, allocations: 105.5 kB / 0.9846 GB, free: 22.37 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0006088/0.2693, allocations: 0.5418 MB / 0.9851 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.2694, allocations: 0 / 0.9851 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.194e-06/0.2694, allocations: 0 / 0.9851 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.626e-05/0.2694, allocations: 0 / 0.9851 GB, free: 21.83 MB / 0.6198 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.002109/0.2715, allocations: 0.8001 MB / 0.9859 GB, free: 20.97 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.2716, allocations: 8.031 kB / 0.9859 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002014/0.2718, allocations: 59.25 kB / 0.986 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008666/0.2727, allocations: 423.5 kB / 0.9864 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.399e-05/0.2728, allocations: 41 kB / 0.9864 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.2729, allocations: 48 kB / 0.9865 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.2744, allocations: 0.539 MB / 0.987 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.2744, allocations: 4 kB / 0.987 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.162e-05/0.2745, allocations: 20 kB / 0.987 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.2745, allocations: 12 kB / 0.987 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001463/0.276, allocations: 423.6 kB / 0.9874 GB, free: 19.34 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003021/0.279, allocations: 1.864 MB / 0.9892 GB, free: 17.39 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.2805, allocations: 362.9 kB / 0.9896 GB, free: 17.03 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.019e-05/0.2806, allocations: 11.98 kB / 0.9896 GB, free: 17.02 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008605/0.2815, allocations: 225.4 kB / 0.9898 GB, free: 16.79 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=34): time 5.811e-06/0.2815, allocations: 4 kB / 0.9898 GB, free: 16.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=34): time 0.002031/0.2836, allocations: 0.4935 MB / 0.9903 GB, free: 16.29 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.2836, allocations: 59.39 kB / 0.9904 GB, free: 16.21 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008099/0.2845, allocations: 405.4 kB / 0.9907 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.13e-05/0.2846, allocations: 45.69 kB / 0.9908 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002908/0.2849, allocations: 252.1 kB / 0.991 GB, free: 15.52 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/0.285, allocations: 98.73 kB / 0.9911 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.56e-05/0.2851, allocations: 8 kB / 0.9911 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001629/0.2852, allocations: 358.8 kB / 0.9915 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000657/0.2859, allocations: 161 kB / 0.9916 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006635/0.2866, allocations: 269.9 kB / 0.9919 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006882/0.2873, allocations: 203.2 kB / 0.9921 GB, free: 14.39 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.2873, allocations: 4 kB / 0.9921 GB, free: 14.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00165/0.289, allocations: 0.5342 MB / 0.9926 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.391e-05/0.2891, allocations: 37.7 kB / 0.9926 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.2891, allocations: 4 kB / 0.9926 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.113e-05/0.2891, allocations: 4 kB / 0.9926 GB, free: 13.79 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004698/0.2896, allocations: 79.88 kB / 0.9927 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.897e-05/0.2896, allocations: 11.94 kB / 0.9927 GB, free: 13.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005903/0.2902, allocations: 91.39 kB / 0.9928 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.935e-05/0.2903, allocations: 20 kB / 0.9928 GB, free: 13.59 MB / 0.6198 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,$whenCondition2,$whenCondition1,$PRE.TMix.T_start,TMix.T_start,$PRE.TMix.count,TMix.count,$PRE.preHeatCoil.preHeaOn.y,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.active,$PRE.preHeatCoil.pumOff.localActive,preHeatCoil.pumOff.localActive,$PRE.preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.newActive,$PRE.preHeatCoil.pumOff.oldActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,$PRE.preHeatCoil.pumOn.localActive,preHeatCoil.pumOn.localActive,$PRE.preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.newActive,$PRE.preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,preHeatCoil.toOff.enableFire,preHeatCoil.toOff.fire,$PRE.preHeatCoil.toOff.t_start,preHeatCoil.toOff.t_start,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003471/0.2907, allocations: 206.6 kB / 0.993 GB, free: 13.38 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.2908, allocations: 39.48 kB / 0.9931 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001345/0.2922, allocations: 409.6 kB / 0.9935 GB, free: 12.93 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.415e-06/0.2922, allocations: 4 kB / 0.9935 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.2922, allocations: 0 / 0.9935 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.2922, allocations: 0 / 0.9935 GB, free: 12.92 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.2945, allocations: 0.9794 MB / 0.9944 GB, free: 11.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.2946, allocations: 4 kB / 0.9944 GB, free: 11.88 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003813/0.2949, allocations: 59.83 kB / 0.9945 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-06/0.295, allocations: 0 / 0.9945 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-05/0.295, allocations: 19.91 kB / 0.9945 GB, free: 11.8 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/0.295, allocations: 7.984 kB / 0.9945 GB, free: 11.79 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.2951, allocations: 4.031 kB / 0.9945 GB, free: 11.79 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.297, allocations: 0.669 MB / 0.9952 GB, free: 11.09 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/0.2972, allocations: 148.6 kB / 0.9953 GB, free: 10.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.2973, allocations: 8 kB / 0.9953 GB, free: 10.92 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005237/0.2979, allocations: 44.02 kB / 0.9954 GB, free: 10.88 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.298, allocations: 47.92 kB / 0.9954 GB, free: 10.83 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.261e-05/0.2981, allocations: 12 kB / 0.9954 GB, free: 10.82 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0004144/0.2985, allocations: 259.2 kB / 0.9957 GB, free: 10.57 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.4e-07/0.2985, allocations: 0 / 0.9957 GB, free: 10.57 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0007887/0.2993, allocations: 103.7 kB / 0.9958 GB, free: 10.47 MB / 0.6198 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.localActive,preHeatCoil.pumOff.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,TMix.T_start,TMix.count,preHeatCoil.preHeaOn.y,preHeatCoil.pumOff.active,preHeatCoil.pumOff.newActive,preHeatCoil.pumOff.oldActive,preHeatCoil.toOn.enableFire,preHeatCoil.stateGraphRoot.activeSteps,preHeatCoil.pumOn.newActive,preHeatCoil.pumOn.oldActive,preHeatCoil.pumOn.active,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002128/0.2996, allocations: 129.4 kB / 0.9959 GB, free: 10.34 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.001442/0.301, allocations: 451.4 kB / 0.9963 GB, free: 9.883 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.301, allocations: 0 / 0.9963 GB, free: 9.883 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0006511/0.3017, allocations: 196.8 kB / 0.9965 GB, free: 9.691 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006771/0.3024, allocations: 66.27 kB / 0.9966 GB, free: 9.621 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002044/0.3045, allocations: 0.8736 MB / 0.9974 GB, free: 8.715 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003402/0.3048, allocations: 0.8318 MB / 0.9982 GB, free: 7.855 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.000369/0.3052, allocations: 55.44 kB / 0.9983 GB, free: 7.801 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001742/0.3054, allocations: 43.42 kB / 0.9983 GB, free: 7.758 MB / 0.6198 GB Notification: Performance of SimCode: time 1.493e-06/0.3054, allocations: 0 / 0.9983 GB, free: 7.758 MB / 0.6198 GB Notification: Performance of Templates: time 0.01239/0.3178, allocations: 4.401 MB / 1.003 GB, free: 3.402 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile (rm -f Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.sim & ./Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.pipe 2>&1)