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.001126/0.001126, allocations: 201.8 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 227.2 MB / 245 MB, free: 7.613 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008661/0.0008661, allocations: 99.77 kB / 297.3 MB, free: 6.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002322/0.0002322, allocations: 8 kB / 357.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.1926, allocations: 51.47 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1083/0.3009, allocations: 95.28 MB / 0.4929 GB, free: 11.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.3011, allocations: 79.97 kB / 0.4929 GB, free: 11.25 MB / 378.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 0.8617/1.163, allocations: 279.7 MB / 0.7661 GB, free: 60.06 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.653e-06/1.163, allocations: 0 / 0.7661 GB, free: 60.06 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.003499/1.166, allocations: 255.9 kB / 0.7663 GB, free: 59.81 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.04292/1.209, allocations: 18.83 MB / 0.7847 GB, free: 40.83 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/1.209, allocations: 8.031 kB / 0.7847 GB, free: 40.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005353/1.215, allocations: 1.755 MB / 0.7864 GB, free: 39.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04758/1.262, allocations: 25.61 MB / 0.8114 GB, free: 13.33 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000462/1.263, allocations: 381.6 kB / 0.8118 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001436/1.264, allocations: 405.6 kB / 0.8122 GB, free: 12.56 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01642/1.281, allocations: 8.142 MB / 0.8201 GB, free: 4.168 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001342/1.281, allocations: 7.938 kB / 0.8201 GB, free: 4.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001284/1.282, allocations: 183.9 kB / 0.8203 GB, free: 3.984 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.237e-05/1.282, allocations: 96 kB / 0.8204 GB, free: 3.891 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01248/1.295, allocations: 6.584 MB / 0.8268 GB, free: 13.3 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4356/1.73, allocations: 34.74 MB / 0.8608 GB, free: 61.98 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008478/1.739, allocations: 6.085 MB / 0.8667 GB, free: 61.89 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001252/1.739, allocations: 27.28 kB / 0.8667 GB, free: 61.89 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.101e-05/1.739, allocations: 77.38 kB / 0.8668 GB, free: 61.85 MB / 458.8 MB Notification: Performance of pre-optimization done (n=231): time 4.729e-06/1.739, allocations: 2.312 kB / 0.8668 GB, free: 61.85 MB / 458.8 MB Notification: Performance of matching and sorting (n=231): time 0.03275/1.772, allocations: 15.11 MB / 0.8816 GB, free: 61.41 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002433/1.772, allocations: 1.295 MB / 0.8828 GB, free: 59.84 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05185/1.824, allocations: 28.44 MB / 0.9106 GB, free: 58.62 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008303/1.825, allocations: 82.17 kB / 0.9107 GB, free: 58.55 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.01153/1.836, allocations: 8.274 MB / 0.9188 GB, free: 52.42 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001104/1.838, allocations: 0.8111 MB / 0.9196 GB, free: 51.9 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002515/1.838, allocations: 54.09 kB / 0.9196 GB, free: 51.86 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.000152/1.838, allocations: 431.1 kB / 0.92 GB, free: 51.51 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004409/1.842, allocations: 2.952 MB / 0.9229 GB, free: 50.8 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005264/1.848, allocations: 4.007 MB / 0.9268 GB, free: 49.03 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004557/1.852, allocations: 3.359 MB / 0.9301 GB, free: 48.11 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.347e-05/1.852, allocations: 3.438 kB / 0.9301 GB, free: 48.11 MB / 458.8 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01509/1.867, allocations: 8.828 MB / 0.9387 GB, free: 41.55 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/1.868, allocations: 14.28 kB / 0.9387 GB, free: 41.54 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.293e-05/1.868, allocations: 16 kB / 0.9387 GB, free: 41.52 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002601/1.87, allocations: 1.203 MB / 0.9399 GB, free: 40.54 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002608/1.873, allocations: 0.8905 MB / 0.9408 GB, free: 39.92 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01333/1.886, allocations: 13.06 MB / 0.9535 GB, free: 28.64 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007764/1.894, allocations: 0.8911 MB / 0.9544 GB, free: 28.09 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005589/1.895, allocations: 104.5 kB / 0.9545 GB, free: 27.99 MB / 458.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (266): * Single equations (assignments): 265 * 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 80} Notification: Performance of prepare postOptimizeDAE: time 0.01373/1.908, allocations: 9.158 MB / 0.9635 GB, free: 20.44 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00455/1.913, allocations: 1.562 MB / 0.965 GB, free: 18.86 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01482/1.928, allocations: 8.193 MB / 0.973 GB, free: 12.14 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/1.928, allocations: 27.94 kB / 0.973 GB, free: 12.12 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/1.928, allocations: 0 / 0.973 GB, free: 12.12 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-05/1.928, allocations: 13.98 kB / 0.973 GB, free: 12.11 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02113/1.949, allocations: 11.62 MB / 0.9844 GB, free: 1.969 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.746e-05/1.949, allocations: 0 / 0.9844 GB, free: 1.969 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002534/1.951, allocations: 0.7098 MB / 0.9851 GB, free: 1.281 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002429/1.954, allocations: 1.177 MB / 0.9862 GB, free: 116 kB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002401/1.954, allocations: 82.61 kB / 0.9863 GB, free: 36 kB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0161/1.97, allocations: 12.98 MB / 0.999 GB, free: 3.027 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.97, allocations: 0 / 0.999 GB, free: 3.027 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01873/1.989, allocations: 10.9 MB / 1.01 GB, free: 8.109 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2353/2.224, allocations: 7.484 MB / 1.017 GB, free: 95.19 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003991/2.228, allocations: 87.23 kB / 1.017 GB, free: 95.19 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007091/2.235, allocations: 0.9642 MB / 1.018 GB, free: 95.19 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001279/2.237, allocations: 492.9 kB / 1.018 GB, free: 95.19 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004813/2.237, allocations: 60.8 kB / 1.018 GB, free: 95.19 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.03631/2.274, allocations: 22.19 MB / 1.04 GB, free: 94.69 MB / 490.8 MB Notification: Performance of sort global known variables: time 3e-07/2.274, allocations: 0 / 1.04 GB, free: 94.69 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.006901/2.281, allocations: 2.021 MB / 1.042 GB, free: 94.69 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (149): * Single equations (assignments): 148 * 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 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.001395/2.282, allocations: 0.7527 MB / 1.043 GB, free: 94.53 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.009467/2.291, allocations: 6.887 MB / 1.05 GB, free: 94.31 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/2.291, allocations: 6.938 kB / 1.05 GB, free: 94.31 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004874/2.296, allocations: 3.683 MB / 1.053 GB, free: 94.12 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009447/2.306, allocations: 2.534 MB / 1.056 GB, free: 94 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05813/2.364, allocations: 46.24 MB / 1.101 GB, free: 80.09 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01163/2.376, allocations: 11.71 MB / 1.112 GB, free: 71.03 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.01197/2.388, allocations: 6.212 MB / 1.118 GB, free: 66.75 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002873/2.391, allocations: 0.7482 MB / 1.119 GB, free: 66.02 MB / 490.8 MB Notification: Performance of SimCode: time 1.042e-06/2.391, allocations: 0 / 1.119 GB, free: 66.02 MB / 490.8 MB [CodegenCFunctions.tpl:7265:24-7265:24:writable] Error: Template error: array reduction unable to generate code for element of unknown dimension sizes; type record Modelica.Electrical.Batteries.ParameterRecords.TransientData.CellData String CellType; Real Qnom; Boolean useLinearSOCDependency; Real OCVmax; Real OCVmin; Real SOCmax; Real SOCmin; Real[2, 2] OCV_SOC; enumeration(LinearSegments, ContinuousDerivative, ConstantSegments, MonotoneContinuousDerivative1, MonotoneContinuousDerivative2, ModifiedContinuousDerivative) smoothness; Real[2, 2] OCV_SOC_internal; Real Ri; Real T_ref; Real alpha; Real Idis; Real R0; Integer nRC; record Modelica.Electrical.Batteries.ParameterRecords.TransientData.RCData String CellType; Real R; Real T_ref; Real alpha; Real C; end Modelica.Electrical.Batteries.ParameterRecords.TransientData.RCData;[1] rcData; end Modelica.Electrical.Batteries.ParameterRecords.TransientData.CellData;[:]: array(if Modelica.Math.BooleanVectors.anyTrue({ks == kDegraded[1,1] and kp == kDegraded[1,2]}) then cellDataDegraded else cellDataOriginal for kp in 1:Np). Notification: Performance of Templates: time 0.4321/2.823, allocations: 152.1 MB / 1.268 GB, free: 106.2 MB / 0.4949 GB 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:908:84: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->__omcQ_24tmpVar31; ^ ; Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:910:81: error: redefinition of 'ths' Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->__omcQ_24tmpVar30; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:908:81: note: previous definition is here Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->__omcQ_24tmpVar31; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:910:84: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->__omcQ_24tmpVar30; ^ ; Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:918: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:918: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:926:6: error: "[CodegenCFunctions.tpl:7265:24-7265:24] array reduction unable to generate code for element of unknown dimension sizes; type record Modelica.Electrical.Batteries.ParameterRecords.TransientData.CellData #error "[CodegenCFunctions.tpl:7265:24-7265:24] array reduction unable to generate code for element of unknown dimension sizes; type record Modelica.Electrical.Batteries.ParameterRecords.TransientData.CellData ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:950:238: warning: missing terminating '"' character [-Winvalid-pp-token] end Modelica.Electrical.Batteries.ParameterRecords.TransientData.CellData;[:]: array(if Modelica.Math.BooleanVectors.anyTrue({ks == kDegraded[1,1] and kp == kDegraded[1,2]}) then cellDataDegraded else cellDataOriginal for kp in 1:Np)" ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:925: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->__omcQ_24tmpVar31, 2, tmp98 ~~~^~ . ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:214: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:925:93: error: no member named '__omcQ_24tmpVar31' in 'struct base_array_s' alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->__omcQ_24tmpVar31, 2, tmp98 ~~~ ^ ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:214: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:928:7: error: use of undeclared identifier 'Real' Real Qnom; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:929:7: error: use of undeclared identifier 'Boolean' Boolean useLinearSOCDependency; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:930:7: error: use of undeclared identifier 'Real' Real OCVmax; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:931:7: error: use of undeclared identifier 'Real' Real OCVmin; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:932:7: error: use of undeclared identifier 'Real' Real SOCmax; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:933:7: error: use of undeclared identifier 'Real' Real SOCmin; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:934:7: error: use of undeclared identifier 'Real' Real[2, 2] OCV_SOC; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:934:12: warning: expression result unused [-Wunused-value] Real[2, 2] OCV_SOC; ^ ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:214: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:935:7: warning: implicit declaration of function 'enumeration' is invalid in C99 [-Wimplicit-function-declaration] enumeration(LinearSegments, ContinuousDerivative, ConstantSegments, MonotoneContinuousDerivative1, MonotoneContinuousDerivative2, ModifiedContinuousDerivative) smoothness; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:935:19: error: use of undeclared identifier 'LinearSegments' enumeration(LinearSegments, ContinuousDerivative, ConstantSegments, MonotoneContinuousDerivative1, MonotoneContinuousDerivative2, ModifiedContinuousDerivative) smoothness; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:935:35: error: use of undeclared identifier 'ContinuousDerivative' enumeration(LinearSegments, ContinuousDerivative, ConstantSegments, MonotoneContinuousDerivative1, MonotoneContinuousDerivative2, ModifiedContinuousDerivative) smoothness; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:935:57: error: use of undeclared identifier 'ConstantSegments' enumeration(LinearSegments, ContinuousDerivative, ConstantSegments, MonotoneContinuousDerivative1, MonotoneContinuousDerivative2, ModifiedContinuousDerivative) smoothness; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:935:75: error: use of undeclared identifier 'MonotoneContinuousDerivative1' enumeration(LinearSegments, ContinuousDerivative, ConstantSegments, MonotoneContinuousDerivative1, MonotoneContinuousDerivative2, ModifiedContinuousDerivative) smoothness; ^ 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