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.347/1.347, allocations: 252 MB / 268 MB, free: 10.88 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.0008851/0.0008852, allocations: 174.4 kB / 327.6 MB, free: 2.113 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.459/1.459, allocations: 205.4 MB / 0.5786 GB, free: 20.2 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.0007205/0.0007205, allocations: 102.3 kB / 0.6832 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003055, allocations: 8.031 kB / 0.7976 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1565/0.1568, allocations: 106.3 MB / 0.9014 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.004124/0.161, allocations: 3.873 MB / 0.9052 GB, free: 59.64 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002766/0.1638, allocations: 1.999 MB / 0.9072 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004401/0.1643, allocations: 15.94 kB / 0.9072 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0003618/0.1646, allocations: 75.3 kB / 0.9073 GB, free: 57.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0007231/0.1654, allocations: 207 kB / 0.9075 GB, free: 57.34 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1664, allocations: 395.4 kB / 0.9078 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001128/0.1676, allocations: 1.041 MB / 0.9089 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001062/0.1687, allocations: 0.8802 MB / 0.9097 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002966/0.169, allocations: 254.9 kB / 0.91 GB, free: 54.73 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004084/0.1694, allocations: 334.3 kB / 0.9103 GB, free: 54.4 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 7.402e-05/0.1695, allocations: 32 kB / 0.9103 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003395/0.1698, allocations: 203.6 kB / 0.9105 GB, free: 54.17 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001377/0.17, allocations: 167.4 kB / 0.9107 GB, free: 54 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0002249/0.1702, allocations: 327.9 kB / 0.911 GB, free: 53.68 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0005535/0.1708, allocations: 0.6471 MB / 0.9116 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.1708, allocations: 0 / 0.9116 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.044e-06/0.1708, allocations: 0 / 0.9116 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.485e-05/0.1708, allocations: 0 / 0.9116 GB, free: 53.03 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.00161/0.1724, allocations: 0.801 MB / 0.9124 GB, free: 52.18 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.1725, allocations: 8.031 kB / 0.9124 GB, free: 52.17 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006328/0.1731, allocations: 120 kB / 0.9125 GB, free: 52.05 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005224/0.1737, allocations: 440.8 kB / 0.9129 GB, free: 51.58 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.898e-05/0.1737, allocations: 62.38 kB / 0.913 GB, free: 51.52 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.1738, allocations: 80.38 kB / 0.9131 GB, free: 51.44 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.175, allocations: 0.8907 MB / 0.9139 GB, free: 50.48 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.175, allocations: 0 / 0.9139 GB, free: 50.48 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-05/0.1751, allocations: 36 kB / 0.914 GB, free: 50.45 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.096e-05/0.1751, allocations: 49.92 kB / 0.914 GB, free: 50.4 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008448/0.176, allocations: 0.5659 MB / 0.9146 GB, free: 49.83 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002998/0.179, allocations: 3.72 MB / 0.9182 GB, free: 45.89 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004943/0.1795, allocations: 316.3 kB / 0.9185 GB, free: 45.58 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003434/0.1799, allocations: 212.2 kB / 0.9187 GB, free: 45.37 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.1799, allocations: 4.375 kB / 0.9187 GB, free: 45.37 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003448/0.1803, allocations: 255.8 kB / 0.919 GB, free: 45.1 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=47): time 2.906e-06/0.1803, allocations: 96 / 0.919 GB, free: 45.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=47): time 0.0007318/0.181, allocations: 455.9 kB / 0.9194 GB, free: 44.65 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.1811, allocations: 93.05 kB / 0.9195 GB, free: 44.54 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003894/0.1815, allocations: 413.2 kB / 0.9199 GB, free: 44.13 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 5.026e-05/0.1815, allocations: 49.7 kB / 0.9199 GB, free: 44.07 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.1817, allocations: 339.5 kB / 0.9202 GB, free: 43.74 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.1819, allocations: 138.2 kB / 0.9204 GB, free: 43.6 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.821e-05/0.1819, allocations: 20.12 kB / 0.9204 GB, free: 43.58 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.28e-05/0.182, allocations: 358.8 kB / 0.9207 GB, free: 43.22 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002458/0.1822, allocations: 153.9 kB / 0.9209 GB, free: 43.07 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003131/0.1826, allocations: 400.4 kB / 0.9213 GB, free: 42.58 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005017/0.1831, allocations: 0.5 MB / 0.9218 GB, free: 41.98 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1831, allocations: 7.938 kB / 0.9218 GB, free: 41.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0008164/0.1839, allocations: 0.588 MB / 0.9223 GB, free: 41.38 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.184, allocations: 302.5 kB / 0.9226 GB, free: 40.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.184, allocations: 8 kB / 0.9226 GB, free: 40.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.1841, allocations: 15.98 kB / 0.9227 GB, free: 40.96 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003215/0.1844, allocations: 95.77 kB / 0.9227 GB, free: 40.87 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.411e-05/0.1844, allocations: 15.94 kB / 0.9228 GB, free: 40.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.1847, allocations: 79.2 kB / 0.9228 GB, free: 40.77 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.487e-05/0.1848, allocations: 39.98 kB / 0.9229 GB, free: 40.73 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.324e-06/0.1848, allocations: 7.938 kB / 0.9229 GB, free: 40.73 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006688/0.1855, allocations: 0.5246 MB / 0.9234 GB, free: 40.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.1855, allocations: 4 kB / 0.9234 GB, free: 40.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.1855, allocations: 12 kB / 0.9234 GB, free: 40.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002888/0.1858, allocations: 99.77 kB / 0.9235 GB, free: 40.09 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.1858, allocations: 19.92 kB / 0.9235 GB, free: 40.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002921/0.1861, allocations: 67.66 kB / 0.9236 GB, free: 40 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.295e-05/0.1862, allocations: 43.98 kB / 0.9236 GB, free: 39.96 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002659/0.1865, allocations: 312.8 kB / 0.9239 GB, free: 39.64 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.825e-05/0.1865, allocations: 47.38 kB / 0.924 GB, free: 39.6 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005667/0.1871, allocations: 393.1 kB / 0.9243 GB, free: 39.2 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1871, allocations: 4 kB / 0.9243 GB, free: 39.2 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1871, allocations: 4 kB / 0.9244 GB, free: 39.2 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.1871, allocations: 11.92 kB / 0.9244 GB, free: 39.18 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.1885, allocations: 1.214 MB / 0.9255 GB, free: 37.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1885, allocations: 3.984 kB / 0.9256 GB, free: 37.88 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002016/0.1887, allocations: 51.98 kB / 0.9256 GB, free: 37.83 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.1887, allocations: 4 kB / 0.9256 GB, free: 37.83 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.867e-05/0.1887, allocations: 11.98 kB / 0.9256 GB, free: 37.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1888, allocations: 7.938 kB / 0.9256 GB, free: 37.81 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1888, allocations: 3.938 kB / 0.9256 GB, free: 37.8 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007021/0.1895, allocations: 0.6516 MB / 0.9263 GB, free: 37.12 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.1896, allocations: 152.4 kB / 0.9264 GB, free: 36.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.797e-05/0.1897, allocations: 15.98 kB / 0.9264 GB, free: 36.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.1899, allocations: 16 kB / 0.9264 GB, free: 36.93 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.19, allocations: 48.31 kB / 0.9265 GB, free: 36.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.95e-05/0.19, allocations: 16 kB / 0.9265 GB, free: 36.86 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001996/0.1902, allocations: 259.2 kB / 0.9267 GB, free: 36.61 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1902, allocations: 0 / 0.9267 GB, free: 36.61 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000731/0.191, allocations: 274.8 kB / 0.927 GB, free: 36.34 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.000145/0.1911, allocations: 137.4 kB / 0.9271 GB, free: 36.2 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001012/0.1921, allocations: 0.711 MB / 0.9278 GB, free: 35.49 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1922, allocations: 0 / 0.9278 GB, free: 35.49 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002469/0.1924, allocations: 194.5 kB / 0.928 GB, free: 35.3 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000625/0.193, allocations: 105.5 kB / 0.9281 GB, free: 35.2 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.1946, allocations: 1.301 MB / 0.9294 GB, free: 33.85 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.195, allocations: 0.9033 MB / 0.9303 GB, free: 32.92 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.1951, allocations: 55.42 kB / 0.9303 GB, free: 32.87 MB / 0.6042 GB Notification: Performance of SimCode: time 5.11e-07/0.1951, allocations: 3.938 kB / 0.9303 GB, free: 32.86 MB / 0.6042 GB Notification: Performance of Templates: time 0.009246/0.2044, allocations: 6.96 MB / 0.9371 GB, free: 25.94 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)