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.001831/0.001832, allocations: 200.7 kB / 18.11 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 226.5 MB / 245.4 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008329/0.0008329, allocations: 92.22 kB / 297.5 MB, free: 6.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002205/0.0002205, allocations: 4 kB / 358.1 MB, free: 10.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2722, allocations: 51.29 MB / 409.4 MB, free: 27.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.116/0.3883, allocations: 95.28 MB / 0.4928 GB, free: 12.15 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.3886, allocations: 83.95 kB / 0.4929 GB, free: 12.07 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 1.002/1.391, allocations: 279.5 MB / 0.7659 GB, free: 62.33 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.028e-06/1.391, allocations: 4 kB / 0.7659 GB, free: 62.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.003989/1.395, allocations: 255.9 kB / 0.7661 GB, free: 62.07 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.04664/1.441, allocations: 18.64 MB / 0.7843 GB, free: 43.29 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/1.441, allocations: 12.03 kB / 0.7843 GB, free: 43.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006943/1.448, allocations: 1.747 MB / 0.7861 GB, free: 41.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05954/1.508, allocations: 26.39 MB / 0.8118 GB, free: 14.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005073/1.508, allocations: 390.3 kB / 0.8122 GB, free: 14.61 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001526/1.51, allocations: 403.8 kB / 0.8126 GB, free: 14.21 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01556/1.526, allocations: 8.166 MB / 0.8206 GB, free: 5.793 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.108e-05/1.526, allocations: 3.938 kB / 0.8206 GB, free: 5.789 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007477/1.526, allocations: 184 kB / 0.8207 GB, free: 5.609 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.583e-05/1.527, allocations: 96 kB / 0.8208 GB, free: 5.516 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01225/1.539, allocations: 6.592 MB / 0.8273 GB, free: 14.92 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5412/2.08, allocations: 34.76 MB / 0.8612 GB, free: 62.05 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008951/2.089, allocations: 6.088 MB / 0.8672 GB, free: 61.95 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005899/2.095, allocations: 4.35 MB / 0.8714 GB, free: 61.93 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001473/2.095, allocations: 29.2 kB / 0.8714 GB, free: 61.93 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.774e-05/2.095, allocations: 80.53 kB / 0.8715 GB, free: 61.89 MB / 458.8 MB Notification: Performance of pre-optimization done (n=231): time 4.639e-06/2.095, allocations: 0 / 0.8715 GB, free: 61.89 MB / 458.8 MB Notification: Performance of matching and sorting (n=231): time 0.02113/2.116, allocations: 10.27 MB / 0.8815 GB, free: 61.69 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004506/2.117, allocations: 1.298 MB / 0.8828 GB, free: 60.13 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06432/2.181, allocations: 30.96 MB / 0.913 GB, free: 57.64 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001106/2.182, allocations: 79.67 kB / 0.9131 GB, free: 57.57 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.01546/2.198, allocations: 8.266 MB / 0.9212 GB, free: 51.86 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001091/2.199, allocations: 0.8119 MB / 0.922 GB, free: 51.43 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002514/2.199, allocations: 59.31 kB / 0.922 GB, free: 51.39 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0001714/2.199, allocations: 436.4 kB / 0.9224 GB, free: 51.04 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004158/2.204, allocations: 2.918 MB / 0.9253 GB, free: 50.35 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004648/2.208, allocations: 3.971 MB / 0.9292 GB, free: 48.59 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007885/2.216, allocations: 6.042 MB / 0.9351 GB, free: 46.43 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.531e-05/2.216, allocations: 4 kB / 0.9351 GB, free: 46.43 MB / 458.8 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01718/2.233, allocations: 8.295 MB / 0.9432 GB, free: 39.44 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.325e-05/2.233, allocations: 12 kB / 0.9432 GB, free: 39.43 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.706e-05/2.234, allocations: 16 kB / 0.9432 GB, free: 39.41 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001248/2.235, allocations: 0.5445 MB / 0.9437 GB, free: 38.95 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003642/2.238, allocations: 1.04 MB / 0.9448 GB, free: 38.23 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006269/2.245, allocations: 6.056 MB / 0.9507 GB, free: 32.84 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008232/2.253, allocations: 0.8935 MB / 0.9515 GB, free: 32.29 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008752/2.254, allocations: 99.14 kB / 0.9516 GB, free: 32.2 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 (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.01473/2.269, allocations: 9.165 MB / 0.9606 GB, free: 24.64 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004684/2.273, allocations: 1.574 MB / 0.9621 GB, free: 23.05 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01657/2.29, allocations: 7.709 MB / 0.9697 GB, free: 16.76 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.8e-05/2.29, allocations: 23.94 kB / 0.9697 GB, free: 16.73 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/2.29, allocations: 0 / 0.9697 GB, free: 16.73 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.085e-05/2.29, allocations: 10.73 kB / 0.9697 GB, free: 16.73 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04429/2.334, allocations: 20.25 MB / 0.9895 GB, free: 15.52 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.968e-06/2.334, allocations: 4 kB / 0.9895 GB, free: 15.52 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00302/2.337, allocations: 0.8641 MB / 0.9903 GB, free: 14.68 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001089/2.339, allocations: 461.3 kB / 0.9907 GB, free: 14.23 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002546/2.339, allocations: 79.95 kB / 0.9908 GB, free: 14.15 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00605/2.345, allocations: 5.212 MB / 0.9959 GB, free: 8.848 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/2.345, allocations: 3.719 kB / 0.9959 GB, free: 8.848 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0189/2.364, allocations: 10.34 MB / 1.006 GB, free: 14.5 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01207/2.376, allocations: 7.473 MB / 1.013 GB, free: 6.355 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003928/2.38, allocations: 87.97 kB / 1.013 GB, free: 6.27 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008643/2.389, allocations: 0.9599 MB / 1.014 GB, free: 5.328 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00176/2.39, allocations: 488.2 kB / 1.015 GB, free: 4.852 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004005/2.391, allocations: 60 kB / 1.015 GB, free: 4.793 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.3005/2.691, allocations: 22.19 MB / 1.037 GB, free: 93.04 MB / 490.8 MB Notification: Performance of sort global known variables: time 4.71e-07/2.691, allocations: 2.812 kB / 1.037 GB, free: 93.04 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01003/2.701, allocations: 1.971 MB / 1.038 GB, free: 93.04 MB / 490.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 () * Number of clocked 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.002765/2.704, allocations: 0.7543 MB / 1.039 GB, free: 92.87 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01021/2.714, allocations: 6.339 MB / 1.045 GB, free: 92.7 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/2.714, allocations: 8 kB / 1.045 GB, free: 92.7 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004644/2.719, allocations: 3.344 MB / 1.049 GB, free: 92.54 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02089/2.74, allocations: 2.541 MB / 1.051 GB, free: 92.43 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09027/2.83, allocations: 46.2 MB / 1.096 GB, free: 80.5 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02573/2.856, allocations: 11.41 MB / 1.107 GB, free: 76.55 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.02081/2.877, allocations: 6.533 MB / 1.114 GB, free: 72.05 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004804/2.882, allocations: 0.7603 MB / 1.115 GB, free: 71.31 MB / 490.8 MB Notification: Performance of SimCode: time 9.92e-07/2.882, allocations: 0 / 1.115 GB, free: 71.31 MB / 490.8 MB [CodegenCFunctions.tpl:7294:24-7294: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.4825/3.364, allocations: 149.2 MB / 1.26 GB, free: 108.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 -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -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 -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -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 -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -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:920: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:922: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:920: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:922: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:930: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:930: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:938:6: error: "[CodegenCFunctions.tpl:7294:24-7294:24] array reduction unable to generate code for element of unknown dimension sizes; type record Modelica.Electrical.Batteries.ParameterRecords.TransientData.CellData #error "[CodegenCFunctions.tpl:7294:24-7294: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:962: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:937: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:204: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:937: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:204: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:940:7: error: use of undeclared identifier 'Real' Real Qnom; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:941:7: error: use of undeclared identifier 'Boolean' Boolean useLinearSOCDependency; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:942:7: error: use of undeclared identifier 'Real' Real OCVmax; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:943:7: error: use of undeclared identifier 'Real' Real OCVmin; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:944:7: error: use of undeclared identifier 'Real' Real SOCmax; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:945:7: error: use of undeclared identifier 'Real' Real SOCmin; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:946:7: error: use of undeclared identifier 'Real' Real[2, 2] OCV_SOC; ^ Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:946:12: warning: expression result unused [-Wunused-value] Real[2, 2] OCV_SOC; ^ ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:204: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:947: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:947: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:947: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:947: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:947: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