Running command: "" <> buildModelFMU(Chemical.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Chemical): time 2.11/2.11, allocations: 215.4 MB / 227.5 MB, free: 356 kB / 186.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 3.897e-05/3.914e-05, allocations: 0 / 280.5 MB, free: 11.67 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1192, allocations: 50.02 MB / 330.5 MB, free: 9.551 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4404/0.5597, allocations: 90.29 MB / 420.8 MB, free: 7.207 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.56, allocations: 68.09 kB / 420.9 MB, free: 7.176 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:3528:7-3528:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System anode.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution$anode. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:3528:7-3528:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System cathode.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution$cathode. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:3528:7-3528:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System solution1.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution$solution1. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:2614:7-2614:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System Pb.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$Pb. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:2614:7-2614:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System HSO4.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$HSO4. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:2614:7-2614:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System PbSO4_.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$PbSO4_. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:2614:7-2614:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:2614:7-2614:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System electrone.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.ElectronTransfer. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:2614:7-2614:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System electrone1.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.ElectronTransfer. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:2614:7-2614:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System PbO2.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$PbO2. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:2614:7-2614:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System H2O.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$H2O. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Chemical 1.2.0/package.mo:2614:7-2614:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System PbSO4.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$PbSO4. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.4445/1.005, allocations: 99.19 MB / 0.5079 GB, free: 10.16 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.005, allocations: 0 / 0.5079 GB, free: 10.16 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002404/1.005, allocations: 59.98 kB / 0.508 GB, free: 10.1 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 584 * Number of variables: 584 Notification: Performance of Generate backend data structure: time 0.01036/1.015, allocations: 2.87 MB / 0.5108 GB, free: 7.172 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/1.015, allocations: 8.031 kB / 0.5108 GB, free: 7.164 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001105/1.016, allocations: 316.8 kB / 0.5111 GB, free: 6.844 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/1.018, allocations: 308.2 kB / 0.5114 GB, free: 6.539 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007342/1.025, allocations: 2.124 MB / 0.5134 GB, free: 4.359 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003275/1.025, allocations: 180.6 kB / 0.5136 GB, free: 4.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001332/1.027, allocations: 243.8 kB / 0.5138 GB, free: 3.941 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01195/1.039, allocations: 3.386 MB / 0.5171 GB, free: 492 kB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.328e-05/1.039, allocations: 4 kB / 0.5171 GB, free: 488 kB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006582/1.039, allocations: 92 kB / 0.5172 GB, free: 396 kB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001971/1.04, allocations: 71.97 kB / 0.5173 GB, free: 324 kB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3465/1.386, allocations: 5.374 MB / 0.5226 GB, free: 84.14 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03706/1.423, allocations: 11.86 MB / 0.5341 GB, free: 81.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01436/1.438, allocations: 4.742 MB / 0.5388 GB, free: 80.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005274/1.443, allocations: 1.989 MB / 0.5407 GB, free: 80.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01076/1.454, allocations: 8.096 MB / 0.5486 GB, free: 73.49 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.994e-05/1.454, allocations: 66.47 kB / 0.5487 GB, free: 73.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=301): time 6.853e-06/1.454, allocations: 0 / 0.5487 GB, free: 73.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=464): time 0.1337/1.588, allocations: 27.42 MB / 0.5755 GB, free: 69.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.06678/1.655, allocations: 19.58 MB / 0.5946 GB, free: 59.63 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002133/1.657, allocations: 1.137 MB / 0.5957 GB, free: 59.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0011/1.658, allocations: 100.7 kB / 0.5958 GB, free: 59.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007255/1.659, allocations: 0.9274 MB / 0.5967 GB, free: 58.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00227/1.661, allocations: 1.545 MB / 0.5982 GB, free: 57.42 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005862/1.661, allocations: 80.62 kB / 0.5983 GB, free: 57.36 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002141/1.662, allocations: 466.9 kB / 0.5987 GB, free: 56.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00684/1.669, allocations: 2.807 MB / 0.6015 GB, free: 55.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007381/1.676, allocations: 3.292 MB / 0.6047 GB, free: 54.33 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007854/1.684, allocations: 3.104 MB / 0.6077 GB, free: 53.15 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.177e-05/1.684, allocations: 3.312 kB / 0.6077 GB, free: 53.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0367/1.721, allocations: 8.044 MB / 0.6156 GB, free: 46.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.997e-05/1.721, allocations: 12 kB / 0.6156 GB, free: 46.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.351e-05/1.721, allocations: 8 kB / 0.6156 GB, free: 46.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02258/1.743, allocations: 2.361 MB / 0.6179 GB, free: 44.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01254/1.756, allocations: 0.8743 MB / 0.6187 GB, free: 43.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03165/1.788, allocations: 19.02 MB / 0.6373 GB, free: 24.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01231/1.8, allocations: 0.5899 MB / 0.6379 GB, free: 23.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00158/1.802, allocations: 289.5 kB / 0.6382 GB, free: 23.59 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (424): * Single equations (assignments): 410 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 3 {4 55,1 4,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001698/1.803, allocations: 328.2 kB / 0.6385 GB, free: 23.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001435/1.805, allocations: 288.4 kB / 0.6388 GB, free: 23.03 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0299/1.835, allocations: 9.188 MB / 0.6477 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03302/1.868, allocations: 8.078 MB / 0.6556 GB, free: 8.062 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.022e-05/1.868, allocations: 4 kB / 0.6556 GB, free: 8.059 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000177/1.868, allocations: 24.14 kB / 0.6557 GB, free: 8.059 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05638/1.925, allocations: 16.23 MB / 0.6715 GB, free: 11.74 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.019e-05/1.925, allocations: 12 kB / 0.6715 GB, free: 11.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006311/1.931, allocations: 0.6844 MB / 0.6722 GB, free: 11.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04052/1.972, allocations: 5.584 MB / 0.6776 GB, free: 7.305 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001474/1.973, allocations: 196.8 kB / 0.6778 GB, free: 7.145 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3416/2.315, allocations: 9.97 MB / 0.6876 GB, free: 89.59 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.07161/2.386, allocations: 19.78 MB / 0.7069 GB, free: 85.29 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03275/2.419, allocations: 13.04 MB / 0.7196 GB, free: 83.13 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003907/2.423, allocations: 1.054 MB / 0.7206 GB, free: 82.89 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00166/2.425, allocations: 97.94 kB / 0.7207 GB, free: 82.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007957/2.433, allocations: 355.3 kB / 0.7211 GB, free: 82.88 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0016/2.435, allocations: 384.4 kB / 0.7214 GB, free: 82.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001178/2.436, allocations: 243.6 kB / 0.7217 GB, free: 82.87 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001749/2.438, allocations: 0.8664 MB / 0.7225 GB, free: 82.75 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.11e-07/2.438, allocations: 3.5 kB / 0.7225 GB, free: 82.75 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.012/2.45, allocations: 2.81 MB / 0.7253 GB, free: 82.75 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 54 * Number of states: 13 ($STATESET1.x[10],$STATESET1.x[9],$STATESET1.x[8],$STATESET1.x[7],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],anode.freeInternalEnergy,cathode.freeInternalEnergy,solution1.freeInternalEnergy) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (331): * Single equations (assignments): 328 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 1 {18 99} Notification: Performance of Backend phase and start with SimCode phase: time 0.03847/2.488, allocations: 18.7 MB / 0.7435 GB, free: 74.57 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02015/2.508, allocations: 7.157 MB / 0.7505 GB, free: 71.81 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.72e-05/2.508, allocations: 5.312 kB / 0.7505 GB, free: 71.81 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01479/2.523, allocations: 4.508 MB / 0.7549 GB, free: 70.32 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007328/2.531, allocations: 0.8338 MB / 0.7557 GB, free: 70.11 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03927/2.57, allocations: 9.423 MB / 0.7649 GB, free: 66.29 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00191/2.572, allocations: 2.007 MB / 0.7669 GB, free: 65.49 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005946/2.578, allocations: 1.091 MB / 0.768 GB, free: 65.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004587/2.582, allocations: 1.548 MB / 0.7695 GB, free: 64.41 MB / 458.7 MB Notification: Performance of SimCode: time 1.693e-06/2.582, allocations: 0 / 0.7695 GB, free: 64.41 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6364/3.219, allocations: 119.3 MB / 0.886 GB, free: 101.7 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002621/3.219, allocations: 168.6 kB / 0.8862 GB, free: 101.5 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.404/10.62, allocations: 4 kB / 0.8862 GB, free: 101.5 MB / 474.7 MB