Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=24000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") Notification: Performance of loadModel(Modelica): time 2.056/2.056, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.395e-05/3.408e-05, allocations: 4 kB / 292.1 MB, free: 8.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09274/0.0928, allocations: 50.42 MB / 342.5 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3863/0.4792, allocations: 94.36 MB / 436.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.4794, allocations: 82.83 kB / 437 MB, free: 15.88 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/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.394/1.873, allocations: 278.3 MB / 0.6985 GB, free: 53.18 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.715e-06/1.873, allocations: 1.281 kB / 0.6985 GB, free: 53.18 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00425/1.877, allocations: 259 kB / 0.6987 GB, free: 53.16 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.03894/1.916, allocations: 13.31 MB / 0.7117 GB, free: 48.14 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/1.916, allocations: 11.47 kB / 0.7117 GB, free: 48.14 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006856/1.923, allocations: 1.748 MB / 0.7135 GB, free: 47.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0654/1.989, allocations: 25.4 MB / 0.7383 GB, free: 44.38 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006493/1.989, allocations: 379.9 kB / 0.7386 GB, free: 44.34 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001625/1.991, allocations: 396 kB / 0.739 GB, free: 44.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01726/2.008, allocations: 7.41 MB / 0.7462 GB, free: 43.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000179/2.009, allocations: 7.203 kB / 0.7462 GB, free: 43.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00154/2.01, allocations: 182.9 kB / 0.7464 GB, free: 43.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001237/2.01, allocations: 99.34 kB / 0.7465 GB, free: 43.57 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02573/2.036, allocations: 5.838 MB / 0.7522 GB, free: 43.55 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08218/2.118, allocations: 34.72 MB / 0.7861 GB, free: 34.01 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008517/2.127, allocations: 4.749 MB / 0.7908 GB, free: 32.39 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007059/2.134, allocations: 3.717 MB / 0.7944 GB, free: 30.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002321/2.134, allocations: 27.8 kB / 0.7944 GB, free: 30.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.46e-05/2.134, allocations: 80.31 kB / 0.7945 GB, free: 30.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 6.665e-06/2.134, allocations: 0 / 0.7945 GB, free: 30.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.01144/2.146, allocations: 5.309 MB / 0.7997 GB, free: 25.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002555/2.146, allocations: 1.303 MB / 0.8009 GB, free: 23.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06439/2.21, allocations: 28.17 MB / 0.8284 GB, free: 15.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007449/2.211, allocations: 80.88 kB / 0.8285 GB, free: 15.63 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.01228/2.224, allocations: 6.18 MB / 0.8346 GB, free: 9.57 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001424/2.225, allocations: 0.814 MB / 0.8354 GB, free: 8.84 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003355/2.225, allocations: 58.97 kB / 0.8354 GB, free: 8.785 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003366/2.226, allocations: 435.9 kB / 0.8358 GB, free: 8.383 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004395/2.23, allocations: 2.279 MB / 0.8381 GB, free: 6.398 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005782/2.236, allocations: 3.311 MB / 0.8413 GB, free: 3.121 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00538/2.241, allocations: 2.693 MB / 0.8439 GB, free: 0.875 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-05/2.241, allocations: 4 kB / 0.8439 GB, free: 0.8711 MB / 458.7 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01929/2.261, allocations: 5.937 MB / 0.8497 GB, free: 12.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.804e-05/2.261, allocations: 13.27 kB / 0.8497 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.192e-05/2.261, allocations: 12 kB / 0.8497 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001693/2.263, allocations: 0.5438 MB / 0.8503 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005043/2.268, allocations: 1.029 MB / 0.8513 GB, free: 11.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01044/2.278, allocations: 6.012 MB / 0.8571 GB, free: 6.391 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008443/2.287, allocations: 0.9025 MB / 0.858 GB, free: 5.758 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007906/2.287, allocations: 100 kB / 0.8581 GB, free: 5.66 MB / 474.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.0009648/2.288, allocations: 301 kB / 0.8584 GB, free: 5.375 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004703/2.293, allocations: 1.554 MB / 0.8599 GB, free: 3.801 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3532/2.646, allocations: 7.019 MB / 0.8668 GB, free: 80.36 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-05/2.646, allocations: 23.56 kB / 0.8668 GB, free: 80.36 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.545e-06/2.646, allocations: 3.609 kB / 0.8668 GB, free: 80.36 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.674e-05/2.646, allocations: 11.06 kB / 0.8668 GB, free: 80.36 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05435/2.701, allocations: 18.94 MB / 0.8853 GB, free: 79.67 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.421e-05/2.701, allocations: 0 / 0.8853 GB, free: 79.67 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00433/2.705, allocations: 0.8637 MB / 0.8862 GB, free: 79.67 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/2.707, allocations: 447.8 kB / 0.8866 GB, free: 79.66 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005037/2.707, allocations: 74.38 kB / 0.8867 GB, free: 79.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007602/2.715, allocations: 5.176 MB / 0.8917 GB, free: 78.33 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.619e-06/2.715, allocations: 2.062 kB / 0.8917 GB, free: 78.33 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01639/2.731, allocations: 8.65 MB / 0.9002 GB, free: 77.59 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01261/2.744, allocations: 7.464 MB / 0.9075 GB, free: 73.04 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004186/2.748, allocations: 86.52 kB / 0.9075 GB, free: 73.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008892/2.757, allocations: 0.9617 MB / 0.9085 GB, free: 73.04 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001461/2.759, allocations: 487.2 kB / 0.9089 GB, free: 73.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003499/2.759, allocations: 65.02 kB / 0.909 GB, free: 73.04 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.05259/2.811, allocations: 21.92 MB / 0.9304 GB, free: 72.45 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.101e-06/2.812, allocations: 0 / 0.9304 GB, free: 72.45 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009003/2.821, allocations: 1.967 MB / 0.9323 GB, free: 72.36 MB / 474.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.002269/2.823, allocations: 0.7486 MB / 0.9331 GB, free: 72.18 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009887/2.833, allocations: 5.017 MB / 0.938 GB, free: 70.85 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/2.833, allocations: 8.875 kB / 0.938 GB, free: 70.85 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005186/2.838, allocations: 2.69 MB / 0.9406 GB, free: 69.95 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01527/2.853, allocations: 2.538 MB / 0.9431 GB, free: 69.09 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08798/2.941, allocations: 39.2 MB / 0.9813 GB, free: 40.34 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02599/2.967, allocations: 11.61 MB / 0.9927 GB, free: 31.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00421/2.972, allocations: 0.771 MB / 0.9934 GB, free: 30.65 MB / 474.7 MB Notification: Performance of SimCode: time 1.872e-06/2.972, allocations: 3 kB / 0.9934 GB, free: 30.65 MB / 474.7 MB Notification: Performance of Templates: time 1.345/4.317, allocations: 316.3 MB / 1.302 GB, free: 105.1 MB / 0.5105 GB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_StackRCCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_StackRCCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_StackRCCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_StackRCFunctions.cpp:164:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp68.getData(), table_.getDim(1), table_.getDim(2), ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:269:23: note: candidate function not viable: 6th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTable1D_init2(_In_z_ const char* fileName, ^ 1 error generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_StackRCCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_StackRCCalcHelperMain.o] Error 1