Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.908/1.908, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.273e-05/3.285e-05, allocations: 6.188 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4537/0.5604, allocations: 87.98 MB / 430.6 MB, free: 5.859 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/0.5607, allocations: 73.66 kB / 430.7 MB, free: 5.824 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1202/0.6809, allocations: 29.5 MB / 460.2 MB, free: 11.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.558e-06/0.681, allocations: 0 / 460.2 MB, free: 11.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001397/0.6812, allocations: 27.92 kB / 460.2 MB, free: 11.92 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00317/0.6843, allocations: 1.307 MB / 461.5 MB, free: 10.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.221e-05/0.6844, allocations: 8.031 kB / 461.5 MB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001854/0.6846, allocations: 89.08 kB / 461.6 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004629/0.6851, allocations: 158.1 kB / 461.8 MB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003326/0.6884, allocations: 1.151 MB / 462.9 MB, free: 9.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.6886, allocations: 70.33 kB / 463 MB, free: 9.348 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001402/0.6887, allocations: 52.72 kB / 463 MB, free: 9.312 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.6904, allocations: 0.6067 MB / 463.6 MB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.6905, allocations: 0 / 463.6 MB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.773e-05/0.6906, allocations: 24.75 kB / 463.7 MB, free: 8.836 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.6906, allocations: 12 kB / 463.7 MB, free: 8.824 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.6917, allocations: 378.8 kB / 464 MB, free: 8.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009253/0.7009, allocations: 2.917 MB / 467 MB, free: 6.168 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001883/0.7029, allocations: 386.6 kB / 467.3 MB, free: 5.781 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001232/0.7042, allocations: 292.7 kB / 467.6 MB, free: 5.492 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.577e-05/0.7043, allocations: 4 kB / 467.6 MB, free: 5.488 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.275e-05/0.7044, allocations: 38.56 kB / 467.7 MB, free: 5.441 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 5.34e-06/0.7044, allocations: 3.938 kB / 467.7 MB, free: 5.438 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.002674/0.7071, allocations: 477.1 kB / 468.1 MB, free: 4.961 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000666/0.7078, allocations: 269 kB / 468.4 MB, free: 4.637 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005974/0.7139, allocations: 2.007 MB / 470.4 MB, free: 2.621 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.7141, allocations: 33.7 kB / 470.4 MB, free: 2.582 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007295/0.7148, allocations: 0.5607 MB / 471 MB, free: 2.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.715, allocations: 110.4 kB / 471.1 MB, free: 1.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.977e-05/0.715, allocations: 8 kB / 471.1 MB, free: 1.902 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.7152, allocations: 326.8 kB / 471.4 MB, free: 1.574 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/0.7156, allocations: 132.7 kB / 471.6 MB, free: 1.441 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005371/0.7162, allocations: 272.2 kB / 471.8 MB, free: 1.121 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004779/0.7167, allocations: 166.1 kB / 472 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.7167, allocations: 0 / 472 MB, free: 0.9609 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001164/0.7178, allocations: 441.9 kB / 472.4 MB, free: 0.5195 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.7179, allocations: 4 kB / 472.4 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.7179, allocations: 4 kB / 472.4 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003349/0.7183, allocations: 57.05 kB / 472.5 MB, free: 464 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007276/0.719, allocations: 99.88 kB / 472.6 MB, free: 364 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00334/0.7224, allocations: 1.568 MB / 474.2 MB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.7241, allocations: 67.67 kB / 474.2 MB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.7242, allocations: 16 kB / 474.2 MB, free: 14.57 MB / 394.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 (41): * Single equations (assignments): 40 * 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.0003116/0.7246, allocations: 124.9 kB / 474.4 MB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000744/0.7253, allocations: 138.3 kB / 474.5 MB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003076/0.7284, allocations: 0.5118 MB / 475 MB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.021e-05/0.7286, allocations: 4 kB / 475 MB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.7287, allocations: 0 / 475 MB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.223e-05/0.7287, allocations: 3.984 kB / 475 MB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006083/0.7348, allocations: 1.681 MB / 476.7 MB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.7349, allocations: 4 kB / 476.7 MB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006621/0.7356, allocations: 71.89 kB / 476.8 MB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002399/0.7358, allocations: 44.91 kB / 476.8 MB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.205e-05/0.7359, allocations: 16.11 kB / 476.8 MB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00201/0.7379, allocations: 1.537 MB / 478.4 MB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.7379, allocations: 3.938 kB / 478.4 MB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.74, allocations: 0.7645 MB / 479.1 MB, free: 9.398 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/0.7411, allocations: 464.3 kB / 479.6 MB, free: 8.906 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002152/0.7413, allocations: 8 kB / 479.6 MB, free: 8.898 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008953/0.7422, allocations: 63.91 kB / 479.7 MB, free: 8.836 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001164/0.7423, allocations: 27.95 kB / 479.7 MB, free: 8.809 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.693e-05/0.7424, allocations: 12 kB / 479.7 MB, free: 8.797 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003671/0.7461, allocations: 1.552 MB / 481.2 MB, free: 7.246 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.052e-06/0.7461, allocations: 0 / 481.2 MB, free: 7.246 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001469/0.7476, allocations: 243.6 kB / 481.5 MB, free: 7.008 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (26): * Single equations (assignments): 25 * 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.003541/0.7512, allocations: 1.765 MB / 483.3 MB, free: 5.301 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.7525, allocations: 446.4 kB / 483.7 MB, free: 4.855 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.7525, allocations: 4.062 kB / 483.7 MB, free: 4.852 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007089/0.7532, allocations: 280.9 kB / 484 MB, free: 4.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001587/0.7548, allocations: 193.2 kB / 484.2 MB, free: 4.379 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007707/0.7626, allocations: 2.537 MB / 486.7 MB, free: 1.789 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001448/0.7641, allocations: 1.28 MB / 488 MB, free: 496 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001257/0.7654, allocations: 483.3 kB / 488.4 MB, free: 12 kB / 394.7 MB Notification: Performance of SimCode: time 1.413e-06/0.7654, allocations: 0 / 488.4 MB, free: 12 kB / 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_CCCVchargingCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCVchargingCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCVchargingCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCVchargingFunctions.cpp:161:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp8.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_CCCVchargingCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCVchargingFMU.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_CCCVchargingCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_CCCVchargingCalcHelperMain.o] Error 1