Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_CellRC,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellRC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.906/1.906, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.008e-05/3.027e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1089, allocations: 50.41 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4817/0.5907, allocations: 90.07 MB / 432.7 MB, free: 4.191 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.591, allocations: 84.56 kB / 432.8 MB, free: 4.148 MB / 346.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. Notification: Performance of FrontEnd - DAE generated: time 0.1536/0.7447, allocations: 34.81 MB / 467.6 MB, free: 5.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.7447, allocations: 0 / 467.6 MB, free: 5.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002/0.7449, allocations: 32 kB / 467.6 MB, free: 5.809 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004318/0.7493, allocations: 1.653 MB / 469.3 MB, free: 4.129 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.7493, allocations: 12.03 kB / 469.3 MB, free: 4.117 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000268/0.7496, allocations: 106.5 kB / 469.4 MB, free: 4.004 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006993/0.7503, allocations: 217.4 kB / 469.6 MB, free: 3.789 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005074/0.7554, allocations: 1.638 MB / 471.2 MB, free: 2.082 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/0.7556, allocations: 78.97 kB / 471.3 MB, free: 2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.7558, allocations: 60 kB / 471.4 MB, free: 1.941 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.7578, allocations: 0.7531 MB / 472.1 MB, free: 1.133 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.7579, allocations: 8 kB / 472.1 MB, free: 1.125 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/0.758, allocations: 24 kB / 472.2 MB, free: 1.102 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.571e-05/0.7581, allocations: 16 kB / 472.2 MB, free: 1.086 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.7596, allocations: 478.5 kB / 472.6 MB, free: 0.6172 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0103/0.7699, allocations: 4.059 MB / 476.7 MB, free: 12.44 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/0.7715, allocations: 447.5 kB / 477.1 MB, free: 11.99 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000942/0.7725, allocations: 330 kB / 477.5 MB, free: 11.67 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.349e-05/0.7726, allocations: 4.281 kB / 477.5 MB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.7726, allocations: 38.84 kB / 477.5 MB, free: 11.62 MB / 394.7 MB Notification: Performance of pre-optimization done (n=33): time 3.066e-06/0.7726, allocations: 0 / 477.5 MB, free: 11.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=33): time 0.001533/0.7742, allocations: 0.5025 MB / 478 MB, free: 11.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001645/0.7744, allocations: 265 kB / 478.3 MB, free: 10.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007971/0.7823, allocations: 2.861 MB / 481.1 MB, free: 7.887 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.7825, allocations: 33.7 kB / 481.2 MB, free: 7.848 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001155/0.7837, allocations: 0.7288 MB / 481.9 MB, free: 7.117 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001967/0.7839, allocations: 114.3 kB / 482 MB, free: 7.004 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.651e-05/0.784, allocations: 12 kB / 482 MB, free: 6.992 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.7842, allocations: 326.8 kB / 482.3 MB, free: 6.664 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000493/0.7847, allocations: 169.1 kB / 482.5 MB, free: 6.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006492/0.7853, allocations: 348.6 kB / 482.8 MB, free: 6.09 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005317/0.7859, allocations: 213.6 kB / 483 MB, free: 5.883 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.7859, allocations: 0 / 483 MB, free: 5.883 MB / 394.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001406/0.7873, allocations: 0.517 MB / 483.6 MB, free: 5.355 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.7874, allocations: 8 kB / 483.6 MB, free: 5.348 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.7874, allocations: 4 kB / 483.6 MB, free: 5.344 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003579/0.7878, allocations: 65.25 kB / 483.6 MB, free: 5.277 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009022/0.7887, allocations: 115.9 kB / 483.7 MB, free: 5.164 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002272/0.791, allocations: 1.607 MB / 485.4 MB, free: 3.426 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.7923, allocations: 79.41 kB / 485.4 MB, free: 3.348 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-05/0.7924, allocations: 19.98 kB / 485.5 MB, free: 3.328 MB / 394.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 (51): * Single equations (assignments): 50 * 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.0002175/0.7927, allocations: 141.5 kB / 485.6 MB, free: 3.184 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004168/0.7931, allocations: 189.7 kB / 485.8 MB, free: 2.996 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.7948, allocations: 0.5555 MB / 486.3 MB, free: 2.426 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.7948, allocations: 4 kB / 486.3 MB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.7948, allocations: 0 / 486.3 MB, free: 2.422 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.7948, allocations: 3.984 kB / 486.3 MB, free: 2.418 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005065/0.7999, allocations: 2.134 MB / 488.5 MB, free: 216 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.7999, allocations: 0 / 488.5 MB, free: 216 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008127/0.8008, allocations: 83.83 kB / 488.6 MB, free: 132 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002439/0.801, allocations: 56.88 kB / 488.6 MB, free: 72 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.622e-05/0.8011, allocations: 12.12 kB / 488.6 MB, free: 60 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002026/0.8031, allocations: 1.561 MB / 490.2 MB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.8032, allocations: 0 / 490.2 MB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/0.8051, allocations: 0.8378 MB / 491 MB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001557/0.8067, allocations: 0.7516 MB / 491.8 MB, free: 12.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003023/0.807, allocations: 11.98 kB / 491.8 MB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.8081, allocations: 71.95 kB / 491.9 MB, free: 12.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.8083, allocations: 35.94 kB / 491.9 MB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.965e-05/0.8083, allocations: 12 kB / 491.9 MB, free: 12.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005343/0.8137, allocations: 2.206 MB / 494.1 MB, free: 10.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.11e-07/0.8138, allocations: 0 / 494.1 MB, free: 10.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001811/0.8156, allocations: 299.5 kB / 494.4 MB, free: 9.996 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (29): * Single equations (assignments): 28 * 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.003545/0.8192, allocations: 1.842 MB / 496.2 MB, free: 8.211 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.8206, allocations: 0.5021 MB / 496.7 MB, free: 7.699 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.8207, allocations: 4.938 kB / 496.7 MB, free: 7.695 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000745/0.8214, allocations: 313.7 kB / 497.1 MB, free: 7.379 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002087/0.8235, allocations: 267.1 kB / 497.3 MB, free: 7.113 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/0.8348, allocations: 3.575 MB / 0.4892 GB, free: 3.473 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001827/0.8366, allocations: 1.516 MB / 0.4906 GB, free: 1.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001714/0.8384, allocations: 0.6711 MB / 0.4913 GB, free: 1.258 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/0.8384, allocations: 0 / 0.4913 GB, free: 1.258 MB / 410.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_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:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellRCFunctions.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_CellRCCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellRCFMU.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_CellRCCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_CellRCCalcHelperMain.o] Error 1