Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",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.251e-05/3.256e-05, allocations: 4 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1027, allocations: 50.41 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.436/0.5387, allocations: 86.84 MB / 429.5 MB, free: 7.414 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.539, allocations: 81.83 kB / 429.6 MB, free: 7.371 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1443/0.6833, allocations: 39.69 MB / 469.2 MB, free: 2.988 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.175e-06/0.6834, allocations: 0 / 469.2 MB, free: 2.988 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000264/0.6836, allocations: 32 kB / 469.3 MB, free: 2.957 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004522/0.6882, allocations: 1.937 MB / 471.2 MB, free: 1.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.6882, allocations: 12.03 kB / 471.2 MB, free: 1.078 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001499/0.6884, allocations: 79.41 kB / 471.3 MB, free: 1.016 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007704/0.6892, allocations: 288.3 kB / 471.6 MB, free: 0.7305 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005565/0.6948, allocations: 1.885 MB / 473.5 MB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.6949, allocations: 59.97 kB / 473.5 MB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002698/0.6952, allocations: 42.11 kB / 473.6 MB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000926/0.6961, allocations: 363 kB / 473.9 MB, free: 14.76 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.6962, allocations: 7.938 kB / 473.9 MB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.154e-05/0.6962, allocations: 18 kB / 474 MB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.6963, allocations: 12 kB / 474 MB, free: 14.74 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007932/0.6971, allocations: 293.8 kB / 474.3 MB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007617/0.7047, allocations: 3.097 MB / 477.3 MB, free: 11.88 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007981/0.7056, allocations: 296.8 kB / 477.6 MB, free: 11.57 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003873/0.706, allocations: 153.7 kB / 477.8 MB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.072e-05/0.706, allocations: 4 kB / 477.8 MB, free: 11.41 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.7061, allocations: 38.56 kB / 477.8 MB, free: 11.36 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 2.996e-06/0.7061, allocations: 4 kB / 477.8 MB, free: 11.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=48): time 0.007278/0.7134, allocations: 2.245 MB / 480.1 MB, free: 9.039 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.7135, allocations: 89.58 kB / 480.2 MB, free: 8.934 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01597/0.7295, allocations: 4.847 MB / 485 MB, free: 4.086 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.7296, allocations: 29.7 kB / 485 MB, free: 4.051 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001652/0.7313, allocations: 0.9285 MB / 486 MB, free: 3.121 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002343/0.7316, allocations: 165.6 kB / 486.1 MB, free: 2.957 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.044e-05/0.7316, allocations: 11.98 kB / 486.1 MB, free: 2.945 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.7318, allocations: 330.8 kB / 486.5 MB, free: 2.613 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000423/0.7322, allocations: 141 kB / 486.6 MB, free: 2.473 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004619/0.7327, allocations: 203.8 kB / 486.8 MB, free: 2.254 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004798/0.7332, allocations: 161.6 kB / 487 MB, free: 2.098 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.706e-06/0.7332, allocations: 0 / 487 MB, free: 2.098 MB / 394.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00375/0.737, allocations: 0.7892 MB / 487.8 MB, free: 1.297 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.737, allocations: 4.094 kB / 487.8 MB, free: 1.293 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.737, allocations: 11.94 kB / 487.8 MB, free: 1.281 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008131/0.7378, allocations: 156.7 kB / 487.9 MB, free: 1.125 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007924/0.7387, allocations: 95.88 kB / 488 MB, free: 1.031 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001276/0.74, allocations: 0.7561 MB / 488.8 MB, free: 256 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.7411, allocations: 23.95 kB / 488.8 MB, free: 232 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.286e-05/0.7412, allocations: 23.98 kB / 488.8 MB, free: 208 kB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001794/0.7414, allocations: 128.9 kB / 488.9 MB, free: 72 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007188/0.7421, allocations: 284.6 kB / 489.2 MB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002453/0.7446, allocations: 0.7686 MB / 490 MB, free: 15 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/0.7446, allocations: 8 kB / 490 MB, free: 15 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.7447, allocations: 0 / 490 MB, free: 15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.7447, allocations: 4 kB / 490 MB, free: 14.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00362/0.7483, allocations: 1.703 MB / 491.7 MB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.7484, allocations: 3.938 kB / 491.7 MB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009886/0.7494, allocations: 95.88 kB / 491.8 MB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000534/0.7499, allocations: 108.7 kB / 491.9 MB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.094e-05/0.75, allocations: 8 kB / 491.9 MB, free: 13.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009495/0.7509, allocations: 0.6344 MB / 492.6 MB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.751, allocations: 8.016 kB / 492.6 MB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002671/0.7536, allocations: 1.075 MB / 493.6 MB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001944/0.7556, allocations: 0.6771 MB / 494.3 MB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004441/0.7561, allocations: 16 kB / 494.3 MB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.7571, allocations: 31.98 kB / 494.4 MB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.7572, allocations: 28.39 kB / 494.4 MB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.942e-05/0.7573, allocations: 12 kB / 494.4 MB, free: 10.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.009593/0.7669, allocations: 3.804 MB / 498.2 MB, free: 6.668 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.343e-06/0.767, allocations: 0 / 498.2 MB, free: 6.668 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001877/0.7688, allocations: 328 kB / 498.5 MB, free: 6.348 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.004206/0.7731, allocations: 1.977 MB / 0.4888 GB, free: 4.449 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001176/0.7743, allocations: 363.3 kB / 0.4891 GB, free: 4.098 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.7743, allocations: 0 / 0.4891 GB, free: 4.098 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005583/0.7749, allocations: 197.5 kB / 0.4893 GB, free: 3.906 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.7766, allocations: 179.3 kB / 0.4895 GB, free: 3.727 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01508/0.7917, allocations: 5.64 MB / 0.495 GB, free: 14.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002733/0.7945, allocations: 1.868 MB / 0.4968 GB, free: 12.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002423/0.797, allocations: 1.019 MB / 0.4978 GB, free: 11.09 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/0.797, allocations: 0 / 0.4978 GB, free: 11.09 MB / 426.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_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1CalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1CalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1CalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1Functions.cpp:196:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp7.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_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1CalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1FMU.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_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1CalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1CalcHelperMain.o] Error 1