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: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|stack.cell.1, 1..cell.capacitor.1..v|stack.cell.1, 1..cell.capacitor.2..v|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.capacitor.1..v|stack.cell.1, 2..cell.capacitor.2..v|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.capacitor.1..v|stack.cell.2, 1..cell.capacitor.2..v|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.capacitor.1..v|stack.cell.2, 2..cell.capacitor.2..v|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.capacitor.1..v|stack.cell.3, 1..cell.capacitor.2..v|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.capacitor.1..v|stack.cell.3, 2..cell.capacitor.2..v|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|stack.cell.1, 1..cell.capacitor.1..v|stack.cell.1, 1..cell.capacitor.2..v|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.capacitor.1..v|stack.cell.1, 2..cell.capacitor.2..v|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.capacitor.1..v|stack.cell.2, 1..cell.capacitor.2..v|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.capacitor.1..v|stack.cell.2, 2..cell.capacitor.2..v|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.capacitor.1..v|stack.cell.3, 1..cell.capacitor.2..v|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.capacitor.1..v|stack.cell.3, 2..cell.capacitor.2..v|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001595/0.001595, allocations: 196.8 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.388/1.388, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008626/0.0008623, allocations: 91.92 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.026e-05/3.038e-05, allocations: 8 kB / 350.5 MB, free: 2.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1124, allocations: 51.49 MB / 402 MB, free: 14.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3481/0.4605, allocations: 95.21 MB / 497.2 MB, free: 10.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.4609, allocations: 82.3 kB / 497.3 MB, free: 10.36 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.412/1.873, allocations: 279.8 MB / 0.7589 GB, free: 39.9 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.004e-06/1.873, allocations: 0 / 0.7589 GB, free: 39.9 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.003606/1.876, allocations: 265.3 kB / 0.7592 GB, free: 39.88 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.03231/1.909, allocations: 13.34 MB / 0.7722 GB, free: 34.81 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/1.909, allocations: 9.688 kB / 0.7722 GB, free: 34.81 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007861/1.917, allocations: 1.75 MB / 0.7739 GB, free: 33.87 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06036/1.977, allocations: 25.5 MB / 0.7988 GB, free: 31.04 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004773/1.978, allocations: 380.7 kB / 0.7992 GB, free: 31 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001397/1.979, allocations: 396.2 kB / 0.7995 GB, free: 31 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0126/1.992, allocations: 7.465 MB / 0.8068 GB, free: 30.21 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.903e-05/1.992, allocations: 3.656 kB / 0.8068 GB, free: 30.21 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007281/1.992, allocations: 179.4 kB / 0.807 GB, free: 30.21 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.422e-05/1.992, allocations: 98.34 kB / 0.8071 GB, free: 30.21 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009953/2.002, allocations: 5.892 MB / 0.8129 GB, free: 30.18 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.068/2.07, allocations: 34.76 MB / 0.8468 GB, free: 19.92 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006072/2.077, allocations: 4.777 MB / 0.8515 GB, free: 18.3 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004558/2.081, allocations: 3.702 MB / 0.8551 GB, free: 16.14 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001725/2.081, allocations: 30.45 kB / 0.8551 GB, free: 16.11 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.221e-05/2.081, allocations: 81 kB / 0.8552 GB, free: 16.02 MB / 442.8 MB Notification: Performance of pre-optimization done (n=231): time 3.837e-06/2.081, allocations: 1.625 kB / 0.8552 GB, free: 16.02 MB / 442.8 MB Notification: Performance of matching and sorting (n=231): time 0.008994/2.09, allocations: 5.316 MB / 0.8604 GB, free: 11.17 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002454/2.091, allocations: 1.292 MB / 0.8616 GB, free: 9.57 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1017/2.192, allocations: 31.77 MB / 0.8927 GB, free: 8.387 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006884/2.193, allocations: 73.7 kB / 0.8927 GB, free: 8.309 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0126/2.206, allocations: 8.266 MB / 0.9008 GB, free: 36 kB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001189/2.207, allocations: 0.8202 MB / 0.9016 GB, free: 15.22 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002476/2.207, allocations: 56 kB / 0.9017 GB, free: 15.16 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.000229/2.207, allocations: 433.8 kB / 0.9021 GB, free: 14.74 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003126/2.211, allocations: 2.282 MB / 0.9043 GB, free: 12.45 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003894/2.215, allocations: 3.323 MB / 0.9076 GB, free: 8.801 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003432/2.218, allocations: 2.691 MB / 0.9102 GB, free: 6.137 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/2.218, allocations: 10.47 kB / 0.9102 GB, free: 6.129 MB / 474.8 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.2666/2.485, allocations: 7.02 MB / 0.917 GB, free: 66.7 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.609e-05/2.485, allocations: 13.28 kB / 0.9171 GB, free: 66.7 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.019e-05/2.485, allocations: 13.38 kB / 0.9171 GB, free: 66.7 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/2.486, allocations: 0.534 MB / 0.9176 GB, free: 66.68 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003885/2.49, allocations: 1.034 MB / 0.9186 GB, free: 66.68 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006381/2.496, allocations: 6.011 MB / 0.9245 GB, free: 65.34 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008912/2.505, allocations: 0.8948 MB / 0.9254 GB, free: 65.34 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007561/2.506, allocations: 97.44 kB / 0.9254 GB, free: 65.34 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.0007791/2.507, allocations: 312 kB / 0.9257 GB, free: 65.22 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004258/2.511, allocations: 1.568 MB / 0.9273 GB, free: 65.08 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01287/2.524, allocations: 6.44 MB / 0.9336 GB, free: 64.82 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.788e-05/2.524, allocations: 21.44 kB / 0.9336 GB, free: 64.82 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.371e-06/2.524, allocations: 0 / 0.9336 GB, free: 64.82 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.152e-05/2.524, allocations: 17.34 kB / 0.9336 GB, free: 64.82 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05223/2.576, allocations: 18.99 MB / 0.9521 GB, free: 64.06 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.989e-06/2.576, allocations: 2.625 kB / 0.9521 GB, free: 64.06 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003364/2.58, allocations: 0.8683 MB / 0.953 GB, free: 64.06 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001141/2.581, allocations: 445.9 kB / 0.9534 GB, free: 64.05 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003873/2.581, allocations: 76.34 kB / 0.9535 GB, free: 64.05 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006047/2.587, allocations: 5.165 MB / 0.9585 GB, free: 62.66 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/2.587, allocations: 1.562 kB / 0.9585 GB, free: 62.66 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01351/2.601, allocations: 8.657 MB / 0.967 GB, free: 61.25 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01154/2.613, allocations: 7.473 MB / 0.9743 GB, free: 56.7 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005697/2.618, allocations: 93.22 kB / 0.9744 GB, free: 56.7 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007708/2.626, allocations: 0.9648 MB / 0.9753 GB, free: 56.7 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001171/2.627, allocations: 482.1 kB / 0.9758 GB, free: 56.7 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004624/2.628, allocations: 63.23 kB / 0.9758 GB, free: 56.7 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.04557/2.673, allocations: 21.99 MB / 0.9973 GB, free: 52.73 MB / 474.8 MB Notification: Performance of sort global known variables: time 6.71e-07/2.673, allocations: 0.8438 kB / 0.9973 GB, free: 52.73 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.008036/2.681, allocations: 1.97 MB / 0.9992 GB, free: 52.55 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.00163/2.683, allocations: 0.7144 MB / 0.9999 GB, free: 52.38 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.007321/2.69, allocations: 5.072 MB / 1.005 GB, free: 50.8 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-05/2.69, allocations: 9.188 kB / 1.005 GB, free: 50.8 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004109/2.695, allocations: 2.717 MB / 1.008 GB, free: 49.89 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01494/2.71, allocations: 2.531 MB / 1.01 GB, free: 49.01 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07192/2.781, allocations: 38.36 MB / 1.047 GB, free: 19.23 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02147/2.803, allocations: 11.7 MB / 1.059 GB, free: 10.24 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.02004/2.823, allocations: 6.531 MB / 1.065 GB, free: 5.906 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004157/2.827, allocations: 0.762 MB / 1.066 GB, free: 5.168 MB / 474.8 MB Notification: Performance of SimCode: time 1.243e-06/2.827, allocations: 0 / 1.066 GB, free: 5.168 MB / 474.8 MB Notification: Performance of Templates: time 0.5413/3.369, allocations: 148.7 MB / 1.211 GB, free: 43.46 MB / 490.8 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.o Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.o Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_StackRC -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.o Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1014:84: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->_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 '.'? tmp97 = ths->_Ns /* Range stop-value */; ~~~^~ . Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1024:18: error: no member named '_Ns' in 'struct base_array_s' tmp97 = ths->_Ns /* Range stop-value */; ~~~ ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031:91: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->_D_24tmpVar31, 2, tmp98, ths->_Np); ~~~^~ . ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:133: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031:93: error: no member named '_D_24tmpVar31' in 'struct base_array_s' alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->_D_24tmpVar31, 2, tmp98, ths->_Np); ~~~ ^ ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:133: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031: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, tmp98, ths->_Np); ~~~^~ . ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:307: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~~~~~~~~~ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031:123: error: no member named '_Np' in 'struct base_array_s' alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->_D_24tmpVar31, 2, tmp98, ths->_Np); ~~~ ^ ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:307: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~~~~~~~~~ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1041:90: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->_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 '.'? tmp92 = ths->_Np /* Range stop-value */; ~~~^~ . Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1053:24: error: no member named '_Np' in 'struct base_array_s' tmp92 = ths->_Np /* Range stop-value */; ~~~ ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1060:11: warning: implicit declaration of function 'alloc_generic_array' is invalid in C99 [-Wimplicit-function-declaration] alloc_generic_array(&ths->_D_24tmpVar29,sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData),1,tmp93); ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1060:35: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? alloc_generic_array(&ths->_D_24tmpVar29,sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData),1,tmp93); ~~~^~ . Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1060:37: error: no member named '_D_24tmpVar29' in 'struct base_array_s' alloc_generic_array(&ths->_D_24tmpVar29,sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData),1,tmp93); ~~~ ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1068:82: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? array_alloc_scalar_boolean_array(&tmp87, 1, (modelica_boolean)((ths->_ks == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 1)))) && (ths->_kp == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 2)))))); ~~~^~ . Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1068:84: error: no member named '_ks' in 'struct base_array_s' array_alloc_scalar_boolean_array(&tmp87, 1, (modelica_boolean)((ths->_ks == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 1)))) && (ths->_kp == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 2)))))); ~~~ ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1068:125: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? array_alloc_scalar_boolean_array(&tmp87, 1, (modelica_boolean)((ths->_ks == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 1)))) && (ths->_kp == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 2)))))); ~~~^~ . fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. make: *** [: Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.o] Error 1