Running command: translateModel(Buildings.Electrical.DC.Storage.Examples.Battery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_5.0.1_Buildings.Electrical.DC.Storage.Examples.Battery") Notification: Performance of loadModel(Buildings): time 3.537/3.537, allocations: 403.3 MB / 415.4 MB, free: 13.01 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.536e-05/3.556e-05, allocations: 4 kB / 0.499 GB, free: 13.47 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4775/0.4776, allocations: 92.69 MB / 0.5895 GB, free: 14.51 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2157/0.6933, allocations: 146.3 MB / 0.7324 GB, free: 12 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/0.6936, allocations: 83.95 kB / 0.7325 GB, free: 11.92 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.07858/0.7722, allocations: 20.85 MB / 0.7529 GB, free: 6.855 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.856e-06/0.7723, allocations: 0 / 0.7529 GB, free: 6.855 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.069e-05/0.7723, allocations: 20 kB / 0.7529 GB, free: 6.836 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.001714/0.774, allocations: 0.7745 MB / 0.7536 GB, free: 6.008 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.7741, allocations: 8.031 kB / 0.7536 GB, free: 6 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009362/0.7751, allocations: 119.1 kB / 0.7538 GB, free: 5.883 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008636/0.7759, allocations: 413.8 kB / 0.7542 GB, free: 5.441 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.172e-05/0.7761, allocations: 62 kB / 0.7542 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/0.7762, allocations: 76 kB / 0.7543 GB, free: 5.305 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00184/0.7781, allocations: 0.8435 MB / 0.7551 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.7781, allocations: 0 / 0.7551 GB, free: 4.398 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-05/0.7782, allocations: 32 kB / 0.7551 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.719e-05/0.7783, allocations: 37.3 kB / 0.7552 GB, free: 4.332 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.7797, allocations: 0.5594 MB / 0.7557 GB, free: 3.773 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005396/0.7852, allocations: 3.323 MB / 0.759 GB, free: 324 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007628/0.786, allocations: 297.1 kB / 0.7593 GB, free: 12 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005177/0.7865, allocations: 193.4 kB / 0.7594 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.035e-05/0.7866, allocations: 4.375 kB / 0.7594 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000881/0.7875, allocations: 216.9 kB / 0.7596 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 8.335e-06/0.7875, allocations: 0 / 0.7596 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0008728/0.7884, allocations: 324.2 kB / 0.76 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/0.7885, allocations: 59.41 kB / 0.76 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000636/0.7891, allocations: 386.3 kB / 0.7604 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 9.482e-05/0.7892, allocations: 49.69 kB / 0.7604 GB, free: 14.75 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003297/0.7896, allocations: 335.4 kB / 0.7607 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.7897, allocations: 130.4 kB / 0.7609 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.068e-05/0.7898, allocations: 12 kB / 0.7609 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002028/0.79, allocations: 362.8 kB / 0.7612 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003909/0.7904, allocations: 149.5 kB / 0.7614 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006059/0.791, allocations: 385.5 kB / 0.7617 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004528/0.7915, allocations: 183.2 kB / 0.7619 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.066e-06/0.7915, allocations: 4 kB / 0.7619 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001325/0.7929, allocations: 0.5806 MB / 0.7625 GB, free: 12.53 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001382/0.7943, allocations: 2.699 MB / 0.7651 GB, free: 9.621 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.147e-05/0.7943, allocations: 8 kB / 0.7651 GB, free: 9.613 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.129e-05/0.7943, allocations: 15.94 kB / 0.7651 GB, free: 9.598 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005498/0.7949, allocations: 103.8 kB / 0.7652 GB, free: 9.496 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.944e-05/0.7949, allocations: 23.88 kB / 0.7653 GB, free: 9.473 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005353/0.7955, allocations: 67.44 kB / 0.7653 GB, free: 9.406 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.742e-05/0.7956, allocations: 35.98 kB / 0.7654 GB, free: 9.371 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.7956, allocations: 4 kB / 0.7654 GB, free: 9.367 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001176/0.7968, allocations: 0.5124 MB / 0.7659 GB, free: 8.855 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.7968, allocations: 8 kB / 0.7659 GB, free: 8.848 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.7969, allocations: 12.84 kB / 0.7659 GB, free: 8.836 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004429/0.7973, allocations: 103.8 kB / 0.766 GB, free: 8.734 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.025e-05/0.7973, allocations: 15.98 kB / 0.766 GB, free: 8.719 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004788/0.7978, allocations: 55.58 kB / 0.7661 GB, free: 8.664 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-05/0.7979, allocations: 35.98 kB / 0.7661 GB, free: 8.629 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.0002337/0.7982, allocations: 164.7 kB / 0.7662 GB, free: 8.465 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.7983, allocations: 47.48 kB / 0.7663 GB, free: 8.418 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009479/0.7992, allocations: 384.8 kB / 0.7667 GB, free: 8.031 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.612e-06/0.7993, allocations: 4 kB / 0.7667 GB, free: 8.027 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.362e-06/0.7993, allocations: 4 kB / 0.7667 GB, free: 8.023 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.132e-06/0.7993, allocations: 0 / 0.7667 GB, free: 8.023 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.8015, allocations: 1.035 MB / 0.7677 GB, free: 6.926 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.781e-06/0.8016, allocations: 4 kB / 0.7677 GB, free: 6.922 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000292/0.8019, allocations: 43.91 kB / 0.7677 GB, free: 6.879 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.195e-05/0.8019, allocations: 4 kB / 0.7677 GB, free: 6.875 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.253e-05/0.8019, allocations: 12 kB / 0.7677 GB, free: 6.863 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.802, allocations: 0 / 0.7677 GB, free: 6.863 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.802, allocations: 4 kB / 0.7677 GB, free: 6.859 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.8032, allocations: 0.6407 MB / 0.7684 GB, free: 6.184 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.8035, allocations: 148.4 kB / 0.7685 GB, free: 6.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.676e-05/0.8036, allocations: 12 kB / 0.7685 GB, free: 6.008 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002934/0.8039, allocations: 19.94 kB / 0.7685 GB, free: 5.988 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.8041, allocations: 48.36 kB / 0.7686 GB, free: 5.941 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.915e-05/0.8041, allocations: 16 kB / 0.7686 GB, free: 5.926 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004048/0.8046, allocations: 265.2 kB / 0.7689 GB, free: 5.668 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.27e-07/0.8046, allocations: 0 / 0.7689 GB, free: 5.668 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.00116/0.8057, allocations: 231.5 kB / 0.7691 GB, free: 5.441 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.0002665/0.806, allocations: 151 kB / 0.7692 GB, free: 5.285 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001633/0.8077, allocations: 0.7091 MB / 0.7699 GB, free: 4.578 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.746e-06/0.8077, allocations: 0 / 0.7699 GB, free: 4.578 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000401/0.8081, allocations: 178.6 kB / 0.7701 GB, free: 4.402 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006962/0.8088, allocations: 91.48 kB / 0.7702 GB, free: 4.312 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.8106, allocations: 0.7032 MB / 0.7709 GB, free: 3.582 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007061/0.8114, allocations: 0.9238 MB / 0.7718 GB, free: 2.633 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0007262/0.8121, allocations: 132.7 kB / 0.7719 GB, free: 2.504 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.8123, allocations: 47.42 kB / 0.7719 GB, free: 2.461 MB / 0.6511 GB Notification: Performance of SimCode: time 2.058e-06/0.8123, allocations: 0 / 0.7719 GB, free: 2.461 MB / 0.6511 GB Notification: Performance of Templates: time 0.4287/1.241, allocations: 5.841 MB / 0.7776 GB, free: 166.4 MB / 0.6511 GB