Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) 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.073/1.073, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.449e-05/2.467e-05, allocations: 0 / 154.4 MB, free: 13.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1719, allocations: 25.16 MB / 179.5 MB, free: 0.6953 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07322/0.2452, allocations: 41.56 MB / 221.1 MB, free: 7.414 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/0.2456, allocations: 79.95 kB / 221.2 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06398/0.3096, allocations: 14.14 MB / 235.3 MB, free: 9.152 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3096, allocations: 0 / 235.3 MB, free: 9.152 MB / 202.7 MB Notification: Performance of Transformations before backend: time 7.051e-05/0.3097, allocations: 16 kB / 235.3 MB, free: 9.137 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.003096/0.3128, allocations: 0.939 MB / 236.3 MB, free: 8.152 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.3129, allocations: 12.03 kB / 236.3 MB, free: 8.141 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000324/0.3132, allocations: 106.5 kB / 236.4 MB, free: 8.027 MB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002768/0.3135, allocations: 90.88 kB / 236.5 MB, free: 7.938 MB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/0.3149, allocations: 0.52 MB / 237 MB, free: 7.379 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.3152, allocations: 49.31 kB / 237 MB, free: 7.332 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002307/0.3155, allocations: 59.95 kB / 237.1 MB, free: 7.273 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002081/0.3175, allocations: 0.7261 MB / 237.8 MB, free: 6.531 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.475e-05/0.3176, allocations: 7.938 kB / 237.8 MB, free: 6.523 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.3178, allocations: 31.98 kB / 237.9 MB, free: 6.492 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.561e-05/0.3178, allocations: 16 kB / 237.9 MB, free: 6.477 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001934/0.3197, allocations: 0.5987 MB / 238.5 MB, free: 5.879 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007686/0.3275, allocations: 2.733 MB / 241.2 MB, free: 3 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001525/0.329, allocations: 0.5563 MB / 241.8 MB, free: 2.438 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.3303, allocations: 390.3 kB / 242.1 MB, free: 2.051 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.982e-05/0.3304, allocations: 8.438 kB / 242.1 MB, free: 2.043 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.3304, allocations: 39 kB / 242.2 MB, free: 1.996 MB / 202.7 MB Notification: Performance of pre-optimization done (n=49): time 3.346e-06/0.3304, allocations: 0 / 242.2 MB, free: 1.996 MB / 202.7 MB Notification: Performance of matching and sorting (n=65): time 0.007997/0.3384, allocations: 1.922 MB / 244.1 MB, free: 80 kB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/0.3386, allocations: 63.97 kB / 244.2 MB, free: 4 kB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1496/0.4882, allocations: 0.6392 MB / 244.8 MB, free: 49.34 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001774/0.4885, allocations: 36.28 kB / 244.8 MB, free: 49.31 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003309/0.4888, allocations: 399.5 kB / 245.2 MB, free: 49.16 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002996/0.4891, allocations: 217.9 kB / 245.4 MB, free: 49.07 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.016e-05/0.4892, allocations: 14.16 kB / 245.5 MB, free: 49.07 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.4893, allocations: 341.5 kB / 245.8 MB, free: 48.76 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.4904, allocations: 315.9 kB / 246.1 MB, free: 48.75 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009419/0.4914, allocations: 418 kB / 246.5 MB, free: 48.67 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008933/0.4923, allocations: 355.2 kB / 246.9 MB, free: 48.66 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.4923, allocations: 3.906 kB / 246.9 MB, free: 48.66 MB / 202.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001983/0.4943, allocations: 0.8319 MB / 247.7 MB, free: 48.6 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.973e-05/0.4944, allocations: 8.781 kB / 247.7 MB, free: 48.6 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.4944, allocations: 0 / 247.7 MB, free: 48.6 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.303e-05/0.4944, allocations: 9.094 kB / 247.7 MB, free: 48.6 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001685/0.4961, allocations: 198.5 kB / 247.9 MB, free: 48.6 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.051e-05/0.4962, allocations: 3.812 kB / 247.9 MB, free: 48.6 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001164/0.4974, allocations: 66 kB / 248 MB, free: 48.6 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/0.4975, allocations: 40.67 kB / 248 MB, free: 48.6 MB / 202.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.0002157/0.4978, allocations: 150 kB / 248.2 MB, free: 48.5 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001925/0.498, allocations: 80.59 kB / 248.2 MB, free: 48.45 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002194/0.5002, allocations: 0.9016 MB / 249.1 MB, free: 48.4 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.5003, allocations: 7.844 kB / 249.1 MB, free: 48.4 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.5003, allocations: 4.875 kB / 249.2 MB, free: 48.4 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.5003, allocations: 7.469 kB / 249.2 MB, free: 48.39 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004742/0.505, allocations: 2.187 MB / 251.3 MB, free: 47.8 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.5051, allocations: 5.562 kB / 251.4 MB, free: 47.8 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/0.5063, allocations: 154.6 kB / 251.5 MB, free: 47.8 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-05/0.5063, allocations: 3.469 kB / 251.5 MB, free: 47.8 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-05/0.5064, allocations: 19.66 kB / 251.5 MB, free: 47.79 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.2e-05/0.5065, allocations: 12.39 kB / 251.5 MB, free: 47.79 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.5065, allocations: 3.094 kB / 251.5 MB, free: 47.79 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/0.5086, allocations: 1.153 MB / 252.7 MB, free: 47.12 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005421/0.5092, allocations: 241 kB / 252.9 MB, free: 46.94 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001547/0.5093, allocations: 11.94 kB / 252.9 MB, free: 46.93 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009001/0.5103, allocations: 60.22 kB / 253 MB, free: 46.93 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.5104, allocations: 52.16 kB / 253.1 MB, free: 46.91 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.253e-05/0.5105, allocations: 34.33 kB / 253.1 MB, free: 46.91 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0009493/0.5115, allocations: 0.5141 MB / 253.6 MB, free: 46.69 MB / 202.7 MB Notification: Performance of sort global known variables: time 7.82e-07/0.5115, allocations: 3.906 kB / 253.6 MB, free: 46.69 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0009424/0.5125, allocations: 151.2 kB / 253.7 MB, free: 46.67 MB / 202.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.002332/0.5148, allocations: 2.373 MB / 256.1 MB, free: 44.76 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.5165, allocations: 0.64 MB / 256.8 MB, free: 44.56 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.5166, allocations: 0 / 256.8 MB, free: 44.56 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007454/0.5173, allocations: 339.4 kB / 257.1 MB, free: 44.45 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.5185, allocations: 114.2 kB / 257.2 MB, free: 44.41 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/0.5222, allocations: 1.31 MB / 258.5 MB, free: 43.78 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000528/0.5228, allocations: 0.977 MB / 259.5 MB, free: 43.07 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007562/0.5235, allocations: 294 kB / 259.8 MB, free: 42.85 MB / 202.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5236, allocations: 3.281 kB / 259.8 MB, free: 42.85 MB / 202.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_D_CombiTable1Ds24comparisonWithFEA_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_D_CombiTable1Ds24comparisonWithFEA_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