Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.003/2.003, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.077e-05/3.09e-05, allocations: 4 kB / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1049, allocations: 50.42 MB / 342.6 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4876/0.5926, allocations: 94.31 MB / 437 MB, free: 15.67 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003028/0.5929, allocations: 78.33 kB / 437 MB, free: 15.63 MB / 362.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.62/2.213, allocations: 278.3 MB / 0.6985 GB, free: 52.97 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.763e-06/2.213, allocations: 0 / 0.6985 GB, free: 52.97 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.005354/2.219, allocations: 261.7 kB / 0.6988 GB, free: 52.95 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.04974/2.269, allocations: 13.31 MB / 0.7118 GB, free: 47.92 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/2.269, allocations: 11.25 kB / 0.7118 GB, free: 47.92 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003201/2.272, allocations: 0.584 MB / 0.7124 GB, free: 47.86 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00922/2.281, allocations: 1.748 MB / 0.7141 GB, free: 46.92 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08316/2.364, allocations: 25.4 MB / 0.7389 GB, free: 44.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008588/2.365, allocations: 380.8 kB / 0.7392 GB, free: 44.06 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002044/2.367, allocations: 399.2 kB / 0.7396 GB, free: 44.06 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02276/2.39, allocations: 7.406 MB / 0.7469 GB, free: 43.29 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001945/2.39, allocations: 6.469 kB / 0.7469 GB, free: 43.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00192/2.392, allocations: 186.2 kB / 0.747 GB, free: 43.29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.675e-05/2.392, allocations: 98.97 kB / 0.7471 GB, free: 43.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01724/2.41, allocations: 5.837 MB / 0.7528 GB, free: 43.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09782/2.508, allocations: 34.72 MB / 0.7868 GB, free: 33.53 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0137/2.521, allocations: 4.748 MB / 0.7914 GB, free: 31.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01224/2.534, allocations: 3.716 MB / 0.795 GB, free: 29.29 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003852/2.534, allocations: 28.66 kB / 0.795 GB, free: 29.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.774e-05/2.534, allocations: 84.69 kB / 0.7951 GB, free: 29.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 5.21e-06/2.534, allocations: 0 / 0.7951 GB, free: 29.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.01516/2.549, allocations: 5.305 MB / 0.8003 GB, free: 24.33 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003507/2.55, allocations: 1.301 MB / 0.8016 GB, free: 22.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1033/2.653, allocations: 28.72 MB / 0.8296 GB, free: 15.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001288/2.654, allocations: 77.7 kB / 0.8297 GB, free: 15.63 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.023/2.677, allocations: 8.232 MB / 0.8377 GB, free: 7.977 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001685/2.679, allocations: 0.8138 MB / 0.8385 GB, free: 7.242 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004444/2.68, allocations: 55.19 kB / 0.8386 GB, free: 7.191 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003643/2.68, allocations: 427.9 kB / 0.839 GB, free: 6.801 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006106/2.686, allocations: 2.282 MB / 0.8412 GB, free: 4.812 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007954/2.694, allocations: 3.313 MB / 0.8445 GB, free: 1.535 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008923/2.703, allocations: 2.791 MB / 0.8472 GB, free: 15.53 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.034e-05/2.703, allocations: 4 kB / 0.8472 GB, free: 15.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.02329/2.727, allocations: 6.977 MB / 0.854 GB, free: 9.316 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.217e-05/2.727, allocations: 12 kB / 0.854 GB, free: 9.305 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.657e-05/2.727, allocations: 19.42 kB / 0.854 GB, free: 9.289 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002282/2.729, allocations: 0.5337 MB / 0.8546 GB, free: 8.832 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007639/2.737, allocations: 1.039 MB / 0.8556 GB, free: 8.117 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/2.75, allocations: 6.011 MB / 0.8614 GB, free: 2.723 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01206/2.762, allocations: 0.9012 MB / 0.8623 GB, free: 2.094 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009178/2.763, allocations: 96 kB / 0.8624 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.001173/2.765, allocations: 305.5 kB / 0.8627 GB, free: 1.703 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005899/2.77, allocations: 1.558 MB / 0.8642 GB, free: 128 kB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.377/3.147, allocations: 6.426 MB / 0.8705 GB, free: 80.88 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.716e-05/3.148, allocations: 23.5 kB / 0.8705 GB, free: 80.88 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/3.148, allocations: 3.609 kB / 0.8705 GB, free: 80.88 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.665e-05/3.148, allocations: 12.2 kB / 0.8705 GB, free: 80.88 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06249/3.21, allocations: 18.93 MB / 0.889 GB, free: 80.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/3.21, allocations: 3.969 kB / 0.889 GB, free: 80.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006385/3.217, allocations: 0.8651 MB / 0.8899 GB, free: 80.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001674/3.218, allocations: 448 kB / 0.8903 GB, free: 80.17 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004656/3.219, allocations: 73.89 kB / 0.8904 GB, free: 80.17 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008247/3.227, allocations: 5.176 MB / 0.8954 GB, free: 78.84 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/3.227, allocations: 7.625 kB / 0.8954 GB, free: 78.84 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01835/3.246, allocations: 8.646 MB / 0.9039 GB, free: 78.07 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01475/3.26, allocations: 7.467 MB / 0.9112 GB, free: 73.53 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005056/3.265, allocations: 87.86 kB / 0.9113 GB, free: 73.53 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01142/3.277, allocations: 0.962 MB / 0.9122 GB, free: 73.53 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00179/3.279, allocations: 486.3 kB / 0.9127 GB, free: 73.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003353/3.279, allocations: 68.73 kB / 0.9127 GB, free: 73.52 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.05596/3.335, allocations: 21.91 MB / 0.9341 GB, free: 71.75 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.062e-06/3.335, allocations: 0 / 0.9341 GB, free: 71.75 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009798/3.345, allocations: 1.972 MB / 0.936 GB, free: 71.57 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.02108/3.366, allocations: 9.89 MB / 0.9457 GB, free: 67.66 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01082/3.377, allocations: 5.021 MB / 0.9506 GB, free: 65.48 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-05/3.377, allocations: 5.781 kB / 0.9506 GB, free: 65.47 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005505/3.383, allocations: 2.694 MB / 0.9532 GB, free: 63.14 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01759/3.4, allocations: 2.538 MB / 0.9557 GB, free: 61.12 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.123/3.523, allocations: 43.72 MB / 0.9984 GB, free: 23.22 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02773/3.551, allocations: 11.67 MB / 1.01 GB, free: 14.25 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.02396/3.575, allocations: 6.441 MB / 1.016 GB, free: 9.961 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01804/3.593, allocations: 6.761 MB / 1.023 GB, free: 3.672 MB / 474.7 MB Notification: Performance of SimCode: time 2.655e-06/3.593, allocations: 0 / 1.023 GB, free: 3.672 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.779/5.372, allocations: 314.8 MB / 1.33 GB, free: 89.36 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002474/5.372, allocations: 231.5 kB / 1.33 GB, free: 89.05 MB / 0.5105 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -c -o Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part0.o Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part0.c In file included from Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part0.c:1: In file included from ./Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -c -o Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part1.o Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part1.c In file included from Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part1.c:1: In file included from ./Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -c -o Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.o Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.c In file included from Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.c:7: In file included from ./Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -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 In file included from Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_functions.c:2: In file included from ./Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 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, ^ 4 warnings generated. clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 4.0.0/Resources/C-Sources" -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 In file included from Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_records.c:4: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 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 '.'? tmp95 = 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' tmp95 = 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, tmp96, 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, tmp96, 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, tmp96, 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, tmp96, 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 '.'? tmp90 = 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' tmp90 = 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,tmp91); ^ 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,tmp91); ~~~^~ . 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,tmp91); ~~~ ^ 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(&tmp85, 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(&tmp85, 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(&tmp85, 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=] 3 warnings 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