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={"dynamic"}) Notification: Performance of loadModel(Buildings): time 4.615/4.615, allocations: 404.1 MB / 411.3 MB, free: 408 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.033e-05/3.039e-05, allocations: 4 kB / 0.4945 GB, free: 1.297 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6998/0.6998, allocations: 92.69 MB / 0.585 GB, free: 2.375 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3019/1.002, allocations: 145.7 MB / 0.7273 GB, free: 0.5234 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003877/1.002, allocations: 87.95 kB / 0.7274 GB, free: 448 kB / 0.6042 GB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/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/hudson/slave/workspace/OpenModelica_TEST_LIBS/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.1007/1.103, allocations: 20.68 MB / 0.7476 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of FrontEnd: time 3.125e-06/1.103, allocations: 0 / 0.7476 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 0.0001041/1.103, allocations: 23.94 kB / 0.7476 GB, free: 11.53 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.002423/1.106, allocations: 0.7745 MB / 0.7483 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.864e-05/1.106, allocations: 8.031 kB / 0.7483 GB, free: 10.69 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001307/1.107, allocations: 123.1 kB / 0.7485 GB, free: 10.57 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/1.108, allocations: 413.8 kB / 0.7489 GB, free: 10.12 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.873e-05/1.108, allocations: 24 kB / 0.7489 GB, free: 10.1 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/1.109, allocations: 48 kB / 0.7489 GB, free: 10.05 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001794/1.11, allocations: 0.4966 MB / 0.7494 GB, free: 9.559 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002184/1.113, allocations: 0.7334 MB / 0.7501 GB, free: 8.758 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.733e-05/1.113, allocations: 3.938 kB / 0.7501 GB, free: 8.754 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001026/1.113, allocations: 4 kB / 0.7501 GB, free: 8.75 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/1.113, allocations: 41.3 kB / 0.7502 GB, free: 8.711 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007374/1.12, allocations: 3.169 MB / 0.7533 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009586/1.121, allocations: 276.5 kB / 0.7535 GB, free: 5.133 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006546/1.122, allocations: 183.2 kB / 0.7537 GB, free: 4.953 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 6.89e-05/1.122, allocations: 8.359 kB / 0.7537 GB, free: 4.945 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005833/1.123, allocations: 201 kB / 0.7539 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 6.733e-06/1.123, allocations: 0 / 0.7539 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.001037/1.124, allocations: 288.8 kB / 0.7542 GB, free: 4.449 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/1.124, allocations: 67.14 kB / 0.7542 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005671/1.124, allocations: 298 kB / 0.7545 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.469e-05/1.125, allocations: 37.7 kB / 0.7546 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003986/1.125, allocations: 351.2 kB / 0.7549 GB, free: 3.68 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/1.125, allocations: 114.4 kB / 0.755 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.186e-05/1.125, allocations: 4 kB / 0.755 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001914/1.125, allocations: 354.8 kB / 0.7554 GB, free: 3.207 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004608/1.126, allocations: 133.5 kB / 0.7555 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006825/1.127, allocations: 363.9 kB / 0.7558 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005826/1.127, allocations: 166.1 kB / 0.756 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/1.127, allocations: 0 / 0.756 GB, free: 2.461 MB / 0.6355 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001631/1.129, allocations: 0.5059 MB / 0.7565 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.001284/1.13, allocations: 2.705 MB / 0.7591 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.343e-05/1.13, allocations: 4 kB / 0.7591 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.119e-05/1.13, allocations: 12 kB / 0.7591 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009598/1.131, allocations: 99.77 kB / 0.7592 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.051e-05/1.131, allocations: 19.92 kB / 0.7593 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006885/1.132, allocations: 43.48 kB / 0.7593 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.926e-05/1.132, allocations: 39.98 kB / 0.7593 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/1.132, allocations: 4 kB / 0.7593 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001385/1.134, allocations: 437.6 kB / 0.7598 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/1.134, allocations: 7.938 kB / 0.7598 GB, free: 14.38 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.808e-05/1.134, allocations: 12 kB / 0.7598 GB, free: 14.37 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007717/1.134, allocations: 99.77 kB / 0.7599 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.391e-05/1.134, allocations: 19.92 kB / 0.7599 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006269/1.135, allocations: 23.75 kB / 0.7599 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.88e-05/1.135, allocations: 39.98 kB / 0.7599 GB, free: 14.19 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.0002638/1.136, allocations: 150.1 kB / 0.7601 GB, free: 14.04 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009047/1.136, allocations: 293 kB / 0.7604 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.595e-05/1.137, allocations: 43.44 kB / 0.7604 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/1.138, allocations: 336.9 kB / 0.7607 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/1.138, allocations: 11.94 kB / 0.7607 GB, free: 13.36 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/1.138, allocations: 3.984 kB / 0.7607 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/1.138, allocations: 0 / 0.7607 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002686/1.141, allocations: 0.9101 MB / 0.7616 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/1.141, allocations: 0 / 0.7616 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004782/1.141, allocations: 51.84 kB / 0.7617 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.187e-05/1.141, allocations: 0 / 0.7617 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.061e-05/1.141, allocations: 4 kB / 0.7617 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.806e-06/1.141, allocations: 8.062 kB / 0.7617 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/1.141, allocations: 0 / 0.7617 GB, free: 12.33 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/1.143, allocations: 0.5939 MB / 0.7623 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002917/1.143, allocations: 140.6 kB / 0.7624 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/1.143, allocations: 8.062 kB / 0.7624 GB, free: 11.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003802/1.144, allocations: 11.94 kB / 0.7624 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/1.144, allocations: 48.31 kB / 0.7625 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.093e-05/1.144, allocations: 19.98 kB / 0.7625 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003394/1.144, allocations: 192.6 kB / 0.7627 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.01e-07/1.144, allocations: 0 / 0.7627 GB, free: 11.27 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001516/1.146, allocations: 211.4 kB / 0.7629 GB, free: 11.06 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.002117/1.148, allocations: 1.306 MB / 0.7642 GB, free: 9.719 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00198/1.15, allocations: 0.6418 MB / 0.7648 GB, free: 9.07 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/1.15, allocations: 1.375 kB / 0.7648 GB, free: 9.07 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000487/1.151, allocations: 169.5 kB / 0.7649 GB, free: 8.906 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/1.152, allocations: 88.12 kB / 0.765 GB, free: 8.82 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003024/1.155, allocations: 0.7847 MB / 0.7658 GB, free: 7.996 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007855/1.155, allocations: 0.9197 MB / 0.7667 GB, free: 7.051 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001005/1.156, allocations: 120.5 kB / 0.7668 GB, free: 6.93 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005425/1.157, allocations: 207.4 kB / 0.767 GB, free: 6.727 MB / 0.6511 GB Notification: Performance of SimCode: time 1.463e-06/1.157, allocations: 0 / 0.767 GB, free: 6.727 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.702/1.859, allocations: 9.446 MB / 0.7762 GB, free: 170.6 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002962/1.859, allocations: 144.2 kB / 0.7764 GB, free: 170.4 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.356/5.216, allocations: 2.094 kB / 0.7764 GB, free: 170.4 MB / 0.6511 GB