Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.008995/0.008995, allocations: 110.8 kB / 15.06 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001103/0.001102, allocations: 179.7 kB / 15.94 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.856/1.856, allocations: 194.5 MB / 211.2 MB, free: 11.07 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.243/2.243, allocations: 236.2 MB / 492.6 MB, free: 11.35 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004971/0.0004973, allocations: 12 kB / 0.5869 GB, free: 2.152 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5491/0.5496, allocations: 98.71 MB / 0.6833 GB, free: 16.76 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2181/0.7678, allocations: 150.8 MB / 0.8306 GB, free: 7.48 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003096/0.7681, allocations: 87.95 kB / 0.8306 GB, free: 7.395 MB / 0.6511 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.07767/0.8458, allocations: 21.08 MB / 0.8512 GB, free: 2.098 MB / 0.6667 GB Notification: Performance of FrontEnd: time 2.626e-06/0.8459, allocations: 3.938 kB / 0.8512 GB, free: 2.094 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 4.665e-05/0.8459, allocations: 20 kB / 0.8513 GB, free: 2.074 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.001756/0.8477, allocations: 0.8246 MB / 0.8521 GB, free: 1.195 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.8477, allocations: 8.031 kB / 0.8521 GB, free: 1.188 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008996/0.8487, allocations: 127 kB / 0.8522 GB, free: 1.062 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008077/0.8495, allocations: 405.9 kB / 0.8526 GB, free: 0.625 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.12e-05/0.8496, allocations: 66 kB / 0.8526 GB, free: 0.5586 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.8498, allocations: 79.98 kB / 0.8527 GB, free: 492 kB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.8516, allocations: 0.8457 MB / 0.8535 GB, free: 15.57 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.726e-05/0.8517, allocations: 3.938 kB / 0.8535 GB, free: 15.57 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/0.8518, allocations: 35.94 kB / 0.8536 GB, free: 15.53 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.113e-05/0.8519, allocations: 45.28 kB / 0.8536 GB, free: 15.49 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.8534, allocations: 0.571 MB / 0.8542 GB, free: 14.92 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005767/0.8592, allocations: 3.67 MB / 0.8578 GB, free: 11.03 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008631/0.8601, allocations: 298.6 kB / 0.858 GB, free: 10.72 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.388e-05/0.8602, allocations: 12.38 kB / 0.8581 GB, free: 10.71 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005211/0.8607, allocations: 225.3 kB / 0.8583 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=46): time 4.17e-06/0.8607, allocations: 0 / 0.8583 GB, free: 10.48 MB / 0.6823 GB Notification: Performance of matching and sorting (n=46): time 0.001184/0.8619, allocations: 437.7 kB / 0.8587 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.797e-05/0.862, allocations: 63.34 kB / 0.8587 GB, free: 9.973 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006505/0.8627, allocations: 388.3 kB / 0.8591 GB, free: 9.586 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 9.219e-05/0.8628, allocations: 49.69 kB / 0.8592 GB, free: 9.531 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003357/0.8631, allocations: 335.4 kB / 0.8595 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.8633, allocations: 130.4 kB / 0.8596 GB, free: 9.07 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.1e-05/0.8633, allocations: 12 kB / 0.8596 GB, free: 9.059 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002064/0.8635, allocations: 362.8 kB / 0.86 GB, free: 8.695 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004185/0.864, allocations: 157.9 kB / 0.8601 GB, free: 8.543 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006487/0.8646, allocations: 387.6 kB / 0.8605 GB, free: 8.066 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004804/0.8651, allocations: 198.1 kB / 0.8607 GB, free: 7.875 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.56e-06/0.8652, allocations: 0 / 0.8607 GB, free: 7.875 MB / 0.6823 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00141/0.8666, allocations: 0.6034 MB / 0.8613 GB, free: 7.262 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001444/0.868, allocations: 2.697 MB / 0.8639 GB, free: 4.355 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/0.8681, allocations: 8 kB / 0.8639 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.257e-05/0.8681, allocations: 19.98 kB / 0.8639 GB, free: 4.328 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/0.8687, allocations: 99.77 kB / 0.864 GB, free: 4.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.571e-05/0.8688, allocations: 15.92 kB / 0.864 GB, free: 4.215 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005332/0.8693, allocations: 59.53 kB / 0.8641 GB, free: 4.156 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.878e-05/0.8694, allocations: 35.98 kB / 0.8641 GB, free: 4.121 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.8695, allocations: 7.953 kB / 0.8641 GB, free: 4.113 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001243/0.8707, allocations: 0.5249 MB / 0.8646 GB, free: 3.586 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.8707, allocations: 16.05 kB / 0.8647 GB, free: 3.57 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.8708, allocations: 12 kB / 0.8647 GB, free: 3.559 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004579/0.8712, allocations: 103.8 kB / 0.8648 GB, free: 3.457 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.928e-05/0.8713, allocations: 15.94 kB / 0.8648 GB, free: 3.441 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004875/0.8718, allocations: 59.52 kB / 0.8648 GB, free: 3.383 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.844e-05/0.8719, allocations: 28 kB / 0.8649 GB, free: 3.355 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.toOn.enableFire,$PRE.toHold.enableFire,$PRE.toDischarge.enableFire,$PRE.toOff.enableFire,stateGraphRoot.resume,stateGraphRoot.suspend,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,off.active,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.enableFire,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,hold.active,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.enableFire,stateGraphRoot.activeSteps) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * 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.0005426/0.8724, allocations: 320.8 kB / 0.8652 GB, free: 3.031 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001117/0.8726, allocations: 51.39 kB / 0.8652 GB, free: 2.98 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009726/0.8736, allocations: 397.1 kB / 0.8656 GB, free: 2.582 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.8736, allocations: 8 kB / 0.8656 GB, free: 2.574 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.976e-06/0.8736, allocations: 0 / 0.8656 GB, free: 2.574 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.322e-06/0.8736, allocations: 0 / 0.8656 GB, free: 2.574 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002146/0.8758, allocations: 1.03 MB / 0.8666 GB, free: 1.488 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.827e-06/0.8758, allocations: 0 / 0.8666 GB, free: 1.488 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.8761, allocations: 43.91 kB / 0.8667 GB, free: 1.445 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/0.8762, allocations: 4 kB / 0.8667 GB, free: 1.441 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.145e-05/0.8762, allocations: 11.98 kB / 0.8667 GB, free: 1.43 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.407e-06/0.8762, allocations: 4 kB / 0.8667 GB, free: 1.426 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.339e-06/0.8762, allocations: 0 / 0.8667 GB, free: 1.426 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.8775, allocations: 0.6191 MB / 0.8673 GB, free: 0.7891 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/0.8778, allocations: 148.6 kB / 0.8674 GB, free: 0.625 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.372e-05/0.8779, allocations: 11.94 kB / 0.8674 GB, free: 0.6133 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002903/0.8782, allocations: 27.86 kB / 0.8675 GB, free: 0.5859 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.8784, allocations: 48.36 kB / 0.8675 GB, free: 0.5391 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.233e-05/0.8784, allocations: 8 kB / 0.8675 GB, free: 0.5312 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0004058/0.8789, allocations: 263.2 kB / 0.8678 GB, free: 284 kB / 0.6823 GB Notification: Performance of sort global known variables: time 7.9e-07/0.8789, allocations: 0 / 0.8678 GB, free: 284 kB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001171/0.88, allocations: 235.7 kB / 0.868 GB, free: 48 kB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,startCharge.y,greaterEqualThreshold.y,startDischarge.y,lessEqualThreshold.y,off.newActive,off.oldActive,off.active,toOn.enableFire,charge.newActive,charge.oldActive,charge.active,toHold.enableFire,hold.newActive,hold.oldActive,hold.active,toDischarge.enableFire,discharge.newActive,discharge.oldActive,discharge.active,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 (50): * Single equations (assignments): 46 * 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.0002717/0.8803, allocations: 137.5 kB / 0.8681 GB, free: 15.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001686/0.882, allocations: 0.7173 MB / 0.8688 GB, free: 15.19 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.761e-06/0.8821, allocations: 0 / 0.8688 GB, free: 15.19 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004243/0.8825, allocations: 174.4 kB / 0.869 GB, free: 15.02 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000699/0.8832, allocations: 107.5 kB / 0.8691 GB, free: 14.91 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00246/0.8857, allocations: 1.155 MB / 0.8702 GB, free: 13.74 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007259/0.8865, allocations: 0.9193 MB / 0.8711 GB, free: 12.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000645/0.8871, allocations: 116.7 kB / 0.8712 GB, free: 12.68 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.8873, allocations: 43.42 kB / 0.8713 GB, free: 12.64 MB / 0.698 GB Notification: Performance of SimCode: time 1.812e-06/0.8873, allocations: 0 / 0.8713 GB, free: 12.64 MB / 0.698 GB Notification: Performance of Templates: time 0.01725/0.9046, allocations: 5.352 MB / 0.8765 GB, free: 7.332 MB / 0.698 GB