Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001201/0.001201, allocations: 196.7 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009109/0.0009109, allocations: 95.77 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.348e-05/3.365e-05, allocations: 4 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1162, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3911/0.5074, allocations: 95.2 MB / 497.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/0.5078, allocations: 78.03 kB / 497.4 MB, free: 10.4 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/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.356/1.864, allocations: 279.8 MB / 0.759 GB, free: 40.12 MB / 442.8 MB Notification: Performance of FrontEnd: time 1.363e-06/1.864, allocations: 0 / 0.759 GB, free: 40.12 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.004357/1.869, allocations: 262.1 kB / 0.7593 GB, free: 40.11 MB / 442.8 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.04086/1.909, allocations: 13.35 MB / 0.7723 GB, free: 35.03 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.274e-05/1.91, allocations: 10 kB / 0.7723 GB, free: 35.03 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003594/1.913, allocations: 0.5875 MB / 0.7729 GB, free: 34.97 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00897/1.922, allocations: 1.759 MB / 0.7746 GB, free: 34.03 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0633/1.985, allocations: 25.48 MB / 0.7995 GB, free: 31.21 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004537/1.986, allocations: 385.2 kB / 0.7998 GB, free: 31.17 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001262/1.987, allocations: 398.5 kB / 0.8002 GB, free: 31.16 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/2, allocations: 7.458 MB / 0.8075 GB, free: 30.38 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.87e-05/2, allocations: 4.5 kB / 0.8075 GB, free: 30.38 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007175/2, allocations: 181.2 kB / 0.8077 GB, free: 30.38 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.051e-05/2.001, allocations: 101.2 kB / 0.8078 GB, free: 30.38 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00974/2.01, allocations: 5.89 MB / 0.8135 GB, free: 30.34 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07086/2.081, allocations: 34.76 MB / 0.8475 GB, free: 19.69 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006114/2.087, allocations: 4.775 MB / 0.8521 GB, free: 18.07 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004283/2.092, allocations: 3.706 MB / 0.8558 GB, free: 15.82 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001278/2.092, allocations: 29.06 kB / 0.8558 GB, free: 15.79 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.364e-05/2.092, allocations: 77 kB / 0.8559 GB, free: 15.71 MB / 442.8 MB Notification: Performance of pre-optimization done (n=231): time 5.03e-06/2.092, allocations: 0 / 0.8559 GB, free: 15.71 MB / 442.8 MB Notification: Performance of matching and sorting (n=231): time 0.01011/2.102, allocations: 5.316 MB / 0.8611 GB, free: 10.86 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002417/2.102, allocations: 1.296 MB / 0.8623 GB, free: 9.254 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.09643/2.199, allocations: 31.71 MB / 0.8933 GB, free: 7.887 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008159/2.2, allocations: 83.95 kB / 0.8934 GB, free: 7.801 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.01484/2.214, allocations: 8.263 MB / 0.9014 GB, free: 15.53 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001296/2.216, allocations: 0.8101 MB / 0.9022 GB, free: 14.72 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002716/2.216, allocations: 58.62 kB / 0.9023 GB, free: 14.67 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0002591/2.216, allocations: 435.5 kB / 0.9027 GB, free: 14.24 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003447/2.22, allocations: 2.283 MB / 0.9049 GB, free: 11.95 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003985/2.224, allocations: 3.325 MB / 0.9082 GB, free: 8.297 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003596/2.227, allocations: 2.693 MB / 0.9108 GB, free: 5.637 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.368e-05/2.227, allocations: 7.984 kB / 0.9108 GB, free: 5.629 MB / 474.8 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.3298/2.557, allocations: 7.02 MB / 0.9177 GB, free: 67.12 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/2.557, allocations: 11.66 kB / 0.9177 GB, free: 67.12 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.654e-05/2.557, allocations: 19.53 kB / 0.9177 GB, free: 67.12 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/2.559, allocations: 0.5322 MB / 0.9182 GB, free: 67.11 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003759/2.562, allocations: 1.033 MB / 0.9192 GB, free: 67.11 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0063/2.569, allocations: 6.006 MB / 0.9251 GB, free: 65.76 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008435/2.577, allocations: 0.8976 MB / 0.926 GB, free: 65.76 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007391/2.578, allocations: 105.1 kB / 0.9261 GB, free: 65.76 MB / 474.8 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.0008137/2.579, allocations: 301.6 kB / 0.9263 GB, free: 65.65 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006813/2.586, allocations: 1.566 MB / 0.9279 GB, free: 65.5 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01606/2.602, allocations: 6.445 MB / 0.9342 GB, free: 65.24 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/2.602, allocations: 21.78 kB / 0.9342 GB, free: 65.24 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/2.602, allocations: 0 / 0.9342 GB, free: 65.24 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.231e-05/2.602, allocations: 12.94 kB / 0.9342 GB, free: 65.24 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0497/2.652, allocations: 18.99 MB / 0.9527 GB, free: 64.48 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/2.652, allocations: 2.906 kB / 0.9528 GB, free: 64.48 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003155/2.655, allocations: 0.8691 MB / 0.9536 GB, free: 64.48 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001079/2.656, allocations: 442.1 kB / 0.954 GB, free: 64.47 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002273/2.656, allocations: 77.05 kB / 0.9541 GB, free: 64.47 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005649/2.662, allocations: 5.171 MB / 0.9591 GB, free: 63.08 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/2.662, allocations: 1.188 kB / 0.9591 GB, free: 63.08 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01216/2.674, allocations: 8.653 MB / 0.9676 GB, free: 61.66 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01197/2.686, allocations: 7.474 MB / 0.9749 GB, free: 57.12 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006221/2.692, allocations: 95.12 kB / 0.975 GB, free: 57.12 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008537/2.701, allocations: 0.9638 MB / 0.9759 GB, free: 57.12 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001334/2.702, allocations: 482 kB / 0.9764 GB, free: 57.11 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002527/2.702, allocations: 64.16 kB / 0.9764 GB, free: 57.11 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.04/2.742, allocations: 21.99 MB / 0.9979 GB, free: 52.89 MB / 474.8 MB Notification: Performance of sort global known variables: time 9.12e-07/2.742, allocations: 0 / 0.9979 GB, free: 52.89 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.008921/2.751, allocations: 1.971 MB / 0.9998 GB, free: 52.71 MB / 474.8 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.01333/2.765, allocations: 9.868 MB / 1.009 GB, free: 48.83 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.006372/2.771, allocations: 5.076 MB / 1.014 GB, free: 47.23 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/2.771, allocations: 9.031 kB / 1.014 GB, free: 47.23 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002921/2.774, allocations: 2.709 MB / 1.017 GB, free: 46.33 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0116/2.786, allocations: 2.539 MB / 1.02 GB, free: 44.41 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08969/2.875, allocations: 43.83 MB / 1.062 GB, free: 6.402 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0255/2.901, allocations: 11.77 MB / 1.074 GB, free: 13.58 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.02555/2.927, allocations: 6.529 MB / 1.08 GB, free: 9.246 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01633/2.943, allocations: 6.781 MB / 1.087 GB, free: 2.938 MB / 490.8 MB Notification: Performance of SimCode: time 3.507e-06/2.943, allocations: 0 / 1.087 GB, free: 2.938 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.069/4.012, allocations: 322.1 MB / 1.401 GB, free: 39.11 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/4.012, allocations: 221.3 kB / 1.402 GB, free: 38.89 MB / 0.5105 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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part0.o Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part0.c In file included from Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part0.c:1: In file included from ./Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part1.o Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part1.c In file included from Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_08bnd_part1.c:1: In file included from ./Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.o Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.c In file included from Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.c:7: In file included from ./Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_functions.o Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_functions.c In file included from Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_functions.c:2: In file included from ./Modelica_trunk_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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_records.o Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_records.c In file included from Modelica_trunk_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_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->_D_24tmpVar31; ^ ; Modelica_trunk_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_trunk_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_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->_D_24tmpVar30; ^ ; 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 '.'? tmp95 = 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' tmp95 = 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->_D_24tmpVar31, 2, tmp96, 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 '_D_24tmpVar31' in 'struct base_array_s' alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->_D_24tmpVar31, 2, tmp96, 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: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_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: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_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->_D_24tmpVar29; ^ ; 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->_D_24tmpVar28; ^ 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->_D_24tmpVar29; ^ 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->_D_24tmpVar28; ^ ; 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 '.'? tmp90 = 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' tmp90 = 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->_D_24tmpVar29,sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData),1,tmp91); ^ 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->_D_24tmpVar29,sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData),1,tmp91); ~~~^~ . Modelica_trunk_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_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(&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_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(&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_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(&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_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC_records.o] Error 1