Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_5_0_1_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.944/3.944, allocations: 403.3 MB / 415.4 MB, free: 12.98 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.81e-05/3.812e-05, allocations: 4 kB / 0.4991 GB, free: 13.34 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6381/0.6382, allocations: 92.68 MB / 0.5896 GB, free: 14.35 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.365/1.003, allocations: 146.3 MB / 0.7325 GB, free: 11.82 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003685/1.004, allocations: 87.94 kB / 0.7326 GB, free: 11.74 MB / 0.6198 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 5.0.1/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 5.0.1/Electrical/DC/Sensors/GeneralizedSensor.mo:38:3-38: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.08763/1.091, allocations: 20.84 MB / 0.753 GB, free: 6.691 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.044e-06/1.091, allocations: 4 kB / 0.753 GB, free: 6.688 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.917e-05/1.091, allocations: 20 kB / 0.753 GB, free: 6.668 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.001899/1.093, allocations: 0.7784 MB / 0.7538 GB, free: 5.836 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.813e-05/1.093, allocations: 8.031 kB / 0.7538 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00022/1.094, allocations: 118.6 kB / 0.7539 GB, free: 5.703 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009604/1.095, allocations: 127.1 kB / 0.754 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009433/1.096, allocations: 413.8 kB / 0.7544 GB, free: 5.137 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.277e-05/1.096, allocations: 58 kB / 0.7544 GB, free: 5.078 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001733/1.096, allocations: 79.98 kB / 0.7545 GB, free: 5 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002018/1.098, allocations: 0.8305 MB / 0.7553 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.87e-05/1.098, allocations: 4 kB / 0.7553 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/1.098, allocations: 31.98 kB / 0.7554 GB, free: 4.07 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-05/1.098, allocations: 45.23 kB / 0.7554 GB, free: 4.027 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/1.1, allocations: 0.5413 MB / 0.7559 GB, free: 3.484 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00594/1.106, allocations: 3.311 MB / 0.7592 GB, free: 40 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008598/1.107, allocations: 296 kB / 0.7595 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000571/1.107, allocations: 189.6 kB / 0.7596 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.425e-05/1.107, allocations: 8.375 kB / 0.7596 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005148/1.108, allocations: 209 kB / 0.7598 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 5.941e-06/1.108, allocations: 3.984 kB / 0.7598 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0009207/1.109, allocations: 320.7 kB / 0.7602 GB, free: 15 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/1.109, allocations: 63.16 kB / 0.7602 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006275/1.11, allocations: 386.3 kB / 0.7606 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.778e-05/1.11, allocations: 45.7 kB / 0.7606 GB, free: 14.5 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003244/1.11, allocations: 339.5 kB / 0.7609 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001624/1.11, allocations: 130.4 kB / 0.7611 GB, free: 14.03 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.585e-05/1.11, allocations: 16 kB / 0.7611 GB, free: 14.01 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001731/1.11, allocations: 358.7 kB / 0.7614 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004313/1.111, allocations: 149.5 kB / 0.7616 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006489/1.112, allocations: 387.9 kB / 0.7619 GB, free: 13.03 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005024/1.112, allocations: 183.2 kB / 0.7621 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/1.112, allocations: 3.938 kB / 0.7621 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001441/1.114, allocations: 0.5605 MB / 0.7627 GB, free: 12.28 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001135/1.115, allocations: 2.705 MB / 0.7653 GB, free: 9.363 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/1.115, allocations: 11.98 kB / 0.7653 GB, free: 9.352 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.258e-05/1.115, allocations: 12 kB / 0.7653 GB, free: 9.34 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006906/1.115, allocations: 99.77 kB / 0.7654 GB, free: 9.242 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.066e-05/1.116, allocations: 23.86 kB / 0.7655 GB, free: 9.219 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006162/1.116, allocations: 63.44 kB / 0.7655 GB, free: 9.156 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.517e-05/1.116, allocations: 35.98 kB / 0.7655 GB, free: 9.121 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/1.116, allocations: 4 kB / 0.7656 GB, free: 9.117 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001291/1.118, allocations: 0.4937 MB / 0.766 GB, free: 8.625 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/1.118, allocations: 4 kB / 0.766 GB, free: 8.621 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/1.118, allocations: 12 kB / 0.766 GB, free: 8.609 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/1.118, allocations: 107.8 kB / 0.7662 GB, free: 8.504 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.43e-05/1.118, allocations: 15.94 kB / 0.7662 GB, free: 8.488 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005028/1.119, allocations: 55.58 kB / 0.7662 GB, free: 8.434 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.79e-05/1.119, allocations: 28 kB / 0.7662 GB, free: 8.406 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.0002479/1.119, allocations: 176.8 kB / 0.7664 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/1.119, allocations: 43.44 kB / 0.7665 GB, free: 8.188 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/1.12, allocations: 381 kB / 0.7668 GB, free: 7.809 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/1.12, allocations: 4 kB / 0.7668 GB, free: 7.805 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/1.12, allocations: 0 / 0.7668 GB, free: 7.805 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/1.12, allocations: 0 / 0.7668 GB, free: 7.805 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/1.123, allocations: 1.046 MB / 0.7678 GB, free: 6.695 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/1.123, allocations: 0 / 0.7678 GB, free: 6.695 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003777/1.123, allocations: 39.92 kB / 0.7679 GB, free: 6.656 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.458e-06/1.123, allocations: 4 kB / 0.7679 GB, free: 6.652 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.079e-05/1.123, allocations: 11.98 kB / 0.7679 GB, free: 6.641 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.636e-06/1.123, allocations: 4 kB / 0.7679 GB, free: 6.637 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.123, allocations: 4.062 kB / 0.7679 GB, free: 6.633 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/1.125, allocations: 0.6329 MB / 0.7685 GB, free: 5.965 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002492/1.125, allocations: 156.4 kB / 0.7687 GB, free: 5.793 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.529e-05/1.125, allocations: 12 kB / 0.7687 GB, free: 5.781 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003198/1.125, allocations: 20 kB / 0.7687 GB, free: 5.762 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001646/1.125, allocations: 44.38 kB / 0.7687 GB, free: 5.719 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.005e-05/1.125, allocations: 19.98 kB / 0.7688 GB, free: 5.699 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004277/1.126, allocations: 257.2 kB / 0.769 GB, free: 5.449 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.61e-07/1.126, allocations: 0 / 0.769 GB, free: 5.449 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001252/1.127, allocations: 231.7 kB / 0.7692 GB, free: 5.223 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.001822/1.129, allocations: 1.353 MB / 0.7706 GB, free: 3.828 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001821/1.131, allocations: 0.6817 MB / 0.7712 GB, free: 3.148 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/1.131, allocations: 4 kB / 0.7712 GB, free: 3.145 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004534/1.131, allocations: 178.7 kB / 0.7714 GB, free: 2.973 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008972/1.132, allocations: 85.62 kB / 0.7715 GB, free: 2.887 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/1.135, allocations: 0.8364 MB / 0.7723 GB, free: 2.008 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006759/1.136, allocations: 0.9199 MB / 0.7732 GB, free: 1.062 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0009343/1.137, allocations: 140.6 kB / 0.7733 GB, free: 0.9219 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004703/1.137, allocations: 211.4 kB / 0.7735 GB, free: 0.7148 MB / 0.6511 GB Notification: Performance of SimCode: time 1.253e-06/1.137, allocations: 0 / 0.7735 GB, free: 0.7148 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5919/1.729, allocations: 10.5 MB / 0.7838 GB, free: 165.8 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000265/1.73, allocations: 146.7 kB / 0.7839 GB, free: 165.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.98/4.71, allocations: 0 / 0.7839 GB, free: 165.6 MB / 0.6511 GB