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.534/3.534, allocations: 403.3 MB / 415.4 MB, free: 12.96 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.142e-05/3.125e-05, allocations: 7.938 kB / 0.499 GB, free: 13.45 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5242/0.5242, allocations: 92.69 MB / 0.5896 GB, free: 14.49 MB / 490.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2157/0.74, allocations: 146.3 MB / 0.7324 GB, free: 11.97 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.7403, allocations: 83.95 kB / 0.7325 GB, free: 11.89 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.07716/0.8175, allocations: 20.85 MB / 0.7529 GB, free: 6.828 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.41e-06/0.8176, allocations: 0 / 0.7529 GB, free: 6.828 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.715e-05/0.8176, allocations: 20 kB / 0.7529 GB, free: 6.809 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.001637/0.8193, allocations: 0.7745 MB / 0.7537 GB, free: 5.98 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.8193, allocations: 8.031 kB / 0.7537 GB, free: 5.973 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009053/0.8202, allocations: 123.1 kB / 0.7538 GB, free: 5.852 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008135/0.8211, allocations: 409.8 kB / 0.7542 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.033e-05/0.8212, allocations: 61.98 kB / 0.7542 GB, free: 5.352 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.8214, allocations: 76 kB / 0.7543 GB, free: 5.277 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00178/0.8232, allocations: 0.8382 MB / 0.7551 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/0.8232, allocations: 4 kB / 0.7551 GB, free: 4.371 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.497e-05/0.8233, allocations: 28 kB / 0.7552 GB, free: 4.344 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.663e-05/0.8234, allocations: 41.3 kB / 0.7552 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.8248, allocations: 0.5374 MB / 0.7557 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005335/0.8301, allocations: 3.327 MB / 0.759 GB, free: 312 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007786/0.831, allocations: 300.5 kB / 0.7593 GB, free: 15.99 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005019/0.8315, allocations: 190.6 kB / 0.7594 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.639e-05/0.8315, allocations: 4.375 kB / 0.7594 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005034/0.8321, allocations: 209 kB / 0.7596 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 6.916e-06/0.8321, allocations: 4 kB / 0.7596 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0008579/0.833, allocations: 316.8 kB / 0.7599 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.739e-05/0.833, allocations: 67.09 kB / 0.76 GB, free: 15.19 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006441/0.8337, allocations: 382.3 kB / 0.7604 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.773e-05/0.8338, allocations: 49.69 kB / 0.7604 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003304/0.8341, allocations: 339.5 kB / 0.7607 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.8343, allocations: 126.4 kB / 0.7609 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.033e-05/0.8344, allocations: 16 kB / 0.7609 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002059/0.8346, allocations: 354.8 kB / 0.7612 GB, free: 13.92 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003911/0.835, allocations: 153.5 kB / 0.7614 GB, free: 13.77 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005864/0.8356, allocations: 379.9 kB / 0.7617 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004777/0.8361, allocations: 187.2 kB / 0.7619 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.912e-06/0.8361, allocations: 0 / 0.7619 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001325/0.8374, allocations: 0.5614 MB / 0.7625 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.001379/0.8388, allocations: 2.706 MB / 0.7651 GB, free: 9.633 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.281e-05/0.8389, allocations: 11.94 kB / 0.7651 GB, free: 9.621 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.236e-05/0.8389, allocations: 12 kB / 0.7651 GB, free: 9.609 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000522/0.8394, allocations: 95.77 kB / 0.7652 GB, free: 9.516 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.751e-05/0.8395, allocations: 23.88 kB / 0.7652 GB, free: 9.492 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005653/0.8401, allocations: 63.44 kB / 0.7653 GB, free: 9.43 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.292e-05/0.8402, allocations: 35.98 kB / 0.7653 GB, free: 9.395 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.8402, allocations: 8 kB / 0.7653 GB, free: 9.387 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001172/0.8414, allocations: 0.4934 MB / 0.7658 GB, free: 8.895 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.8414, allocations: 4 kB / 0.7658 GB, free: 8.891 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.8414, allocations: 12 kB / 0.7658 GB, free: 8.879 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004442/0.8419, allocations: 103.8 kB / 0.7659 GB, free: 8.777 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.473e-05/0.8419, allocations: 19.92 kB / 0.766 GB, free: 8.758 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004792/0.8424, allocations: 52.03 kB / 0.766 GB, free: 8.707 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.488e-05/0.8425, allocations: 35.98 kB / 0.766 GB, free: 8.672 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.0002325/0.8428, allocations: 168.7 kB / 0.7662 GB, free: 8.504 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.8429, allocations: 43.48 kB / 0.7662 GB, free: 8.461 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009272/0.8438, allocations: 376.9 kB / 0.7666 GB, free: 8.086 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.8438, allocations: 11.94 kB / 0.7666 GB, free: 8.074 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.555e-06/0.8439, allocations: 0 / 0.7666 GB, free: 8.074 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.392e-06/0.8439, allocations: 4 kB / 0.7666 GB, free: 8.07 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002172/0.8461, allocations: 1.035 MB / 0.7676 GB, free: 6.973 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.593e-06/0.8461, allocations: 4 kB / 0.7676 GB, free: 6.969 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002917/0.8464, allocations: 43.91 kB / 0.7677 GB, free: 6.926 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.196e-05/0.8464, allocations: 4.062 kB / 0.7677 GB, free: 6.922 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.8465, allocations: 12 kB / 0.7677 GB, free: 6.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.264e-06/0.8465, allocations: 4 kB / 0.7677 GB, free: 6.906 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.674e-06/0.8465, allocations: 0 / 0.7677 GB, free: 6.906 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001227/0.8477, allocations: 0.6406 MB / 0.7683 GB, free: 6.23 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002745/0.848, allocations: 152.5 kB / 0.7685 GB, free: 6.062 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.808e-05/0.8481, allocations: 12 kB / 0.7685 GB, free: 6.051 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.8485, allocations: 19.88 kB / 0.7685 GB, free: 6.031 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.8486, allocations: 48.36 kB / 0.7685 GB, free: 5.984 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-05/0.8487, allocations: 19.98 kB / 0.7686 GB, free: 5.965 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0004055/0.8491, allocations: 257.2 kB / 0.7688 GB, free: 5.715 MB / 0.6511 GB Notification: Performance of sort global known variables: time 8.01e-07/0.8491, allocations: 0 / 0.7688 GB, free: 5.715 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001153/0.8503, allocations: 231.5 kB / 0.769 GB, free: 5.488 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.0002528/0.8505, allocations: 145.3 kB / 0.7692 GB, free: 5.336 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001651/0.8522, allocations: 0.6788 MB / 0.7698 GB, free: 4.66 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.393e-06/0.8522, allocations: 4.125 kB / 0.7698 GB, free: 4.656 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004355/0.8527, allocations: 173.5 kB / 0.77 GB, free: 4.488 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007073/0.8534, allocations: 94.17 kB / 0.7701 GB, free: 4.395 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.8552, allocations: 0.6983 MB / 0.7708 GB, free: 3.668 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007078/0.856, allocations: 0.9277 MB / 0.7717 GB, free: 2.715 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0007058/0.8567, allocations: 128.7 kB / 0.7718 GB, free: 2.586 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.8569, allocations: 43.42 kB / 0.7718 GB, free: 2.543 MB / 0.6511 GB Notification: Performance of SimCode: time 1.718e-06/0.8569, allocations: 0 / 0.7718 GB, free: 2.543 MB / 0.6511 GB Notification: Performance of Templates: time 0.4272/1.284, allocations: 5.826 MB / 0.7775 GB, free: 166.5 MB / 0.6511 GB