Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.52/4.52, allocations: 464.6 MB / 476.8 MB, free: 2.184 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.33e-05/3.339e-05, allocations: 0 / 0.5732 GB, free: 5.613 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.278, allocations: 107.1 MB / 0.6778 GB, free: 10.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9696/1.248, allocations: 158 MB / 0.8322 GB, free: 10.4 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004169/1.248, allocations: 87.16 kB / 0.8322 GB, free: 10.39 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings latest/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 latest/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.08373/1.332, allocations: 21.03 MB / 0.8528 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.174e-06/1.332, allocations: 0 / 0.8528 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 6.103e-05/1.332, allocations: 23.98 kB / 0.8528 GB, free: 11.75 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.002035/1.334, allocations: 0.7892 MB / 0.8536 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/1.334, allocations: 8.031 kB / 0.8536 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002242/1.334, allocations: 118.8 kB / 0.8537 GB, free: 10.86 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/1.335, allocations: 126.3 kB / 0.8538 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009651/1.336, allocations: 415.2 kB / 0.8542 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.884e-05/1.337, allocations: 62.8 kB / 0.8543 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001671/1.337, allocations: 76.06 kB / 0.8543 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002099/1.339, allocations: 0.8441 MB / 0.8552 GB, free: 9.598 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.393e-05/1.339, allocations: 3.938 kB / 0.8552 GB, free: 9.594 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/1.339, allocations: 32.5 kB / 0.8552 GB, free: 9.586 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001016/1.339, allocations: 41.98 kB / 0.8552 GB, free: 9.547 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/1.341, allocations: 0.5383 MB / 0.8558 GB, free: 9.188 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006619/1.347, allocations: 3.694 MB / 0.8594 GB, free: 5.773 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000884/1.348, allocations: 283.8 kB / 0.8597 GB, free: 5.566 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005906/1.349, allocations: 201.1 kB / 0.8598 GB, free: 5.434 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.187e-05/1.349, allocations: 8.359 kB / 0.8599 GB, free: 5.426 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005395/1.35, allocations: 207.5 kB / 0.86 GB, free: 5.266 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 4.348e-06/1.35, allocations: 0 / 0.86 GB, free: 5.266 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0009836/1.351, allocations: 319.5 kB / 0.8604 GB, free: 5.012 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.448e-05/1.351, allocations: 66.42 kB / 0.8604 GB, free: 4.938 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006772/1.351, allocations: 385.8 kB / 0.8608 GB, free: 4.633 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.822e-05/1.352, allocations: 51.94 kB / 0.8608 GB, free: 4.59 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.000354/1.352, allocations: 345.7 kB / 0.8612 GB, free: 4.312 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/1.352, allocations: 129.8 kB / 0.8613 GB, free: 4.203 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.229e-05/1.352, allocations: 18.75 kB / 0.8613 GB, free: 4.199 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002297/1.352, allocations: 355 kB / 0.8616 GB, free: 3.863 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004304/1.353, allocations: 149.6 kB / 0.8618 GB, free: 3.77 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000664/1.354, allocations: 386.3 kB / 0.8622 GB, free: 3.359 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005173/1.354, allocations: 183.6 kB / 0.8623 GB, free: 3.227 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/1.354, allocations: 0 / 0.8623 GB, free: 3.227 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001477/1.356, allocations: 0.5646 MB / 0.8629 GB, free: 2.77 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001388/1.357, allocations: 2.701 MB / 0.8655 GB, free: 15.91 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.442e-05/1.357, allocations: 8 kB / 0.8655 GB, free: 15.9 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.241e-05/1.357, allocations: 16 kB / 0.8655 GB, free: 15.88 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007851/1.358, allocations: 106.2 kB / 0.8656 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.758e-05/1.358, allocations: 11.94 kB / 0.8657 GB, free: 15.77 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006465/1.359, allocations: 66.14 kB / 0.8657 GB, free: 15.72 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.15e-05/1.359, allocations: 30.31 kB / 0.8657 GB, free: 15.7 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/1.359, allocations: 4 kB / 0.8658 GB, free: 15.69 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001298/1.36, allocations: 0.497 MB / 0.8662 GB, free: 15.32 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/1.36, allocations: 8.062 kB / 0.8662 GB, free: 15.31 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/1.36, allocations: 12 kB / 0.8663 GB, free: 15.3 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006637/1.361, allocations: 102.3 kB / 0.8664 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-05/1.361, allocations: 19.92 kB / 0.8664 GB, free: 15.19 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005992/1.361, allocations: 53.03 kB / 0.8664 GB, free: 15.14 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-05/1.362, allocations: 42.55 kB / 0.8665 GB, free: 15.11 MB / 0.6667 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.0002686/1.362, allocations: 169 kB / 0.8666 GB, free: 14.96 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/1.362, allocations: 43.44 kB / 0.8667 GB, free: 14.92 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/1.363, allocations: 375.3 kB / 0.867 GB, free: 14.65 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/1.363, allocations: 4 kB / 0.867 GB, free: 14.65 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/1.363, allocations: 0 / 0.867 GB, free: 14.65 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/1.363, allocations: 3.984 kB / 0.867 GB, free: 14.64 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002475/1.366, allocations: 1.092 MB / 0.8681 GB, free: 13.71 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/1.366, allocations: 11.92 kB / 0.8681 GB, free: 13.7 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004009/1.366, allocations: 39.17 kB / 0.8681 GB, free: 13.67 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.518e-05/1.366, allocations: 4 kB / 0.8682 GB, free: 13.66 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.682e-05/1.366, allocations: 19.62 kB / 0.8682 GB, free: 13.65 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.669e-06/1.366, allocations: 4 kB / 0.8682 GB, free: 13.64 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.366, allocations: 0 / 0.8682 GB, free: 13.64 MB / 0.6667 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/1.368, allocations: 0.639 MB / 0.8688 GB, free: 13.12 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002816/1.368, allocations: 153.9 kB / 0.8689 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.508e-05/1.368, allocations: 11.62 kB / 0.869 GB, free: 12.96 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003704/1.368, allocations: 18.11 kB / 0.869 GB, free: 12.95 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/1.369, allocations: 46.25 kB / 0.869 GB, free: 12.91 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.135e-05/1.369, allocations: 19.11 kB / 0.869 GB, free: 12.89 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.0004558/1.369, allocations: 255 kB / 0.8693 GB, free: 12.7 MB / 0.6667 GB Notification: Performance of sort global known variables: time 5.71e-07/1.369, allocations: 0 / 0.8693 GB, free: 12.7 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001287/1.37, allocations: 230.8 kB / 0.8695 GB, free: 12.5 MB / 0.6667 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.001953/1.372, allocations: 1.364 MB / 0.8708 GB, free: 11.25 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001866/1.374, allocations: 0.6827 MB / 0.8715 GB, free: 10.74 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/1.374, allocations: 0 / 0.8715 GB, free: 10.74 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0004751/1.375, allocations: 170.7 kB / 0.8717 GB, free: 10.62 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008945/1.376, allocations: 96.55 kB / 0.8718 GB, free: 10.55 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002929/1.379, allocations: 0.8441 MB / 0.8726 GB, free: 9.785 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007771/1.379, allocations: 0.926 MB / 0.8735 GB, free: 8.844 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0009342/1.38, allocations: 136.7 kB / 0.8736 GB, free: 8.711 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004117/1.381, allocations: 216.9 kB / 0.8738 GB, free: 8.652 MB / 0.6667 GB Notification: Performance of SimCode: time 1.433e-06/1.381, allocations: 0 / 0.8738 GB, free: 8.652 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05014/1.431, allocations: 10.54 MB / 0.8841 GB, free: 14.21 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003547/1.431, allocations: 157.8 kB / 0.8843 GB, free: 13.99 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.849/4.28, allocations: 0 / 0.8843 GB, free: 13.99 MB / 0.6823 GB