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.0009604/0.0009603, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.007588/0.007588, allocations: 174.1 kB / 16.26 MB, free: 6.273 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.345/1.345, allocations: 205.4 MB / 222.5 MB, free: 5.547 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.695/1.695, allocations: 292.7 MB / 0.5502 GB, free: 14.44 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.0005432/0.0005433, allocations: 20.81 kB / 0.6743 GB, free: 25.68 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2079, allocations: 116.3 MB / 0.7879 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil): time 0.003184/0.2112, allocations: 2.607 MB / 0.7904 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002129/0.2133, allocations: 1.139 MB / 0.7915 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003719/0.2137, allocations: 15.94 kB / 0.7916 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002331/0.214, allocations: 55.45 kB / 0.7916 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.2142, allocations: 55.56 kB / 0.7917 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007725/0.215, allocations: 306.5 kB / 0.792 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000731/0.2158, allocations: 0.6559 MB / 0.7926 GB, free: 6.699 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006324/0.2164, allocations: 412.9 kB / 0.793 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002359/0.2167, allocations: 167.1 kB / 0.7931 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.2169, allocations: 198.8 kB / 0.7933 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.497e-05/0.217, allocations: 16 kB / 0.7934 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.792e-05/0.2171, allocations: 28 kB / 0.7934 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.836e-05/0.2172, allocations: 87.53 kB / 0.7935 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001963/0.2174, allocations: 224.4 kB / 0.7937 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005541/0.2179, allocations: 0.65 MB / 0.7943 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.218, allocations: 3.938 kB / 0.7943 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.994e-06/0.218, allocations: 0 / 0.7943 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.174e-05/0.218, allocations: 0 / 0.7943 GB, free: 4.914 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.001598/0.2196, allocations: 0.8003 MB / 0.7951 GB, free: 4.055 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.2196, allocations: 8.031 kB / 0.7951 GB, free: 4.047 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.2198, allocations: 68.19 kB / 0.7952 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000617/0.2204, allocations: 432.6 kB / 0.7956 GB, free: 3.516 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.992e-05/0.2205, allocations: 37.38 kB / 0.7956 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.3e-05/0.2206, allocations: 48.38 kB / 0.7957 GB, free: 3.434 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.2216, allocations: 0.5549 MB / 0.7962 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.2216, allocations: 0 / 0.7962 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.714e-05/0.2217, allocations: 20 kB / 0.7962 GB, free: 2.824 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.599e-05/0.2217, allocations: 12 kB / 0.7962 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.2227, allocations: 427.6 kB / 0.7966 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002221/0.225, allocations: 1.852 MB / 0.7985 GB, free: 476 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009328/0.2259, allocations: 366.9 kB / 0.7988 GB, free: 100 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000415/0.2263, allocations: 180.7 kB / 0.799 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.527e-05/0.2264, allocations: 11.94 kB / 0.799 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005315/0.2269, allocations: 225.5 kB / 0.7992 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=34): time 2.053e-06/0.2269, allocations: 4 kB / 0.7992 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of matching and sorting (n=34): time 0.001267/0.2282, allocations: 0.4908 MB / 0.7997 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.2282, allocations: 59.41 kB / 0.7997 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004025/0.2287, allocations: 417.2 kB / 0.8001 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.688e-05/0.2287, allocations: 41.7 kB / 0.8002 GB, free: 14.64 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.2289, allocations: 256.2 kB / 0.8004 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 7.471e-05/0.229, allocations: 90.75 kB / 0.8005 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.546e-05/0.2291, allocations: 65.67 kB / 0.8006 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.2292, allocations: 350.8 kB / 0.8009 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004279/0.2296, allocations: 165 kB / 0.8011 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004738/0.2301, allocations: 273.9 kB / 0.8013 GB, free: 13.41 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008249/0.2309, allocations: 427.4 kB / 0.8017 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.231, allocations: 0 / 0.8017 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001127/0.2321, allocations: 0.5492 MB / 0.8023 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.382e-05/0.2321, allocations: 33.7 kB / 0.8023 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.2322, allocations: 4 kB / 0.8023 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.2322, allocations: 4 kB / 0.8023 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003261/0.2325, allocations: 83.81 kB / 0.8024 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.2325, allocations: 12.25 kB / 0.8024 GB, free: 12.24 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003855/0.2329, allocations: 79.48 kB / 0.8025 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.233, allocations: 16 kB / 0.8025 GB, free: 12.14 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.0002301/0.2332, allocations: 217.6 kB / 0.8027 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.195e-05/0.2333, allocations: 43.38 kB / 0.8027 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009648/0.2343, allocations: 410.1 kB / 0.8031 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.2343, allocations: 4 kB / 0.8031 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2343, allocations: 0 / 0.8031 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.2343, allocations: 4 kB / 0.8031 GB, free: 11.46 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001577/0.2359, allocations: 0.9802 MB / 0.8041 GB, free: 10.43 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2359, allocations: 0 / 0.8041 GB, free: 10.43 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002684/0.2362, allocations: 51.95 kB / 0.8041 GB, free: 10.38 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.2362, allocations: 4.031 kB / 0.8041 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.693e-05/0.2362, allocations: 15.94 kB / 0.8042 GB, free: 10.36 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.2362, allocations: 7.984 kB / 0.8042 GB, free: 10.35 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2363, allocations: 0 / 0.8042 GB, free: 10.35 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.2376, allocations: 0.6711 MB / 0.8048 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.2377, allocations: 144.6 kB / 0.805 GB, free: 9.496 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.777e-05/0.2378, allocations: 12 kB / 0.805 GB, free: 9.484 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.2381, allocations: 48 kB / 0.805 GB, free: 9.438 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.2383, allocations: 43.89 kB / 0.8051 GB, free: 9.395 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/0.2383, allocations: 15.98 kB / 0.8051 GB, free: 9.379 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002685/0.2386, allocations: 263.2 kB / 0.8053 GB, free: 9.121 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2386, allocations: 0 / 0.8053 GB, free: 9.121 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0004034/0.239, allocations: 95.69 kB / 0.8054 GB, free: 9.027 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.0001669/0.2392, allocations: 129.4 kB / 0.8055 GB, free: 8.891 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0009884/0.2402, allocations: 459.3 kB / 0.806 GB, free: 8.43 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2402, allocations: 0 / 0.806 GB, free: 8.43 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000438/0.2406, allocations: 196.2 kB / 0.8062 GB, free: 8.238 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005591/0.2412, allocations: 75.95 kB / 0.8062 GB, free: 8.168 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.2426, allocations: 0.9181 MB / 0.8071 GB, free: 7.219 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003611/0.243, allocations: 0.8235 MB / 0.8079 GB, free: 6.367 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0002117/0.2432, allocations: 59.42 kB / 0.808 GB, free: 6.305 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.2433, allocations: 35.44 kB / 0.808 GB, free: 6.273 MB / 0.6231 GB Notification: Performance of SimCode: time 4.21e-07/0.2433, allocations: 0 / 0.808 GB, free: 6.273 MB / 0.6231 GB Notification: Performance of Templates: time 0.008721/0.2521, allocations: 4.57 MB / 0.8125 GB, free: 1.75 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.PreHeatCoil.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: