Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.081e-05/4.087e-05, allocations: 11.98 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 50.41 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4577/0.5686, allocations: 87.4 MB / 430 MB, free: 6.457 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/0.569, allocations: 81.17 kB / 430.1 MB, free: 6.418 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.126/0.695, allocations: 26.84 MB / 457 MB, free: 15.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.695, allocations: 0 / 457 MB, free: 15.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003008/0.6953, allocations: 24 kB / 457 MB, free: 15.06 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.005232/0.7006, allocations: 1.478 MB / 458.5 MB, free: 13.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.172e-05/0.7007, allocations: 12.03 kB / 458.5 MB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003108/0.701, allocations: 89.45 kB / 458.6 MB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008052/0.7019, allocations: 189.7 kB / 458.7 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005188/0.7071, allocations: 1.469 MB / 460.2 MB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/0.7073, allocations: 68.2 kB / 460.3 MB, free: 12.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.7074, allocations: 48.47 kB / 460.3 MB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.7089, allocations: 0.5383 MB / 460.9 MB, free: 11.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.635e-05/0.709, allocations: 3.938 kB / 460.9 MB, free: 11.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.803e-05/0.7091, allocations: 29.17 kB / 460.9 MB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.988e-05/0.7092, allocations: 12 kB / 460.9 MB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009057/0.7101, allocations: 285.5 kB / 461.2 MB, free: 11.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008637/0.7187, allocations: 3.318 MB / 464.5 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001237/0.72, allocations: 290.8 kB / 464.8 MB, free: 8.406 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005372/0.7206, allocations: 145.8 kB / 464.9 MB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.986e-05/0.7207, allocations: 8.188 kB / 464.9 MB, free: 8.254 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/0.7208, allocations: 30.75 kB / 465 MB, free: 8.215 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 3.406e-06/0.7208, allocations: 0 / 465 MB, free: 8.215 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.001276/0.7221, allocations: 355.2 kB / 465.3 MB, free: 7.859 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.7223, allocations: 209.6 kB / 465.5 MB, free: 7.605 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007992/0.7303, allocations: 2.61 MB / 468.1 MB, free: 4.949 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.7304, allocations: 37.64 kB / 468.2 MB, free: 4.906 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001164/0.7316, allocations: 0.67 MB / 468.8 MB, free: 4.234 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.7318, allocations: 74.91 kB / 468.9 MB, free: 4.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.177e-05/0.7318, allocations: 11.94 kB / 468.9 MB, free: 4.148 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.732, allocations: 326.8 kB / 469.2 MB, free: 3.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002869/0.7323, allocations: 80.66 kB / 469.3 MB, free: 3.738 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004633/0.7328, allocations: 240.7 kB / 469.6 MB, free: 3.434 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003301/0.7332, allocations: 119.9 kB / 469.7 MB, free: 3.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.7332, allocations: 0 / 469.7 MB, free: 3.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001418/0.7346, allocations: 374.3 kB / 470 MB, free: 2.945 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.993e-05/0.7347, allocations: 18.75 kB / 470.1 MB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.7347, allocations: 4 kB / 470.1 MB, free: 2.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000344/0.7351, allocations: 52.8 kB / 470.1 MB, free: 2.871 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006283/0.7357, allocations: 75.89 kB / 470.2 MB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002318/0.7381, allocations: 1.542 MB / 471.7 MB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.7392, allocations: 71.5 kB / 471.8 MB, free: 1.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.249e-05/0.7394, allocations: 16.09 kB / 471.8 MB, free: 1.035 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (36): * Single equations (assignments): 35 * 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 prepare postOptimizeDAE: time 0.0002049/0.7396, allocations: 128.9 kB / 471.9 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005614/0.7402, allocations: 161.9 kB / 472.1 MB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001345/0.7415, allocations: 405.1 kB / 472.5 MB, free: 340 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.7416, allocations: 3.984 kB / 472.5 MB, free: 336 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.7416, allocations: 0 / 472.5 MB, free: 336 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.7416, allocations: 0 / 472.5 MB, free: 336 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004946/0.7466, allocations: 1.69 MB / 474.2 MB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.7466, allocations: 0 / 474.2 MB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000509/0.7471, allocations: 43.97 kB / 474.2 MB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002414/0.7474, allocations: 44.81 kB / 474.3 MB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.3e-05/0.7475, allocations: 8 kB / 474.3 MB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002078/0.7496, allocations: 1.483 MB / 475.8 MB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.7496, allocations: 0 / 475.8 MB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.7512, allocations: 0.5723 MB / 476.3 MB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/0.7527, allocations: 0.5115 MB / 476.8 MB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004466/0.7532, allocations: 8 kB / 476.9 MB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.7543, allocations: 59.89 kB / 476.9 MB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001876/0.7545, allocations: 31.95 kB / 476.9 MB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.86e-05/0.7546, allocations: 11.98 kB / 477 MB, free: 11.59 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006341/0.761, allocations: 2.017 MB / 479 MB, free: 9.539 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.123e-06/0.761, allocations: 4 kB / 479 MB, free: 9.535 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002344/0.7634, allocations: 235.6 kB / 479.2 MB, free: 9.305 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,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 (18): * Single equations (assignments): 17 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004256/0.7677, allocations: 1.484 MB / 480.7 MB, free: 7.887 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001545/0.7693, allocations: 345.6 kB / 481 MB, free: 7.539 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/0.7693, allocations: 0 / 481 MB, free: 7.539 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008334/0.7702, allocations: 230.7 kB / 481.3 MB, free: 7.305 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00255/0.7728, allocations: 218.5 kB / 481.5 MB, free: 7.086 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/0.7881, allocations: 2.998 MB / 484.5 MB, free: 4.023 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002994/0.7912, allocations: 1.375 MB / 485.8 MB, free: 2.621 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002295/0.7935, allocations: 0.6008 MB / 486.4 MB, free: 2.02 MB / 394.7 MB Notification: Performance of SimCode: time 1.733e-06/0.7936, allocations: 4 kB / 486.4 MB, free: 2.016 MB / 394.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellFunctions.cpp:161:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp13.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, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 1 error generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellCalcHelperMain.o] Error 1