Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.847e-05/2.845e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1103, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4944/0.6048, allocations: 94.35 MB / 437 MB, free: 15.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003512/0.6052, allocations: 81.02 kB / 437.1 MB, free: 15.93 MB / 362.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. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].Qnom to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].OCVmax to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].OCVmin to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Electrical/Batteries/BaseClasses/BaseStackData.mo:13:3-17:109:writable] Notification: Moving binding to initial equation section and setting fixed attribute of cellData[1,1].Ri to false. Notification: Performance of FrontEnd - DAE generated: time 1.549/2.154, allocations: 278.3 MB / 0.6986 GB, free: 53.21 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.846e-06/2.154, allocations: 1.562 kB / 0.6986 GB, free: 53.21 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.005218/2.159, allocations: 265.2 kB / 0.6988 GB, free: 53.19 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.04801/2.207, allocations: 13.3 MB / 0.7118 GB, free: 48.16 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/2.207, allocations: 10.84 kB / 0.7118 GB, free: 48.16 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002999/2.21, allocations: 0.5915 MB / 0.7124 GB, free: 48.1 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008209/2.219, allocations: 1.748 MB / 0.7141 GB, free: 47.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08127/2.3, allocations: 25.39 MB / 0.7389 GB, free: 44.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000911/2.301, allocations: 386.9 kB / 0.7393 GB, free: 44.3 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002311/2.303, allocations: 398.4 kB / 0.7396 GB, free: 44.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02722/2.33, allocations: 7.412 MB / 0.7469 GB, free: 43.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001655/2.331, allocations: 2.531 kB / 0.7469 GB, free: 43.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0016/2.332, allocations: 183.7 kB / 0.7471 GB, free: 43.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/2.332, allocations: 95.72 kB / 0.7472 GB, free: 43.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02219/2.355, allocations: 5.834 MB / 0.7529 GB, free: 43.51 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09441/2.449, allocations: 34.73 MB / 0.7868 GB, free: 33.69 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01499/2.464, allocations: 4.755 MB / 0.7914 GB, free: 32.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01198/2.476, allocations: 3.712 MB / 0.795 GB, free: 29.88 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004057/2.477, allocations: 31.03 kB / 0.7951 GB, free: 29.85 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001181/2.477, allocations: 73 kB / 0.7951 GB, free: 29.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=231): time 9.147e-06/2.477, allocations: 0 / 0.7951 GB, free: 29.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.02002/2.497, allocations: 5.312 MB / 0.8003 GB, free: 24.92 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004147/2.497, allocations: 1.3 MB / 0.8016 GB, free: 23.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.09889/2.596, allocations: 28.45 MB / 0.8294 GB, free: 15.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001044/2.597, allocations: 77.7 kB / 0.8294 GB, free: 15.63 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0184/2.616, allocations: 6.184 MB / 0.8355 GB, free: 9.57 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001997/2.618, allocations: 0.8131 MB / 0.8363 GB, free: 8.84 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005626/2.618, allocations: 56 kB / 0.8363 GB, free: 8.785 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004307/2.619, allocations: 435.9 kB / 0.8368 GB, free: 8.383 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008245/2.627, allocations: 2.278 MB / 0.839 GB, free: 6.398 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01004/2.637, allocations: 3.312 MB / 0.8422 GB, free: 3.121 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009314/2.647, allocations: 2.697 MB / 0.8448 GB, free: 0.875 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.45e-05/2.647, allocations: 4 kB / 0.8448 GB, free: 0.8711 MB / 458.7 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.0258/2.672, allocations: 5.935 MB / 0.8506 GB, free: 12.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.84e-05/2.673, allocations: 12 kB / 0.8507 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-05/2.673, allocations: 15.42 kB / 0.8507 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002247/2.675, allocations: 0.5437 MB / 0.8512 GB, free: 12.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007544/2.682, allocations: 1.026 MB / 0.8522 GB, free: 11.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01299/2.695, allocations: 6.015 MB / 0.8581 GB, free: 6.391 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0117/2.707, allocations: 0.9015 MB / 0.859 GB, free: 5.758 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008883/2.708, allocations: 100 kB / 0.8591 GB, free: 5.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (308): * Single equations (assignments): 307 * 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 {3 38} Notification: Performance of prepare postOptimizeDAE: time 0.001135/2.709, allocations: 297.4 kB / 0.8593 GB, free: 5.371 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005753/2.715, allocations: 1.558 MB / 0.8609 GB, free: 3.793 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3955/3.111, allocations: 7.014 MB / 0.8677 GB, free: 80.43 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.888e-05/3.111, allocations: 22.31 kB / 0.8677 GB, free: 80.43 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/3.111, allocations: 4.266 kB / 0.8677 GB, free: 80.43 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.481e-05/3.111, allocations: 15.5 kB / 0.8677 GB, free: 80.43 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.069/3.18, allocations: 18.94 MB / 0.8862 GB, free: 79.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-05/3.18, allocations: 0 / 0.8862 GB, free: 79.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006547/3.187, allocations: 0.8679 MB / 0.8871 GB, free: 79.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001721/3.188, allocations: 451.7 kB / 0.8875 GB, free: 79.72 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000633/3.189, allocations: 74.42 kB / 0.8876 GB, free: 79.72 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008609/3.198, allocations: 5.172 MB / 0.8926 GB, free: 78.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.708e-06/3.198, allocations: 0.5 kB / 0.8926 GB, free: 78.39 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0201/3.218, allocations: 8.64 MB / 0.9011 GB, free: 77.63 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01597/3.234, allocations: 7.473 MB / 0.9084 GB, free: 73.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005553/3.239, allocations: 89.53 kB / 0.9085 GB, free: 73.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01323/3.253, allocations: 0.9652 MB / 0.9094 GB, free: 73.08 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002444/3.255, allocations: 483.5 kB / 0.9099 GB, free: 73.08 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006693/3.256, allocations: 59.69 kB / 0.9099 GB, free: 73.08 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.08022/3.336, allocations: 21.92 MB / 0.9313 GB, free: 72.49 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.132e-06/3.336, allocations: 0 / 0.9313 GB, free: 72.49 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01055/3.347, allocations: 1.971 MB / 0.9333 GB, free: 72.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,stack.cell[3,2].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 (201): * Single equations (assignments): 200 * 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 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.02363/3.37, allocations: 9.889 MB / 0.9429 GB, free: 68.72 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01315/3.384, allocations: 5.027 MB / 0.9478 GB, free: 67.15 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-05/3.384, allocations: 5.188 kB / 0.9478 GB, free: 67.15 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007156/3.391, allocations: 2.691 MB / 0.9505 GB, free: 66.25 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01847/3.409, allocations: 2.536 MB / 0.9529 GB, free: 65.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1311/3.541, allocations: 44.61 MB / 0.9965 GB, free: 27.68 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02879/3.569, allocations: 11.62 MB / 1.008 GB, free: 18.74 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01833/3.588, allocations: 6.772 MB / 1.014 GB, free: 12.44 MB / 474.7 MB Notification: Performance of SimCode: time 3.416e-06/3.588, allocations: 5.656 kB / 1.014 GB, free: 12.43 MB / 474.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_StackRCCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_StackRCCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_StackRCCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_StackRCFunctions.cpp:164:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp68.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_StackRCCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_StackRCFMU.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_StackRCCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCV_StackRCCalcHelperMain.o] Error 1