Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.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.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 105.4 kB / 15.7 MB, free: 24 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.001668/0.001668, allocations: 192.9 kB / 16.64 MB, free: 6.594 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.406/1.406, allocations: 205.1 MB / 222.5 MB, free: 4.574 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.728/1.728, 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.001515/0.001515, allocations: 72.94 kB / 0.6723 GB, free: 26.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.2032, allocations: 114.6 MB / 0.7841 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003372/0.2066, allocations: 2.266 MB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001414/0.2081, allocations: 0.9827 MB / 0.7873 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.2082, allocations: 11.94 kB / 0.7873 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.2084, allocations: 63.34 kB / 0.7874 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.2086, allocations: 55.47 kB / 0.7874 GB, free: 9.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004806/0.2091, allocations: 279.6 kB / 0.7877 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005325/0.2096, allocations: 0.6324 MB / 0.7883 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004931/0.2101, allocations: 468.5 kB / 0.7888 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002158/0.2104, allocations: 219.3 kB / 0.789 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/0.2106, allocations: 223 kB / 0.7892 GB, free: 7.535 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.659e-05/0.2107, allocations: 64 kB / 0.7892 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.2108, allocations: 87.98 kB / 0.7893 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.2109, allocations: 151.6 kB / 0.7895 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.2111, allocations: 246.8 kB / 0.7897 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005473/0.2117, allocations: 0.728 MB / 0.7904 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2117, allocations: 0 / 0.7904 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2117, allocations: 0 / 0.7904 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.252e-05/0.2117, allocations: 0 / 0.7904 GB, free: 6.266 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.000969/0.2127, allocations: 0.7358 MB / 0.7911 GB, free: 5.484 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.2127, allocations: 12.03 kB / 0.7911 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.043e-05/0.2128, allocations: 52.36 kB / 0.7912 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003613/0.2132, allocations: 340.3 kB / 0.7915 GB, free: 5.051 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.886e-05/0.2132, allocations: 45.69 kB / 0.7916 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.363e-05/0.2133, allocations: 52.38 kB / 0.7916 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008342/0.2142, allocations: 0.5816 MB / 0.7922 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.2142, allocations: 3.984 kB / 0.7922 GB, free: 4.336 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.251e-05/0.2142, allocations: 16 kB / 0.7922 GB, free: 4.32 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.582e-05/0.2143, allocations: 24.94 kB / 0.7922 GB, free: 4.297 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006989/0.215, allocations: 427.7 kB / 0.7926 GB, free: 3.879 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.2169, allocations: 1.899 MB / 0.7945 GB, free: 1.898 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005159/0.2175, allocations: 360.3 kB / 0.7948 GB, free: 1.543 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002674/0.2177, allocations: 192.7 kB / 0.795 GB, free: 1.352 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.86e-05/0.2178, allocations: 7.984 kB / 0.795 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003385/0.2181, allocations: 229.9 kB / 0.7952 GB, free: 1.105 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=46): time 1.803e-06/0.2182, allocations: 0 / 0.7952 GB, free: 1.105 MB / 0.6075 GB Notification: Performance of matching and sorting (n=46): time 0.0007908/0.219, allocations: 470.6 kB / 0.7957 GB, free: 0.6406 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.219, allocations: 67.14 kB / 0.7958 GB, free: 0.5625 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.2192, allocations: 246.9 kB / 0.796 GB, free: 320 kB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.2193, allocations: 49.69 kB / 0.796 GB, free: 264 kB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.2194, allocations: 216.7 kB / 0.7962 GB, free: 40 kB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.2195, allocations: 118.6 kB / 0.7964 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.2197, allocations: 142.3 kB / 0.7965 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.2198, allocations: 338.8 kB / 0.7968 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000274/0.22, allocations: 161.2 kB / 0.797 GB, free: 15.28 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003635/0.2204, allocations: 288.8 kB / 0.7972 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005216/0.221, allocations: 406.4 kB / 0.7976 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.221, allocations: 0 / 0.7976 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007373/0.2217, allocations: 0.5023 MB / 0.7981 GB, free: 13.99 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.2217, allocations: 4 kB / 0.7981 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.2218, allocations: 7.984 kB / 0.7981 GB, free: 13.98 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.2218, allocations: 8.469 kB / 0.7981 GB, free: 13.97 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.222, allocations: 67.83 kB / 0.7982 GB, free: 13.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.222, allocations: 15.94 kB / 0.7982 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.2222, allocations: 55.45 kB / 0.7983 GB, free: 13.83 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.2223, allocations: 31.98 kB / 0.7983 GB, free: 13.8 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,con.t4.enableFire,con.t4.localCondition,con.t3.enableFire,con.t3.localCondition,con.discharge.active,con.discharge.oldActive,$PRE.con.discharge.oldActive,con.discharge.newActive,$PRE.con.discharge.newActive,con.discharge.localActive,$PRE.con.discharge.localActive,con.charge.active,con.charge.oldActive,$PRE.con.charge.oldActive,con.charge.newActive,$PRE.con.charge.newActive,con.charge.localActive,$PRE.con.charge.localActive,con.t2.t_start,$PRE.con.t2.t_start,con.t2.fire,con.t2.enableFire,con.t2.localCondition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.localCondition,con.alternative.split[2].available,con.stateGraphRoot.activeSteps,con.off.oldActive,$PRE.con.off.oldActive,con.off.newActive,$PRE.con.off.newActive,con.off.outPort[1].reset,con.off.inPort[1].set,con.off.localActive,$PRE.con.off.localActive,con.off.active,con.multiSwitch1.firstActiveIndex,con.multiSwitch1.u[2],con.multiSwitch1.u[1],con.greaterThreshold.y,con.not1.y,con.lessThreshold.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * 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.0002129/0.2225, allocations: 227.5 kB / 0.7985 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.163e-05/0.2226, allocations: 31.62 kB / 0.7986 GB, free: 13.54 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006976/0.2233, allocations: 423.5 kB / 0.799 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.2233, allocations: 4 kB / 0.799 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.2233, allocations: 7.938 kB / 0.799 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.2233, allocations: 7.969 kB / 0.799 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.2247, allocations: 1.117 MB / 0.8001 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.2247, allocations: 0 / 0.8001 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001446/0.2248, allocations: 35.92 kB / 0.8001 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.2249, allocations: 3.938 kB / 0.8001 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/0.2249, allocations: 19.98 kB / 0.8001 GB, free: 11.86 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/0.2249, allocations: 4 kB / 0.8001 GB, free: 11.85 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2249, allocations: 0 / 0.8001 GB, free: 11.85 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006112/0.2255, allocations: 0.493 MB / 0.8006 GB, free: 11.34 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.119e-05/0.2256, allocations: 116.5 kB / 0.8007 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.279e-05/0.2256, allocations: 15.98 kB / 0.8007 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/0.2258, allocations: 23.98 kB / 0.8008 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.226, allocations: 60.36 kB / 0.8008 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.998e-05/0.226, allocations: 16 kB / 0.8008 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 9.216e-05/0.2261, allocations: 139.3 kB / 0.801 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2261, allocations: 0 / 0.801 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003721/0.2265, allocations: 115.5 kB / 0.8011 GB, free: 10.85 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (con.t2.enableFire,con.t1.enableFire,con.discharge.localActive,con.discharge.active,con.charge.localActive,con.charge.active,con.off.active,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.localCondition,con.t1.fire,con.t1.t_start,con.t2.localCondition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.localCondition,con.t3.enableFire,con.t4.localCondition,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * 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.0001812/0.2267, allocations: 147.2 kB / 0.8012 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0006641/0.2273, allocations: 434.3 kB / 0.8016 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2274, allocations: 0 / 0.8016 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.000315/0.2277, allocations: 222.5 kB / 0.8018 GB, free: 10.06 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.228, allocations: 55.64 kB / 0.8019 GB, free: 10 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.2291, allocations: 0.7134 MB / 0.8026 GB, free: 9.262 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.2294, allocations: 0.8269 MB / 0.8034 GB, free: 8.41 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001843/0.2296, allocations: 67.25 kB / 0.8035 GB, free: 8.344 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.2297, allocations: 39.42 kB / 0.8035 GB, free: 8.309 MB / 0.6231 GB Notification: Performance of SimCode: time 2.71e-07/0.2297, allocations: 0 / 0.8035 GB, free: 8.309 MB / 0.6231 GB Notification: Performance of Templates: time 0.007689/0.2374, allocations: 4.351 MB / 0.8078 GB, free: 3.988 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)