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.593/1.593, allocations: 288.4 MB / 304.3 MB, free: 8.172 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.0009366/0.0009367, allocations: 184.5 kB / 372.9 MB, free: 10.16 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.38/1.38, allocations: 205.4 MB / 0.6316 GB, free: 9.914 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.0007528/0.0007529, allocations: 98.28 kB / 0.745 GB, free: 5.812 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.000376, allocations: 12.12 kB / 0.8681 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1799/0.1803, allocations: 115.3 MB / 0.9807 GB, free: 27.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002007/0.1823, allocations: 1.915 MB / 0.9826 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001247/0.1836, allocations: 0.9789 MB / 0.9836 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.1838, allocations: 11.94 kB / 0.9836 GB, free: 24.43 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.1839, allocations: 35.59 kB / 0.9836 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001902/0.1841, allocations: 31.78 kB / 0.9836 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003495/0.1845, allocations: 183.7 kB / 0.9838 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.1849, allocations: 0.5427 MB / 0.9843 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004177/0.1853, allocations: 404.5 kB / 0.9847 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.1854, allocations: 135.5 kB / 0.9849 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.1856, allocations: 163.1 kB / 0.985 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.771e-05/0.1857, allocations: 20 kB / 0.985 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.5e-05/0.1857, allocations: 31.98 kB / 0.9851 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.642e-05/0.1858, allocations: 91.66 kB / 0.9852 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.186, allocations: 200.7 kB / 0.9853 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003318/0.1863, allocations: 0.5302 MB / 0.9859 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1863, allocations: 0 / 0.9859 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.603e-06/0.1863, allocations: 0 / 0.9859 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.223e-06/0.1863, allocations: 4 kB / 0.9859 GB, free: 22.07 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.000823/0.1872, allocations: 0.6266 MB / 0.9865 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.1872, allocations: 12.03 kB / 0.9865 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.422e-05/0.1873, allocations: 56.36 kB / 0.9865 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002869/0.1876, allocations: 342.2 kB / 0.9869 GB, free: 20.96 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.1876, allocations: 41.69 kB / 0.9869 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.986e-05/0.1877, allocations: 56.38 kB / 0.987 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007464/0.1884, allocations: 0.5738 MB / 0.9875 GB, free: 20.25 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.1885, allocations: 0 / 0.9875 GB, free: 20.25 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.92e-05/0.1885, allocations: 27.94 kB / 0.9876 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.589e-05/0.1885, allocations: 20.98 kB / 0.9876 GB, free: 20.21 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006348/0.1892, allocations: 423.7 kB / 0.988 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.1909, allocations: 1.938 MB / 0.9899 GB, free: 17.77 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004703/0.1914, allocations: 355.8 kB / 0.9902 GB, free: 17.42 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/0.1917, allocations: 184.8 kB / 0.9904 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 5.103e-05/0.1917, allocations: 8 kB / 0.9904 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003232/0.1921, allocations: 229.9 kB / 0.9906 GB, free: 16.99 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 2.936e-06/0.1921, allocations: 0 / 0.9906 GB, free: 16.99 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.000728/0.1928, allocations: 478.6 kB / 0.9911 GB, free: 16.52 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.631e-05/0.1928, allocations: 63.16 kB / 0.9911 GB, free: 16.44 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/0.193, allocations: 245.7 kB / 0.9914 GB, free: 16.19 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.193, allocations: 49.69 kB / 0.9914 GB, free: 16.14 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.17e-05/0.1931, allocations: 220.7 kB / 0.9916 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 6.618e-05/0.1932, allocations: 110.5 kB / 0.9917 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.052e-05/0.1932, allocations: 16 kB / 0.9917 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.197e-05/0.1933, allocations: 346.7 kB / 0.9921 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002475/0.1936, allocations: 157.2 kB / 0.9922 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000288/0.1939, allocations: 288.8 kB / 0.9925 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004543/0.1943, allocations: 410.4 kB / 0.9929 GB, free: 14.51 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.1943, allocations: 0 / 0.9929 GB, free: 14.51 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007573/0.1951, allocations: 0.5027 MB / 0.9934 GB, free: 14 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.1951, allocations: 8 kB / 0.9934 GB, free: 14 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.1951, allocations: 4 kB / 0.9934 GB, free: 13.99 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.1952, allocations: 8 kB / 0.9934 GB, free: 13.98 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002282/0.1954, allocations: 63.78 kB / 0.9935 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.129e-05/0.1954, allocations: 11.98 kB / 0.9935 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.1956, allocations: 59.61 kB / 0.9935 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.1957, allocations: 27.98 kB / 0.9936 GB, free: 13.82 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.0001958/0.1959, allocations: 234.8 kB / 0.9938 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.032e-05/0.1959, allocations: 23.72 kB / 0.9938 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006325/0.1966, allocations: 443.4 kB / 0.9942 GB, free: 13.12 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.723e-06/0.1966, allocations: 3.984 kB / 0.9942 GB, free: 13.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1966, allocations: 0 / 0.9942 GB, free: 13.12 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.116e-05/0.1966, allocations: 104.7 kB / 0.9943 GB, free: 13 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.948e-05/0.1967, allocations: 11.94 kB / 0.9943 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.1968, allocations: 35.92 kB / 0.9944 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.197, allocations: 60.34 kB / 0.9944 GB, free: 12.89 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006615/0.1976, allocations: 495.6 kB / 0.9949 GB, free: 12.4 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0005455/0.1982, allocations: 0.5615 MB / 0.9955 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002369/0.1984, allocations: 195.3 kB / 0.9956 GB, free: 11.63 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.394e-05/0.1985, allocations: 140.2 kB / 0.9958 GB, free: 11.49 MB / 0.6198 GB Notification: Performance of Backend: time 6.42e-07/0.1986, allocations: 0 / 0.9958 GB, free: 11.49 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0007265/0.1993, allocations: 381.4 kB / 0.9961 GB, free: 11.11 MB / 0.6198 GB Notification: Performance of SimCode: time 0.0009668/0.2003, allocations: 1.155 MB / 0.9973 GB, free: 9.91 MB / 0.6198 GB Notification: Performance of Templates: time 0.007037/0.2073, allocations: 4.067 MB / 1.001 GB, free: 5.902 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)