Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=24000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC") Notification: Performance of loadModel(Modelica): time 2.183/2.183, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.789e-05/3.788e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1149, allocations: 50.4 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_CellRC): time 0.008388/0.1233, allocations: 4.798 MB / 349.8 MB, free: 4.125 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004629/0.128, allocations: 1.837 MB / 351.6 MB, free: 2.285 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007149/0.1288, allocations: 23.94 kB / 351.6 MB, free: 2.262 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002198/0.131, allocations: 0.7713 MB / 352.4 MB, free: 1.488 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.0009877/0.1321, allocations: 215.3 kB / 352.6 MB, free: 1.277 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.1332, allocations: 267.5 kB / 352.9 MB, free: 1.016 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002092/0.1353, allocations: 0.7616 MB / 353.6 MB, free: 260 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006833/0.1361, allocations: 253.2 kB / 353.9 MB, free: 4 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006336/0.1367, allocations: 311.3 kB / 354.2 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006896/0.1374, allocations: 378.7 kB / 354.6 MB, free: 15.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003965/0.1378, allocations: 75.97 kB / 354.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000182/0.138, allocations: 28 kB / 354.7 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005426/0.1386, allocations: 442.5 kB / 355.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003251/0.1389, allocations: 100 kB / 355.2 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002729/0.1417, allocations: 1.812 MB / 357 MB, free: 12.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1417, allocations: 0 / 357 MB, free: 12.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1417, allocations: 0 / 357 MB, free: 12.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.786e-05/0.1418, allocations: 0 / 357 MB, free: 12.88 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003826/0.1456, allocations: 1.586 MB / 358.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.1457, allocations: 8.031 kB / 358.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005914/0.1463, allocations: 209.4 kB / 358.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00422/0.1506, allocations: 1.644 MB / 360.4 MB, free: 9.309 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004284/0.151, allocations: 132.7 kB / 360.6 MB, free: 9.164 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/0.1512, allocations: 60 kB / 360.6 MB, free: 9.105 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002466/0.1537, allocations: 0.8336 MB / 361.5 MB, free: 8.219 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.1538, allocations: 0 / 361.5 MB, free: 8.219 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.1539, allocations: 28 kB / 361.5 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.33e-05/0.154, allocations: 16 kB / 361.5 MB, free: 8.176 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001904/0.1559, allocations: 0.5555 MB / 362.1 MB, free: 7.621 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008475/0.1644, allocations: 3.388 MB / 365.4 MB, free: 4.113 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002419/0.1669, allocations: 0.5683 MB / 366 MB, free: 3.539 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.272e-05/0.167, allocations: 4.281 kB / 366 MB, free: 3.535 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/0.167, allocations: 38.84 kB / 366.1 MB, free: 3.488 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 3.516e-06/0.167, allocations: 0 / 366.1 MB, free: 3.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.004451/0.1715, allocations: 1.062 MB / 367.1 MB, free: 2.398 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000156/0.1717, allocations: 269 kB / 367.4 MB, free: 2.074 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004278/0.176, allocations: 1.856 MB / 369.2 MB, free: 192 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.1762, allocations: 41.69 kB / 369.3 MB, free: 144 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001058/0.1772, allocations: 0.7523 MB / 370 MB, free: 15.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.1775, allocations: 118.3 kB / 370.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.445e-05/0.1775, allocations: 12 kB / 370.2 MB, free: 15.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1777, allocations: 334.8 kB / 370.5 MB, free: 14.92 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008782/0.1786, allocations: 225 kB / 370.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.1796, allocations: 409.9 kB / 371.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009214/0.1806, allocations: 263.8 kB / 371.4 MB, free: 13.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.1806, allocations: 4 kB / 371.4 MB, free: 13.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002668/0.1833, allocations: 0.7199 MB / 372.1 MB, free: 13.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.117e-05/0.1834, allocations: 8 kB / 372.1 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.1834, allocations: 4 kB / 372.1 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005319/0.1839, allocations: 108.8 kB / 372.2 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008633/0.1848, allocations: 111.9 kB / 372.3 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003288/0.1881, allocations: 1.911 MB / 374.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00105/0.1892, allocations: 91.56 kB / 374.3 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.386e-05/0.1893, allocations: 16 kB / 374.3 MB, free: 10.85 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * 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.001501/0.1908, allocations: 0.6615 MB / 375 MB, free: 10.18 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004173/0.1912, allocations: 181.8 kB / 375.2 MB, free: 9.996 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005722/0.1918, allocations: 222.5 kB / 375.4 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.1918, allocations: 4 kB / 375.4 MB, free: 9.777 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.1918, allocations: 3.938 kB / 375.4 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.1919, allocations: 7.984 kB / 375.4 MB, free: 9.766 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.1939, allocations: 1.101 MB / 376.5 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.194, allocations: 0 / 376.5 MB, free: 8.609 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008035/0.1948, allocations: 79.94 kB / 376.6 MB, free: 8.531 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004739/0.1953, allocations: 92.73 kB / 376.7 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.961e-05/0.1954, allocations: 8 kB / 376.7 MB, free: 8.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003027/0.1984, allocations: 1.915 MB / 378.6 MB, free: 6.375 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/0.1985, allocations: 3.984 kB / 378.6 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003465/0.2019, allocations: 1.071 MB / 379.7 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006677/0.2026, allocations: 298.7 kB / 380 MB, free: 4.965 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002351/0.2029, allocations: 8 kB / 380 MB, free: 4.957 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009488/0.2039, allocations: 71.94 kB / 380 MB, free: 4.887 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.204, allocations: 39.89 kB / 380.1 MB, free: 4.848 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.276e-05/0.2041, allocations: 12 kB / 380.1 MB, free: 4.836 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003457/0.2076, allocations: 1.505 MB / 381.6 MB, free: 3.312 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.2076, allocations: 0 / 381.6 MB, free: 3.312 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001181/0.2088, allocations: 215.5 kB / 381.8 MB, free: 3.102 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (cell.cell.limIntegrator.y,cell.cell.capacitor[1].v,cell.cell.capacitor[2].v,cell.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 (25): * Single equations (assignments): 24 * 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.001368/0.2102, allocations: 444.4 kB / 382.2 MB, free: 2.797 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002391/0.2126, allocations: 0.6633 MB / 382.9 MB, free: 2.121 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/0.2126, allocations: 4 kB / 382.9 MB, free: 2.117 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.2138, allocations: 394.5 kB / 383.3 MB, free: 1.719 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001681/0.2155, allocations: 245.7 kB / 383.5 MB, free: 1.477 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01091/0.2265, allocations: 3.982 MB / 387.5 MB, free: 13.45 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00191/0.2284, allocations: 1.515 MB / 389 MB, free: 11.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004303/0.2289, allocations: 91.44 kB / 389.1 MB, free: 11.82 MB / 330.7 MB Notification: Performance of SimCode: time 1.523e-06/0.2289, allocations: 0 / 389.1 MB, free: 11.82 MB / 330.7 MB Notification: Performance of Templates: time 0.3273/0.5562, allocations: 25.11 MB / 414.2 MB, free: 44.36 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRC.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.CCCV_CellRCCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRCCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRCCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRCFunctions.cpp:228:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp94.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_CellRCCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_CellRCCalcHelperMain.o] Error 1