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.86/3.86, allocations: 432.7 MB / 444.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.601e-05/3.616e-05, allocations: 3.406 kB / 0.5337 GB, free: 12.2 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1834/0.1834, allocations: 98.72 MB / 0.6301 GB, free: 6.223 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6754/0.8589, allocations: 150.7 MB / 0.7772 GB, free: 143.2 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/0.8592, allocations: 87.19 kB / 0.7773 GB, free: 143.2 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.07547/0.9347, allocations: 20.91 MB / 0.7977 GB, free: 138.4 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.973e-06/0.9347, allocations: 0 / 0.7977 GB, free: 138.4 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.929e-05/0.9348, allocations: 27 kB / 0.7978 GB, free: 138.4 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.001464/0.9363, allocations: 0.7766 MB / 0.7985 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.9363, allocations: 9.875 kB / 0.7985 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009003/0.9372, allocations: 127.5 kB / 0.7987 GB, free: 137.7 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007312/0.938, allocations: 407.2 kB / 0.7991 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.557e-05/0.9381, allocations: 58.72 kB / 0.7991 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/0.9383, allocations: 79.36 kB / 0.7992 GB, free: 137.3 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.9399, allocations: 0.8291 MB / 0.8 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.632e-05/0.94, allocations: 3.984 kB / 0.8 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.74e-05/0.9401, allocations: 31.61 kB / 0.8 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.718e-05/0.9402, allocations: 43.27 kB / 0.8001 GB, free: 136.7 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.9414, allocations: 0.543 MB / 0.8006 GB, free: 136.4 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004555/0.9459, allocations: 3.675 MB / 0.8042 GB, free: 133.1 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006773/0.9467, allocations: 294 kB / 0.8045 GB, free: 133 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004235/0.9471, allocations: 194.8 kB / 0.8047 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.242e-05/0.9472, allocations: 7.719 kB / 0.8047 GB, free: 132.9 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004259/0.9476, allocations: 205.8 kB / 0.8049 GB, free: 132.8 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 4.666e-06/0.9476, allocations: 0 / 0.8049 GB, free: 132.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0007669/0.9484, allocations: 326.3 kB / 0.8052 GB, free: 132.6 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.9485, allocations: 62.53 kB / 0.8052 GB, free: 132.5 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005142/0.949, allocations: 382.5 kB / 0.8056 GB, free: 132.3 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.262e-05/0.9491, allocations: 44.77 kB / 0.8056 GB, free: 132.3 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.9493, allocations: 347.4 kB / 0.806 GB, free: 132 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.9495, allocations: 124.7 kB / 0.8061 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.74e-05/0.9495, allocations: 19.91 kB / 0.8061 GB, free: 131.9 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 9.585e-05/0.9496, allocations: 358.3 kB / 0.8064 GB, free: 131.5 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003646/0.95, allocations: 147.1 kB / 0.8066 GB, free: 131.4 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004984/0.9505, allocations: 377.6 kB / 0.8069 GB, free: 131.1 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004139/0.9509, allocations: 180 kB / 0.8071 GB, free: 131 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.119e-06/0.951, allocations: 0 / 0.8071 GB, free: 131 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001187/0.9522, allocations: 0.5744 MB / 0.8077 GB, free: 130.7 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005239/0.9527, allocations: 2.691 MB / 0.8103 GB, free: 127.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.9527, allocations: 7.312 kB / 0.8103 GB, free: 127.8 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.414e-05/0.9528, allocations: 15.53 kB / 0.8103 GB, free: 127.8 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005237/0.9533, allocations: 106.3 kB / 0.8104 GB, free: 127.8 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.151e-05/0.9534, allocations: 19.39 kB / 0.8105 GB, free: 127.8 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005804/0.9539, allocations: 71.67 kB / 0.8105 GB, free: 127.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-05/0.954, allocations: 31.45 kB / 0.8105 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.9541, allocations: 7.812 kB / 0.8106 GB, free: 127.7 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001042/0.9551, allocations: 0.4948 MB / 0.811 GB, free: 127.3 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.9551, allocations: 8 kB / 0.811 GB, free: 127.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.9552, allocations: 12 kB / 0.8111 GB, free: 127.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004496/0.9556, allocations: 108.5 kB / 0.8112 GB, free: 127.2 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.9557, allocations: 11.94 kB / 0.8112 GB, free: 127.2 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004961/0.9562, allocations: 55.67 kB / 0.8112 GB, free: 127.1 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-05/0.9563, allocations: 36 kB / 0.8113 GB, free: 127.1 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.0001884/0.9565, allocations: 163.2 kB / 0.8114 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.848e-05/0.9566, allocations: 51.39 kB / 0.8115 GB, free: 126.9 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008498/0.9574, allocations: 380.9 kB / 0.8118 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.663e-06/0.9575, allocations: 8 kB / 0.8118 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.614e-06/0.9575, allocations: 4 kB / 0.8118 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.9575, allocations: 3.984 kB / 0.8118 GB, free: 126.5 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001941/0.9594, allocations: 1.072 MB / 0.8129 GB, free: 125.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.259e-06/0.9595, allocations: 8.062 kB / 0.8129 GB, free: 125.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003035/0.9598, allocations: 47.91 kB / 0.8129 GB, free: 125.3 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.9598, allocations: 4 kB / 0.8129 GB, free: 125.3 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.758e-05/0.9599, allocations: 15.98 kB / 0.813 GB, free: 125.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.452e-06/0.9599, allocations: 0 / 0.813 GB, free: 125.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.209e-06/0.9599, allocations: 4 kB / 0.813 GB, free: 125.3 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.961, allocations: 0.6368 MB / 0.8136 GB, free: 124.6 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002151/0.9612, allocations: 148.4 kB / 0.8137 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.798e-05/0.9613, allocations: 12 kB / 0.8137 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.9616, allocations: 16 kB / 0.8138 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.9618, allocations: 52.31 kB / 0.8138 GB, free: 124.4 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-05/0.9618, allocations: 16 kB / 0.8138 GB, free: 124.3 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003437/0.9622, allocations: 261.3 kB / 0.8141 GB, free: 124.1 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.82e-07/0.9622, allocations: 0 / 0.8141 GB, free: 124.1 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001176/0.9634, allocations: 243.5 kB / 0.8143 GB, free: 123.9 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.0002071/0.9636, allocations: 137.3 kB / 0.8144 GB, free: 123.7 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001385/0.965, allocations: 0.6809 MB / 0.8151 GB, free: 123 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.97e-06/0.9651, allocations: 0 / 0.8151 GB, free: 123 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003351/0.9654, allocations: 173.5 kB / 0.8153 GB, free: 122.9 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006943/0.9661, allocations: 101.5 kB / 0.8154 GB, free: 122.8 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.9678, allocations: 0.7013 MB / 0.816 GB, free: 122 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.9682, allocations: 0.9199 MB / 0.8169 GB, free: 121.1 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0006801/0.9689, allocations: 136.6 kB / 0.8171 GB, free: 121 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.9691, allocations: 47.42 kB / 0.8171 GB, free: 120.9 MB / 0.6511 GB Notification: Performance of SimCode: time 1.84e-06/0.9691, allocations: 4 kB / 0.8171 GB, free: 120.9 MB / 0.6511 GB Notification: Performance of Templates: time 0.01607/0.9852, allocations: 5.849 MB / 0.8228 GB, free: 115.1 MB / 0.6511 GB