Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.622/1.622, allocations: 287.4 MB / 303.2 MB, free: 8.277 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.0009432/0.0009433, allocations: 177.9 kB / 371.8 MB, free: 10.82 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.389/1.389, allocations: 205.4 MB / 0.6304 GB, free: 10.55 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.0007823/0.0007824, allocations: 107.8 kB / 0.7438 GB, free: 6.547 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003793/0.0003794, allocations: 14.88 kB / 0.8667 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2205, allocations: 115.3 MB / 0.9793 GB, free: 28.19 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002151/0.2227, allocations: 1.926 MB / 0.9812 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001351/0.224, allocations: 0.9635 MB / 0.9821 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.2242, allocations: 11.94 kB / 0.9821 GB, free: 25.26 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.2243, allocations: 47.58 kB / 0.9822 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002065/0.2246, allocations: 31.77 kB / 0.9822 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003545/0.2249, allocations: 183.7 kB / 0.9824 GB, free: 25 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004156/0.2253, allocations: 0.5427 MB / 0.9829 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004074/0.2258, allocations: 392.6 kB / 0.9833 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.2259, allocations: 139.4 kB / 0.9834 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.2261, allocations: 159.2 kB / 0.9836 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.031e-05/0.2261, allocations: 27.88 kB / 0.9836 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.338e-05/0.2262, allocations: 31.98 kB / 0.9836 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 9.597e-05/0.2263, allocations: 91.66 kB / 0.9837 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.536e-05/0.2264, allocations: 97.52 kB / 0.9838 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.2267, allocations: 0.5263 MB / 0.9843 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.2268, allocations: 0 / 0.9843 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2268, allocations: 4 kB / 0.9843 GB, free: 23 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.414e-06/0.2268, allocations: 0 / 0.9843 GB, free: 23 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.0008358/0.2276, allocations: 0.6305 MB / 0.9849 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.2277, allocations: 12.03 kB / 0.9849 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.682e-05/0.2278, allocations: 48.38 kB / 0.985 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003/0.2281, allocations: 344.2 kB / 0.9853 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.792e-05/0.2281, allocations: 49.67 kB / 0.9854 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.333e-05/0.2282, allocations: 52.38 kB / 0.9854 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007669/0.229, allocations: 0.5738 MB / 0.986 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.229, allocations: 4 kB / 0.986 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.949e-05/0.229, allocations: 20 kB / 0.986 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/0.2291, allocations: 17 kB / 0.986 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006329/0.2297, allocations: 427.7 kB / 0.9864 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001774/0.2315, allocations: 1.934 MB / 0.9883 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004747/0.232, allocations: 351 kB / 0.9886 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.2322, allocations: 186.6 kB / 0.9888 GB, free: 18.18 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.956e-05/0.2323, allocations: 12 kB / 0.9888 GB, free: 18.17 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003081/0.2326, allocations: 225.9 kB / 0.989 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=46): time 2.124e-06/0.2326, allocations: 0 / 0.989 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46): time 0.0007476/0.2334, allocations: 482.6 kB / 0.9895 GB, free: 17.46 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.141e-05/0.2334, allocations: 71.09 kB / 0.9896 GB, free: 17.38 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.2336, allocations: 237.7 kB / 0.9898 GB, free: 17.13 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.2336, allocations: 45.7 kB / 0.9898 GB, free: 17.08 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.2338, allocations: 224.7 kB / 0.9901 GB, free: 16.86 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.043e-05/0.2338, allocations: 118.5 kB / 0.9902 GB, free: 16.74 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.099e-05/0.2339, allocations: 8 kB / 0.9902 GB, free: 16.73 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.277e-05/0.2339, allocations: 346.7 kB / 0.9905 GB, free: 16.39 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002417/0.2342, allocations: 165.2 kB / 0.9907 GB, free: 16.22 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/0.2345, allocations: 292.8 kB / 0.9909 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004436/0.2349, allocations: 402.4 kB / 0.9913 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.235, allocations: 0 / 0.9913 GB, free: 15.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.000673/0.2356, allocations: 0.5025 MB / 0.9918 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.2357, allocations: 4 kB / 0.9918 GB, free: 14.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.2357, allocations: 7.984 kB / 0.9918 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.2357, allocations: 8 kB / 0.9918 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.2359, allocations: 63.84 kB / 0.9919 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.236, allocations: 11.94 kB / 0.9919 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.2362, allocations: 67.72 kB / 0.992 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.2362, allocations: 28 kB / 0.992 GB, free: 14.76 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.0001994/0.2364, allocations: 234.8 kB / 0.9922 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.24e-05/0.2365, allocations: 27.72 kB / 0.9922 GB, free: 14.49 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006343/0.2371, allocations: 427.5 kB / 0.9927 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.2371, allocations: 3.984 kB / 0.9927 GB, free: 14.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2371, allocations: 0 / 0.9927 GB, free: 14.06 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.759e-05/0.2372, allocations: 108.7 kB / 0.9928 GB, free: 13.94 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.339e-05/0.2372, allocations: 11.98 kB / 0.9928 GB, free: 13.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.2374, allocations: 31.92 kB / 0.9928 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.2375, allocations: 60.34 kB / 0.9929 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000648/0.2381, allocations: 0.4956 MB / 0.9933 GB, free: 13.34 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000513/0.2387, allocations: 0.5537 MB / 0.9939 GB, free: 12.76 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00023/0.2389, allocations: 199.4 kB / 0.9941 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.977e-05/0.239, allocations: 132.5 kB / 0.9942 GB, free: 12.44 MB / 0.6198 GB Notification: Performance of Backend: time 4.11e-07/0.239, allocations: 0 / 0.9942 GB, free: 12.44 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0007163/0.2397, allocations: 377.4 kB / 0.9946 GB, free: 12.06 MB / 0.6198 GB Notification: Performance of SimCode: time 0.0009112/0.2406, allocations: 1.163 MB / 0.9957 GB, free: 10.85 MB / 0.6198 GB Notification: Performance of Templates: time 0.006767/0.2474, allocations: 4.03 MB / 0.9996 GB, free: 6.852 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)