Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2/2, allocations: 391.2 MB / 407 MB, free: 10.78 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 185.3 kB / 499.1 MB, free: 4.645 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 222.9 MB / 0.7948 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009973/0.0009976, allocations: 114.9 kB / 0.9329 GB, free: 7.066 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001005, allocations: 55.28 kB / 1.081 GB, free: 218 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2226, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002932/0.2256, allocations: 2.366 MB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001378/0.227, allocations: 0.9428 MB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002676/0.2273, allocations: 8 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0001908/0.2275, allocations: 43.59 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0002329/0.2278, allocations: 35.72 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004651/0.2282, allocations: 251.8 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0004721/0.2287, allocations: 0.5856 MB / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000474/0.2292, allocations: 421.7 kB / 1.223 GB, free: 112.6 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.2294, allocations: 183.3 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.2296, allocations: 215 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 6.338e-05/0.2297, allocations: 32 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.2298, allocations: 48 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.2299, allocations: 115.6 kB / 1.223 GB, free: 112 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.2301, allocations: 222.8 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0004142/0.2305, allocations: 0.6602 MB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.2305, allocations: 0 / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2305, allocations: 0 / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.692e-05/0.2305, allocations: 0 / 1.224 GB, free: 111.1 MB / 0.823 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.001038/0.2316, allocations: 0.7331 MB / 1.225 GB, free: 110.3 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2316, allocations: 15.98 kB / 1.225 GB, free: 110.3 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.195e-05/0.2317, allocations: 52.38 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003156/0.232, allocations: 346.8 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.228e-05/0.2321, allocations: 45.69 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.661e-05/0.2321, allocations: 56.38 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007659/0.2329, allocations: 0.5855 MB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.2329, allocations: 0 / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.642e-05/0.233, allocations: 20 kB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.233, allocations: 21 kB / 1.226 GB, free: 109.1 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006135/0.2336, allocations: 423.7 kB / 1.226 GB, free: 108.7 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.2353, allocations: 1.938 MB / 1.228 GB, free: 106.7 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004619/0.2358, allocations: 393.7 kB / 1.229 GB, free: 106.3 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.2361, allocations: 198.4 kB / 1.229 GB, free: 106.1 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.286e-05/0.2361, allocations: 16 kB / 1.229 GB, free: 106.1 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003235/0.2365, allocations: 268.9 kB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of pre-optimization done (n=48): time 1.613e-06/0.2365, allocations: 0 / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of matching and sorting (n=48): time 0.0007627/0.2372, allocations: 0.4912 MB / 1.229 GB, free: 105.3 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.2373, allocations: 123 kB / 1.23 GB, free: 105.1 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.2374, allocations: 233.9 kB / 1.23 GB, free: 104.9 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/0.2375, allocations: 53.69 kB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 9.109e-05/0.2376, allocations: 220.6 kB / 1.23 GB, free: 104.6 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 6.612e-05/0.2377, allocations: 110.5 kB / 1.23 GB, free: 104.5 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.2378, allocations: 150.1 kB / 1.23 GB, free: 104.3 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 5.816e-05/0.2379, allocations: 346.7 kB / 1.231 GB, free: 104 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/0.2381, allocations: 169.2 kB / 1.231 GB, free: 103.8 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.2384, allocations: 292.7 kB / 1.231 GB, free: 103.5 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004383/0.2388, allocations: 410.5 kB / 1.232 GB, free: 103.1 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2389, allocations: 4 kB / 1.232 GB, free: 103 MB / 0.823 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0006575/0.2395, allocations: 0.5062 MB / 1.232 GB, free: 102.5 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.2395, allocations: 9.562 kB / 1.232 GB, free: 102.5 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.2396, allocations: 11.98 kB / 1.232 GB, free: 102.5 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.2396, allocations: 4 kB / 1.232 GB, free: 102.5 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.2398, allocations: 63.78 kB / 1.232 GB, free: 102.4 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.2398, allocations: 8 kB / 1.232 GB, free: 102.4 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001918/0.24, allocations: 59.5 kB / 1.232 GB, free: 102.4 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.2401, allocations: 28 kB / 1.232 GB, free: 102.4 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 59 ($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.t3.t_start,$PRE.con.t3.t_start,con.t4.t_start,$PRE.con.t4.t_start,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,con.t4.enableFire,con.t4.condition,con.t3.enableFire,con.t3.condition,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.condition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.condition,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 (76): * Single equations (assignments): 76 * 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.0001837/0.2402, allocations: 243.4 kB / 1.232 GB, free: 102.1 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.866e-05/0.2403, allocations: 23.72 kB / 1.232 GB, free: 102.1 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006278/0.2409, allocations: 435.4 kB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.2409, allocations: 4 kB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2409, allocations: 0 / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.241, allocations: 8 kB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00116/0.2421, allocations: 1.145 MB / 1.234 GB, free: 100.4 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.2421, allocations: 0 / 1.234 GB, free: 100.4 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.2423, allocations: 43.84 kB / 1.234 GB, free: 100.4 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.2423, allocations: 4 kB / 1.234 GB, free: 100.4 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.2423, allocations: 15.94 kB / 1.234 GB, free: 100.4 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.2423, allocations: 4 kB / 1.234 GB, free: 100.4 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.2423, allocations: 4 kB / 1.234 GB, free: 100.3 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008942/0.2432, allocations: 1.29 MB / 1.235 GB, free: 99 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.076e-05/0.2433, allocations: 108.7 kB / 1.235 GB, free: 98.87 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.2433, allocations: 12 kB / 1.235 GB, free: 98.86 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.2435, allocations: 27.97 kB / 1.235 GB, free: 98.83 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.2436, allocations: 60.36 kB / 1.236 GB, free: 98.77 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-05/0.2437, allocations: 19.98 kB / 1.236 GB, free: 98.75 MB / 0.823 GB Notification: Performance of sorting global known variables: time 6.821e-05/0.2437, allocations: 128.4 kB / 1.236 GB, free: 98.63 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2437, allocations: 3.938 kB / 1.236 GB, free: 98.62 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.000448/0.2442, allocations: 119.5 kB / 1.236 GB, free: 98.51 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 44 (con.t4.t_start,con.t3.t_start,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: 5 (con.off.newActive,con.charge.newActive,con.discharge.newActive,con.t3.t_start,con.t4.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001601/0.2444, allocations: 155 kB / 1.236 GB, free: 98.35 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.000584/0.2449, allocations: 450.4 kB / 1.236 GB, free: 97.91 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.245, allocations: 4 kB / 1.236 GB, free: 97.91 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002818/0.2452, allocations: 226.4 kB / 1.237 GB, free: 97.69 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003308/0.2456, allocations: 47.86 kB / 1.237 GB, free: 97.64 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.2468, allocations: 1.209 MB / 1.238 GB, free: 96.38 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002263/0.247, allocations: 0.8311 MB / 1.239 GB, free: 95.52 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.000174/0.2472, allocations: 63.25 kB / 1.239 GB, free: 95.46 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.992e-05/0.2473, allocations: 43.42 kB / 1.239 GB, free: 95.42 MB / 0.823 GB Notification: Performance of SimCode: time 3.6e-07/0.2473, allocations: 0 / 1.239 GB, free: 95.42 MB / 0.823 GB Notification: Performance of Templates: time 0.007057/0.2544, allocations: 4.224 MB / 1.243 GB, free: 91.23 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)