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.ForceCurrentBehaviour.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.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.07/1.07, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.56e-05/2.628e-05, allocations: 0 / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0576/0.05767, allocations: 25.18 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2341/0.2918, allocations: 42.35 MB / 215.7 MB, free: 4.402 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.2921, allocations: 71.06 kB / 215.8 MB, free: 4.395 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0816/0.3737, allocations: 19.92 MB / 235.7 MB, free: 11.57 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3738, allocations: 4.156 kB / 235.7 MB, free: 11.56 MB / 186.7 MB Notification: Performance of Transformations before backend: time 9.218e-05/0.3739, allocations: 27.94 kB / 235.8 MB, free: 11.54 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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.00443/0.3783, allocations: 1.185 MB / 237 MB, free: 10.37 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.3784, allocations: 16.03 kB / 237 MB, free: 10.36 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005824/0.379, allocations: 122.5 kB / 237.1 MB, free: 10.23 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/0.3808, allocations: 0.6178 MB / 237.7 MB, free: 9.73 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001972/0.381, allocations: 49.56 kB / 237.8 MB, free: 9.684 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002289/0.3812, allocations: 52 kB / 237.8 MB, free: 9.633 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002432/0.3837, allocations: 0.7403 MB / 238.5 MB, free: 9.184 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002417/0.3861, allocations: 0.8373 MB / 239.4 MB, free: 8.59 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.208e-05/0.3863, allocations: 3.984 kB / 239.4 MB, free: 8.586 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001213/0.3864, allocations: 4 kB / 239.4 MB, free: 8.582 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.482e-05/0.3864, allocations: 24 kB / 239.4 MB, free: 8.559 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009919/0.3964, allocations: 3.665 MB / 243.1 MB, free: 5.512 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003471/0.3999, allocations: 0.8297 MB / 243.9 MB, free: 4.664 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001169/0.4011, allocations: 386.1 kB / 244.3 MB, free: 4.281 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.956e-05/0.4012, allocations: 8.234 kB / 244.3 MB, free: 4.273 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.927e-05/0.4013, allocations: 46.8 kB / 244.3 MB, free: 4.219 MB / 186.7 MB Notification: Performance of pre-optimization done (n=65): time 3.306e-06/0.4013, allocations: 0 / 244.3 MB, free: 4.219 MB / 186.7 MB Notification: Performance of matching and sorting (n=83): time 0.005579/0.4069, allocations: 1.59 MB / 245.9 MB, free: 2.625 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.784e-05/0.407, allocations: 85.55 kB / 246 MB, free: 2.523 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00136/0.4084, allocations: 0.6128 MB / 246.6 MB, free: 1.902 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001669/0.4085, allocations: 25.7 kB / 246.7 MB, free: 1.871 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004902/0.4091, allocations: 0.517 MB / 247.2 MB, free: 1.348 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003695/0.4094, allocations: 271.2 kB / 247.4 MB, free: 1.082 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.061e-05/0.4095, allocations: 0 / 247.4 MB, free: 1.082 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.4097, allocations: 350.8 kB / 247.8 MB, free: 0.7305 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009486/0.4107, allocations: 326.5 kB / 248.1 MB, free: 424 kB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.4118, allocations: 460.7 kB / 248.5 MB, free: 15.91 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009752/0.4127, allocations: 357.8 kB / 248.9 MB, free: 15.56 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.4128, allocations: 0 / 248.9 MB, free: 15.56 MB / 202.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002418/0.4152, allocations: 0.8577 MB / 249.8 MB, free: 14.7 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.473e-05/0.4153, allocations: 15.19 kB / 249.8 MB, free: 14.68 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/0.4153, allocations: 4 kB / 249.8 MB, free: 14.68 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.414e-05/0.4153, allocations: 8 kB / 249.8 MB, free: 14.67 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002862/0.4182, allocations: 347.5 kB / 250.1 MB, free: 14.33 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.989e-05/0.4183, allocations: 11.94 kB / 250.1 MB, free: 14.32 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/0.4201, allocations: 95.91 kB / 250.2 MB, free: 14.23 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/0.4203, allocations: 43.98 kB / 250.3 MB, free: 14.18 MB / 202.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.0002991/0.4206, allocations: 126.8 kB / 250.4 MB, free: 14.05 MB / 202.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002199/0.4228, allocations: 0.7413 MB / 251.1 MB, free: 13.3 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002708/0.4231, allocations: 86.97 kB / 251.2 MB, free: 13.22 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.4244, allocations: 460.9 kB / 251.7 MB, free: 12.76 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-05/0.4245, allocations: 8 kB / 251.7 MB, free: 12.75 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.4245, allocations: 0 / 251.7 MB, free: 12.75 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.4245, allocations: 3.984 kB / 251.7 MB, free: 12.75 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007275/0.4318, allocations: 2.68 MB / 254.4 MB, free: 9.914 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-05/0.4319, allocations: 12 kB / 254.4 MB, free: 9.902 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002013/0.4339, allocations: 263.9 kB / 254.6 MB, free: 9.645 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.352e-05/0.434, allocations: 16 kB / 254.6 MB, free: 9.629 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.4341, allocations: 12 kB / 254.7 MB, free: 9.617 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.988e-05/0.4342, allocations: 27.92 kB / 254.7 MB, free: 9.59 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.847e-05/0.4342, allocations: 11.94 kB / 254.7 MB, free: 9.578 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003038/0.4373, allocations: 1.675 MB / 256.4 MB, free: 7.5 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004972/0.4378, allocations: 184 kB / 256.6 MB, free: 7.301 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000235/0.438, allocations: 12 kB / 256.6 MB, free: 7.289 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/0.4394, allocations: 67.94 kB / 256.6 MB, free: 7.223 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002392/0.4397, allocations: 87.7 kB / 256.7 MB, free: 7.137 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.4398, allocations: 39.98 kB / 256.8 MB, free: 7.098 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.001022/0.4409, allocations: 471.2 kB / 257.2 MB, free: 6.641 MB / 202.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.4409, allocations: 0 / 257.2 MB, free: 6.641 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.001608/0.4425, allocations: 192 kB / 257.4 MB, free: 6.453 MB / 202.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.004303/0.4468, allocations: 5.124 MB / 262.5 MB, free: 1.023 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.002043/0.4489, allocations: 0.7031 MB / 263.2 MB, free: 328 kB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 1.438e-05/0.449, allocations: 4 kB / 263.2 MB, free: 324 kB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.4502, allocations: 385.6 kB / 263.6 MB, free: 15.94 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/0.4521, allocations: 159.7 kB / 263.8 MB, free: 15.79 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005692/0.4579, allocations: 1.598 MB / 265.4 MB, free: 14.01 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009287/0.4589, allocations: 1.045 MB / 266.4 MB, free: 12.94 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/0.46, allocations: 387.3 kB / 266.8 MB, free: 12.56 MB / 218.7 MB Notification: Performance of SimCode: time 1.312e-06/0.46, allocations: 0 / 266.8 MB, free: 12.56 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=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_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/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_ForceCurrentBehaviour.so OMCppModelica_3_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.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_ForceCurrentBehaviourCalcHelperMain.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.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_CombiTable1Ds$comparisonWithFEA_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