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 2.233/2.233, allocations: 224.7 MB / 241.1 MB, free: 1.652 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.897e-05/2.894e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1388, allocations: 50.41 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCVcharging): time 0.00754/0.1464, allocations: 3.2 MB / 348.2 MB, free: 5.715 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004925/0.1513, allocations: 1.646 MB / 349.8 MB, free: 4.062 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006656/0.1521, allocations: 19.94 kB / 349.8 MB, free: 4.043 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002464/0.1545, allocations: 0.748 MB / 350.6 MB, free: 3.293 MB / 282.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.000825/0.1554, allocations: 159.5 kB / 350.7 MB, free: 3.137 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.1565, allocations: 187.6 kB / 350.9 MB, free: 2.953 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001918/0.1584, allocations: 0.574 MB / 351.5 MB, free: 2.379 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006285/0.1591, allocations: 186.6 kB / 351.7 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000525/0.1597, allocations: 239.4 kB / 351.9 MB, free: 1.957 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006891/0.1604, allocations: 295 kB / 352.2 MB, free: 1.668 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004116/0.1608, allocations: 59.94 kB / 352.3 MB, free: 1.609 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000163/0.161, allocations: 24 kB / 352.3 MB, free: 1.586 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005319/0.1615, allocations: 338.9 kB / 352.6 MB, free: 1.254 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000302/0.1619, allocations: 80 kB / 352.7 MB, free: 1.176 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002328/0.1642, allocations: 1.231 MB / 353.9 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1642, allocations: 0 / 353.9 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.1643, allocations: 0 / 353.9 MB, free: 15.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.447e-05/0.1643, allocations: 0 / 353.9 MB, free: 15.94 MB / 298.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.003885/0.1682, allocations: 1.263 MB / 355.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/0.1683, allocations: 16.03 kB / 355.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006133/0.1689, allocations: 154.1 kB / 355.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0042/0.1732, allocations: 1.172 MB / 356.5 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007473/0.174, allocations: 148.2 kB / 356.7 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002237/0.1742, allocations: 52 kB / 356.7 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00284/0.1771, allocations: 0.6712 MB / 357.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.361e-05/0.1772, allocations: 3.984 kB / 357.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.1773, allocations: 24 kB / 357.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.598e-05/0.1774, allocations: 12 kB / 357.4 MB, free: 12.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002202/0.1796, allocations: 451.7 kB / 357.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008874/0.1885, allocations: 2.528 MB / 360.4 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001944/0.1905, allocations: 470.3 kB / 360.9 MB, free: 8.738 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.628e-05/0.1906, allocations: 4 kB / 360.9 MB, free: 8.734 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.481e-05/0.1906, allocations: 42.56 kB / 360.9 MB, free: 8.684 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 3.476e-06/0.1906, allocations: 0 / 360.9 MB, free: 8.684 MB / 298.7 MB Notification: Performance of matching and sorting (n=30): time 0.003808/0.1945, allocations: 0.8971 MB / 361.8 MB, free: 7.758 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/0.1946, allocations: 265 kB / 362.1 MB, free: 7.438 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002949/0.1976, allocations: 1.352 MB / 363.4 MB, free: 6.078 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.1978, allocations: 29.7 kB / 363.4 MB, free: 6.043 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006843/0.1985, allocations: 0.5763 MB / 364 MB, free: 5.465 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000161/0.1986, allocations: 110.5 kB / 364.1 MB, free: 5.355 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.504e-05/0.1987, allocations: 7.938 kB / 364.1 MB, free: 5.348 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1988, allocations: 326.8 kB / 364.4 MB, free: 5.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007559/0.1996, allocations: 180.6 kB / 364.6 MB, free: 4.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008636/0.2005, allocations: 324.5 kB / 364.9 MB, free: 4.469 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007714/0.2013, allocations: 215.8 kB / 365.2 MB, free: 4.258 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.2013, allocations: 0 / 365.2 MB, free: 4.258 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001968/0.2033, allocations: 0.5643 MB / 365.7 MB, free: 3.684 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.066e-05/0.2034, allocations: 8 kB / 365.7 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.2034, allocations: 0 / 365.7 MB, free: 3.676 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005518/0.2039, allocations: 92.91 kB / 365.8 MB, free: 3.582 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007476/0.2047, allocations: 99.86 kB / 365.9 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0032/0.2079, allocations: 1.852 MB / 367.8 MB, free: 1.488 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009154/0.2089, allocations: 75.67 kB / 367.8 MB, free: 1.414 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.228e-05/0.209, allocations: 16 kB / 367.9 MB, free: 1.398 MB / 298.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 (38): * Single equations (assignments): 37 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.001148/0.2101, allocations: 481.5 kB / 368.3 MB, free: 0.918 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003346/0.2105, allocations: 134.3 kB / 368.5 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003791/0.2109, allocations: 169.7 kB / 368.6 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.2109, allocations: 4 kB / 368.6 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2109, allocations: 7.938 kB / 368.6 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.2109, allocations: 0 / 368.6 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.2126, allocations: 0.8573 MB / 369.5 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.2126, allocations: 3.938 kB / 369.5 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007129/0.2134, allocations: 67.94 kB / 369.6 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000443/0.2138, allocations: 84.8 kB / 369.6 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.551e-05/0.2139, allocations: 8 kB / 369.7 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003029/0.2169, allocations: 1.86 MB / 371.5 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.217, allocations: 3.953 kB / 371.5 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003125/0.2201, allocations: 0.9122 MB / 372.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006169/0.2208, allocations: 243.4 kB / 372.7 MB, free: 12.33 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000198/0.221, allocations: 15.98 kB / 372.7 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008403/0.2219, allocations: 59.95 kB / 372.7 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.222, allocations: 31.94 kB / 372.8 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.213e-05/0.2221, allocations: 8 kB / 372.8 MB, free: 12.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002425/0.2245, allocations: 1.088 MB / 373.9 MB, free: 11.13 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.12e-07/0.2246, allocations: 0 / 373.9 MB, free: 11.13 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001046/0.2256, allocations: 179.5 kB / 374 MB, free: 10.96 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (22): * Single equations (assignments): 21 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.001346/0.227, allocations: 450.8 kB / 374.5 MB, free: 10.64 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002095/0.2291, allocations: 0.5571 MB / 375 MB, free: 10.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.2291, allocations: 4 kB / 375 MB, free: 10.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.2302, allocations: 354.6 kB / 375.4 MB, free: 9.711 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001271/0.2315, allocations: 183.2 kB / 375.6 MB, free: 9.531 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006827/0.2384, allocations: 2.894 MB / 378.5 MB, free: 6.602 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00142/0.2399, allocations: 1.283 MB / 379.7 MB, free: 5.293 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003807/0.2403, allocations: 75.42 kB / 379.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of SimCode: time 1.082e-06/0.2403, allocations: 0 / 379.8 MB, free: 5.219 MB / 314.7 MB Notification: Performance of Templates: time 0.04282/0.2831, allocations: 18.48 MB / 398.3 MB, free: 2.77 MB / 330.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 -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -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:29: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCVchargingFunctions.cpp:228:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp70.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