Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.DC.Storage.Examples.Battery.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 loadModel(Buildings): time 3.968/3.968, allocations: 432.7 MB / 445.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.284e-05/3.297e-05, allocations: 2.797 kB / 0.5383 GB, free: 10.28 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1799/0.18, allocations: 98.72 MB / 0.6347 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6917/0.8717, allocations: 150.7 MB / 0.7818 GB, free: 56.87 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.8721, allocations: 86.19 kB / 0.7819 GB, free: 56.87 MB / 0.6511 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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.07744/0.9495, allocations: 20.96 MB / 0.8024 GB, free: 54.94 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.963e-06/0.9496, allocations: 0 / 0.8024 GB, free: 54.94 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.785e-05/0.9497, allocations: 22.12 kB / 0.8024 GB, free: 54.93 MB / 0.6511 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.001671/0.9513, allocations: 0.7723 MB / 0.8032 GB, free: 54.41 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.9514, allocations: 10.12 kB / 0.8032 GB, free: 54.41 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009651/0.9524, allocations: 130 kB / 0.8033 GB, free: 54.37 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007668/0.9532, allocations: 407.3 kB / 0.8037 GB, free: 54.12 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.743e-05/0.9533, allocations: 57.34 kB / 0.8037 GB, free: 54.12 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.9534, allocations: 77.66 kB / 0.8038 GB, free: 54.12 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001702/0.9551, allocations: 0.8364 MB / 0.8046 GB, free: 53.89 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.749e-05/0.9552, allocations: 1.625 kB / 0.8046 GB, free: 53.89 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.845e-05/0.9553, allocations: 39.11 kB / 0.8047 GB, free: 53.89 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.759e-05/0.9554, allocations: 45.36 kB / 0.8047 GB, free: 53.89 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001446/0.9569, allocations: 0.5552 MB / 0.8053 GB, free: 53.87 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005309/0.9622, allocations: 3.673 MB / 0.8088 GB, free: 51.46 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007568/0.963, allocations: 302.2 kB / 0.8091 GB, free: 51.41 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004583/0.9635, allocations: 194.6 kB / 0.8093 GB, free: 51.41 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.093e-05/0.9636, allocations: 8.188 kB / 0.8093 GB, free: 51.41 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004226/0.964, allocations: 217.4 kB / 0.8095 GB, free: 51.34 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 4.084e-06/0.964, allocations: 0 / 0.8095 GB, free: 51.34 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0007831/0.9648, allocations: 325.1 kB / 0.8098 GB, free: 51.28 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.9649, allocations: 55.34 kB / 0.8099 GB, free: 51.21 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005458/0.9654, allocations: 386.9 kB / 0.8103 GB, free: 51.08 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.94e-05/0.9655, allocations: 47.62 kB / 0.8103 GB, free: 51.05 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002489/0.9658, allocations: 341.5 kB / 0.8106 GB, free: 50.86 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.966, allocations: 129.4 kB / 0.8108 GB, free: 50.79 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.114e-05/0.966, allocations: 13.22 kB / 0.8108 GB, free: 50.79 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.9661, allocations: 362 kB / 0.8111 GB, free: 50.47 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003729/0.9665, allocations: 150.2 kB / 0.8113 GB, free: 50.47 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004619/0.967, allocations: 386 kB / 0.8116 GB, free: 50.18 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000404/0.9674, allocations: 180.9 kB / 0.8118 GB, free: 50.16 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.967e-06/0.9674, allocations: 3.906 kB / 0.8118 GB, free: 50.16 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001212/0.9686, allocations: 0.5828 MB / 0.8124 GB, free: 50.04 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005331/0.9692, allocations: 2.7 MB / 0.815 GB, free: 47.21 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.9692, allocations: 7.812 kB / 0.815 GB, free: 47.21 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.116e-05/0.9693, allocations: 11.72 kB / 0.815 GB, free: 47.21 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005117/0.9698, allocations: 103.8 kB / 0.8151 GB, free: 47.19 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.262e-05/0.9698, allocations: 19.33 kB / 0.8151 GB, free: 47.19 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005523/0.9704, allocations: 65.3 kB / 0.8152 GB, free: 47.16 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.015e-05/0.9705, allocations: 38.27 kB / 0.8152 GB, free: 47.15 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.9705, allocations: 5.375 kB / 0.8153 GB, free: 47.15 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001046/0.9716, allocations: 0.508 MB / 0.8157 GB, free: 47.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.9716, allocations: 11.81 kB / 0.8158 GB, free: 47.09 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.9716, allocations: 11.81 kB / 0.8158 GB, free: 47.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004636/0.9721, allocations: 104 kB / 0.8159 GB, free: 47.07 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.973e-05/0.9721, allocations: 19.12 kB / 0.8159 GB, free: 47.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005306/0.9727, allocations: 54.38 kB / 0.8159 GB, free: 47.05 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.665e-05/0.9728, allocations: 37.48 kB / 0.816 GB, free: 47.05 MB / 0.6511 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 () * 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.000209/0.973, allocations: 166.2 kB / 0.8161 GB, free: 46.92 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.9731, allocations: 50.67 kB / 0.8162 GB, free: 46.89 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008563/0.974, allocations: 381.7 kB / 0.8165 GB, free: 46.84 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.974, allocations: 3.906 kB / 0.8166 GB, free: 46.84 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.893e-06/0.974, allocations: 0 / 0.8166 GB, free: 46.84 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.974, allocations: 3.328 kB / 0.8166 GB, free: 46.84 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/0.9761, allocations: 1.082 MB / 0.8176 GB, free: 46.43 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.015e-06/0.9761, allocations: 4.062 kB / 0.8176 GB, free: 46.43 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002841/0.9764, allocations: 45.56 kB / 0.8177 GB, free: 46.42 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.157e-05/0.9764, allocations: 7.141 kB / 0.8177 GB, free: 46.42 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.9765, allocations: 7.531 kB / 0.8177 GB, free: 46.42 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.63e-06/0.9765, allocations: 0 / 0.8177 GB, free: 46.42 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.26e-06/0.9765, allocations: 11.88 kB / 0.8177 GB, free: 46.41 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.9776, allocations: 0.6313 MB / 0.8183 GB, free: 46.19 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002444/0.9778, allocations: 156.2 kB / 0.8184 GB, free: 46.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.055e-05/0.9779, allocations: 10.91 kB / 0.8185 GB, free: 46.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003124/0.9783, allocations: 14.73 kB / 0.8185 GB, free: 46.07 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.9784, allocations: 54.16 kB / 0.8185 GB, free: 46.06 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.342e-05/0.9785, allocations: 19.03 kB / 0.8185 GB, free: 46.06 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003564/0.9789, allocations: 259.5 kB / 0.8188 GB, free: 45.96 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.43e-07/0.9789, allocations: 0 / 0.8188 GB, free: 45.96 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001223/0.9801, allocations: 237 kB / 0.819 GB, free: 45.94 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * 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.0002095/0.9803, allocations: 134.3 kB / 0.8191 GB, free: 45.84 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001476/0.9818, allocations: 0.7077 MB / 0.8198 GB, free: 45.78 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.526e-06/0.9819, allocations: 1 kB / 0.8198 GB, free: 45.78 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003614/0.9822, allocations: 183.2 kB / 0.82 GB, free: 45.76 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007532/0.983, allocations: 90.55 kB / 0.8201 GB, free: 45.75 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.9848, allocations: 0.7083 MB / 0.8208 GB, free: 45.5 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000435/0.9852, allocations: 0.9269 MB / 0.8217 GB, free: 44.79 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.000709/0.986, allocations: 134.6 kB / 0.8218 GB, free: 44.77 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.9861, allocations: 41.86 kB / 0.8219 GB, free: 44.76 MB / 0.6511 GB Notification: Performance of SimCode: time 2.007e-06/0.9861, allocations: 3.906 kB / 0.8219 GB, free: 44.76 MB / 0.6511 GB Notification: Performance of Templates: time 0.0168/1.003, allocations: 5.89 MB / 0.8276 GB, free: 44.36 MB / 0.6511 GB