Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.055/1.055, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.643e-05/3.661e-05, allocations: 8 kB / 151.5 MB, free: 15.53 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1684/0.1685, allocations: 25.16 MB / 176.7 MB, free: 15.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07385/0.2424, allocations: 41.57 MB / 218.2 MB, free: 7.773 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.2427, allocations: 71.95 kB / 218.3 MB, free: 7.703 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06259/0.3053, allocations: 14.13 MB / 232.4 MB, free: 9.512 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3054, allocations: 0 / 232.4 MB, free: 9.512 MB / 202.7 MB Notification: Performance of Transformations before backend: time 5.636e-05/0.3054, allocations: 16 kB / 232.4 MB, free: 9.496 MB / 202.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002986/0.3084, allocations: 0.944 MB / 233.4 MB, free: 8.504 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.741e-05/0.3085, allocations: 8.031 kB / 233.4 MB, free: 8.496 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003302/0.3089, allocations: 102.5 kB / 233.5 MB, free: 8.387 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003021/0.3092, allocations: 94.88 kB / 233.6 MB, free: 8.293 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/0.3106, allocations: 0.5083 MB / 234.1 MB, free: 7.746 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.3108, allocations: 53.3 kB / 234.1 MB, free: 7.695 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001849/0.311, allocations: 75.88 kB / 234.2 MB, free: 7.621 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.313, allocations: 0.7119 MB / 234.9 MB, free: 6.891 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/0.3131, allocations: 0 / 234.9 MB, free: 6.891 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.3132, allocations: 28 kB / 235 MB, free: 6.863 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.165e-05/0.3133, allocations: 16 kB / 235 MB, free: 6.848 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001785/0.315, allocations: 0.5961 MB / 235.6 MB, free: 6.25 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007062/0.3221, allocations: 2.741 MB / 238.3 MB, free: 3.371 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.3236, allocations: 0.5426 MB / 238.9 MB, free: 2.82 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.3248, allocations: 386.3 kB / 239.2 MB, free: 2.438 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.731e-05/0.3249, allocations: 8.438 kB / 239.2 MB, free: 2.43 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.3249, allocations: 35 kB / 239.3 MB, free: 2.387 MB / 202.7 MB Notification: Performance of pre-optimization done (n=49): time 3.286e-06/0.3249, allocations: 0 / 239.3 MB, free: 2.387 MB / 202.7 MB Notification: Performance of matching and sorting (n=65): time 0.007777/0.3327, allocations: 1.93 MB / 241.2 MB, free: 472 kB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/0.3328, allocations: 59.97 kB / 241.3 MB, free: 400 kB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.3342, allocations: 0.6404 MB / 241.9 MB, free: 15.74 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.3344, allocations: 37.7 kB / 241.9 MB, free: 15.7 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003526/0.3348, allocations: 406.5 kB / 242.3 MB, free: 15.29 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000272/0.3351, allocations: 216.8 kB / 242.6 MB, free: 15.08 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.906e-05/0.3351, allocations: 16 kB / 242.6 MB, free: 15.07 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3353, allocations: 338.8 kB / 242.9 MB, free: 14.73 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008706/0.3362, allocations: 317.5 kB / 243.2 MB, free: 14.42 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009389/0.3371, allocations: 411.5 kB / 243.6 MB, free: 13.98 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009466/0.3381, allocations: 353.9 kB / 244 MB, free: 13.64 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.3381, allocations: 0 / 244 MB, free: 13.64 MB / 218.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002202/0.3403, allocations: 0.8318 MB / 244.8 MB, free: 12.8 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.3404, allocations: 4 kB / 244.8 MB, free: 12.8 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.3404, allocations: 4 kB / 244.8 MB, free: 12.79 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.703e-05/0.3405, allocations: 4 kB / 244.8 MB, free: 12.79 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/0.3423, allocations: 204 kB / 245 MB, free: 12.59 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.399e-05/0.3423, allocations: 8 kB / 245 MB, free: 12.58 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/0.3436, allocations: 59.95 kB / 245.1 MB, free: 12.52 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/0.3437, allocations: 39.92 kB / 245.1 MB, free: 12.48 MB / 218.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 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 87 * 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.0002386/0.344, allocations: 144.8 kB / 245.2 MB, free: 12.34 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/0.3442, allocations: 82.97 kB / 245.3 MB, free: 12.25 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002429/0.3466, allocations: 0.9089 MB / 246.2 MB, free: 11.33 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-05/0.3467, allocations: 15.97 kB / 246.3 MB, free: 11.31 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.3467, allocations: 4 kB / 246.3 MB, free: 11.31 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.3468, allocations: 0 / 246.3 MB, free: 11.31 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005767/0.3525, allocations: 2.191 MB / 248.4 MB, free: 8.992 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/0.3526, allocations: 4 kB / 248.4 MB, free: 8.988 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.3539, allocations: 143.8 kB / 248.6 MB, free: 8.848 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.737e-05/0.3539, allocations: 4 kB / 248.6 MB, free: 8.844 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.98e-05/0.354, allocations: 20.19 kB / 248.6 MB, free: 8.824 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-05/0.354, allocations: 15.92 kB / 248.6 MB, free: 8.809 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.354, allocations: 4 kB / 248.6 MB, free: 8.805 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.3564, allocations: 1.149 MB / 249.8 MB, free: 7.535 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005898/0.357, allocations: 240 kB / 250 MB, free: 7.281 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001685/0.3572, allocations: 16 kB / 250 MB, free: 7.266 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009997/0.3582, allocations: 59.95 kB / 250.1 MB, free: 7.207 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.3584, allocations: 56.27 kB / 250.1 MB, free: 7.152 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.359e-05/0.3585, allocations: 31.94 kB / 250.2 MB, free: 7.121 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001098/0.3596, allocations: 0.5148 MB / 250.7 MB, free: 6.613 MB / 218.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3597, allocations: 0 / 250.7 MB, free: 6.613 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001042/0.3607, allocations: 160 kB / 250.8 MB, free: 6.457 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 3 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact,comparisonWithFEA.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.002862/0.3636, allocations: 2.366 MB / 253.2 MB, free: 4 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.3654, allocations: 0.6225 MB / 253.8 MB, free: 3.383 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/0.3654, allocations: 0 / 253.8 MB, free: 3.383 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008524/0.3663, allocations: 330.5 kB / 254.2 MB, free: 3.062 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.3676, allocations: 134.9 kB / 254.3 MB, free: 2.93 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004138/0.3717, allocations: 1.305 MB / 255.6 MB, free: 1.539 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000748/0.3725, allocations: 0.9709 MB / 256.6 MB, free: 0.543 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008096/0.3734, allocations: 295.3 kB / 256.9 MB, free: 264 kB / 218.7 MB Notification: Performance of SimCode: time 1.233e-06/0.3734, allocations: 0 / 256.9 MB, free: 264 kB / 218.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"." -DUSE_LOGGER -c -o OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.o OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.cpp In file included from OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourFMU.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 generated. clang++ -shared -o Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.so OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.o -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp" -Wl,--no-undefined -lOMCppSystem_static -lOMCppMath_static -lOMCppModelicaUtilities_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -L"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Magnetic" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/" "-L/var/lib/hudson/.openmodelica/binaries/Modelica" -Wl,-rpath="/var/lib/hudson/.openmodelica/binaries/Modelica" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library" -lModelicaExternalC -lOMCppModelicaUtilities_static -lOMCppDgesv_static OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.o: In function `Functions::Modelica_Blocks_Tables__omcQuot_436F6D62695461626C6531447324636F6D70617269736F6E57697468464541_tableInit(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, BaseArray&, int, int&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour/./OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourFunctions.cpp:47: undefined reference to `ModelicaTables_CombiTable1D_init' OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.o: In function `Functions::Modelica_Blocks_Tables__omcQuot_436F6D62695461626C6531447324636F6D70617269736F6E57697468464541_tableIpo(int, int, double, double&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour/./OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourFunctions.cpp:74: undefined reference to `ModelicaTables_CombiTable1D_interpolate' clang: error: linker command failed with exit code 1 (use -v to see invocation) Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_FMU.makefile:93: recipe for target 'Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu' failed make: *** [Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu] Error 1