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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") Notification: Performance of loadModel(Modelica): time 2.114/2.114, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.614e-05/2.619e-05, allocations: 0 / 292.7 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08953/0.08958, allocations: 50.42 MB / 343.1 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3864/0.476, allocations: 94.29 MB / 437.4 MB, free: 72 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.4763, allocations: 78.58 kB / 437.5 MB, free: 32 kB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/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 trunk/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 trunk/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 trunk/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 trunk/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 trunk/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 trunk/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 trunk/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.512/1.988, allocations: 278.3 MB / 0.699 GB, free: 53.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.691e-06/1.988, allocations: 0.9062 kB / 0.699 GB, free: 53.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.004205/1.993, allocations: 263 kB / 0.6992 GB, free: 53.21 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.0387/2.031, allocations: 13.3 MB / 0.7122 GB, free: 48.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/2.031, allocations: 7.75 kB / 0.7122 GB, free: 48.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006748/2.038, allocations: 1.749 MB / 0.7139 GB, free: 47.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08227/2.12, allocations: 25.39 MB / 0.7387 GB, free: 44.42 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001066/2.122, allocations: 387 kB / 0.7391 GB, free: 44.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0027/2.124, allocations: 396 kB / 0.7395 GB, free: 44.38 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03238/2.157, allocations: 7.409 MB / 0.7467 GB, free: 43.6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002105/2.157, allocations: 9.047 kB / 0.7467 GB, free: 43.6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002109/2.159, allocations: 183.6 kB / 0.7469 GB, free: 43.6 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001353/2.159, allocations: 94 kB / 0.747 GB, free: 43.6 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02363/2.183, allocations: 5.842 MB / 0.7527 GB, free: 43.58 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07907/2.262, allocations: 34.72 MB / 0.7866 GB, free: 34.03 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008606/2.271, allocations: 4.749 MB / 0.7912 GB, free: 32.42 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006567/2.277, allocations: 3.717 MB / 0.7948 GB, free: 30.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002324/2.278, allocations: 23.33 kB / 0.7949 GB, free: 30.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.731e-05/2.278, allocations: 86.41 kB / 0.7949 GB, free: 30 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 7.35e-06/2.278, allocations: 0 / 0.7949 GB, free: 30 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.01147/2.289, allocations: 5.308 MB / 0.8001 GB, free: 25.15 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002504/2.29, allocations: 1.3 MB / 0.8014 GB, free: 23.55 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06612/2.356, allocations: 28.35 MB / 0.8291 GB, free: 15.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000715/2.356, allocations: 77.7 kB / 0.8292 GB, free: 15.63 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.01785/2.374, allocations: 8.225 MB / 0.8372 GB, free: 7.98 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001481/2.376, allocations: 0.8205 MB / 0.838 GB, free: 7.246 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003594/2.376, allocations: 56 kB / 0.838 GB, free: 7.191 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003462/2.377, allocations: 430 kB / 0.8385 GB, free: 6.801 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004563/2.381, allocations: 2.283 MB / 0.8407 GB, free: 4.812 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006043/2.387, allocations: 3.309 MB / 0.8439 GB, free: 1.535 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00737/2.395, allocations: 2.791 MB / 0.8466 GB, free: 15.53 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-05/2.395, allocations: 4 kB / 0.8466 GB, free: 15.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01696/2.412, allocations: 6.978 MB / 0.8535 GB, free: 9.316 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.932e-05/2.412, allocations: 12 kB / 0.8535 GB, free: 9.305 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-05/2.412, allocations: 16 kB / 0.8535 GB, free: 9.289 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001709/2.413, allocations: 0.5376 MB / 0.854 GB, free: 8.832 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004952/2.418, allocations: 1.035 MB / 0.855 GB, free: 8.117 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/2.429, allocations: 6.007 MB / 0.8609 GB, free: 2.723 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008319/2.437, allocations: 0.901 MB / 0.8618 GB, free: 2.094 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007087/2.438, allocations: 96 kB / 0.8619 GB, free: 2 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.0009587/2.439, allocations: 317.6 kB / 0.8622 GB, free: 1.699 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004579/2.443, allocations: 1.558 MB / 0.8637 GB, free: 124 kB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2939/2.737, allocations: 6.435 MB / 0.87 GB, free: 81.12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.774e-05/2.738, allocations: 21.53 kB / 0.87 GB, free: 81.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.246e-06/2.738, allocations: 5.172 kB / 0.87 GB, free: 81.12 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.625e-05/2.738, allocations: 12 kB / 0.87 GB, free: 81.12 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05204/2.79, allocations: 18.93 MB / 0.8885 GB, free: 80.43 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/2.79, allocations: 3.703 kB / 0.8885 GB, free: 80.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004694/2.794, allocations: 0.866 MB / 0.8893 GB, free: 80.43 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001387/2.796, allocations: 444.3 kB / 0.8898 GB, free: 80.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005539/2.796, allocations: 77.08 kB / 0.8898 GB, free: 80.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007446/2.804, allocations: 5.173 MB / 0.8949 GB, free: 79.08 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.53e-06/2.804, allocations: 0 / 0.8949 GB, free: 79.08 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01639/2.82, allocations: 8.647 MB / 0.9033 GB, free: 78.33 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0123/2.833, allocations: 7.468 MB / 0.9106 GB, free: 73.78 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003927/2.837, allocations: 90 kB / 0.9107 GB, free: 73.78 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008705/2.845, allocations: 0.961 MB / 0.9116 GB, free: 73.78 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001476/2.847, allocations: 481.2 kB / 0.9121 GB, free: 73.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004107/2.847, allocations: 60.22 kB / 0.9122 GB, free: 73.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.05218/2.9, allocations: 21.92 MB / 0.9336 GB, free: 71.95 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.178e-06/2.9, allocations: 5.938 kB / 0.9336 GB, free: 71.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009007/2.909, allocations: 1.97 MB / 0.9355 GB, free: 71.77 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.002328/2.911, allocations: 0.7486 MB / 0.9362 GB, free: 71.56 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009956/2.921, allocations: 5.023 MB / 0.9411 GB, free: 70 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/2.921, allocations: 4.688 kB / 0.9411 GB, free: 70 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005217/2.926, allocations: 2.692 MB / 0.9438 GB, free: 69.11 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01447/2.941, allocations: 2.531 MB / 0.9462 GB, free: 68.25 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08389/3.025, allocations: 38.25 MB / 0.9836 GB, free: 36.08 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03137/3.056, allocations: 11.67 MB / 0.995 GB, free: 27.11 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.02363/3.08, allocations: 6.459 MB / 1.001 GB, free: 22.81 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004141/3.084, allocations: 0.7598 MB / 1.002 GB, free: 22.07 MB / 474.7 MB Notification: Performance of SimCode: time 1.826e-06/3.084, allocations: 0 / 1.002 GB, free: 22.07 MB / 474.7 MB Notification: Performance of Templates: time 0.8299/3.914, allocations: 141.8 MB / 1.141 GB, free: 70.55 MB / 490.7 MB make -j1 -f Modelica_trunk_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 trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.o Modelica_trunk_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 trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.o Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.c Modelica_trunk_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 trunk/Resources/C-Sources/ModelicaStandardTables.h:271:62: note: passing argument to parameter 'table' here _In_ double* table, size_t nRow, ^ Modelica_trunk_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 trunk/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 trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.o Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c Modelica_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.o' failed make: *** [Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.o] Error 1