Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.15/1.15, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.379e-05/2.399e-05, allocations: 0 / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1934, allocations: 25.16 MB / 176.6 MB, free: 15.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07401/0.2675, allocations: 43.03 MB / 219.7 MB, free: 6.305 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.2678, allocations: 67.91 kB / 219.7 MB, free: 6.238 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08539/0.3532, allocations: 20.1 MB / 239.8 MB, free: 2.059 MB / 202.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3532, allocations: 0 / 239.8 MB, free: 2.059 MB / 202.7 MB Notification: Performance of Transformations before backend: time 6.339e-05/0.3533, allocations: 24 kB / 239.9 MB, free: 2.035 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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.003768/0.3571, allocations: 1.203 MB / 241.1 MB, free: 0.7852 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/0.3572, allocations: 12.03 kB / 241.1 MB, free: 0.7734 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002853/0.3575, allocations: 143.9 kB / 241.2 MB, free: 0.625 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003091/0.3578, allocations: 126.5 kB / 241.4 MB, free: 0.5 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/0.3592, allocations: 0.618 MB / 242 MB, free: 15.84 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001918/0.3595, allocations: 74 kB / 242 MB, free: 15.77 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002421/0.3597, allocations: 95.98 kB / 242.1 MB, free: 15.67 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002529/0.3623, allocations: 0.9542 MB / 243.1 MB, free: 14.7 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.07e-05/0.3623, allocations: 0 / 243.1 MB, free: 14.7 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001608/0.3625, allocations: 43.94 kB / 243.1 MB, free: 14.66 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.647e-05/0.3625, allocations: 20 kB / 243.2 MB, free: 14.64 MB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002268/0.3648, allocations: 0.7851 MB / 243.9 MB, free: 13.86 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008997/0.3738, allocations: 3.851 MB / 247.8 MB, free: 9.812 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003471/0.3773, allocations: 0.8492 MB / 248.6 MB, free: 8.945 MB / 218.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.3784, allocations: 402.1 kB / 249 MB, free: 8.547 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.114e-05/0.3785, allocations: 16.22 kB / 249 MB, free: 8.531 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.116e-05/0.3785, allocations: 42.8 kB / 249.1 MB, free: 8.48 MB / 218.7 MB Notification: Performance of pre-optimization done (n=65): time 3.546e-06/0.3785, allocations: 0 / 249.1 MB, free: 8.48 MB / 218.7 MB Notification: Performance of matching and sorting (n=83): time 0.006255/0.3848, allocations: 1.833 MB / 250.9 MB, free: 6.645 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.918e-05/0.3849, allocations: 85.55 kB / 251 MB, free: 6.543 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00149/0.3864, allocations: 0.7228 MB / 251.7 MB, free: 5.812 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 8.999e-05/0.3865, allocations: 41.7 kB / 251.8 MB, free: 5.766 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004306/0.3869, allocations: 0.5054 MB / 252.3 MB, free: 5.254 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003058/0.3872, allocations: 279.9 kB / 252.5 MB, free: 4.977 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.484e-05/0.3874, allocations: 20 kB / 252.6 MB, free: 4.957 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.3875, allocations: 346.8 kB / 252.9 MB, free: 4.609 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009495/0.3885, allocations: 334 kB / 253.2 MB, free: 4.285 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001086/0.3896, allocations: 486.2 kB / 253.7 MB, free: 3.762 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001008/0.3906, allocations: 375.1 kB / 254.1 MB, free: 3.395 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.3906, allocations: 4 kB / 254.1 MB, free: 3.391 MB / 218.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002474/0.3931, allocations: 0.9275 MB / 255 MB, free: 2.453 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.3932, allocations: 4.625 kB / 255 MB, free: 2.449 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.3932, allocations: 4 kB / 255 MB, free: 2.445 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.438e-05/0.3932, allocations: 8 kB / 255 MB, free: 2.438 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0028/0.396, allocations: 356 kB / 255.4 MB, free: 2.09 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.298e-05/0.3961, allocations: 7.938 kB / 255.4 MB, free: 2.082 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.3978, allocations: 119.9 kB / 255.5 MB, free: 1.965 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.3979, allocations: 39.98 kB / 255.5 MB, free: 1.926 MB / 218.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (cActuator.armature.stopper_xMin.contact,comparisonWithFEA.tableID,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 (118): * Single equations (assignments): 118 * 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.0002609/0.3982, allocations: 160.1 kB / 255.7 MB, free: 1.766 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000238/0.3985, allocations: 94.88 kB / 255.8 MB, free: 1.672 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001308/0.3998, allocations: 493.5 kB / 256.3 MB, free: 1.184 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.3998, allocations: 11.98 kB / 256.3 MB, free: 1.172 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.3998, allocations: 4 kB / 256.3 MB, free: 1.168 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.3999, allocations: 3.984 kB / 256.3 MB, free: 1.164 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2013/0.6012, allocations: 2.866 MB / 259.1 MB, free: 56.52 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/0.6013, allocations: 9.562 kB / 259.2 MB, free: 56.52 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00199/0.6033, allocations: 259.7 kB / 259.4 MB, free: 56.52 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.033e-05/0.6033, allocations: 15 kB / 259.4 MB, free: 56.52 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.369e-05/0.6034, allocations: 31.81 kB / 259.5 MB, free: 56.52 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.282e-05/0.6035, allocations: 20.25 kB / 259.5 MB, free: 56.52 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-05/0.6035, allocations: 15.25 kB / 259.5 MB, free: 56.52 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002491/0.606, allocations: 1.721 MB / 261.2 MB, free: 55.28 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003977/0.6064, allocations: 193.3 kB / 261.4 MB, free: 55.19 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002123/0.6067, allocations: 32.47 kB / 261.4 MB, free: 55.18 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/0.6081, allocations: 83.84 kB / 261.5 MB, free: 55.18 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/0.6083, allocations: 88.78 kB / 261.6 MB, free: 55.18 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.6084, allocations: 38.45 kB / 261.6 MB, free: 55.18 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001189/0.6096, allocations: 0.5578 MB / 262.2 MB, free: 55.07 MB / 218.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.6096, allocations: 0 / 262.2 MB, free: 55.07 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.00139/0.611, allocations: 228.6 kB / 262.4 MB, free: 55.07 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 3 (comparisonWithFEA.tableID,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 (83): * Single equations (assignments): 82 * 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.003068/0.6141, allocations: 5.18 MB / 267.6 MB, free: 50.51 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.616, allocations: 0.7367 MB / 268.3 MB, free: 50.5 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/0.616, allocations: 3.906 kB / 268.3 MB, free: 50.5 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009794/0.617, allocations: 406.9 kB / 268.7 MB, free: 50.5 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/0.6188, allocations: 198.3 kB / 268.9 MB, free: 50.48 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004738/0.6235, allocations: 1.675 MB / 270.6 MB, free: 49.74 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005899/0.6242, allocations: 1.041 MB / 271.6 MB, free: 49.04 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009512/0.6251, allocations: 385.9 kB / 272 MB, free: 49.04 MB / 218.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6251, allocations: 3.531 kB / 272 MB, free: 49.04 MB / 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_ForceCurrentBehaviourCalcHelperMain.o OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.cpp In file included from OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_1_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 generated. clang++ -shared -o Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.so OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.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_ForceCurrentBehaviourCalcHelperMain.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.ForceCurrentBehaviour/./OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourFunctions.cpp:47: undefined reference to `ModelicaTables_CombiTable1D_init' OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.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.ForceCurrentBehaviour/./OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourFunctions.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_ForceCurrentBehaviour_FMU.makefile:93: recipe for target 'Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu' failed make: *** [Modelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu] Error 1