Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: 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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001649/0.001649, allocations: 166.6 kB / 17.39 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 223.3 MB / 241.4 MB, free: 9.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007946/0.0007947, allocations: 100.1 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005374/0.0005375, allocations: 11.94 kB / 352.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2468, allocations: 50.41 MB / 402.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1281/0.3749, allocations: 94.17 MB / 496.9 MB, free: 2.117 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004865/0.3755, allocations: 83.95 kB / 497 MB, free: 2.035 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[2].C to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].R to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/ParameterRecords/TransientData/CellData.mo:8:3-11:59:writable] Notification: Moving binding to initial equation section and setting fixed attribute of rcData[1].C to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].Qnom to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].OCVmax to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].OCVmin to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].Ri to false. Notification: Performance of FrontEnd - DAE generated: time 0.9993/1.375, allocations: 278 MB / 0.7568 GB, free: 45.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.344e-06/1.375, allocations: 0 / 0.7568 GB, free: 45.62 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00425/1.379, allocations: 263.8 kB / 0.7571 GB, free: 45.36 MB / 426.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.04887/1.428, allocations: 18.59 MB / 0.7752 GB, free: 26.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/1.428, allocations: 11.97 kB / 0.7752 GB, free: 26.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007912/1.436, allocations: 1.751 MB / 0.777 GB, free: 24.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05858/1.495, allocations: 26.29 MB / 0.8026 GB, free: 14.43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006372/1.495, allocations: 385.6 kB / 0.803 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001694/1.497, allocations: 403.8 kB / 0.8034 GB, free: 13.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01866/1.516, allocations: 8.177 MB / 0.8114 GB, free: 5.223 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-05/1.516, allocations: 3.938 kB / 0.8114 GB, free: 5.219 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009141/1.517, allocations: 180 kB / 0.8115 GB, free: 5.043 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.822e-05/1.517, allocations: 96 kB / 0.8116 GB, free: 4.949 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01416/1.531, allocations: 6.581 MB / 0.8181 GB, free: 14.36 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3275/1.859, allocations: 34.72 MB / 0.852 GB, free: 68.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009565/1.868, allocations: 6.096 MB / 0.8579 GB, free: 68.13 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006793/1.875, allocations: 4.342 MB / 0.8622 GB, free: 68.11 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002291/1.875, allocations: 33.62 kB / 0.8622 GB, free: 68.11 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/1.875, allocations: 77.91 kB / 0.8623 GB, free: 68.07 MB / 458.7 MB Notification: Performance of pre-optimization done (n=231): time 4.899e-06/1.875, allocations: 0 / 0.8623 GB, free: 68.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=231): time 0.02127/1.897, allocations: 10.27 MB / 0.8723 GB, free: 67.87 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002543/1.897, allocations: 1.301 MB / 0.8736 GB, free: 66.31 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06308/1.96, allocations: 30.85 MB / 0.9037 GB, free: 63.94 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007826/1.961, allocations: 79.14 kB / 0.9038 GB, free: 63.88 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.01369/1.975, allocations: 8.226 MB / 0.9118 GB, free: 58.18 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001437/1.976, allocations: 0.8137 MB / 0.9126 GB, free: 57.77 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000339/1.976, allocations: 54.47 kB / 0.9127 GB, free: 57.72 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002118/1.977, allocations: 434.6 kB / 0.9131 GB, free: 57.37 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004455/1.981, allocations: 2.911 MB / 0.9159 GB, free: 56.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005023/1.986, allocations: 3.97 MB / 0.9198 GB, free: 54.92 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00857/1.995, allocations: 6.044 MB / 0.9257 GB, free: 52.89 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.729e-05/1.995, allocations: 9.406 kB / 0.9257 GB, free: 52.89 MB / 458.7 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01718/2.012, allocations: 8.281 MB / 0.9338 GB, free: 46.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.512e-05/2.012, allocations: 9.156 kB / 0.9338 GB, free: 46.19 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.909e-05/2.012, allocations: 16 kB / 0.9338 GB, free: 46.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/2.013, allocations: 0.5567 MB / 0.9344 GB, free: 45.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003453/2.017, allocations: 1.028 MB / 0.9354 GB, free: 45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006141/2.023, allocations: 6.062 MB / 0.9413 GB, free: 39.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007894/2.031, allocations: 0.8986 MB / 0.9422 GB, free: 39.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007877/2.032, allocations: 99.81 kB / 0.9423 GB, free: 38.96 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * 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.01499/2.047, allocations: 9.138 MB / 0.9512 GB, free: 31.43 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005322/2.052, allocations: 1.558 MB / 0.9527 GB, free: 29.85 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02619/2.078, allocations: 7.707 MB / 0.9602 GB, free: 23.55 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.588e-05/2.078, allocations: 23.94 kB / 0.9603 GB, free: 23.53 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/2.078, allocations: 0 / 0.9603 GB, free: 23.53 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.492e-05/2.079, allocations: 19.84 kB / 0.9603 GB, free: 23.52 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06223/2.141, allocations: 20.21 MB / 0.98 GB, free: 7.105 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/2.141, allocations: 0 / 0.98 GB, free: 7.105 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004303/2.145, allocations: 0.8691 MB / 0.9809 GB, free: 6.262 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001454/2.147, allocations: 452.7 kB / 0.9813 GB, free: 5.82 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004499/2.147, allocations: 76.55 kB / 0.9814 GB, free: 5.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00773/2.155, allocations: 5.236 MB / 0.9865 GB, free: 440 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/2.155, allocations: 3.375 kB / 0.9865 GB, free: 440 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03055/2.185, allocations: 10.32 MB / 0.9966 GB, free: 6.105 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01452/2.2, allocations: 7.471 MB / 1.004 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004399/2.204, allocations: 83.98 kB / 1.004 GB, free: 13.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007696/2.212, allocations: 0.9639 MB / 1.005 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001504/2.214, allocations: 483.4 kB / 1.005 GB, free: 12.46 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006366/2.214, allocations: 63.98 kB / 1.005 GB, free: 12.39 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.341/2.555, allocations: 22.11 MB / 1.027 GB, free: 94.76 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.82e-07/2.555, allocations: 0 / 1.027 GB, free: 94.76 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01051/2.566, allocations: 1.97 MB / 1.029 GB, free: 94.76 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * 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.002285/2.568, allocations: 0.7549 MB / 1.03 GB, free: 94.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01191/2.58, allocations: 6.334 MB / 1.036 GB, free: 94.44 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-05/2.58, allocations: 12.88 kB / 1.036 GB, free: 94.44 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005457/2.586, allocations: 3.357 MB / 1.039 GB, free: 94.27 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0231/2.609, allocations: 2.553 MB / 1.042 GB, free: 94.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09711/2.706, allocations: 46.08 MB / 1.087 GB, free: 83.63 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02699/2.733, allocations: 11.39 MB / 1.098 GB, free: 81.12 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.02057/2.754, allocations: 6.445 MB / 1.104 GB, free: 80.78 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0048/2.759, allocations: 0.7597 MB / 1.105 GB, free: 80.74 MB / 490.7 MB Notification: Performance of SimCode: time 1.012e-06/2.759, allocations: 4 kB / 1.105 GB, free: 80.74 MB / 490.7 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.4891/3.248, allocations: 149 MB / 1.25 GB, free: 100.9 MB / 490.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile make -j1 -f Modelica_4.0.0_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_4_0_0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.o Modelica_4.0.0_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_4_0_0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.o Modelica_4.0.0_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_4_0_0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.o Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c Modelica_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:940:7: error: use of undeclared identifier 'Real' Real Qnom; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:941:7: error: use of undeclared identifier 'Boolean' Boolean useLinearSOCDependency; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:942:7: error: use of undeclared identifier 'Real' Real OCVmax; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:943:7: error: use of undeclared identifier 'Real' Real OCVmin; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:944:7: error: use of undeclared identifier 'Real' Real SOCmax; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:945:7: error: use of undeclared identifier 'Real' Real SOCmin; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:946:7: error: use of undeclared identifier 'Real' Real[2, 2] OCV_SOC; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:946:12: warning: expression result unused [-Wunused-value] Real[2, 2] OCV_SOC; ^ ./Modelica_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.o] Error 1