Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCVcharging,tolerance=1e-06,outputFormat="empty",numberOfIntervals=24000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging") Notification: Performance of loadModel(Modelica): time 1.906/1.906, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.655e-05/2.659e-05, allocations: 4 kB / 292.1 MB, free: 8.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.08918, allocations: 50.41 MB / 342.5 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.369/0.4583, allocations: 87.96 MB / 430.5 MB, free: 6.227 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.4585, allocations: 73.66 kB / 430.6 MB, free: 6.191 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.106/0.5645, allocations: 29.48 MB / 460.1 MB, free: 12.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.744e-06/0.5646, allocations: 3.938 kB / 460.1 MB, free: 12.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001083/0.5647, allocations: 20 kB / 460.1 MB, free: 12.29 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.002414/0.5671, allocations: 1.304 MB / 461.4 MB, free: 11.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.5672, allocations: 8.031 kB / 461.4 MB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003569/0.5676, allocations: 160.9 kB / 461.6 MB, free: 10.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002616/0.5702, allocations: 1.15 MB / 462.7 MB, free: 9.848 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.5703, allocations: 73.41 kB / 462.8 MB, free: 9.785 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.5705, allocations: 48.78 kB / 462.8 MB, free: 9.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.5718, allocations: 0.6125 MB / 463.4 MB, free: 9.277 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.5718, allocations: 0 / 463.4 MB, free: 9.277 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.666e-05/0.5719, allocations: 24.38 kB / 463.5 MB, free: 9.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/0.5719, allocations: 12 kB / 463.5 MB, free: 9.258 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008949/0.5728, allocations: 386.6 kB / 463.9 MB, free: 9.016 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005863/0.5787, allocations: 2.908 MB / 466.8 MB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.5798, allocations: 390.5 kB / 467.1 MB, free: 6.051 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007141/0.5805, allocations: 292.8 kB / 467.4 MB, free: 5.762 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.17e-05/0.5806, allocations: 7.984 kB / 467.4 MB, free: 5.754 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.5807, allocations: 34.56 kB / 467.5 MB, free: 5.711 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 3.692e-06/0.5807, allocations: 7.938 kB / 467.5 MB, free: 5.703 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001386/0.5821, allocations: 481.6 kB / 467.9 MB, free: 5.223 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001724/0.5823, allocations: 261 kB / 468.2 MB, free: 4.906 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004134/0.5864, allocations: 2.003 MB / 470.2 MB, free: 2.895 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.188e-05/0.5865, allocations: 37.7 kB / 470.2 MB, free: 2.852 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000632/0.5872, allocations: 0.5645 MB / 470.8 MB, free: 2.285 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.5873, allocations: 102.5 kB / 470.9 MB, free: 2.184 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.027e-05/0.5874, allocations: 8 kB / 470.9 MB, free: 2.176 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.5876, allocations: 330.8 kB / 471.2 MB, free: 1.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003264/0.5879, allocations: 128.7 kB / 471.4 MB, free: 1.715 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004798/0.5884, allocations: 280.1 kB / 471.6 MB, free: 1.387 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000392/0.5888, allocations: 166 kB / 471.8 MB, free: 1.227 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.904e-06/0.5888, allocations: 0 / 471.8 MB, free: 1.227 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001033/0.5899, allocations: 438 kB / 472.2 MB, free: 0.7891 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.5899, allocations: 8 kB / 472.2 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.871e-06/0.5899, allocations: 0 / 472.2 MB, free: 0.7812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002976/0.5903, allocations: 61.11 kB / 472.3 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005112/0.5908, allocations: 91.83 kB / 472.4 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002143/0.5929, allocations: 1.572 MB / 474 MB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007624/0.5937, allocations: 67.69 kB / 474 MB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.738e-05/0.5938, allocations: 15.95 kB / 474 MB, free: 14.84 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001797/0.594, allocations: 124.9 kB / 474.2 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002819/0.5943, allocations: 134.3 kB / 474.3 MB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00144/0.5957, allocations: 0.5196 MB / 474.8 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.333e-06/0.5958, allocations: 4 kB / 474.8 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.8e-06/0.5958, allocations: 0 / 474.8 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.5958, allocations: 0 / 474.8 MB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003853/0.5997, allocations: 1.681 MB / 476.5 MB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.349e-06/0.5997, allocations: 0 / 476.5 MB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004569/0.6002, allocations: 75.89 kB / 476.6 MB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002348/0.6004, allocations: 48.89 kB / 476.6 MB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-05/0.6005, allocations: 12.12 kB / 476.6 MB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001952/0.6024, allocations: 1.541 MB / 478.2 MB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.916e-06/0.6025, allocations: 7.969 kB / 478.2 MB, free: 10.47 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.6042, allocations: 0.756 MB / 478.9 MB, free: 9.672 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008628/0.6051, allocations: 452.3 kB / 479.4 MB, free: 9.191 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001831/0.6053, allocations: 12 kB / 479.4 MB, free: 9.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006462/0.606, allocations: 67.89 kB / 479.5 MB, free: 9.113 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.878e-05/0.6061, allocations: 27.95 kB / 479.5 MB, free: 9.086 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.846e-05/0.6061, allocations: 8 kB / 479.5 MB, free: 9.078 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003084/0.6092, allocations: 1.563 MB / 481.1 MB, free: 7.516 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.83e-07/0.6093, allocations: 0 / 481.1 MB, free: 7.516 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001203/0.6105, allocations: 243.6 kB / 481.3 MB, free: 7.277 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001439/0.6119, allocations: 422.2 kB / 481.7 MB, free: 6.957 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.6131, allocations: 449.8 kB / 482.1 MB, free: 6.508 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.6131, allocations: 0 / 482.1 MB, free: 6.508 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005803/0.6137, allocations: 282.3 kB / 482.4 MB, free: 6.223 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.6149, allocations: 196.7 kB / 482.6 MB, free: 6.031 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004901/0.6199, allocations: 2.231 MB / 484.8 MB, free: 3.762 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/0.6213, allocations: 1.276 MB / 486.1 MB, free: 2.461 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004073/0.6217, allocations: 71.44 kB / 486.2 MB, free: 2.391 MB / 394.7 MB Notification: Performance of SimCode: time 2.528e-06/0.6217, allocations: 0 / 486.2 MB, free: 2.391 MB / 394.7 MB Notification: Performance of Templates: time 0.03836/0.6601, allocations: 20.42 MB / 0.4947 GB, free: 13.99 MB / 426.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVcharging.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.CCCVchargingCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVchargingCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVchargingCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVchargingFunctions.cpp:161:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp8.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.CCCVchargingCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVchargingCalcHelperMain.o] Error 1