Running command: translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") Notification: Performance of loadModel(Modelica): time 2.132/2.132, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.115e-05/3.091e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1486, allocations: 50.41 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007902/0.1565, allocations: 4.618 MB / 349.6 MB, free: 4.305 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005478/0.1621, allocations: 2.211 MB / 351.8 MB, free: 2.086 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008696/0.163, allocations: 43.88 kB / 351.8 MB, free: 2.043 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002241/0.1652, allocations: 0.8645 MB / 352.7 MB, free: 1.176 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.001448/0.1667, allocations: 323 kB / 353 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001535/0.1683, allocations: 371.2 kB / 353.4 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002602/0.1709, allocations: 0.9179 MB / 354.3 MB, free: 15.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008658/0.1718, allocations: 328.2 kB / 354.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000795/0.1726, allocations: 395 kB / 355 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009066/0.1736, allocations: 482.3 kB / 355.5 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004923/0.1741, allocations: 87.92 kB / 355.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002424/0.1743, allocations: 44 kB / 355.6 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006571/0.175, allocations: 474.3 kB / 356.1 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003755/0.1754, allocations: 116 kB / 356.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002765/0.1782, allocations: 1.78 MB / 358 MB, free: 11.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1782, allocations: 0 / 358 MB, free: 11.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1782, allocations: 4 kB / 358 MB, free: 11.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.344e-05/0.1783, allocations: 4 kB / 358 MB, free: 11.89 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.005544/0.1839, allocations: 1.863 MB / 359.8 MB, free: 9.977 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.1839, allocations: 8.031 kB / 359.8 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006405/0.1846, allocations: 221.3 kB / 360.1 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003962/0.1886, allocations: 1.507 MB / 361.6 MB, free: 8.195 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009443/0.1896, allocations: 183.6 kB / 361.7 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002935/0.1899, allocations: 91.94 kB / 361.8 MB, free: 7.922 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003308/0.1932, allocations: 1.12 MB / 363 MB, free: 6.723 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.343e-05/0.1933, allocations: 7.938 kB / 363 MB, free: 6.715 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001633/0.1934, allocations: 36 kB / 363 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.857e-05/0.1935, allocations: 24 kB / 363 MB, free: 6.656 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002589/0.1961, allocations: 0.7416 MB / 363.8 MB, free: 5.914 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01086/0.207, allocations: 4.314 MB / 368.1 MB, free: 1.422 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.2096, allocations: 1 MB / 369.1 MB, free: 324 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.138e-05/0.2097, allocations: 7.984 kB / 369.1 MB, free: 316 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.9e-05/0.2098, allocations: 46.56 kB / 369.1 MB, free: 260 kB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.755e-06/0.2098, allocations: 0 / 369.1 MB, free: 260 kB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.003719/0.2135, allocations: 0.9136 MB / 370 MB, free: 15.33 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002222/0.2138, allocations: 423.2 kB / 370.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004096/0.2179, allocations: 1.799 MB / 372.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000167/0.2181, allocations: 37.7 kB / 372.3 MB, free: 12.94 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009002/0.219, allocations: 0.7747 MB / 373.1 MB, free: 12.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/0.2193, allocations: 153.8 kB / 373.2 MB, free: 12.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.722e-05/0.2194, allocations: 12 kB / 373.2 MB, free: 12 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.2195, allocations: 334.8 kB / 373.6 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.2207, allocations: 293.1 kB / 373.8 MB, free: 11.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.2222, allocations: 0.5558 MB / 374.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.2234, allocations: 312.5 kB / 374.7 MB, free: 10.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.2234, allocations: 0 / 374.7 MB, free: 10.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002805/0.2262, allocations: 0.7651 MB / 375.5 MB, free: 9.629 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.2263, allocations: 8 kB / 375.5 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/0.2263, allocations: 8 kB / 375.5 MB, free: 9.613 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.956e-05/0.2264, allocations: 11.94 kB / 375.5 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.2277, allocations: 180 kB / 375.7 MB, free: 9.426 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.581e-05/0.2277, allocations: 15.92 kB / 375.7 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00252/0.2303, allocations: 215.1 kB / 375.9 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/0.2304, allocations: 24 kB / 375.9 MB, free: 9.176 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on1,pulseSeries.on2,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001315/0.2318, allocations: 0.5638 MB / 376.5 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004478/0.2322, allocations: 177.8 kB / 376.7 MB, free: 8.426 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002803/0.235, allocations: 0.7572 MB / 377.4 MB, free: 7.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.2351, allocations: 4 kB / 377.4 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.2351, allocations: 0 / 377.4 MB, free: 7.656 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.2351, allocations: 7.984 kB / 377.4 MB, free: 7.648 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005626/0.2408, allocations: 2.006 MB / 379.4 MB, free: 5.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.2408, allocations: 0 / 379.4 MB, free: 5.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.242, allocations: 127.8 kB / 379.6 MB, free: 5.445 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.242, allocations: 0 / 379.6 MB, free: 5.445 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.77e-05/0.2421, allocations: 19.95 kB / 379.6 MB, free: 5.426 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.413e-06/0.2421, allocations: 0 / 379.6 MB, free: 5.426 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2421, allocations: 4.062 kB / 379.6 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003912/0.246, allocations: 1.185 MB / 380.8 MB, free: 4.195 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008573/0.2469, allocations: 326.8 kB / 381.1 MB, free: 3.855 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003047/0.2472, allocations: 12 kB / 381.1 MB, free: 3.844 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002155/0.2494, allocations: 199.8 kB / 381.3 MB, free: 3.648 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005841/0.25, allocations: 159.7 kB / 381.4 MB, free: 3.492 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.295e-05/0.2501, allocations: 16 kB / 381.5 MB, free: 3.477 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003443/0.2536, allocations: 1.432 MB / 382.9 MB, free: 2.023 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.2536, allocations: 0 / 382.9 MB, free: 2.023 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001403/0.255, allocations: 287.1 kB / 383.2 MB, free: 1.742 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001393/0.2564, allocations: 457.7 kB / 383.6 MB, free: 1.426 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002672/0.2591, allocations: 0.6591 MB / 384.3 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.195e-06/0.2592, allocations: 192 / 384.3 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001355/0.2606, allocations: 367.6 kB / 384.6 MB, free: 420 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/0.2627, allocations: 297.2 kB / 384.9 MB, free: 120 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009601/0.2723, allocations: 3.935 MB / 388.9 MB, free: 12.13 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001651/0.274, allocations: 1.464 MB / 390.3 MB, free: 10.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006895/0.2748, allocations: 103.4 kB / 390.4 MB, free: 10.54 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.2748, allocations: 4 kB / 390.4 MB, free: 10.54 MB / 330.7 MB Notification: Performance of Templates: time 0.3335/0.6083, allocations: 20.79 MB / 411.2 MB, free: 46.68 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.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.BatteryDischargeChargeCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.BatteryDischargeChargeCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.BatteryDischargeChargeCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.BatteryDischargeChargeFunctions.cpp:228:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp155.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.BatteryDischargeChargeCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.BatteryDischargeChargeCalcHelperMain.o] Error 1