Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) 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"}) "" <> 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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 221.3 MB / 235.5 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008826/0.0008824, allocations: 84.06 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.182e-05/2.185e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 50.42 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3487/0.4546, allocations: 93.99 MB / 488.3 MB, free: 9.457 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.4549, allocations: 79.97 kB / 488.4 MB, free: 9.379 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.02/1.475, allocations: 278.3 MB / 0.7488 GB, free: 54.26 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.705e-06/1.475, allocations: 3.812 kB / 0.7488 GB, free: 54.26 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.004433/1.479, allocations: 263.6 kB / 0.749 GB, free: 54.24 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.03404/1.513, allocations: 13.3 MB / 0.762 GB, free: 49.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/1.513, allocations: 7.875 kB / 0.762 GB, free: 49.18 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002466/1.516, allocations: 0.5874 MB / 0.7626 GB, free: 49.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005758/1.522, allocations: 1.743 MB / 0.7643 GB, free: 48.19 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05201/1.574, allocations: 25.4 MB / 0.7891 GB, free: 45.37 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004437/1.574, allocations: 384.7 kB / 0.7895 GB, free: 45.33 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0014/1.575, allocations: 391.8 kB / 0.7898 GB, free: 45.33 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0122/1.588, allocations: 7.467 MB / 0.7971 GB, free: 44.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.843e-05/1.588, allocations: 7.344 kB / 0.7971 GB, free: 44.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007448/1.589, allocations: 177.3 kB / 0.7973 GB, free: 44.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.965e-05/1.589, allocations: 98.03 kB / 0.7974 GB, free: 44.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008789/1.597, allocations: 5.893 MB / 0.8031 GB, free: 44.34 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06803/1.665, allocations: 34.73 MB / 0.8371 GB, free: 24.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005989/1.671, allocations: 4.774 MB / 0.8417 GB, free: 20.93 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004078/1.676, allocations: 3.715 MB / 0.8453 GB, free: 17.76 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001345/1.676, allocations: 34.48 kB / 0.8454 GB, free: 17.74 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.833e-05/1.676, allocations: 77 kB / 0.8454 GB, free: 17.65 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 4.649e-06/1.676, allocations: 0 / 0.8454 GB, free: 17.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.009733/1.686, allocations: 5.31 MB / 0.8506 GB, free: 12.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002474/1.686, allocations: 1.294 MB / 0.8519 GB, free: 11.21 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.07622/1.762, allocations: 29.75 MB / 0.881 GB, free: 5.375 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008186/1.763, allocations: 81.7 kB / 0.881 GB, free: 5.289 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2654/2.028, allocations: 8.234 MB / 0.8891 GB, free: 67.22 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001133/2.03, allocations: 0.8185 MB / 0.8899 GB, free: 67.13 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000267/2.03, allocations: 54.38 kB / 0.8899 GB, free: 67.13 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001999/2.03, allocations: 431.4 kB / 0.8903 GB, free: 66.83 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003107/2.033, allocations: 2.282 MB / 0.8926 GB, free: 66.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003086/2.036, allocations: 3.332 MB / 0.8958 GB, free: 65.86 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003383/2.04, allocations: 2.683 MB / 0.8984 GB, free: 65.81 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/2.04, allocations: 7.844 kB / 0.8984 GB, free: 65.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01417/2.054, allocations: 7.02 MB / 0.9053 GB, free: 64.83 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.595e-05/2.054, allocations: 12.25 kB / 0.9053 GB, free: 64.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-05/2.054, allocations: 16.84 kB / 0.9053 GB, free: 64.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001792/2.056, allocations: 0.5328 MB / 0.9058 GB, free: 64.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004369/2.06, allocations: 1.034 MB / 0.9069 GB, free: 64.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006305/2.067, allocations: 6.004 MB / 0.9127 GB, free: 63.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006784/2.073, allocations: 0.8971 MB / 0.9136 GB, free: 63.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005734/2.074, allocations: 101.3 kB / 0.9137 GB, free: 63.32 MB / 458.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.0008272/2.075, allocations: 299.8 kB / 0.914 GB, free: 63.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004419/2.079, allocations: 1.563 MB / 0.9155 GB, free: 62.35 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/2.091, allocations: 6.438 MB / 0.9218 GB, free: 62.09 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-05/2.091, allocations: 22.88 kB / 0.9218 GB, free: 62.09 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/2.091, allocations: 0 / 0.9218 GB, free: 62.09 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/2.091, allocations: 12.47 kB / 0.9218 GB, free: 62.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03446/2.126, allocations: 18.93 MB / 0.9403 GB, free: 61.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/2.126, allocations: 0 / 0.9403 GB, free: 61.33 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002798/2.129, allocations: 0.8731 MB / 0.9412 GB, free: 61.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/2.13, allocations: 439.1 kB / 0.9416 GB, free: 61.32 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002491/2.13, allocations: 78.2 kB / 0.9417 GB, free: 61.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004535/2.134, allocations: 5.181 MB / 0.9467 GB, free: 59.93 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/2.135, allocations: 3.844 kB / 0.9467 GB, free: 59.93 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01082/2.145, allocations: 8.641 MB / 0.9552 GB, free: 56.68 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009093/2.154, allocations: 7.463 MB / 0.9625 GB, free: 51.15 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002848/2.157, allocations: 89.84 kB / 0.9625 GB, free: 51.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006537/2.164, allocations: 0.9594 MB / 0.9635 GB, free: 51.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009601/2.165, allocations: 482 kB / 0.9639 GB, free: 51.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002616/2.165, allocations: 67.03 kB / 0.964 GB, free: 51.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.04118/2.206, allocations: 21.91 MB / 0.9854 GB, free: 41.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.31e-07/2.206, allocations: 0 / 0.9854 GB, free: 41.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01373/2.22, allocations: 1.965 MB / 0.9873 GB, free: 39.68 MB / 458.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.01638/2.237, allocations: 9.876 MB / 0.997 GB, free: 30.95 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00592/2.243, allocations: 5.082 MB / 1.002 GB, free: 26.54 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/2.243, allocations: 5.781 kB / 1.002 GB, free: 26.53 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002932/2.245, allocations: 2.709 MB / 1.005 GB, free: 24.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01202/2.258, allocations: 2.532 MB / 1.007 GB, free: 22.13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1098/2.367, allocations: 45.38 MB / 1.051 GB, free: 3.809 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0202/2.388, allocations: 11.8 MB / 1.063 GB, free: 10.68 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01869/2.406, allocations: 6.451 MB / 1.069 GB, free: 4.457 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.5128/2.919, allocations: 6.759 MB / 1.076 GB, free: 74.71 MB / 490.8 MB Notification: Performance of SimCode: time 1.924e-06/2.919, allocations: 0 / 1.076 GB, free: 74.71 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.695/3.614, allocations: 320.2 MB / 1.389 GB, free: 28.43 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/3.614, allocations: 218 kB / 1.389 GB, free: 28.21 MB / 0.4949 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -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 -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -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 -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -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 -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -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); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -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->_D_24tmpVar31; ^ ; 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->_D_24tmpVar30; ^ 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->_D_24tmpVar31; ^ 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->_D_24tmpVar30; ^ ; 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->_D_24tmpVar31, 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 '_D_24tmpVar31' in 'struct base_array_s' alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->_D_24tmpVar31, 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:121: 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->_D_24tmpVar31, 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:123: error: no member named '_Np' in 'struct base_array_s' alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->_D_24tmpVar31, 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->_D_24tmpVar29; ^ ; 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->_D_24tmpVar28; ^ 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->_D_24tmpVar29; ^ 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->_D_24tmpVar28; ^ ; 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->_D_24tmpVar29,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->_D_24tmpVar29,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 '_D_24tmpVar29' in 'struct base_array_s' alloc_generic_array(&ths->_D_24tmpVar29,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. make: *** [: Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_records.o] Error 1