Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Storage.Examples.Battery,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_DC_Storage_Examples_Battery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.337/4.337, allocations: 432.7 MB / 444.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.782e-05/3.787e-05, allocations: 3.547 kB / 0.5338 GB, free: 12.23 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.223, allocations: 98.72 MB / 0.6302 GB, free: 6.141 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8367/1.06, allocations: 150.7 MB / 0.7773 GB, free: 57.63 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003753/1.06, allocations: 84 kB / 0.7774 GB, free: 57.63 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.08752/1.148, allocations: 20.92 MB / 0.7978 GB, free: 55.71 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.765e-06/1.148, allocations: 0 / 0.7978 GB, free: 55.71 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.602e-05/1.148, allocations: 17.97 kB / 0.7979 GB, free: 55.71 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.001946/1.15, allocations: 0.7793 MB / 0.7986 GB, free: 55.18 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/1.15, allocations: 9.531 kB / 0.7986 GB, free: 55.18 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002256/1.15, allocations: 130.3 kB / 0.7988 GB, free: 55.13 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001046/1.151, allocations: 126.9 kB / 0.7989 GB, free: 55.09 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008995/1.152, allocations: 407.3 kB / 0.7993 GB, free: 54.84 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.326e-05/1.152, allocations: 61.69 kB / 0.7993 GB, free: 54.84 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001728/1.152, allocations: 80.05 kB / 0.7994 GB, free: 54.84 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00218/1.155, allocations: 0.8249 MB / 0.8002 GB, free: 54.62 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-05/1.155, allocations: 10.02 kB / 0.8002 GB, free: 54.61 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/1.155, allocations: 26.91 kB / 0.8002 GB, free: 54.61 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/1.155, allocations: 45.59 kB / 0.8003 GB, free: 54.61 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/1.157, allocations: 0.5421 MB / 0.8008 GB, free: 54.59 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006041/1.163, allocations: 3.676 MB / 0.8044 GB, free: 52.18 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008966/1.164, allocations: 284 kB / 0.8047 GB, free: 52.14 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005776/1.164, allocations: 196.9 kB / 0.8049 GB, free: 52.13 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.308e-05/1.164, allocations: 8.422 kB / 0.8049 GB, free: 52.13 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005064/1.165, allocations: 205.9 kB / 0.8051 GB, free: 52.08 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.928e-06/1.165, allocations: 0 / 0.8051 GB, free: 52.08 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0009722/1.166, allocations: 321.8 kB / 0.8054 GB, free: 52.02 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/1.166, allocations: 65.53 kB / 0.8054 GB, free: 51.95 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006666/1.167, allocations: 379.5 kB / 0.8058 GB, free: 51.82 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001079/1.167, allocations: 52.42 kB / 0.8059 GB, free: 51.79 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002803/1.167, allocations: 341.2 kB / 0.8062 GB, free: 51.59 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/1.167, allocations: 127.2 kB / 0.8063 GB, free: 51.52 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-05/1.167, allocations: 12.47 kB / 0.8063 GB, free: 51.52 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001098/1.167, allocations: 358.5 kB / 0.8067 GB, free: 51.21 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004214/1.168, allocations: 148.2 kB / 0.8068 GB, free: 51.2 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005686/1.168, allocations: 387.2 kB / 0.8072 GB, free: 50.93 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004914/1.169, allocations: 186.8 kB / 0.8073 GB, free: 50.9 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/1.169, allocations: 1.594 kB / 0.8073 GB, free: 50.9 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001389/1.17, allocations: 0.5622 MB / 0.8079 GB, free: 50.79 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.00064/1.171, allocations: 2.696 MB / 0.8105 GB, free: 47.96 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/1.171, allocations: 6.781 kB / 0.8105 GB, free: 47.96 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.46e-05/1.171, allocations: 16.56 kB / 0.8105 GB, free: 47.95 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007449/1.172, allocations: 106.7 kB / 0.8106 GB, free: 47.94 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.814e-05/1.172, allocations: 14.78 kB / 0.8107 GB, free: 47.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00068/1.173, allocations: 70.89 kB / 0.8107 GB, free: 47.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.941e-05/1.173, allocations: 33.66 kB / 0.8108 GB, free: 47.9 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/1.173, allocations: 4.406 kB / 0.8108 GB, free: 47.9 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001204/1.174, allocations: 0.4915 MB / 0.8112 GB, free: 47.85 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/1.174, allocations: 12.06 kB / 0.8113 GB, free: 47.84 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/1.174, allocations: 13.91 kB / 0.8113 GB, free: 47.84 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005808/1.175, allocations: 99.3 kB / 0.8114 GB, free: 47.83 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.755e-05/1.175, allocations: 13.78 kB / 0.8114 GB, free: 47.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006253/1.175, allocations: 56.2 kB / 0.8114 GB, free: 47.81 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.382e-05/1.175, allocations: 35.02 kB / 0.8115 GB, free: 47.81 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.0002529/1.176, allocations: 177.5 kB / 0.8116 GB, free: 47.67 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/1.176, allocations: 51.69 kB / 0.8117 GB, free: 47.64 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009916/1.177, allocations: 378.3 kB / 0.812 GB, free: 47.59 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/1.177, allocations: 3.906 kB / 0.812 GB, free: 47.59 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/1.177, allocations: 0 / 0.812 GB, free: 47.59 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/1.177, allocations: 4.031 kB / 0.8121 GB, free: 47.59 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/1.179, allocations: 1.086 MB / 0.8131 GB, free: 47.18 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-06/1.179, allocations: 0 / 0.8131 GB, free: 47.18 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003857/1.179, allocations: 49.66 kB / 0.8132 GB, free: 47.17 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.155e-05/1.18, allocations: 3.906 kB / 0.8132 GB, free: 47.17 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.085e-05/1.18, allocations: 7.531 kB / 0.8132 GB, free: 47.17 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.724e-06/1.18, allocations: 3.094 kB / 0.8132 GB, free: 47.17 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/1.18, allocations: 3.875 kB / 0.8132 GB, free: 47.17 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/1.181, allocations: 0.6323 MB / 0.8138 GB, free: 46.95 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002526/1.181, allocations: 148.9 kB / 0.8139 GB, free: 46.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.493e-05/1.181, allocations: 15.02 kB / 0.814 GB, free: 46.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003378/1.181, allocations: 15.62 kB / 0.814 GB, free: 46.82 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/1.182, allocations: 59.47 kB / 0.814 GB, free: 46.81 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.722e-05/1.182, allocations: 15.38 kB / 0.814 GB, free: 46.81 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004294/1.182, allocations: 255.6 kB / 0.8143 GB, free: 46.72 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.094e-06/1.182, allocations: 0 / 0.8143 GB, free: 46.72 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001433/1.184, allocations: 239.5 kB / 0.8145 GB, free: 46.7 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.001702/1.185, allocations: 1.348 MB / 0.8158 GB, free: 45.8 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00172/1.187, allocations: 0.6836 MB / 0.8165 GB, free: 45.75 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/1.187, allocations: 2.562 kB / 0.8165 GB, free: 45.75 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003879/1.188, allocations: 169.2 kB / 0.8167 GB, free: 45.74 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009246/1.188, allocations: 101.6 kB / 0.8168 GB, free: 45.73 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002626/1.191, allocations: 0.8333 MB / 0.8176 GB, free: 45.45 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004383/1.192, allocations: 0.9237 MB / 0.8185 GB, free: 44.73 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0008293/1.192, allocations: 132.1 kB / 0.8186 GB, free: 44.7 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003763/1.193, allocations: 220.1 kB / 0.8188 GB, free: 44.69 MB / 0.6511 GB Notification: Performance of SimCode: time 1.262e-06/1.193, allocations: 0 / 0.8188 GB, free: 44.69 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03923/1.232, allocations: 10.49 MB / 0.8291 GB, free: 43.82 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000288/1.232, allocations: 157.1 kB / 0.8292 GB, free: 43.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.902/4.134, allocations: 0 / 0.8292 GB, free: 43.6 MB / 0.6511 GB