Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|stack.cell.1, 1..cell.capacitor.1..v|stack.cell.1, 1..cell.capacitor.2..v|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.capacitor.1..v|stack.cell.1, 2..cell.capacitor.2..v|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.capacitor.1..v|stack.cell.2, 1..cell.capacitor.2..v|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.capacitor.1..v|stack.cell.2, 2..cell.capacitor.2..v|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.capacitor.1..v|stack.cell.3, 1..cell.capacitor.2..v|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.capacitor.1..v|stack.cell.3, 2..cell.capacitor.2..v|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.304e-05/3.319e-05, allocations: 7.984 kB / 292.2 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0905/0.09056, allocations: 50.41 MB / 342.6 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.377/0.4676, allocations: 94.29 MB / 436.9 MB, free: 68 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.4679, allocations: 78.64 kB / 436.9 MB, free: 28 kB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].R to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].C to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].R to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].C to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].Qnom to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].OCVmax to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].OCVmin to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].Ri to false. Notification: Performance of FrontEnd - DAE generated: time 1.382/1.85, allocations: 278.3 MB / 0.6984 GB, free: 53.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.906e-06/1.85, allocations: 0 / 0.6984 GB, free: 53.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.003997/1.854, allocations: 267.4 kB / 0.6987 GB, free: 53.16 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: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.03769/1.892, allocations: 13.3 MB / 0.7117 GB, free: 48.13 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/1.892, allocations: 10.41 kB / 0.7117 GB, free: 48.13 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006588/1.898, allocations: 1.746 MB / 0.7134 GB, free: 47.19 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0715/1.97, allocations: 25.39 MB / 0.7382 GB, free: 44.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001052/1.971, allocations: 389.4 kB / 0.7386 GB, free: 44.33 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002709/1.974, allocations: 396.5 kB / 0.739 GB, free: 44.33 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03056/2.004, allocations: 7.409 MB / 0.7462 GB, free: 43.56 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001904/2.004, allocations: 6.203 kB / 0.7462 GB, free: 43.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00172/2.006, allocations: 183.4 kB / 0.7464 GB, free: 43.55 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001322/2.006, allocations: 96.69 kB / 0.7465 GB, free: 43.55 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02481/2.031, allocations: 5.843 MB / 0.7522 GB, free: 43.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07949/2.111, allocations: 34.72 MB / 0.7861 GB, free: 33.86 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00776/2.118, allocations: 4.744 MB / 0.7907 GB, free: 32.25 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006337/2.125, allocations: 3.719 MB / 0.7943 GB, free: 30.07 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001525/2.125, allocations: 26.72 kB / 0.7944 GB, free: 30.05 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.251e-05/2.125, allocations: 77 kB / 0.7944 GB, free: 29.97 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 6.32e-06/2.125, allocations: 0 / 0.7944 GB, free: 29.97 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.01022/2.135, allocations: 5.311 MB / 0.7996 GB, free: 25.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002401/2.136, allocations: 1.296 MB / 0.8009 GB, free: 23.52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06123/2.197, allocations: 28.36 MB / 0.8286 GB, free: 15.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007425/2.198, allocations: 77.7 kB / 0.8287 GB, free: 15.63 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.01782/2.216, allocations: 8.236 MB / 0.8367 GB, free: 7.977 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002094/2.218, allocations: 0.8172 MB / 0.8375 GB, free: 7.242 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005861/2.218, allocations: 52.97 kB / 0.8376 GB, free: 7.191 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005207/2.219, allocations: 429.1 kB / 0.838 GB, free: 6.801 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007907/2.227, allocations: 2.285 MB / 0.8402 GB, free: 4.812 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009745/2.237, allocations: 3.31 MB / 0.8434 GB, free: 1.535 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01215/2.249, allocations: 2.789 MB / 0.8462 GB, free: 15.53 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.906e-05/2.249, allocations: 4 kB / 0.8462 GB, free: 15.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.0277/2.277, allocations: 6.978 MB / 0.853 GB, free: 9.316 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.602e-05/2.277, allocations: 12 kB / 0.853 GB, free: 9.305 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.085e-05/2.277, allocations: 16 kB / 0.853 GB, free: 9.289 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002718/2.279, allocations: 0.534 MB / 0.8535 GB, free: 8.832 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008876/2.288, allocations: 1.041 MB / 0.8545 GB, free: 8.117 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.016/2.304, allocations: 6.002 MB / 0.8604 GB, free: 2.719 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00867/2.313, allocations: 0.908 MB / 0.8613 GB, free: 2.09 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007942/2.314, allocations: 96 kB / 0.8614 GB, free: 1.996 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 307 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 38} Notification: Performance of prepare postOptimizeDAE: time 0.000979/2.315, allocations: 305.9 kB / 0.8617 GB, free: 1.695 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004749/2.32, allocations: 1.558 MB / 0.8632 GB, free: 120 kB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.299/2.619, allocations: 6.434 MB / 0.8695 GB, free: 81.01 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-05/2.619, allocations: 22.12 kB / 0.8695 GB, free: 81.01 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.735e-06/2.619, allocations: 4.797 kB / 0.8695 GB, free: 81.01 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.605e-05/2.619, allocations: 11.25 kB / 0.8695 GB, free: 81.01 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05265/2.672, allocations: 18.93 MB / 0.888 GB, free: 80.31 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.528e-05/2.672, allocations: 7.516 kB / 0.888 GB, free: 80.31 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004416/2.676, allocations: 0.863 MB / 0.8888 GB, free: 80.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001333/2.677, allocations: 450.7 kB / 0.8893 GB, free: 80.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004677/2.678, allocations: 72.3 kB / 0.8893 GB, free: 80.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007001/2.685, allocations: 5.173 MB / 0.8944 GB, free: 78.96 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.707e-06/2.685, allocations: 8.25 kB / 0.8944 GB, free: 78.96 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01554/2.7, allocations: 8.644 MB / 0.9028 GB, free: 78.22 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.02391/2.724, allocations: 7.466 MB / 0.9101 GB, free: 73.67 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00766/2.732, allocations: 93.88 kB / 0.9102 GB, free: 73.67 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01895/2.751, allocations: 0.9597 MB / 0.9112 GB, free: 73.67 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003177/2.754, allocations: 483.4 kB / 0.9116 GB, free: 73.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008604/2.755, allocations: 60.06 kB / 0.9117 GB, free: 73.66 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.08505/2.84, allocations: 21.91 MB / 0.9331 GB, free: 71.71 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.121e-06/2.84, allocations: 0 / 0.9331 GB, free: 71.71 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008544/2.849, allocations: 1.971 MB / 0.935 GB, free: 71.53 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (201): * Single equations (assignments): 200 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.002246/2.851, allocations: 0.7529 MB / 0.9357 GB, free: 71.32 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009968/2.861, allocations: 5.015 MB / 0.9406 GB, free: 69.76 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-05/2.861, allocations: 7.656 kB / 0.9406 GB, free: 69.76 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004992/2.866, allocations: 2.691 MB / 0.9433 GB, free: 68.87 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01659/2.883, allocations: 2.54 MB / 0.9458 GB, free: 68.01 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1267/3.01, allocations: 38.26 MB / 0.9831 GB, free: 36.03 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02631/3.036, allocations: 11.67 MB / 0.9945 GB, free: 27.06 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.02066/3.057, allocations: 6.453 MB / 1.001 GB, free: 22.76 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004249/3.061, allocations: 0.7609 MB / 1.002 GB, free: 22.03 MB / 474.7 MB Notification: Performance of SimCode: time 1.949e-06/3.061, allocations: 0 / 1.002 GB, free: 22.03 MB / 474.7 MB Notification: Performance of Templates: time 0.7659/3.827, allocations: 141.8 MB / 1.14 GB, free: 70.59 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.o Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.c clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.o Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.c Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.c:100:128: warning: passing 'const double *' to parameter of type 'double *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] _externalCombiTable1D_ext = ModelicaStandardTables_CombiTable1D_init2(MMC_STRINGDATA(_fileName), MMC_STRINGDATA(_tableName), (const double*) _table_c89, size_of_dimension_base_array(_table, ((modelica_integer) 1)), size_of_dimension_base_array(_table, ((modelica_integer) 2)), (const int*) _columns_c89, size_of_dimension_base_array(_columns, ((modelica_integer) 1)), _smoothness_ext, _extrapolation_ext, _verboseRead_ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources/ModelicaStandardTables.h:271:62: note: passing argument to parameter 'table' here _In_ double* table, size_t nRow, ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.c:100:280: warning: passing 'const int *' to parameter of type 'int *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] _externalCombiTable1D_ext = ModelicaStandardTables_CombiTable1D_init2(MMC_STRINGDATA(_fileName), MMC_STRINGDATA(_tableName), (const double*) _table_c89, size_of_dimension_base_array(_table, ((modelica_integer) 1)), size_of_dimension_base_array(_table, ((modelica_integer) 2)), (const int*) _columns_c89, size_of_dimension_base_array(_columns, ((modelica_integer) 1)), _smoothness_ext, _extrapolation_ext, _verboseRead_ext); ^~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources/ModelicaStandardTables.h:273:59: note: passing argument to parameter 'columns' here _In_ int* columns, ^ 2 warnings generated. clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.o Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1014:84: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->__omcQuot_24746D705661723239; ^ ; Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1016:81: error: redefinition of 'ths' Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->__omcQuot_24746D705661723238; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1014:81: note: previous definition is here Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->__omcQuot_24746D705661723239; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1016:84: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->__omcQuot_24746D705661723238; ^ ; Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1024:16: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? tmp97 = ths->_Ns /* Range stop-value */; ~~~^~ . Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1024:18: error: no member named '_Ns' in 'struct base_array_s' tmp97 = ths->_Ns /* Range stop-value */; ~~~ ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031:91: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->__omcQuot_24746D705661723239, 2, tmp98, ths->_Np); ~~~^~ . ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:133: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031:93: error: no member named '__omcQuot_24746D705661723239' in 'struct base_array_s' alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->__omcQuot_24746D705661723239, 2, tmp98, ths->_Np); ~~~ ^ ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:133: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031:136: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->__omcQuot_24746D705661723239, 2, tmp98, ths->_Np); ~~~^~ . ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:307: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~~~~~~~~~ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031:138: error: no member named '_Np' in 'struct base_array_s' alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->__omcQuot_24746D705661723239, 2, tmp98, ths->_Np); ~~~ ^ ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:307: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~~~~~~~~~ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1041:90: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->__omcQuot_24746D705661723237; ^ ; Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1045:81: error: redefinition of 'ths' with a different type: 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData' vs 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData ths->__omcQuot_24746D705661723236; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1041:87: note: previous definition is here Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->__omcQuot_24746D705661723237; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1045:84: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData ths->__omcQuot_24746D705661723236; ^ ; Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1053:22: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? tmp92 = ths->_Np /* Range stop-value */; ~~~^~ . Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1053:24: error: no member named '_Np' in 'struct base_array_s' tmp92 = ths->_Np /* Range stop-value */; ~~~ ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1060:11: warning: implicit declaration of function 'alloc_generic_array' is invalid in C99 [-Wimplicit-function-declaration] alloc_generic_array(&ths->__omcQuot_24746D705661723237,sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData),1,tmp93); ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1060:35: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? alloc_generic_array(&ths->__omcQuot_24746D705661723237,sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData),1,tmp93); ~~~^~ . Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1060:37: error: no member named '__omcQuot_24746D705661723237' in 'struct base_array_s' alloc_generic_array(&ths->__omcQuot_24746D705661723237,sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData),1,tmp93); ~~~ ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1068:82: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? array_alloc_scalar_boolean_array(&tmp87, 1, (modelica_boolean)((ths->_ks == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 1)))) && (ths->_kp == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 2)))))); ~~~^~ . Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1068:84: error: no member named '_ks' in 'struct base_array_s' array_alloc_scalar_boolean_array(&tmp87, 1, (modelica_boolean)((ths->_ks == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 1)))) && (ths->_kp == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 2)))))); ~~~ ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1068:125: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? array_alloc_scalar_boolean_array(&tmp87, 1, (modelica_boolean)((ths->_ks == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 1)))) && (ths->_kp == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 2)))))); ~~~^~ . fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. : recipe for target 'Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.o' failed make: *** [Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.o] Error 1