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.603/3.603, allocations: 403.9 MB / 411 MB, free: 396 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.922e-05/1.932e-05, allocations: 0 / 0.4941 GB, free: 1.406 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4821/0.4821, allocations: 92.7 MB / 0.5847 GB, free: 2.398 MB / 474.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2119/0.6941, allocations: 145.7 MB / 0.7269 GB, free: 0.543 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.6944, allocations: 83.95 kB / 0.727 GB, free: 472 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.07562/0.77, allocations: 20.68 MB / 0.7472 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.116e-06/0.7701, allocations: 0 / 0.7472 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 4.421e-05/0.7702, allocations: 16 kB / 0.7472 GB, free: 11.55 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.001694/0.7719, allocations: 0.7711 MB / 0.748 GB, free: 10.73 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.7719, allocations: 8.031 kB / 0.748 GB, free: 10.72 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009272/0.7729, allocations: 123.1 kB / 0.7481 GB, free: 10.6 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008372/0.7737, allocations: 409.8 kB / 0.7485 GB, free: 10.16 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.745e-05/0.7738, allocations: 24 kB / 0.7485 GB, free: 10.13 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.7739, allocations: 48 kB / 0.7485 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001281/0.7752, allocations: 0.4927 MB / 0.749 GB, free: 9.594 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/0.7768, allocations: 0.7364 MB / 0.7497 GB, free: 8.789 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.012e-05/0.7769, allocations: 15.88 kB / 0.7498 GB, free: 8.773 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.633e-05/0.7769, allocations: 0 / 0.7498 GB, free: 8.773 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-05/0.777, allocations: 41.3 kB / 0.7498 GB, free: 8.734 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005214/0.7823, allocations: 3.161 MB / 0.7529 GB, free: 5.449 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007041/0.783, allocations: 268.4 kB / 0.7531 GB, free: 5.172 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004627/0.7835, allocations: 184.5 kB / 0.7533 GB, free: 4.992 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-05/0.7836, allocations: 12.36 kB / 0.7533 GB, free: 4.98 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004347/0.784, allocations: 201 kB / 0.7535 GB, free: 4.773 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=46): time 3.852e-06/0.784, allocations: 3.938 kB / 0.7535 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of matching and sorting (n=46): time 0.0007908/0.7848, allocations: 284.9 kB / 0.7538 GB, free: 4.484 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.7849, allocations: 63.14 kB / 0.7539 GB, free: 4.41 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004669/0.7854, allocations: 302 kB / 0.7541 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 8.138e-05/0.7855, allocations: 37.69 kB / 0.7542 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003236/0.7858, allocations: 347.2 kB / 0.7545 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.786, allocations: 118.4 kB / 0.7546 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.928e-05/0.786, allocations: 0 / 0.7546 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002006/0.7862, allocations: 358.8 kB / 0.755 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003446/0.7866, allocations: 133.5 kB / 0.7551 GB, free: 3.109 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005206/0.7871, allocations: 363.9 kB / 0.7554 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003979/0.7875, allocations: 166 kB / 0.7556 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/0.7876, allocations: 4 kB / 0.7556 GB, free: 2.488 MB / 0.6355 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001181/0.7888, allocations: 0.5105 MB / 0.7561 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.0013/0.7901, allocations: 2.689 MB / 0.7587 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.349e-05/0.7901, allocations: 15.94 kB / 0.7587 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.457e-05/0.7902, allocations: 12 kB / 0.7588 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005422/0.7907, allocations: 107.8 kB / 0.7589 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.684e-05/0.7908, allocations: 8 kB / 0.7589 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005126/0.7913, allocations: 55.47 kB / 0.7589 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.54e-05/0.7914, allocations: 31.98 kB / 0.7589 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.7914, allocations: 4 kB / 0.759 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00103/0.7924, allocations: 432.9 kB / 0.7594 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.7925, allocations: 8 kB / 0.7594 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.7925, allocations: 12 kB / 0.7594 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000424/0.7929, allocations: 104.5 kB / 0.7595 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.793, allocations: 15.92 kB / 0.7595 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004429/0.7934, allocations: 35.73 kB / 0.7595 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.977e-05/0.7935, allocations: 31.98 kB / 0.7596 GB, free: 14.21 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.0002281/0.7938, allocations: 154.4 kB / 0.7597 GB, free: 14.06 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.7939, allocations: 43.48 kB / 0.7598 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000897/0.7948, allocations: 328.9 kB / 0.7601 GB, free: 13.69 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/0.7948, allocations: 15.98 kB / 0.7601 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.795e-06/0.7948, allocations: 3.938 kB / 0.7601 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.283e-06/0.7948, allocations: 3.938 kB / 0.7601 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00201/0.7969, allocations: 0.9065 MB / 0.761 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.564e-06/0.7969, allocations: 8.062 kB / 0.761 GB, free: 12.7 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002861/0.7972, allocations: 47.91 kB / 0.761 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.913e-06/0.7972, allocations: 0 / 0.761 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.606e-05/0.7973, allocations: 4 kB / 0.761 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.594e-06/0.7973, allocations: 7.938 kB / 0.761 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.603e-06/0.7973, allocations: 0 / 0.761 GB, free: 12.64 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001175/0.7985, allocations: 0.5978 MB / 0.7616 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002353/0.7988, allocations: 140.6 kB / 0.7618 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.809e-05/0.7989, allocations: 4 kB / 0.7618 GB, free: 11.85 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002868/0.7992, allocations: 7.984 kB / 0.7618 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.7993, allocations: 48.33 kB / 0.7618 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-05/0.7994, allocations: 19.98 kB / 0.7618 GB, free: 11.78 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002684/0.7997, allocations: 196.7 kB / 0.762 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of sort global known variables: time 6.69e-07/0.7997, allocations: 0 / 0.762 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001202/0.8009, allocations: 211.5 kB / 0.7622 GB, free: 11.38 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.0002634/0.8012, allocations: 141.1 kB / 0.7624 GB, free: 11.23 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.001508/0.8027, allocations: 0.6413 MB / 0.763 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.215e-06/0.8027, allocations: 0 / 0.763 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.8031, allocations: 165.5 kB / 0.7631 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006812/0.8038, allocations: 85.66 kB / 0.7632 GB, free: 10.34 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.8055, allocations: 0.6739 MB / 0.7639 GB, free: 9.645 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006775/0.8063, allocations: 0.9196 MB / 0.7648 GB, free: 8.699 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0006772/0.8069, allocations: 108.5 kB / 0.7649 GB, free: 8.59 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.8071, allocations: 51.36 kB / 0.7649 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of SimCode: time 1.531e-06/0.8071, allocations: 4 kB / 0.7649 GB, free: 8.535 MB / 0.6511 GB Notification: Performance of Templates: time 0.01608/0.8232, allocations: 5.356 MB / 0.7702 GB, free: 3.223 MB / 0.6511 GB