Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.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.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.687/1.687, allocations: 288.4 MB / 303.7 MB, free: 8.145 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.001005/0.001005, allocations: 190.1 kB / 372.3 MB, free: 10.11 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.347/1.347, allocations: 205.4 MB / 0.631 GB, free: 9.867 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.0008702/0.0008702, allocations: 104.9 kB / 0.7444 GB, free: 5.77 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005042/0.0005042, allocations: 16 kB / 0.8675 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1965, allocations: 115.3 MB / 0.9801 GB, free: 27.34 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.001951/0.1985, allocations: 1.93 MB / 0.982 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001206/0.1997, allocations: 0.9672 MB / 0.983 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.1999, allocations: 11.94 kB / 0.983 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001223/0.2, allocations: 43.59 kB / 0.983 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.2002, allocations: 27.77 kB / 0.983 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003402/0.2005, allocations: 187.7 kB / 0.9832 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003742/0.2009, allocations: 0.5427 MB / 0.9837 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003907/0.2013, allocations: 388.6 kB / 0.9841 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001443/0.2015, allocations: 143.5 kB / 0.9843 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.2016, allocations: 167 kB / 0.9844 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.526e-05/0.2017, allocations: 20 kB / 0.9844 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.54e-05/0.2017, allocations: 35.98 kB / 0.9845 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.524e-05/0.2018, allocations: 91.66 kB / 0.9846 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.202, allocations: 196.7 kB / 0.9847 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003197/0.2023, allocations: 0.5341 MB / 0.9853 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2023, allocations: 0 / 0.9853 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2023, allocations: 0 / 0.9853 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.2023, allocations: 0 / 0.9853 GB, free: 22.05 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.0007488/0.2031, allocations: 0.6306 MB / 0.9859 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.2031, allocations: 8.031 kB / 0.9859 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.493e-05/0.2032, allocations: 52.38 kB / 0.9859 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.2035, allocations: 338.1 kB / 0.9863 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.279e-05/0.2035, allocations: 49.69 kB / 0.9863 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.55e-05/0.2036, allocations: 52.38 kB / 0.9864 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007289/0.2043, allocations: 0.5738 MB / 0.9869 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.2044, allocations: 0 / 0.9869 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.2044, allocations: 27.98 kB / 0.9869 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.412e-05/0.2044, allocations: 21 kB / 0.987 GB, free: 20.19 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006123/0.205, allocations: 427.7 kB / 0.9874 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001624/0.2067, allocations: 1.93 MB / 0.9893 GB, free: 17.76 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004566/0.2071, allocations: 361.8 kB / 0.9896 GB, free: 17.4 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000232/0.2074, allocations: 180.8 kB / 0.9898 GB, free: 17.22 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.352e-05/0.2074, allocations: 12 kB / 0.9898 GB, free: 17.21 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003083/0.2078, allocations: 229.9 kB / 0.99 GB, free: 16.97 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 1.793e-06/0.2078, allocations: 0 / 0.99 GB, free: 16.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.0007084/0.2085, allocations: 478.6 kB / 0.9905 GB, free: 16.5 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.2085, allocations: 63.16 kB / 0.9905 GB, free: 16.42 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.2087, allocations: 237.7 kB / 0.9907 GB, free: 16.18 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.625e-05/0.2087, allocations: 57.69 kB / 0.9908 GB, free: 16.12 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.777e-05/0.2088, allocations: 216.7 kB / 0.991 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.489e-05/0.2089, allocations: 122.4 kB / 0.9911 GB, free: 15.78 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.91e-05/0.2089, allocations: 8 kB / 0.9911 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.583e-05/0.209, allocations: 346.7 kB / 0.9915 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/0.2092, allocations: 161.2 kB / 0.9916 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002769/0.2095, allocations: 288.8 kB / 0.9919 GB, free: 14.94 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004349/0.21, allocations: 402.4 kB / 0.9923 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.21, allocations: 0 / 0.9923 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006369/0.2106, allocations: 0.5101 MB / 0.9928 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.2106, allocations: 4.469 kB / 0.9928 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2106, allocations: 8 kB / 0.9928 GB, free: 13.97 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.2107, allocations: 8 kB / 0.9928 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002197/0.2109, allocations: 67.77 kB / 0.9929 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.2109, allocations: 8 kB / 0.9929 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.2111, allocations: 63.52 kB / 0.9929 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.2112, allocations: 27.98 kB / 0.993 GB, free: 13.8 MB / 0.6198 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,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.condition,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.condition,con.t3.enableFire,con.t4.condition,con.t4.enableFire) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001946/0.2114, allocations: 238.8 kB / 0.9932 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.122e-05/0.2114, allocations: 23.72 kB / 0.9932 GB, free: 13.53 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006353/0.212, allocations: 435.4 kB / 0.9936 GB, free: 13.1 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2121, allocations: 8 kB / 0.9936 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2121, allocations: 0 / 0.9936 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.2121, allocations: 3.984 kB / 0.9936 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.2133, allocations: 1.13 MB / 0.9947 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2133, allocations: 3.984 kB / 0.9947 GB, free: 11.88 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.2134, allocations: 35.92 kB / 0.9948 GB, free: 11.85 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2134, allocations: 7.875 kB / 0.9948 GB, free: 11.84 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.389e-05/0.2135, allocations: 11.98 kB / 0.9948 GB, free: 11.83 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.2135, allocations: 4 kB / 0.9948 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.2135, allocations: 0 / 0.9948 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005132/0.214, allocations: 0.4919 MB / 0.9953 GB, free: 11.32 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.756e-05/0.214, allocations: 116.5 kB / 0.9954 GB, free: 11.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.88e-05/0.2141, allocations: 8 kB / 0.9954 GB, free: 11.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.2143, allocations: 27.97 kB / 0.9954 GB, free: 11.15 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.2144, allocations: 68.34 kB / 0.9955 GB, free: 11.08 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/0.2144, allocations: 19.98 kB / 0.9955 GB, free: 11.06 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.202e-05/0.2145, allocations: 136.2 kB / 0.9956 GB, free: 10.93 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2145, allocations: 0 / 0.9956 GB, free: 10.93 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003599/0.2149, allocations: 111.6 kB / 0.9957 GB, free: 10.82 MB / 0.6198 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.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$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.active,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.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,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 (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.0001799/0.2151, allocations: 148.9 kB / 0.9959 GB, free: 10.67 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006031/0.2157, allocations: 437.5 kB / 0.9963 GB, free: 10.24 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2157, allocations: 3.938 kB / 0.9963 GB, free: 10.24 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002728/0.216, allocations: 222.3 kB / 0.9965 GB, free: 10.02 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003412/0.2163, allocations: 46.61 kB / 0.9966 GB, free: 9.973 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009702/0.2173, allocations: 0.8442 MB / 0.9974 GB, free: 9.102 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.2175, allocations: 0.8233 MB / 0.9982 GB, free: 8.254 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001889/0.2177, allocations: 63.25 kB / 0.9982 GB, free: 8.195 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.763e-05/0.2178, allocations: 43.42 kB / 0.9983 GB, free: 8.152 MB / 0.6198 GB Notification: Performance of SimCode: time 4.21e-07/0.2178, allocations: 0 / 0.9983 GB, free: 8.152 MB / 0.6198 GB Notification: Performance of Templates: time 0.006363/0.2242, allocations: 3.778 MB / 1.002 GB, free: 4.43 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)