Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.343/1.343, allocations: 252 MB / 267.6 MB, free: 10.94 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009204/0.0009205, allocations: 171.4 kB / 327.3 MB, free: 2.223 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.835/1.835, allocations: 205.4 MB / 0.5783 GB, free: 20.27 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007567/0.0007569, allocations: 92.66 kB / 0.6829 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003562, allocations: 15.47 kB / 0.797 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2404, allocations: 106.3 MB / 0.9008 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.004172/0.2447, allocations: 3.711 MB / 0.9044 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002688/0.2474, allocations: 1.918 MB / 0.9063 GB, free: 58.27 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003366/0.2477, allocations: 19.88 kB / 0.9063 GB, free: 58.25 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.248, allocations: 83.23 kB / 0.9064 GB, free: 58.16 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0004446/0.2485, allocations: 171.1 kB / 0.9066 GB, free: 58 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008322/0.2493, allocations: 331.4 kB / 0.9069 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0006722/0.25, allocations: 0.9165 MB / 0.9078 GB, free: 56.75 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007582/0.2507, allocations: 0.7878 MB / 0.9086 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002099/0.251, allocations: 255 kB / 0.9088 GB, free: 55.67 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003581/0.2513, allocations: 306.6 kB / 0.9091 GB, free: 55.37 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 6.375e-05/0.2514, allocations: 32 kB / 0.9091 GB, free: 55.34 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002122/0.2516, allocations: 91.88 kB / 0.9092 GB, free: 55.25 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.2518, allocations: 171.4 kB / 0.9094 GB, free: 55.08 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.017e-05/0.2518, allocations: 137.4 kB / 0.9095 GB, free: 54.94 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000475/0.2523, allocations: 0.6393 MB / 0.9101 GB, free: 54.3 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2523, allocations: 0 / 0.9101 GB, free: 54.3 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.875e-06/0.2524, allocations: 4 kB / 0.9101 GB, free: 54.3 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 9.979e-06/0.2524, allocations: 0 / 0.9101 GB, free: 54.3 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.001224/0.2536, allocations: 0.8048 MB / 0.9109 GB, free: 53.45 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.2536, allocations: 12.02 kB / 0.9109 GB, free: 53.43 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004668/0.2541, allocations: 123 kB / 0.911 GB, free: 53.31 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.2546, allocations: 427.6 kB / 0.9115 GB, free: 52.86 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.277e-05/0.2547, allocations: 62 kB / 0.9115 GB, free: 52.79 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.584e-05/0.2547, allocations: 79.94 kB / 0.9116 GB, free: 52.71 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.2558, allocations: 0.8691 MB / 0.9124 GB, free: 51.78 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.2559, allocations: 4 kB / 0.9124 GB, free: 51.78 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.221e-05/0.2559, allocations: 35.95 kB / 0.9125 GB, free: 51.74 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.673e-05/0.256, allocations: 45.98 kB / 0.9125 GB, free: 51.7 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007687/0.2568, allocations: 0.5658 MB / 0.9131 GB, free: 51.13 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002958/0.2597, allocations: 3.712 MB / 0.9167 GB, free: 47.2 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005171/0.2603, allocations: 310.3 kB / 0.917 GB, free: 46.89 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003273/0.2606, allocations: 209.5 kB / 0.9172 GB, free: 46.68 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.296e-05/0.2607, allocations: 8.375 kB / 0.9172 GB, free: 46.68 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003334/0.261, allocations: 253.1 kB / 0.9174 GB, free: 46.41 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=47): time 2.255e-06/0.261, allocations: 0 / 0.9174 GB, free: 46.41 MB / 0.6042 GB Notification: Performance of matching and sorting (n=47): time 0.0007122/0.2617, allocations: 456 kB / 0.9179 GB, free: 45.96 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.2618, allocations: 81.11 kB / 0.918 GB, free: 45.86 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003224/0.2621, allocations: 425.1 kB / 0.9184 GB, free: 45.44 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.4e-05/0.2622, allocations: 45.7 kB / 0.9184 GB, free: 45.39 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001544/0.2623, allocations: 347.4 kB / 0.9187 GB, free: 45.05 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.199e-05/0.2624, allocations: 130.3 kB / 0.9189 GB, free: 44.92 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.388e-05/0.2624, allocations: 16 kB / 0.9189 GB, free: 44.9 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.507e-05/0.2625, allocations: 366.9 kB / 0.9192 GB, free: 44.54 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002243/0.2628, allocations: 145.9 kB / 0.9194 GB, free: 44.39 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00031/0.2631, allocations: 396.4 kB / 0.9197 GB, free: 43.9 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002572/0.2634, allocations: 194.1 kB / 0.9199 GB, free: 43.71 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2634, allocations: 0 / 0.9199 GB, free: 43.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0007044/0.2641, allocations: 0.5839 MB / 0.9205 GB, free: 43.12 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.2642, allocations: 302.6 kB / 0.9208 GB, free: 42.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.2642, allocations: 8 kB / 0.9208 GB, free: 42.71 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.198e-05/0.2643, allocations: 12 kB / 0.9208 GB, free: 42.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000309/0.2646, allocations: 103.8 kB / 0.9209 GB, free: 42.6 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.625e-05/0.2646, allocations: 19.92 kB / 0.9209 GB, free: 42.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.2649, allocations: 79.2 kB / 0.921 GB, free: 42.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.2649, allocations: 28 kB / 0.921 GB, free: 42.48 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.46e-06/0.265, allocations: 8 kB / 0.921 GB, free: 42.47 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006306/0.2656, allocations: 0.5166 MB / 0.9215 GB, free: 41.95 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2656, allocations: 8 kB / 0.9215 GB, free: 41.94 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.656e-06/0.2656, allocations: 12 kB / 0.9216 GB, free: 41.93 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.2659, allocations: 107.8 kB / 0.9217 GB, free: 41.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.2659, allocations: 15.94 kB / 0.9217 GB, free: 41.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000254/0.2662, allocations: 71.8 kB / 0.9217 GB, free: 41.74 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.559e-05/0.2662, allocations: 36 kB / 0.9218 GB, free: 41.7 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,off.active,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,toOn.condition,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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.000243/0.2665, allocations: 320.8 kB / 0.9221 GB, free: 41.38 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.747e-05/0.2665, allocations: 51.33 kB / 0.9221 GB, free: 41.33 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005615/0.2671, allocations: 385.1 kB / 0.9225 GB, free: 40.95 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.2671, allocations: 8 kB / 0.9225 GB, free: 40.94 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.2671, allocations: 4 kB / 0.9225 GB, free: 40.93 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.2671, allocations: 7.984 kB / 0.9225 GB, free: 40.93 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.2684, allocations: 1.206 MB / 0.9237 GB, free: 39.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2684, allocations: 4.031 kB / 0.9237 GB, free: 39.63 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001968/0.2686, allocations: 51.84 kB / 0.9238 GB, free: 39.58 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.2686, allocations: 4 kB / 0.9238 GB, free: 39.58 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.2686, allocations: 15.94 kB / 0.9238 GB, free: 39.56 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.2687, allocations: 4 kB / 0.9238 GB, free: 39.56 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2687, allocations: 0 / 0.9238 GB, free: 39.56 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007317/0.2694, allocations: 0.6477 MB / 0.9244 GB, free: 38.88 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.2695, allocations: 160.4 kB / 0.9246 GB, free: 38.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.133e-05/0.2696, allocations: 12 kB / 0.9246 GB, free: 38.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.2698, allocations: 11.98 kB / 0.9246 GB, free: 38.68 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.2699, allocations: 44.38 kB / 0.9246 GB, free: 38.64 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.539e-05/0.2699, allocations: 24.05 kB / 0.9246 GB, free: 38.62 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001879/0.2701, allocations: 255.2 kB / 0.9249 GB, free: 38.37 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2701, allocations: 0 / 0.9249 GB, free: 38.37 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0006671/0.2708, allocations: 282.8 kB / 0.9252 GB, free: 38.09 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (bat.cha.SOC) * Number of discrete variables: 32 (off.localActive,charge.localActive,hold.localActive,discharge.localActive,$cse1,$cse2,$cse3,$cse4,$whenCondition1,bat.cha.underCharged,bat.cha.overCharged,off.active,off.newActive,off.oldActive,toOn.condition,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,hold.newActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 6 (discharge.newActive,hold.newActive,charge.newActive,off.newActive,bat.cha.underCharged,bat.cha.overCharged) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001484/0.2709, allocations: 129.3 kB / 0.9253 GB, free: 37.96 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0008919/0.2718, allocations: 0.7068 MB / 0.926 GB, free: 37.25 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2718, allocations: 448 / 0.926 GB, free: 37.25 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002338/0.2721, allocations: 198.4 kB / 0.9262 GB, free: 37.06 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005716/0.2727, allocations: 100 kB / 0.9263 GB, free: 36.96 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001394/0.2741, allocations: 1.244 MB / 0.9275 GB, free: 35.67 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.2744, allocations: 0.9072 MB / 0.9284 GB, free: 34.73 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.2745, allocations: 51.42 kB / 0.9284 GB, free: 34.69 MB / 0.6042 GB Notification: Performance of SimCode: time 6.11e-07/0.2745, allocations: 0 / 0.9284 GB, free: 34.69 MB / 0.6042 GB Notification: Performance of Templates: time 0.007674/0.2822, allocations: 6.969 MB / 0.9352 GB, free: 27.75 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Storage.Examples.Battery.pipe 2>&1)