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.001502/0.001502, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001137/0.001137, allocations: 193 kB / 16.13 MB, free: 6.652 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.301/1.301, allocations: 205.1 MB / 222 MB, free: 4.742 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.627/1.627, allocations: 292.3 MB / 0.5484 GB, free: 13.69 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.001254/0.001254, allocations: 62 kB / 0.6708 GB, free: 26.54 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2123/0.2135, allocations: 114.5 MB / 0.7827 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.004099/0.2177, allocations: 3.008 MB / 0.7856 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001893/0.2196, allocations: 1.135 MB / 0.7867 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/0.2198, allocations: 15.94 kB / 0.7867 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002373/0.2201, allocations: 63.44 kB / 0.7868 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.2203, allocations: 59.52 kB / 0.7868 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006787/0.2209, allocations: 315.3 kB / 0.7871 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005804/0.2215, allocations: 0.6443 MB / 0.7878 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005194/0.2221, allocations: 455.5 kB / 0.7882 GB, free: 8.301 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001917/0.2223, allocations: 199.1 kB / 0.7884 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.2225, allocations: 222.8 kB / 0.7886 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.082e-05/0.2226, allocations: 32 kB / 0.7886 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.507e-05/0.2227, allocations: 39.98 kB / 0.7887 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.105e-05/0.2228, allocations: 103.5 kB / 0.7888 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.223, allocations: 242.6 kB / 0.789 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005361/0.2235, allocations: 0.6659 MB / 0.7897 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2235, allocations: 0 / 0.7897 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.72e-07/0.2235, allocations: 0 / 0.7897 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.2235, allocations: 4 kB / 0.7897 GB, free: 6.805 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.001586/0.2251, allocations: 0.8781 MB / 0.7905 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.2252, allocations: 8.031 kB / 0.7905 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.2253, allocations: 64.19 kB / 0.7906 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005738/0.2259, allocations: 436.6 kB / 0.791 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/0.2259, allocations: 37.38 kB / 0.791 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.193e-05/0.226, allocations: 52.36 kB / 0.7911 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.227, allocations: 0.5394 MB / 0.7916 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.227, allocations: 0 / 0.7916 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.477e-05/0.2271, allocations: 20 kB / 0.7916 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.2271, allocations: 12 kB / 0.7917 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000934/0.2281, allocations: 399.6 kB / 0.792 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002143/0.2302, allocations: 1.844 MB / 0.7938 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008745/0.2311, allocations: 342.9 kB / 0.7942 GB, free: 1.98 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003739/0.2315, allocations: 172.1 kB / 0.7943 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.2315, allocations: 7.938 kB / 0.7943 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005394/0.2321, allocations: 217.4 kB / 0.7945 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=34): time 3.376e-06/0.2321, allocations: 0 / 0.7945 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of matching and sorting (n=34): time 0.00119/0.2333, allocations: 478.7 kB / 0.795 GB, free: 1.109 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.2333, allocations: 63.33 kB / 0.7951 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004074/0.2337, allocations: 413.3 kB / 0.7955 GB, free: 0.625 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.399e-05/0.2338, allocations: 41.7 kB / 0.7955 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.234, allocations: 244.3 kB / 0.7957 GB, free: 340 kB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.009e-05/0.2341, allocations: 98.64 kB / 0.7958 GB, free: 240 kB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000142/0.2342, allocations: 106.2 kB / 0.7959 GB, free: 128 kB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.2344, allocations: 358.8 kB / 0.7963 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004006/0.2348, allocations: 153 kB / 0.7964 GB, free: 15.61 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004456/0.2352, allocations: 257.9 kB / 0.7967 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007834/0.236, allocations: 403.4 kB / 0.797 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.236, allocations: 0 / 0.797 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001043/0.2371, allocations: 0.5182 MB / 0.7975 GB, free: 14.35 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.847e-05/0.2371, allocations: 37.69 kB / 0.7976 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.555e-06/0.2371, allocations: 4 kB / 0.7976 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.2372, allocations: 4 kB / 0.7976 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003133/0.2375, allocations: 76.23 kB / 0.7977 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.2375, allocations: 8 kB / 0.7977 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003529/0.2379, allocations: 75.39 kB / 0.7977 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-05/0.2379, allocations: 19.98 kB / 0.7978 GB, free: 14.12 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.0002251/0.2381, allocations: 209.7 kB / 0.798 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.563e-05/0.2382, allocations: 39.47 kB / 0.798 GB, free: 13.87 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009053/0.2391, allocations: 390.1 kB / 0.7984 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.2391, allocations: 4 kB / 0.7984 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.2391, allocations: 3.938 kB / 0.7984 GB, free: 13.47 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.2392, allocations: 7.984 kB / 0.7984 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.2407, allocations: 0.9451 MB / 0.7993 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.2407, allocations: 0 / 0.7993 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.2409, allocations: 55.92 kB / 0.7994 GB, free: 12.41 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.241, allocations: 4 kB / 0.7994 GB, free: 12.4 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.241, allocations: 4 kB / 0.7994 GB, free: 12.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.241, allocations: 4 kB / 0.7994 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.241, allocations: 0 / 0.7994 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001276/0.2423, allocations: 0.6282 MB / 0.8 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.2424, allocations: 148.5 kB / 0.8001 GB, free: 11.58 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.587e-05/0.2425, allocations: 8 kB / 0.8001 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003219/0.2428, allocations: 47.95 kB / 0.8002 GB, free: 11.53 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.2429, allocations: 43.88 kB / 0.8002 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.733e-05/0.243, allocations: 15.94 kB / 0.8002 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002753/0.2433, allocations: 267.2 kB / 0.8005 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2433, allocations: 0 / 0.8005 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003873/0.2437, allocations: 99.69 kB / 0.8006 GB, free: 11.11 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.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 (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.000155/0.2438, allocations: 121.4 kB / 0.8007 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009334/0.2448, allocations: 431.6 kB / 0.8011 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2448, allocations: 0 / 0.8011 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004406/0.2452, allocations: 179.8 kB / 0.8013 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.2458, allocations: 87.25 kB / 0.8014 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.2472, allocations: 0.9088 MB / 0.8023 GB, free: 9.352 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.2475, allocations: 0.8235 MB / 0.8031 GB, free: 8.5 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002092/0.2477, allocations: 59.44 kB / 0.8031 GB, free: 8.441 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.2479, allocations: 35.44 kB / 0.8032 GB, free: 8.41 MB / 0.6231 GB Notification: Performance of SimCode: time 3.61e-07/0.2479, allocations: 0 / 0.8032 GB, free: 8.41 MB / 0.6231 GB Notification: Performance of Templates: time 0.008554/0.2564, allocations: 4.603 MB / 0.8076 GB, free: 3.852 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)