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/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.042/1.042, allocations: 111.2 MB / 119.1 MB, free: 11.19 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.091e-05/3.081e-05, allocations: 4 kB / 148.2 MB, free: 6.113 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05814/0.05822, allocations: 25.17 MB / 173.4 MB, free: 12.9 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2271/0.2854, allocations: 40.9 MB / 214.3 MB, free: 4.598 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.2858, allocations: 71.89 kB / 214.4 MB, free: 4.598 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06227/0.348, allocations: 14.01 MB / 228.4 MB, free: 15.46 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.3481, allocations: 0 / 228.4 MB, free: 15.46 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001116/0.3483, allocations: 15.38 kB / 228.4 MB, free: 15.46 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.004653/0.353, allocations: 0.9471 MB / 229.3 MB, free: 14.79 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.572e-05/0.3531, allocations: 7.844 kB / 229.3 MB, free: 14.79 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006209/0.3537, allocations: 93.56 kB / 229.4 MB, free: 14.74 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/0.3559, allocations: 0.514 MB / 229.9 MB, free: 14.41 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002692/0.3562, allocations: 28.56 kB / 230 MB, free: 14.41 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003311/0.3566, allocations: 37.33 kB / 230 MB, free: 14.4 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002858/0.3595, allocations: 0.5703 MB / 230.6 MB, free: 14.35 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003036/0.3626, allocations: 0.6474 MB / 231.2 MB, free: 14.17 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.78e-05/0.3627, allocations: 3.938 kB / 231.2 MB, free: 14.17 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/0.3629, allocations: 0 / 231.2 MB, free: 14.17 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.582e-05/0.3629, allocations: 15.41 kB / 231.2 MB, free: 14.17 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01131/0.3743, allocations: 2.62 MB / 233.9 MB, free: 12.62 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002226/0.3766, allocations: 0.521 MB / 234.4 MB, free: 12.27 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001626/0.3783, allocations: 366.1 kB / 234.7 MB, free: 12 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.3785, allocations: 11.92 kB / 234.8 MB, free: 12 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.893e-05/0.3785, allocations: 38.75 kB / 234.8 MB, free: 11.95 MB / 186.7 MB Notification: Performance of pre-optimization done (n=49): time 6.432e-06/0.3786, allocations: 0 / 234.8 MB, free: 11.95 MB / 186.7 MB Notification: Performance of matching and sorting (n=65): time 0.007847/0.3864, allocations: 1.51 MB / 236.3 MB, free: 10.73 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.3866, allocations: 59.97 kB / 236.4 MB, free: 10.66 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001788/0.3884, allocations: 0.5636 MB / 236.9 MB, free: 10.23 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002265/0.3887, allocations: 25.7 kB / 237 MB, free: 10.2 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004915/0.3892, allocations: 417.5 kB / 237.4 MB, free: 9.891 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004766/0.3897, allocations: 211.3 kB / 237.6 MB, free: 9.703 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.3898, allocations: 0 / 237.6 MB, free: 9.703 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.3901, allocations: 349.5 kB / 237.9 MB, free: 9.367 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.3914, allocations: 302.7 kB / 238.2 MB, free: 9.172 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001485/0.3929, allocations: 390.1 kB / 238.6 MB, free: 8.871 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001475/0.3945, allocations: 337.9 kB / 238.9 MB, free: 8.645 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.565e-05/0.3946, allocations: 0 / 238.9 MB, free: 8.645 MB / 186.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003467/0.3981, allocations: 0.78 MB / 239.7 MB, free: 8.051 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.529e-05/0.3982, allocations: 11.12 kB / 239.7 MB, free: 8.043 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.3982, allocations: 0 / 239.7 MB, free: 8.043 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.51e-05/0.3983, allocations: 8 kB / 239.7 MB, free: 8.035 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002801/0.4011, allocations: 207.4 kB / 239.9 MB, free: 7.84 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.437e-05/0.4012, allocations: 19.86 kB / 239.9 MB, free: 7.82 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001844/0.4031, allocations: 47.95 kB / 240 MB, free: 7.773 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003198/0.4035, allocations: 32.88 kB / 240 MB, free: 7.746 MB / 186.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.0003213/0.4038, allocations: 114.9 kB / 240.1 MB, free: 7.629 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003405/0.4072, allocations: 0.8144 MB / 240.9 MB, free: 6.98 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004507/0.4077, allocations: 71.16 kB / 241 MB, free: 6.91 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003586/0.4114, allocations: 0.8495 MB / 241.9 MB, free: 6.152 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-05/0.4115, allocations: 7.984 kB / 241.9 MB, free: 6.145 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.4115, allocations: 4 kB / 241.9 MB, free: 6.141 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.33e-05/0.4115, allocations: 0 / 241.9 MB, free: 6.141 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00838/0.4199, allocations: 2.063 MB / 243.9 MB, free: 3.984 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.866e-05/0.42, allocations: 4 kB / 243.9 MB, free: 3.98 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001931/0.422, allocations: 147.8 kB / 244.1 MB, free: 3.836 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.812e-05/0.4221, allocations: 4 kB / 244.1 MB, free: 3.832 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001759/0.4223, allocations: 11.98 kB / 244.1 MB, free: 3.82 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.922e-05/0.4223, allocations: 12.06 kB / 244.1 MB, free: 3.809 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/0.4223, allocations: 0 / 244.1 MB, free: 3.809 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003556/0.4259, allocations: 1.11 MB / 245.2 MB, free: 2.574 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009451/0.4269, allocations: 232 kB / 245.4 MB, free: 2.328 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001746/0.4271, allocations: 8 kB / 245.5 MB, free: 2.32 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009065/0.428, allocations: 47.95 kB / 245.5 MB, free: 2.273 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000163/0.4282, allocations: 52.27 kB / 245.6 MB, free: 2.223 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.792e-05/0.4283, allocations: 32 kB / 245.6 MB, free: 2.191 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0008922/0.4292, allocations: 451.1 kB / 246 MB, free: 1.754 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.4293, allocations: 0 / 246 MB, free: 1.754 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.001016/0.4303, allocations: 128 kB / 246.1 MB, free: 1.629 MB / 186.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.002676/0.433, allocations: 2.325 MB / 248.5 MB, free: 15.21 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.4346, allocations: 0.6029 MB / 249.1 MB, free: 14.61 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/0.4346, allocations: 0 / 249.1 MB, free: 14.61 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000801/0.4354, allocations: 325.7 kB / 249.4 MB, free: 14.3 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.4367, allocations: 106.1 kB / 249.5 MB, free: 14.2 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004081/0.4408, allocations: 1.249 MB / 250.7 MB, free: 12.87 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007497/0.4416, allocations: 0.9783 MB / 251.7 MB, free: 11.87 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000831/0.4424, allocations: 291.3 kB / 252 MB, free: 11.58 MB / 202.7 MB Notification: Performance of SimCode: time 1.513e-06/0.4424, allocations: 0 / 252 MB, free: 11.58 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=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -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/OMCompiler/build/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/OMCompiler/build/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/OMCompiler/build/lib/omlibrary/Modelica 3.1/Magnetic" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/" "-L/var/lib/hudson/.openmodelica/binaries/Modelica" -Wl,-rpath="/var/lib/hudson/.openmodelica/binaries/Modelica" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_CombiTable1Ds$comparisonWithFEA_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_CombiTable1Ds$comparisonWithFEA_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