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 0.9887/0.9887, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002609/0.0002608, allocations: 8 kB / 158.4 MB, free: 15.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05178/0.05209, allocations: 25.17 MB / 183.6 MB, free: 5.875 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2124/0.2645, allocations: 41.66 MB / 225.3 MB, free: 3.684 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.2648, allocations: 67.16 kB / 225.3 MB, free: 3.676 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06082/0.3257, allocations: 14.15 MB / 239.5 MB, free: 8.406 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3257, allocations: 4 kB / 239.5 MB, free: 8.402 MB / 186.7 MB Notification: Performance of Transformations before backend: time 6.031e-05/0.3258, allocations: 16 kB / 239.5 MB, free: 8.387 MB / 186.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.003367/0.3292, allocations: 1.05 MB / 240.5 MB, free: 7.34 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.3292, allocations: 11.97 kB / 240.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000315/0.3296, allocations: 100.5 kB / 240.7 MB, free: 7.258 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002889/0.3299, allocations: 102.8 kB / 240.8 MB, free: 7.156 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.3311, allocations: 0.5027 MB / 241.3 MB, free: 6.699 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.3313, allocations: 56.55 kB / 241.3 MB, free: 6.664 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001665/0.3315, allocations: 63.2 kB / 241.4 MB, free: 6.621 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002357/0.3339, allocations: 0.7897 MB / 242.2 MB, free: 6.039 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.409e-05/0.3339, allocations: 3.906 kB / 242.2 MB, free: 6.035 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.3341, allocations: 27.31 kB / 242.2 MB, free: 6.027 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.044e-05/0.3341, allocations: 12 kB / 242.2 MB, free: 6.016 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002617/0.3367, allocations: 0.7223 MB / 242.9 MB, free: 5.496 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006996/0.3438, allocations: 2.744 MB / 245.7 MB, free: 3.301 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.3457, allocations: 0.5964 MB / 246.3 MB, free: 2.879 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.18e-05/0.3458, allocations: 4.438 kB / 246.3 MB, free: 2.875 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.3458, allocations: 46.73 kB / 246.3 MB, free: 2.824 MB / 186.7 MB Notification: Performance of pre-optimization done (n=49): time 3.417e-06/0.3459, allocations: 0 / 246.3 MB, free: 2.824 MB / 186.7 MB Notification: Performance of matching and sorting (n=64): time 0.01135/0.3572, allocations: 2.407 MB / 248.7 MB, free: 0.8438 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.279e-05/0.3573, allocations: 63.97 kB / 248.8 MB, free: 0.7695 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/0.3591, allocations: 0.6506 MB / 249.4 MB, free: 264 kB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/0.3593, allocations: 36.64 kB / 249.5 MB, free: 228 kB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004475/0.3598, allocations: 400.1 kB / 249.9 MB, free: 15.91 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003534/0.3601, allocations: 212.9 kB / 250.1 MB, free: 15.7 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.3603, allocations: 16 kB / 250.1 MB, free: 15.68 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.000197/0.3605, allocations: 338.8 kB / 250.4 MB, free: 15.34 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001857/0.3623, allocations: 397.7 kB / 250.8 MB, free: 14.95 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001999/0.3644, allocations: 494.9 kB / 251.3 MB, free: 14.44 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0021/0.3665, allocations: 415.1 kB / 251.7 MB, free: 14.03 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.3665, allocations: 4 kB / 251.7 MB, free: 14.03 MB / 202.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004744/0.3713, allocations: 0.9695 MB / 252.7 MB, free: 13.05 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.3713, allocations: 4 kB / 252.7 MB, free: 13.05 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.3714, allocations: 4 kB / 252.7 MB, free: 13.04 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.342e-05/0.3714, allocations: 8 kB / 252.7 MB, free: 13.04 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002101/0.3735, allocations: 195.8 kB / 252.9 MB, free: 12.84 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.413e-05/0.3736, allocations: 8 kB / 252.9 MB, free: 12.84 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001458/0.375, allocations: 63.95 kB / 252.9 MB, free: 12.77 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/0.3752, allocations: 39.98 kB / 253 MB, free: 12.73 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0008087/0.376, allocations: 269.6 kB / 253.3 MB, free: 12.46 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002651/0.3763, allocations: 79.06 kB / 253.3 MB, free: 12.38 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004391/0.3807, allocations: 1.041 MB / 254.4 MB, free: 11.33 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.3808, allocations: 7.984 kB / 254.4 MB, free: 11.32 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.3808, allocations: 0 / 254.4 MB, free: 11.32 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.3808, allocations: 0 / 254.4 MB, free: 11.32 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008121/0.3889, allocations: 2.294 MB / 256.7 MB, free: 8.906 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.389, allocations: 0 / 256.7 MB, free: 8.906 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001498/0.3905, allocations: 148.1 kB / 256.8 MB, free: 8.762 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-05/0.3905, allocations: 8 kB / 256.8 MB, free: 8.754 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.546e-05/0.3907, allocations: 19.98 kB / 256.8 MB, free: 8.734 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.475e-05/0.3907, allocations: 4 kB / 256.8 MB, free: 8.73 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.3907, allocations: 4 kB / 256.9 MB, free: 8.727 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004368/0.3951, allocations: 1.252 MB / 258.1 MB, free: 7.375 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007205/0.3958, allocations: 236.1 kB / 258.3 MB, free: 7.125 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002264/0.3961, allocations: 15.95 kB / 258.4 MB, free: 7.109 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/0.3973, allocations: 59.95 kB / 258.4 MB, free: 7.051 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.3975, allocations: 44.45 kB / 258.5 MB, free: 7.008 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/0.3977, allocations: 35.98 kB / 258.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.001528/0.3992, allocations: 0.5185 MB / 259 MB, free: 6.461 MB / 202.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.3992, allocations: 0 / 259 MB, free: 6.461 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001269/0.4005, allocations: 164 kB / 259.2 MB, free: 6.301 MB / 202.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 63 * 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.004733/0.4053, allocations: 2.334 MB / 261.5 MB, free: 3.887 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.003431/0.4087, allocations: 0.7772 MB / 262.3 MB, free: 3.113 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/0.4087, allocations: 4 kB / 262.3 MB, free: 3.109 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001707/0.4105, allocations: 396 kB / 262.7 MB, free: 2.723 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/0.4119, allocations: 118.8 kB / 262.8 MB, free: 2.605 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01818/0.4301, allocations: 6.598 MB / 269.4 MB, free: 11.82 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/0.4313, allocations: 0.971 MB / 270.4 MB, free: 10.83 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001066/0.4324, allocations: 295.3 kB / 270.6 MB, free: 10.54 MB / 218.7 MB Notification: Performance of SimCode: time 9.11e-07/0.4324, allocations: 0 / 270.6 MB, free: 10.54 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_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 -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 -lOMCppSystem_static -lOMCppMath_static -lOMCppFMU_static -lOMCppNewton_static -lOMCppDgesvSolver_static -lOMCppSolver_static -lOMCppExtensionUtilities_static -lOMCppModelicaUtilities_static -lOMCppDgesv_static OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.o: In function `Functions::Modelica_Blocks_Tables__omcQCombiTable1Ds_24comparisonWithFEA_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__omcQCombiTable1Ds_24comparisonWithFEA_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