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.81/3.81, allocations: 402 MB / 416.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 3.739e-05/3.757e-05, allocations: 8 kB / 0.5009 GB, free: 8.242 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2017/0.2018, allocations: 92.7 MB / 0.5915 GB, free: 11.38 MB / 0.4948 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Storage.Examples.Battery): time 0.006745/0.2087, allocations: 3.575 MB / 0.595 GB, free: 7.781 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.004571/0.2133, allocations: 1.754 MB / 0.5967 GB, free: 6.016 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004578/0.2138, allocations: 27.94 kB / 0.5967 GB, free: 5.988 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003305/0.2142, allocations: 87.34 kB / 0.5968 GB, free: 5.902 MB / 0.4948 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 5.0.1/Electrical/DC/Sensors/GeneralizedSensor.mo:29:54-29:70:writable] Warning: 'each' used when modifying non-array element P. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 5.0.1/Electrical/DC/Sensors/GeneralizedSensor.mo:30:13-30:21:writable] Warning: 'each' used when modifying non-array element P. Notification: Performance of NFTyping.typeBindings: time 0.0005998/0.2148, allocations: 127.5 kB / 0.5969 GB, free: 5.777 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.2162, allocations: 315.4 kB / 0.5972 GB, free: 5.469 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.00145/0.2177, allocations: 487.8 kB / 0.5977 GB, free: 4.992 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/0.2191, allocations: 0.7159 MB / 0.5984 GB, free: 4.238 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004027/0.2196, allocations: 203.5 kB / 0.5986 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005587/0.2202, allocations: 235.1 kB / 0.5988 GB, free: 3.809 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003902/0.2206, allocations: 87.88 kB / 0.5989 GB, free: 3.723 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001382/0.2207, allocations: 28 kB / 0.5989 GB, free: 3.695 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002295/0.221, allocations: 143.5 kB / 0.599 GB, free: 3.555 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.2211, allocations: 48 kB / 0.5991 GB, free: 3.508 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.001138/0.2223, allocations: 0.6315 MB / 0.5997 GB, free: 2.875 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2223, allocations: 0 / 0.5997 GB, free: 2.875 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.525e-06/0.2223, allocations: 0 / 0.5997 GB, free: 2.875 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.958e-05/0.2223, allocations: 0 / 0.5997 GB, free: 2.875 MB / 0.4948 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.001926/0.2243, allocations: 0.7816 MB / 0.6005 GB, free: 2.043 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.2244, allocations: 8.031 kB / 0.6005 GB, free: 2.035 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008218/0.2252, allocations: 123 kB / 0.6006 GB, free: 1.914 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.2262, allocations: 411.9 kB / 0.601 GB, free: 1.477 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.2263, allocations: 62 kB / 0.601 GB, free: 1.414 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001672/0.2265, allocations: 76 kB / 0.6011 GB, free: 1.34 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002108/0.2286, allocations: 0.8534 MB / 0.6019 GB, free: 436 kB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.2287, allocations: 7.938 kB / 0.602 GB, free: 428 kB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/0.2288, allocations: 35.98 kB / 0.602 GB, free: 392 kB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001014/0.2289, allocations: 45.3 kB / 0.602 GB, free: 344 kB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5093/0.7382, allocations: 0.5623 MB / 0.6026 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005516/0.7438, allocations: 3.332 MB / 0.6058 GB, free: 10.47 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008655/0.7447, allocations: 314.2 kB / 0.6061 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 5.437e-05/0.7448, allocations: 8.453 kB / 0.6061 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005436/0.7454, allocations: 217.5 kB / 0.6063 GB, free: 10.24 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=47): time 3.657e-06/0.7454, allocations: 1.156 kB / 0.6063 GB, free: 10.24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=47): time 0.001295/0.7467, allocations: 464.2 kB / 0.6068 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.7467, allocations: 62.33 kB / 0.6069 GB, free: 9.98 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005438/0.7473, allocations: 371 kB / 0.6072 GB, free: 9.785 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 7.506e-05/0.7474, allocations: 48.16 kB / 0.6073 GB, free: 9.742 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/0.7476, allocations: 335.5 kB / 0.6076 GB, free: 9.48 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001303/0.7478, allocations: 129.4 kB / 0.6077 GB, free: 9.387 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.783e-05/0.7478, allocations: 14.28 kB / 0.6077 GB, free: 9.375 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.7479, allocations: 360.7 kB / 0.6081 GB, free: 9.043 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004354/0.7484, allocations: 155.8 kB / 0.6082 GB, free: 8.988 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005795/0.749, allocations: 392.1 kB / 0.6086 GB, free: 8.641 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004829/0.7495, allocations: 184.1 kB / 0.6087 GB, free: 8.559 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.728e-06/0.7495, allocations: 2.75 kB / 0.6088 GB, free: 8.559 MB / 0.4948 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001466/0.751, allocations: 0.5965 MB / 0.6093 GB, free: 8.297 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005126/0.7515, allocations: 2.704 MB / 0.612 GB, free: 5.414 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.079e-05/0.7515, allocations: 7.312 kB / 0.612 GB, free: 5.414 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.096e-05/0.7516, allocations: 14.45 kB / 0.612 GB, free: 5.414 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007147/0.7523, allocations: 106 kB / 0.6121 GB, free: 5.395 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.46e-05/0.7524, allocations: 11.81 kB / 0.6121 GB, free: 5.395 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005856/0.753, allocations: 82.7 kB / 0.6122 GB, free: 5.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.386e-05/0.753, allocations: 31.44 kB / 0.6122 GB, free: 5.336 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.7531, allocations: 4.281 kB / 0.6122 GB, free: 5.336 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001301/0.7544, allocations: 0.524 MB / 0.6127 GB, free: 5.121 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.7544, allocations: 7.188 kB / 0.6127 GB, free: 5.121 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.7544, allocations: 11.34 kB / 0.6128 GB, free: 5.121 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006092/0.7551, allocations: 103 kB / 0.6128 GB, free: 5.105 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.336e-05/0.7551, allocations: 14.16 kB / 0.6129 GB, free: 5.105 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005104/0.7556, allocations: 81.17 kB / 0.6129 GB, free: 5.051 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.089e-05/0.7557, allocations: 29.84 kB / 0.613 GB, free: 5.047 MB / 0.4948 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,$whenCondition1,$PRE.bat.cha.underCharged,bat.cha.underCharged,$PRE.bat.cha.overCharged,bat.cha.overCharged,off.active,$PRE.off.localActive,off.localActive,$PRE.off.newActive,off.newActive,$PRE.off.oldActive,off.oldActive,toOn.condition,toOn.enableFire,$PRE.charge.localActive,charge.localActive,$PRE.charge.newActive,charge.newActive,$PRE.charge.oldActive,charge.oldActive,charge.active,toHold.condition,toHold.enableFire,hold.active,$PRE.hold.localActive,hold.localActive,$PRE.hold.newActive,hold.newActive,$PRE.hold.oldActive,hold.oldActive,toDischarge.condition,toDischarge.enableFire,$PRE.discharge.localActive,discharge.localActive,$PRE.discharge.newActive,discharge.newActive,$PRE.discharge.oldActive,discharge.oldActive,discharge.active,toOff.condition,toOff.enableFire,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 92 * 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.0004631/0.7562, allocations: 242.7 kB / 0.6132 GB, free: 4.863 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.7563, allocations: 49.09 kB / 0.6132 GB, free: 4.84 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/0.7574, allocations: 401 kB / 0.6136 GB, free: 4.66 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.7574, allocations: 3.641 kB / 0.6136 GB, free: 4.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.7574, allocations: 0 / 0.6136 GB, free: 4.66 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.7576, allocations: 161.4 kB / 0.6138 GB, free: 4.516 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.439e-05/0.7578, allocations: 9.953 kB / 0.6138 GB, free: 4.512 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002908/0.7581, allocations: 15.41 kB / 0.6138 GB, free: 4.504 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/0.7582, allocations: 46.97 kB / 0.6139 GB, free: 4.496 MB / 0.4948 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001167/0.7594, allocations: 452 kB / 0.6143 GB, free: 4.277 MB / 0.4948 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001331/0.7608, allocations: 0.7043 MB / 0.615 GB, free: 3.863 MB / 0.4948 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003793/0.7612, allocations: 165.6 kB / 0.6151 GB, free: 3.805 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003796/0.7616, allocations: 258.5 kB / 0.6154 GB, free: 3.668 MB / 0.4948 GB Notification: Performance of Backend: time 5.21e-07/0.7616, allocations: 1.062 kB / 0.6154 GB, free: 3.668 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001281/0.7629, allocations: 421.4 kB / 0.6158 GB, free: 3.496 MB / 0.4948 GB Notification: Performance of SimCode: time 0.002667/0.7655, allocations: 1.576 MB / 0.6173 GB, free: 2.348 MB / 0.4948 GB Notification: Performance of Templates: time 0.02135/0.7869, allocations: 5.844 MB / 0.623 GB, free: 1.883 MB / 0.4948 GB