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.0009743/0.0009742, allocations: 174.7 kB / 13.63 MB, free: 1.684 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.274/1.274, allocations: 221.3 MB / 235.5 MB, free: 2.871 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000892/0.0008921, allocations: 89.56 kB / 286.5 MB, free: 156 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.188e-05/2.191e-05, allocations: 4 kB / 343.8 MB, free: 4.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08814, allocations: 50.42 MB / 394.2 MB, free: 1.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2847/0.3729, allocations: 93.98 MB / 488.2 MB, free: 9.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001814/0.3731, allocations: 83.78 kB / 488.3 MB, free: 9.422 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.9034/1.277, allocations: 278.3 MB / 0.7487 GB, free: 54.46 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.944e-06/1.277, allocations: 0 / 0.7487 GB, free: 54.46 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.002651/1.279, allocations: 256.8 kB / 0.7489 GB, free: 54.45 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.02261/1.302, allocations: 13.3 MB / 0.7619 GB, free: 49.38 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/1.302, allocations: 10.75 kB / 0.7619 GB, free: 49.38 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003507/1.305, allocations: 1.746 MB / 0.7636 GB, free: 48.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03976/1.345, allocations: 25.4 MB / 0.7884 GB, free: 45.63 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000296/1.346, allocations: 384.4 kB / 0.7888 GB, free: 45.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006301/1.346, allocations: 396.5 kB / 0.7892 GB, free: 45.59 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009288/1.356, allocations: 7.469 MB / 0.7964 GB, free: 44.79 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.471e-05/1.356, allocations: 2.25 kB / 0.7964 GB, free: 44.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005014/1.356, allocations: 186.1 kB / 0.7966 GB, free: 44.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.076e-05/1.356, allocations: 95.19 kB / 0.7967 GB, free: 44.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007184/1.363, allocations: 5.893 MB / 0.8025 GB, free: 44.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04624/1.41, allocations: 34.72 MB / 0.8364 GB, free: 25.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005235/1.415, allocations: 4.777 MB / 0.841 GB, free: 21.44 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003969/1.419, allocations: 3.715 MB / 0.8447 GB, free: 18.27 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001178/1.419, allocations: 24 kB / 0.8447 GB, free: 18.25 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.926e-05/1.419, allocations: 84.47 kB / 0.8448 GB, free: 18.15 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 4.348e-06/1.419, allocations: 0 / 0.8448 GB, free: 18.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.008064/1.427, allocations: 5.308 MB / 0.85 GB, free: 13.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002303/1.427, allocations: 1.295 MB / 0.8512 GB, free: 11.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06684/1.494, allocations: 29.75 MB / 0.8803 GB, free: 5.934 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000722/1.495, allocations: 81.7 kB / 0.8803 GB, free: 5.848 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2307/1.726, allocations: 8.232 MB / 0.8884 GB, free: 66.87 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001373/1.727, allocations: 0.8153 MB / 0.8892 GB, free: 66.78 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002952/1.727, allocations: 55.19 kB / 0.8892 GB, free: 66.78 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002347/1.728, allocations: 431.4 kB / 0.8896 GB, free: 66.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003758/1.731, allocations: 2.283 MB / 0.8919 GB, free: 66.47 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003303/1.735, allocations: 3.328 MB / 0.8951 GB, free: 65.51 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003512/1.738, allocations: 2.687 MB / 0.8977 GB, free: 65.45 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.604e-05/1.738, allocations: 4.562 kB / 0.8978 GB, free: 65.45 MB / 458.7 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01331/1.752, allocations: 7.019 MB / 0.9046 GB, free: 64.48 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/1.752, allocations: 14.16 kB / 0.9046 GB, free: 64.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.73e-05/1.752, allocations: 16.91 kB / 0.9046 GB, free: 64.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001308/1.753, allocations: 0.5364 MB / 0.9052 GB, free: 64.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003465/1.757, allocations: 1.03 MB / 0.9062 GB, free: 64.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006213/1.763, allocations: 6.014 MB / 0.912 GB, free: 63.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006798/1.77, allocations: 0.8911 MB / 0.9129 GB, free: 62.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002763/1.77, allocations: 96.31 kB / 0.913 GB, free: 62.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 () * 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.0006178/1.77, allocations: 310.2 kB / 0.9133 GB, free: 62.85 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002092/1.773, allocations: 1.561 MB / 0.9148 GB, free: 62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/1.783, allocations: 6.443 MB / 0.9211 GB, free: 61.73 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/1.783, allocations: 18.81 kB / 0.9211 GB, free: 61.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/1.783, allocations: 3.875 kB / 0.9211 GB, free: 61.73 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-05/1.783, allocations: 10.17 kB / 0.9211 GB, free: 61.73 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02634/1.809, allocations: 18.94 MB / 0.9396 GB, free: 60.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/1.809, allocations: 0 / 0.9396 GB, free: 60.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002836/1.812, allocations: 0.8684 MB / 0.9405 GB, free: 60.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008019/1.813, allocations: 435.6 kB / 0.9409 GB, free: 60.97 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001819/1.813, allocations: 77.48 kB / 0.941 GB, free: 60.97 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004534/1.818, allocations: 5.17 MB / 0.946 GB, free: 59.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.818, allocations: 6.266 kB / 0.946 GB, free: 59.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009685/1.827, allocations: 8.645 MB / 0.9545 GB, free: 57.09 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008585/1.836, allocations: 7.469 MB / 0.9618 GB, free: 51.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001591/1.838, allocations: 89.98 kB / 0.9619 GB, free: 51.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004219/1.842, allocations: 0.9602 MB / 0.9628 GB, free: 51.49 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000807/1.843, allocations: 478.8 kB / 0.9632 GB, free: 51.44 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000172/1.843, allocations: 66.84 kB / 0.9633 GB, free: 51.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0352/1.878, allocations: 21.91 MB / 0.9847 GB, free: 42.08 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.02e-07/1.878, allocations: 0 / 0.9847 GB, free: 42.08 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00855/1.887, allocations: 1.973 MB / 0.9866 GB, free: 40.2 MB / 458.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 () * 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.001614/1.888, allocations: 0.7264 MB / 0.9873 GB, free: 39.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005835/1.894, allocations: 5.07 MB / 0.9923 GB, free: 35.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/1.894, allocations: 5.781 kB / 0.9923 GB, free: 35.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002853/1.897, allocations: 2.714 MB / 0.995 GB, free: 33.04 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01048/1.907, allocations: 2.541 MB / 0.9974 GB, free: 30.99 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07099/1.978, allocations: 39.21 MB / 1.036 GB, free: 15.74 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02239/2.001, allocations: 11.67 MB / 1.047 GB, free: 6.766 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0186/2.02, allocations: 6.459 MB / 1.053 GB, free: 2.465 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003988/2.024, allocations: 0.7561 MB / 1.054 GB, free: 1.734 MB / 474.7 MB Notification: Performance of SimCode: time 9.51e-07/2.024, allocations: 2.656 kB / 1.054 GB, free: 1.734 MB / 474.7 MB Notification: Performance of Templates: time 0.6699/2.693, allocations: 148.6 MB / 1.199 GB, free: 8.457 MB / 474.8 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 -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_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 -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_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 -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_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:1014:84: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->_D_24tmpVar31; ^ ; Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1016:81: error: redefinition of 'ths' Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->_D_24tmpVar30; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1014:81: note: previous definition is here Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->_D_24tmpVar31; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1016:84: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->_D_24tmpVar30; ^ ; Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1024:16: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? tmp97 = ths->_Ns /* Range stop-value */; ~~~^~ . Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1024:18: error: no member named '_Ns' in 'struct base_array_s' tmp97 = ths->_Ns /* Range stop-value */; ~~~ ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031:91: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->_D_24tmpVar31, 2, tmp98, ths->_Np); ~~~^~ . ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:133: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031:93: error: no member named '_D_24tmpVar31' in 'struct base_array_s' alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->_D_24tmpVar31, 2, tmp98, ths->_Np); ~~~ ^ ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:133: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031:121: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->_D_24tmpVar31, 2, tmp98, ths->_Np); ~~~^~ . ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:307: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~~~~~~~~~ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1031:123: error: no member named '_Np' in 'struct base_array_s' alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(&ths->_D_24tmpVar31, 2, tmp98, ths->_Np); ~~~ ^ ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_functions.h:196:307: note: expanded from macro 'alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' #define alloc_Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array(dst,ndims,...) generic_array_create(NULL, dst, Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_construct_p, ndims, sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData), __VA_ARGS__) ^~~~~~~~~~~ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1041:90: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->_D_24tmpVar29; ^ ; Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1045:81: error: redefinition of 'ths' with a different type: 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData' vs 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData ths->_D_24tmpVar28; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1041:87: note: previous definition is here Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array ths->_D_24tmpVar29; ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1045:84: error: expected ';' at end of declaration Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData ths->_D_24tmpVar28; ^ ; Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1053:22: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? tmp92 = ths->_Np /* Range stop-value */; ~~~^~ . Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1053:24: error: no member named '_Np' in 'struct base_array_s' tmp92 = ths->_Np /* Range stop-value */; ~~~ ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1060:11: warning: implicit declaration of function 'alloc_generic_array' is invalid in C99 [-Wimplicit-function-declaration] alloc_generic_array(&ths->_D_24tmpVar29,sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData),1,tmp93); ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1060:35: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? alloc_generic_array(&ths->_D_24tmpVar29,sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData),1,tmp93); ~~~^~ . Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1060:37: error: no member named '_D_24tmpVar29' in 'struct base_array_s' alloc_generic_array(&ths->_D_24tmpVar29,sizeof(Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData),1,tmp93); ~~~ ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1068:82: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? array_alloc_scalar_boolean_array(&tmp87, 1, (modelica_boolean)((ths->_ks == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 1)))) && (ths->_kp == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 2)))))); ~~~^~ . Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1068:84: error: no member named '_ks' in 'struct base_array_s' array_alloc_scalar_boolean_array(&tmp87, 1, (modelica_boolean)((ths->_ks == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 1)))) && (ths->_kp == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 2)))))); ~~~ ^ Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.c:1068:125: error: member reference type 'Modelica_Electrical_Batteries_ParameterRecords_TransientData_CellData_array' (aka 'struct base_array_s') is not a pointer; did you mean to use '.'? array_alloc_scalar_boolean_array(&tmp87, 1, (modelica_boolean)((ths->_ks == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 1)))) && (ths->_kp == (*integer_array_element_addr2(&ths->_kDegraded, 2, ((modelica_integer) 1), ((modelica_integer) 2)))))); ~~~^~ . fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. make: *** [: Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_records.o] Error 1