Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.469/4.469, allocations: 460.5 MB / 472.6 MB, free: 5.375 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.443e-05/4.468e-05, allocations: 6.672 kB / 0.5682 GB, free: 10.08 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2548, allocations: 106.2 MB / 0.6719 GB, free: 15.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9304/1.185, allocations: 157.7 MB / 0.8259 GB, free: 12.08 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000435/1.186, allocations: 93.06 kB / 0.826 GB, free: 12.07 MB / 0.6355 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.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 7.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.1017/1.288, allocations: 21.04 MB / 0.8465 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.084e-06/1.288, allocations: 0 / 0.8465 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.821e-05/1.288, allocations: 19.44 kB / 0.8465 GB, free: 3.672 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.001671/1.289, allocations: 0.7803 MB / 0.8473 GB, free: 3.066 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/1.289, allocations: 11.44 kB / 0.8473 GB, free: 3.066 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001883/1.29, allocations: 132.2 kB / 0.8474 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009104/1.291, allocations: 117.1 kB / 0.8475 GB, free: 2.953 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008124/1.291, allocations: 415.3 kB / 0.8479 GB, free: 2.645 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.091e-05/1.291, allocations: 61.53 kB / 0.848 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/1.292, allocations: 91.83 kB / 0.8481 GB, free: 2.633 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/1.293, allocations: 0.8338 MB / 0.8489 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.947e-05/1.293, allocations: 0 / 0.8489 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.781e-05/1.294, allocations: 29.91 kB / 0.8489 GB, free: 2.312 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.622e-05/1.294, allocations: 43.52 kB / 0.849 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/1.295, allocations: 0.534 MB / 0.8495 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005673/1.301, allocations: 3.693 MB / 0.8531 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008853/1.302, allocations: 291.6 kB / 0.8534 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005815/1.302, allocations: 193.6 kB / 0.8535 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.525e-05/1.302, allocations: 8.375 kB / 0.8536 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005362/1.303, allocations: 218.1 kB / 0.8538 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.877e-06/1.303, allocations: 0 / 0.8538 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.001007/1.304, allocations: 317.3 kB / 0.8541 GB, free: 13.88 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/1.304, allocations: 63.14 kB / 0.8541 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007046/1.305, allocations: 383.2 kB / 0.8545 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001064/1.305, allocations: 45.14 kB / 0.8545 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.00034/1.305, allocations: 350.7 kB / 0.8549 GB, free: 13.2 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/1.305, allocations: 124.8 kB / 0.855 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-05/1.305, allocations: 15.44 kB / 0.855 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001876/1.306, allocations: 361.9 kB / 0.8553 GB, free: 12.76 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004255/1.306, allocations: 151.2 kB / 0.8555 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006337/1.307, allocations: 384.5 kB / 0.8559 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00052/1.307, allocations: 185.1 kB / 0.856 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/1.307, allocations: 4 kB / 0.856 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001448/1.309, allocations: 0.5616 MB / 0.8566 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001158/1.31, allocations: 2.703 MB / 0.8592 GB, free: 8.801 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.56e-05/1.31, allocations: 8 kB / 0.8592 GB, free: 8.793 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4e-05/1.31, allocations: 12 kB / 0.8592 GB, free: 8.781 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007911/1.311, allocations: 105.8 kB / 0.8593 GB, free: 8.684 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.082e-05/1.311, allocations: 19.98 kB / 0.8594 GB, free: 8.664 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007144/1.312, allocations: 54.28 kB / 0.8594 GB, free: 8.621 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.543e-05/1.312, allocations: 38.98 kB / 0.8595 GB, free: 8.59 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/1.312, allocations: 4 kB / 0.8595 GB, free: 8.586 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00129/1.313, allocations: 496.7 kB / 0.8599 GB, free: 8.219 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/1.313, allocations: 8.938 kB / 0.8599 GB, free: 8.211 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/1.313, allocations: 15.95 kB / 0.86 GB, free: 8.195 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006496/1.314, allocations: 106.6 kB / 0.8601 GB, free: 8.098 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.494e-05/1.314, allocations: 15.94 kB / 0.8601 GB, free: 8.082 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000603/1.314, allocations: 64.64 kB / 0.8601 GB, free: 8.031 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.948e-05/1.315, allocations: 34.75 kB / 0.8602 GB, free: 8.004 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.0002729/1.315, allocations: 164.3 kB / 0.8603 GB, free: 7.855 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/1.315, allocations: 47.44 kB / 0.8604 GB, free: 7.809 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/1.316, allocations: 384.6 kB / 0.8607 GB, free: 7.535 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/1.316, allocations: 7.953 kB / 0.8607 GB, free: 7.527 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/1.316, allocations: 0 / 0.8607 GB, free: 7.527 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.128e-06/1.316, allocations: 0 / 0.8607 GB, free: 7.527 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002477/1.319, allocations: 1.101 MB / 0.8618 GB, free: 6.602 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.172e-06/1.319, allocations: 0 / 0.8618 GB, free: 6.602 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004346/1.319, allocations: 43.91 kB / 0.8619 GB, free: 6.559 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.249e-05/1.319, allocations: 0 / 0.8619 GB, free: 6.559 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.411e-05/1.319, allocations: 14.81 kB / 0.8619 GB, free: 6.551 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.238e-06/1.319, allocations: 7.938 kB / 0.8619 GB, free: 6.543 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/1.319, allocations: 0 / 0.8619 GB, free: 6.543 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/1.321, allocations: 0.6332 MB / 0.8625 GB, free: 6.023 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002787/1.321, allocations: 146.6 kB / 0.8626 GB, free: 5.875 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.799e-05/1.321, allocations: 15.05 kB / 0.8627 GB, free: 5.867 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003401/1.321, allocations: 14.5 kB / 0.8627 GB, free: 5.859 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001733/1.322, allocations: 50.73 kB / 0.8627 GB, free: 5.816 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.822e-05/1.322, allocations: 19.5 kB / 0.8627 GB, free: 5.801 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004442/1.322, allocations: 255.7 kB / 0.863 GB, free: 5.602 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.91e-07/1.322, allocations: 3.938 kB / 0.863 GB, free: 5.598 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001363/1.323, allocations: 250.7 kB / 0.8632 GB, free: 5.383 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.001911/1.325, allocations: 1.343 MB / 0.8645 GB, free: 4.16 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00192/1.327, allocations: 0.6842 MB / 0.8652 GB, free: 3.648 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/1.327, allocations: 0 / 0.8652 GB, free: 3.648 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004783/1.328, allocations: 175 kB / 0.8654 GB, free: 3.527 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009103/1.329, allocations: 104.2 kB / 0.8655 GB, free: 3.453 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003021/1.332, allocations: 0.8372 MB / 0.8663 GB, free: 2.691 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006682/1.333, allocations: 0.925 MB / 0.8672 GB, free: 1.75 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0008943/1.334, allocations: 132.7 kB / 0.8673 GB, free: 1.621 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004134/1.334, allocations: 218.4 kB / 0.8675 GB, free: 1.559 MB / 0.6511 GB Notification: Performance of SimCode: time 3.887e-06/1.334, allocations: 0 / 0.8675 GB, free: 1.559 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04814/1.382, allocations: 10.54 MB / 0.8778 GB, free: 7.117 MB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003545/1.383, allocations: 150.7 kB / 0.878 GB, free: 6.895 MB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.873/4.256, allocations: 0 / 0.878 GB, free: 6.895 MB / 0.6667 GB