Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.986/1.986, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.65e-05/2.652e-05, allocations: 0 / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1048, allocations: 50.42 MB / 342.6 MB, free: 6.301 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4319/0.5367, allocations: 92.09 MB / 434.7 MB, free: 2.203 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.5371, allocations: 84.95 kB / 434.8 MB, free: 2.16 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Magnetic/FluxTubes/Examples/MovingCoilActuator/Components/ConstantActuator.mo:67:3-67:83:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.0954/0.6325, allocations: 22.7 MB / 457.5 MB, free: 15.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.6325, allocations: 0 / 457.5 MB, free: 15.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.006e-05/0.6326, allocations: 24 kB / 457.5 MB, free: 15.06 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.003831/0.6365, allocations: 1.231 MB / 458.8 MB, free: 13.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.6365, allocations: 8.031 kB / 458.8 MB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002747/0.6368, allocations: 150 kB / 458.9 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003172/0.6372, allocations: 130.4 kB / 459 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001507/0.6387, allocations: 0.6509 MB / 459.7 MB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001913/0.6389, allocations: 78.62 kB / 459.8 MB, free: 13.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002258/0.6391, allocations: 98.91 kB / 459.9 MB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/0.6416, allocations: 0.9235 MB / 460.8 MB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.097e-05/0.6416, allocations: 0 / 460.8 MB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001382/0.6418, allocations: 38.94 kB / 460.8 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.02e-05/0.6418, allocations: 24 kB / 460.8 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002162/0.644, allocations: 0.7615 MB / 461.6 MB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009117/0.6531, allocations: 3.864 MB / 465.5 MB, free: 7.855 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003423/0.6566, allocations: 0.8342 MB / 466.3 MB, free: 7.004 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009682/0.6576, allocations: 374.6 kB / 466.7 MB, free: 6.633 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.125e-05/0.6577, allocations: 16.55 kB / 466.7 MB, free: 6.617 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.6577, allocations: 43.12 kB / 466.7 MB, free: 6.566 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 3.165e-06/0.6577, allocations: 0 / 466.7 MB, free: 6.566 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.005859/0.6636, allocations: 1.637 MB / 468.4 MB, free: 4.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.63e-05/0.6637, allocations: 89.53 kB / 468.5 MB, free: 4.824 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001719/0.6654, allocations: 0.8089 MB / 469.3 MB, free: 4.008 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.199e-05/0.6655, allocations: 45.7 kB / 469.3 MB, free: 3.957 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004422/0.666, allocations: 0.5093 MB / 469.8 MB, free: 3.441 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003105/0.6663, allocations: 287.8 kB / 470.1 MB, free: 3.156 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.227e-05/0.6664, allocations: 20 kB / 470.1 MB, free: 3.137 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.6666, allocations: 354.7 kB / 470.5 MB, free: 2.781 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008831/0.6675, allocations: 302 kB / 470.8 MB, free: 2.488 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/0.6685, allocations: 452.1 kB / 471.2 MB, free: 1.992 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000967/0.6695, allocations: 339.1 kB / 471.5 MB, free: 1.664 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.6695, allocations: 4 kB / 471.5 MB, free: 1.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.00237/0.6719, allocations: 0.8551 MB / 472.4 MB, free: 0.8008 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.672, allocations: 8 kB / 472.4 MB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.672, allocations: 8.031 kB / 472.4 MB, free: 0.7852 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.155e-05/0.672, allocations: 8 kB / 472.4 MB, free: 0.7773 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002864/0.6749, allocations: 347.5 kB / 472.8 MB, free: 448 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.039e-05/0.675, allocations: 15.94 kB / 472.8 MB, free: 432 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001807/0.6768, allocations: 111.9 kB / 472.9 MB, free: 320 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001168/0.6769, allocations: 39.98 kB / 472.9 MB, free: 280 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 121 * 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.0002615/0.6772, allocations: 160.7 kB / 473.1 MB, free: 112 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002524/0.6774, allocations: 102.9 kB / 473.2 MB, free: 8 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001055/0.6785, allocations: 366.3 kB / 473.5 MB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.6785, allocations: 8 kB / 473.5 MB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.6786, allocations: 4 kB / 473.5 MB, free: 15.63 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.6786, allocations: 3.984 kB / 473.6 MB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006676/0.6853, allocations: 2.873 MB / 476.4 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.6853, allocations: 8 kB / 476.4 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001993/0.6873, allocations: 268.1 kB / 476.7 MB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.861e-05/0.6874, allocations: 20 kB / 476.7 MB, free: 12.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-05/0.6875, allocations: 28 kB / 476.7 MB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.922e-05/0.6875, allocations: 27.92 kB / 476.8 MB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-05/0.6875, allocations: 15.94 kB / 476.8 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002428/0.69, allocations: 1.681 MB / 478.5 MB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003898/0.6904, allocations: 203.9 kB / 478.7 MB, free: 9.855 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002087/0.6906, allocations: 31.98 kB / 478.7 MB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/0.692, allocations: 83.94 kB / 478.8 MB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000191/0.6922, allocations: 87.7 kB / 478.9 MB, free: 9.656 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.119e-05/0.6923, allocations: 43.98 kB / 478.9 MB, free: 9.613 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001332/0.6936, allocations: 0.6202 MB / 479.5 MB, free: 8.996 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6936, allocations: 0 / 479.5 MB, free: 8.996 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001337/0.695, allocations: 239.9 kB / 479.8 MB, free: 8.762 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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.004879/0.6999, allocations: 5.681 MB / 485.4 MB, free: 2.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.7019, allocations: 0.6986 MB / 486.1 MB, free: 2.137 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.7019, allocations: 0 / 486.1 MB, free: 2.137 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.703, allocations: 393.9 kB / 486.5 MB, free: 1.754 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.7046, allocations: 188 kB / 486.7 MB, free: 1.574 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005168/0.7098, allocations: 1.764 MB / 488.5 MB, free: 15.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008457/0.7107, allocations: 1.061 MB / 489.5 MB, free: 14.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.7118, allocations: 399.3 kB / 489.9 MB, free: 14.14 MB / 410.7 MB Notification: Performance of SimCode: time 1.092e-06/0.7118, allocations: 4 kB / 489.9 MB, free: 14.14 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_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourFunctions.cpp:159:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp30.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_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourFMU.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_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.o] Error 1