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.005898/0.005897, allocations: 230.9 kB / 15.82 MB, free: 6.293 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.001781/0.001781, allocations: 172.9 kB / 16.7 MB, free: 5.449 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 4.097/4.097, allocations: 389.1 MB / 406.5 MB, free: 11.83 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 3.924/3.924, allocations: 472.3 MB / 0.9024 GB, free: 9.219 MB / 0.5886 GB Notification: Performance of FrontEnd - loaded program: time 0.0004752/0.0004754, allocations: 10.84 kB / 1.008 GB, free: 138.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1737, allocations: 98.72 MB / 1.105 GB, free: 42.16 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.832/1.006, allocations: 150.8 MB / 1.252 GB, free: 7.391 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/1.006, allocations: 93.16 kB / 1.252 GB, free: 7.344 MB / 0.6198 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.08157/1.088, allocations: 21.06 MB / 1.273 GB, free: 6.145 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.665e-06/1.088, allocations: 0 / 1.273 GB, free: 6.145 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.711e-05/1.088, allocations: 20.69 kB / 1.273 GB, free: 6.125 MB / 0.6355 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.002128/1.09, allocations: 0.8188 MB / 1.273 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/1.09, allocations: 8.031 kB / 1.273 GB, free: 5.301 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/1.091, allocations: 126.3 kB / 1.273 GB, free: 5.18 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009519/1.092, allocations: 415.8 kB / 1.274 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.901e-05/1.092, allocations: 61.48 kB / 1.274 GB, free: 4.762 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001731/1.092, allocations: 76.19 kB / 1.274 GB, free: 4.711 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/1.094, allocations: 0.8553 MB / 1.275 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.294e-05/1.094, allocations: 7.938 kB / 1.275 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.863e-05/1.095, allocations: 31.58 kB / 1.275 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.587e-05/1.095, allocations: 40.67 kB / 1.275 GB, free: 3.98 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/1.096, allocations: 0.5727 MB / 1.275 GB, free: 3.59 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006103/1.102, allocations: 3.67 MB / 1.279 GB, free: 228 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009252/1.103, allocations: 316.7 kB / 1.279 GB, free: 4 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006539/1.104, allocations: 231.3 kB / 1.28 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.493e-05/1.104, allocations: 4.438 kB / 1.28 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005948/1.105, allocations: 253.4 kB / 1.28 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=48): time 3.106e-06/1.105, allocations: 0 / 1.28 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of matching and sorting (n=48): time 0.001351/1.106, allocations: 461.3 kB / 1.28 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.031e-05/1.106, allocations: 87.92 kB / 1.28 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006516/1.107, allocations: 416.2 kB / 1.281 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.791e-05/1.107, allocations: 50.88 kB / 1.281 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003266/1.107, allocations: 335 kB / 1.281 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/1.108, allocations: 133.9 kB / 1.281 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/1.108, allocations: 10.12 kB / 1.281 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001807/1.108, allocations: 360.9 kB / 1.282 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004457/1.108, allocations: 162.4 kB / 1.282 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006495/1.109, allocations: 391.5 kB / 1.282 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004946/1.109, allocations: 189.9 kB / 1.282 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.789e-06/1.109, allocations: 4 kB / 1.282 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001439/1.111, allocations: 0.599 MB / 1.283 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002709/1.111, allocations: 300.3 kB / 1.283 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/1.111, allocations: 8 kB / 1.283 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.444e-05/1.111, allocations: 12 kB / 1.283 GB, free: 12.67 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006557/1.112, allocations: 103.2 kB / 1.283 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.364e-05/1.112, allocations: 11.98 kB / 1.283 GB, free: 12.56 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005658/1.112, allocations: 64.59 kB / 1.283 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.08e-05/1.113, allocations: 35.86 kB / 1.283 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7.905e-06/1.113, allocations: 3.938 kB / 1.283 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001257/1.114, allocations: 0.5285 MB / 1.284 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/1.114, allocations: 4 kB / 1.284 GB, free: 12.1 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/1.114, allocations: 16 kB / 1.284 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006002/1.115, allocations: 110.4 kB / 1.284 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.289e-05/1.115, allocations: 15.94 kB / 1.284 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004991/1.115, allocations: 59.3 kB / 1.284 GB, free: 11.92 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.932e-05/1.115, allocations: 30.75 kB / 1.284 GB, free: 11.9 MB / 0.6511 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,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,stateGraphRoot.resume,stateGraphRoot.suspend) * 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.0005441/1.116, allocations: 323.8 kB / 1.284 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/1.116, allocations: 43.44 kB / 1.284 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/1.117, allocations: 390.1 kB / 1.285 GB, free: 11.32 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/1.117, allocations: 11.94 kB / 1.285 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/1.117, allocations: 0 / 1.285 GB, free: 11.31 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/1.117, allocations: 11.92 kB / 1.285 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/1.12, allocations: 1.212 MB / 1.286 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.351e-06/1.12, allocations: 3.938 kB / 1.286 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004115/1.12, allocations: 47.91 kB / 1.286 GB, free: 10.22 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.247e-05/1.12, allocations: 4 kB / 1.286 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/1.12, allocations: 10.38 kB / 1.286 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.25e-05/1.12, allocations: 7.938 kB / 1.286 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/1.12, allocations: 0 / 1.286 GB, free: 10.2 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/1.122, allocations: 0.6535 MB / 1.287 GB, free: 9.691 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002856/1.122, allocations: 164.7 kB / 1.287 GB, free: 9.531 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/1.122, allocations: 11.12 kB / 1.287 GB, free: 9.527 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003336/1.122, allocations: 14.23 kB / 1.287 GB, free: 9.52 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/1.122, allocations: 57.17 kB / 1.287 GB, free: 9.473 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.905e-05/1.123, allocations: 15.31 kB / 1.287 GB, free: 9.461 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000434/1.123, allocations: 256.1 kB / 1.287 GB, free: 9.262 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.21e-07/1.123, allocations: 0 / 1.287 GB, free: 9.262 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001289/1.124, allocations: 230.4 kB / 1.288 GB, free: 9.062 MB / 0.6511 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,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 (53): * Single equations (assignments): 49 * 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.0002633/1.125, allocations: 137 kB / 1.288 GB, free: 8.93 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001889/1.126, allocations: 0.7195 MB / 1.288 GB, free: 8.398 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.483e-06/1.127, allocations: 0 / 1.288 GB, free: 8.398 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005128/1.127, allocations: 201.7 kB / 1.289 GB, free: 8.254 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/1.128, allocations: 106.8 kB / 1.289 GB, free: 8.184 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002799/1.131, allocations: 1.203 MB / 1.29 GB, free: 7.062 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007021/1.132, allocations: 0.9192 MB / 1.291 GB, free: 6.133 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0007903/1.132, allocations: 116.5 kB / 1.291 GB, free: 6.031 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002122/1.133, allocations: 47.42 kB / 1.291 GB, free: 5.984 MB / 0.6511 GB Notification: Performance of SimCode: time 1.072e-06/1.133, allocations: 0.625 kB / 1.291 GB, free: 5.984 MB / 0.6511 GB Notification: Performance of Templates: time 0.01896/1.152, allocations: 5.419 MB / 1.296 GB, free: 0.8516 MB / 0.6511 GB