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.384/1.384, allocations: 251.5 MB / 267.4 MB, free: 11.05 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.0009752/0.0009751, allocations: 175 kB / 326.5 MB, free: 2.68 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.772/1.772, allocations: 205 MB / 0.5766 GB, free: 20.99 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.0007241/0.0007241, allocations: 85.38 kB / 0.6804 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003652, allocations: 15.91 kB / 0.7938 GB, free: 136.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2372, allocations: 105.4 MB / 0.8967 GB, free: 68.15 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.003999/0.2413, allocations: 3.948 MB / 0.9006 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002796/0.2441, allocations: 2.022 MB / 0.9026 GB, free: 62.14 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003609/0.2445, allocations: 15.94 kB / 0.9026 GB, free: 62.13 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0009459/0.2454, allocations: 350.6 kB / 0.9029 GB, free: 61.79 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000439/0.2459, allocations: 215 kB / 0.9031 GB, free: 61.57 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008285/0.2467, allocations: 383.5 kB / 0.9035 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0007148/0.2475, allocations: 1.045 MB / 0.9045 GB, free: 60.15 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007531/0.2482, allocations: 0.7458 MB / 0.9052 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002059/0.2484, allocations: 270.8 kB / 0.9055 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003342/0.2488, allocations: 330.4 kB / 0.9058 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 5.77e-05/0.2488, allocations: 32 kB / 0.9058 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002994/0.2492, allocations: 203.6 kB / 0.906 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.2493, allocations: 163.4 kB / 0.9062 GB, free: 58.41 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.000201/0.2495, allocations: 302.2 kB / 0.9065 GB, free: 58.11 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0004526/0.2499, allocations: 0.6507 MB / 0.9071 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.25, allocations: 0 / 0.9071 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.583e-06/0.25, allocations: 0 / 0.9071 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.019e-05/0.25, allocations: 0 / 0.9071 GB, free: 57.46 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.001081/0.2511, allocations: 0.8066 MB / 0.9079 GB, free: 56.61 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.2511, allocations: 12.03 kB / 0.9079 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004272/0.2515, allocations: 116 kB / 0.908 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000428/0.252, allocations: 428.8 kB / 0.9084 GB, free: 56.02 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.015e-05/0.252, allocations: 62.38 kB / 0.9085 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-05/0.2521, allocations: 76.38 kB / 0.9086 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.2531, allocations: 0.8848 MB / 0.9094 GB, free: 54.94 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.2532, allocations: 7.938 kB / 0.9094 GB, free: 54.93 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.163e-05/0.2532, allocations: 35.97 kB / 0.9095 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.292e-05/0.2533, allocations: 45.98 kB / 0.9095 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007972/0.2541, allocations: 0.5659 MB / 0.9101 GB, free: 54.28 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002822/0.2569, allocations: 3.723 MB / 0.9137 GB, free: 50.33 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000492/0.2574, allocations: 320.9 kB / 0.914 GB, free: 50.01 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003375/0.2578, allocations: 205.5 kB / 0.9142 GB, free: 49.81 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-05/0.2578, allocations: 8.359 kB / 0.9142 GB, free: 49.8 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000354/0.2582, allocations: 251.9 kB / 0.9145 GB, free: 49.54 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=47): time 1.773e-06/0.2582, allocations: 0 / 0.9145 GB, free: 49.54 MB / 0.6042 GB Notification: Performance of matching and sorting (n=47): time 0.0006972/0.2589, allocations: 460.3 kB / 0.9149 GB, free: 49.08 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.956e-05/0.259, allocations: 85.05 kB / 0.915 GB, free: 48.98 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003217/0.2593, allocations: 421.2 kB / 0.9154 GB, free: 48.56 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.965e-05/0.2593, allocations: 49.69 kB / 0.9154 GB, free: 48.51 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.2595, allocations: 339.5 kB / 0.9157 GB, free: 48.17 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.498e-05/0.2596, allocations: 130.4 kB / 0.9159 GB, free: 48.04 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.083e-05/0.2597, allocations: 105.6 kB / 0.916 GB, free: 47.93 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.651e-05/0.2598, allocations: 358.8 kB / 0.9163 GB, free: 47.57 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.26, allocations: 153.9 kB / 0.9165 GB, free: 47.43 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003075/0.2603, allocations: 400.4 kB / 0.9168 GB, free: 46.93 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004915/0.2608, allocations: 0.5039 MB / 0.9173 GB, free: 46.33 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.2608, allocations: 7.938 kB / 0.9173 GB, free: 46.32 MB / 0.6042 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0007524/0.2616, allocations: 0.5841 MB / 0.9179 GB, free: 45.73 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.2617, allocations: 302.4 kB / 0.9182 GB, free: 45.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.2617, allocations: 11.94 kB / 0.9182 GB, free: 45.32 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.2617, allocations: 12 kB / 0.9182 GB, free: 45.31 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/0.262, allocations: 103.8 kB / 0.9183 GB, free: 45.21 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.2621, allocations: 15.94 kB / 0.9183 GB, free: 45.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002911/0.2624, allocations: 75.2 kB / 0.9184 GB, free: 45.12 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.369e-05/0.2624, allocations: 36 kB / 0.9184 GB, free: 45.09 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.041e-06/0.2624, allocations: 7.938 kB / 0.9185 GB, free: 45.08 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006239/0.2631, allocations: 0.5285 MB / 0.919 GB, free: 44.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2631, allocations: 4 kB / 0.919 GB, free: 44.55 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.744e-06/0.2631, allocations: 15.94 kB / 0.919 GB, free: 44.53 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.2634, allocations: 95.83 kB / 0.9191 GB, free: 44.44 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.2634, allocations: 19.92 kB / 0.9191 GB, free: 44.42 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000253/0.2636, allocations: 71.69 kB / 0.9192 GB, free: 44.35 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-05/0.2637, allocations: 43.98 kB / 0.9192 GB, free: 44.3 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,stateGraphRoot.activeSteps,toOff.enableFire,toOff.condition,discharge.active,discharge.oldActive,$PRE.discharge.oldActive,discharge.newActive,$PRE.discharge.newActive,discharge.localActive,$PRE.discharge.localActive,toDischarge.enableFire,toDischarge.condition,hold.oldActive,$PRE.hold.oldActive,hold.newActive,$PRE.hold.newActive,hold.localActive,$PRE.hold.localActive,hold.active,toHold.enableFire,toHold.condition,charge.active,charge.oldActive,$PRE.charge.oldActive,charge.newActive,$PRE.charge.newActive,charge.localActive,$PRE.charge.localActive,toOn.enableFire,toOn.condition,off.oldActive,$PRE.off.oldActive,off.newActive,$PRE.off.newActive,off.localActive,$PRE.off.localActive,off.active,bat.cha.overCharged,$PRE.bat.cha.overCharged,bat.cha.underCharged,$PRE.bat.cha.underCharged,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000259/0.2639, allocations: 316.8 kB / 0.9195 GB, free: 43.98 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.161e-05/0.264, allocations: 47.38 kB / 0.9196 GB, free: 43.94 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005541/0.2646, allocations: 393.1 kB / 0.9199 GB, free: 43.54 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.2646, allocations: 4 kB / 0.9199 GB, free: 43.54 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2646, allocations: 4 kB / 0.9199 GB, free: 43.54 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.2646, allocations: 4 kB / 0.9199 GB, free: 43.53 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/0.2658, allocations: 1.206 MB / 0.9211 GB, free: 42.24 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2659, allocations: 3.938 kB / 0.9211 GB, free: 42.24 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.2661, allocations: 55.97 kB / 0.9212 GB, free: 42.18 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2661, allocations: 4 kB / 0.9212 GB, free: 42.18 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.2661, allocations: 15.98 kB / 0.9212 GB, free: 42.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.2661, allocations: 4 kB / 0.9212 GB, free: 42.16 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.2661, allocations: 7.922 kB / 0.9212 GB, free: 42.15 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006945/0.2668, allocations: 0.6477 MB / 0.9218 GB, free: 41.48 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.2669, allocations: 156.4 kB / 0.922 GB, free: 41.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.394e-05/0.267, allocations: 12 kB / 0.922 GB, free: 41.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.2672, allocations: 15.98 kB / 0.922 GB, free: 41.28 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.2673, allocations: 52.31 kB / 0.9221 GB, free: 41.23 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-05/0.2673, allocations: 16 kB / 0.9221 GB, free: 41.21 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001894/0.2675, allocations: 259.2 kB / 0.9223 GB, free: 40.96 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2675, allocations: 3.938 kB / 0.9223 GB, free: 40.96 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0007135/0.2682, allocations: 274.8 kB / 0.9226 GB, free: 40.69 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 (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.0001578/0.2684, allocations: 135.9 kB / 0.9227 GB, free: 40.55 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0008556/0.2693, allocations: 0.711 MB / 0.9234 GB, free: 39.84 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.2693, allocations: 0 / 0.9234 GB, free: 39.84 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002384/0.2695, allocations: 194.5 kB / 0.9236 GB, free: 39.65 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006275/0.2702, allocations: 107.2 kB / 0.9237 GB, free: 39.55 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.2716, allocations: 1.267 MB / 0.9249 GB, free: 38.24 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.272, allocations: 0.9114 MB / 0.9258 GB, free: 37.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.2721, allocations: 47.42 kB / 0.9259 GB, free: 37.25 MB / 0.6042 GB Notification: Performance of SimCode: time 4.3e-07/0.2721, allocations: 4 kB / 0.9259 GB, free: 37.25 MB / 0.6042 GB Notification: Performance of Templates: time 0.008248/0.2803, allocations: 6.972 MB / 0.9327 GB, free: 30.31 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)