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 4.049/4.049, allocations: 403.3 MB / 415.4 MB, free: 12.97 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.168e-05/4.181e-05, allocations: 7.938 kB / 0.4991 GB, free: 13.36 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6284/0.6285, allocations: 92.67 MB / 0.5896 GB, free: 14.48 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2813/0.9099, allocations: 146.3 MB / 0.7325 GB, free: 11.96 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003639/0.9103, allocations: 83.95 kB / 0.7326 GB, free: 11.88 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.0893/0.9996, allocations: 20.85 MB / 0.7529 GB, free: 6.816 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9997, allocations: 0 / 0.7529 GB, free: 6.816 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.184e-05/0.9997, allocations: 20 kB / 0.753 GB, free: 6.797 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.001878/1.002, allocations: 0.7745 MB / 0.7537 GB, free: 5.969 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/1.002, allocations: 8.031 kB / 0.7537 GB, free: 5.961 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002203/1.002, allocations: 126.6 kB / 0.7539 GB, free: 5.828 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009802/1.003, allocations: 127.1 kB / 0.754 GB, free: 5.703 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009227/1.004, allocations: 401.9 kB / 0.7544 GB, free: 5.273 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.941e-05/1.004, allocations: 65.94 kB / 0.7544 GB, free: 5.207 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/1.004, allocations: 76 kB / 0.7545 GB, free: 5.133 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002021/1.006, allocations: 0.8383 MB / 0.7553 GB, free: 4.23 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.22e-05/1.006, allocations: 4 kB / 0.7553 GB, free: 4.227 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/1.006, allocations: 28 kB / 0.7553 GB, free: 4.199 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.004e-05/1.006, allocations: 41.3 kB / 0.7554 GB, free: 4.16 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/1.008, allocations: 0.5555 MB / 0.7559 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006191/1.014, allocations: 3.326 MB / 0.7592 GB, free: 148 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008808/1.015, allocations: 297 kB / 0.7595 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005797/1.016, allocations: 199 kB / 0.7596 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.314e-05/1.016, allocations: 4.375 kB / 0.7596 GB, free: 15.64 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000521/1.016, allocations: 208.9 kB / 0.7598 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.356e-06/1.016, allocations: 4 kB / 0.7599 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0009512/1.017, allocations: 324.2 kB / 0.7602 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/1.017, allocations: 59.39 kB / 0.7602 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006967/1.018, allocations: 382.3 kB / 0.7606 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.183e-05/1.018, allocations: 49.7 kB / 0.7606 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003412/1.019, allocations: 339.5 kB / 0.761 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/1.019, allocations: 130.4 kB / 0.7611 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.791e-05/1.019, allocations: 12 kB / 0.7611 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001872/1.019, allocations: 366.7 kB / 0.7614 GB, free: 13.75 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004508/1.02, allocations: 149.5 kB / 0.7616 GB, free: 13.6 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006849/1.02, allocations: 385.5 kB / 0.7619 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005235/1.021, allocations: 187.2 kB / 0.7621 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/1.021, allocations: 0 / 0.7621 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00153/1.022, allocations: 0.5807 MB / 0.7627 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001162/1.024, allocations: 2.699 MB / 0.7653 GB, free: 9.445 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.263e-05/1.024, allocations: 11.94 kB / 0.7653 GB, free: 9.434 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.618e-05/1.024, allocations: 15.98 kB / 0.7654 GB, free: 9.418 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007432/1.024, allocations: 103.7 kB / 0.7655 GB, free: 9.316 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.846e-05/1.024, allocations: 15.95 kB / 0.7655 GB, free: 9.301 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000671/1.025, allocations: 67.42 kB / 0.7655 GB, free: 9.234 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.73e-05/1.025, allocations: 31.98 kB / 0.7656 GB, free: 9.203 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/1.025, allocations: 8 kB / 0.7656 GB, free: 9.195 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001339/1.027, allocations: 0.5089 MB / 0.7661 GB, free: 8.688 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/1.027, allocations: 7.938 kB / 0.7661 GB, free: 8.68 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/1.027, allocations: 12 kB / 0.7661 GB, free: 8.668 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006285/1.027, allocations: 107.8 kB / 0.7662 GB, free: 8.562 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.95e-05/1.027, allocations: 12 kB / 0.7662 GB, free: 8.551 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005168/1.028, allocations: 52.05 kB / 0.7663 GB, free: 8.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.569e-05/1.028, allocations: 36 kB / 0.7663 GB, free: 8.465 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.0002502/1.028, allocations: 176.7 kB / 0.7665 GB, free: 8.289 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/1.028, allocations: 43.44 kB / 0.7665 GB, free: 8.246 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/1.029, allocations: 380.9 kB / 0.7669 GB, free: 7.863 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/1.029, allocations: 4 kB / 0.7669 GB, free: 7.859 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/1.029, allocations: 3.984 kB / 0.7669 GB, free: 7.855 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/1.029, allocations: 4 kB / 0.7669 GB, free: 7.852 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002298/1.032, allocations: 1.042 MB / 0.7679 GB, free: 6.746 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/1.032, allocations: 0 / 0.7679 GB, free: 6.746 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003812/1.032, allocations: 43.92 kB / 0.7679 GB, free: 6.703 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.478e-06/1.032, allocations: 4.062 kB / 0.7679 GB, free: 6.699 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.135e-05/1.032, allocations: 11.98 kB / 0.7679 GB, free: 6.688 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.325e-06/1.032, allocations: 4 kB / 0.768 GB, free: 6.684 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.032, allocations: 0 / 0.768 GB, free: 6.684 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/1.034, allocations: 0.6368 MB / 0.7686 GB, free: 6.012 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/1.034, allocations: 152.5 kB / 0.7687 GB, free: 5.844 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.365e-05/1.034, allocations: 12 kB / 0.7687 GB, free: 5.832 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003452/1.034, allocations: 15.94 kB / 0.7687 GB, free: 5.816 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/1.034, allocations: 44.38 kB / 0.7688 GB, free: 5.773 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.232e-05/1.035, allocations: 23.92 kB / 0.7688 GB, free: 5.75 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004159/1.035, allocations: 257.2 kB / 0.7691 GB, free: 5.5 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.11e-07/1.035, allocations: 0 / 0.7691 GB, free: 5.5 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001161/1.036, allocations: 235.7 kB / 0.7693 GB, free: 5.27 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.001818/1.038, allocations: 1.356 MB / 0.7706 GB, free: 3.871 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001826/1.04, allocations: 0.7083 MB / 0.7713 GB, free: 3.164 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.04, allocations: 0 / 0.7713 GB, free: 3.164 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004378/1.04, allocations: 174.4 kB / 0.7715 GB, free: 2.992 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008149/1.041, allocations: 94.5 kB / 0.7716 GB, free: 2.898 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002494/1.044, allocations: 0.8344 MB / 0.7724 GB, free: 2.023 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006515/1.044, allocations: 0.9199 MB / 0.7733 GB, free: 1.078 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0008114/1.045, allocations: 136.6 kB / 0.7734 GB, free: 0.9453 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004295/1.046, allocations: 215.3 kB / 0.7736 GB, free: 0.7383 MB / 0.6511 GB Notification: Performance of SimCode: time 1.132e-06/1.046, allocations: 4 kB / 0.7736 GB, free: 0.7344 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5515/1.597, allocations: 10.52 MB / 0.7839 GB, free: 166.2 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000239/1.597, allocations: 158.2 kB / 0.784 GB, free: 166 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.914/4.511, allocations: 4 kB / 0.784 GB, free: 166 MB / 0.6511 GB