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/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.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.131/1.131, allocations: 111.2 MB / 124.2 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.712e-05/2.722e-05, allocations: 0 / 154.4 MB, free: 13.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1707, allocations: 25.16 MB / 179.5 MB, free: 0.8281 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07796/0.2488, allocations: 43.02 MB / 222.6 MB, free: 6.07 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/0.2491, allocations: 71.97 kB / 222.6 MB, free: 6 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1341/0.3833, allocations: 20.11 MB / 242.7 MB, free: 1.82 MB / 202.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3833, allocations: 0 / 242.7 MB, free: 1.82 MB / 202.7 MB Notification: Performance of Transformations before backend: time 9.114e-05/0.3834, allocations: 24 kB / 242.8 MB, free: 1.797 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.004601/0.388, allocations: 1.198 MB / 244 MB, free: 0.5547 MB / 202.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.553e-05/0.3881, allocations: 8.031 kB / 244 MB, free: 0.5469 MB / 202.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004752/0.3886, allocations: 147.8 kB / 244.1 MB, free: 404 kB / 202.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004017/0.389, allocations: 130.5 kB / 244.2 MB, free: 272 kB / 202.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1717/0.5608, allocations: 0.607 MB / 244.8 MB, free: 44.8 MB / 202.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002562/0.5611, allocations: 75.59 kB / 244.9 MB, free: 44.79 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003513/0.5615, allocations: 95.5 kB / 245 MB, free: 44.79 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003153/0.5646, allocations: 0.9661 MB / 246 MB, free: 44.72 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.376e-05/0.5647, allocations: 0 / 246 MB, free: 44.72 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/0.5649, allocations: 43.44 kB / 246 MB, free: 44.72 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.5649, allocations: 19.22 kB / 246 MB, free: 44.72 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002299/0.5672, allocations: 0.801 MB / 246.8 MB, free: 44.71 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008619/0.5759, allocations: 3.835 MB / 250.7 MB, free: 43.51 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003265/0.5792, allocations: 0.8621 MB / 251.5 MB, free: 43.46 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.5803, allocations: 407.6 kB / 251.9 MB, free: 43.44 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.997e-05/0.5804, allocations: 13.44 kB / 251.9 MB, free: 43.44 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/0.5804, allocations: 42.2 kB / 252 MB, free: 43.4 MB / 202.7 MB Notification: Performance of pre-optimization done (n=65): time 4.108e-06/0.5804, allocations: 0 / 252 MB, free: 43.4 MB / 202.7 MB Notification: Performance of matching and sorting (n=83): time 0.005999/0.5864, allocations: 1.841 MB / 253.8 MB, free: 42.78 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.5866, allocations: 90.22 kB / 253.9 MB, free: 42.68 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001388/0.588, allocations: 0.7217 MB / 254.6 MB, free: 42.36 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001438/0.5881, allocations: 37.52 kB / 254.7 MB, free: 42.32 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000306/0.5884, allocations: 0.5068 MB / 255.2 MB, free: 41.88 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002635/0.5887, allocations: 280.2 kB / 255.5 MB, free: 41.66 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.479e-05/0.5888, allocations: 14.81 kB / 255.5 MB, free: 41.65 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 8.882e-05/0.5889, allocations: 346.5 kB / 255.8 MB, free: 41.32 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009118/0.5898, allocations: 339.5 kB / 256.1 MB, free: 41.19 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009546/0.5908, allocations: 488.8 kB / 256.6 MB, free: 40.91 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009224/0.5918, allocations: 373.5 kB / 257 MB, free: 40.77 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.5918, allocations: 3.812 kB / 257 MB, free: 40.77 MB / 202.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002346/0.5941, allocations: 0.9396 MB / 257.9 MB, free: 40.41 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/0.5942, allocations: 9.094 kB / 257.9 MB, free: 40.41 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.5942, allocations: 3.562 kB / 257.9 MB, free: 40.41 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.04e-05/0.5943, allocations: 10.73 kB / 257.9 MB, free: 40.41 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002649/0.5969, allocations: 348 kB / 258.3 MB, free: 40.41 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.559e-05/0.597, allocations: 10.06 kB / 258.3 MB, free: 40.41 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001935/0.5989, allocations: 122 kB / 258.4 MB, free: 40.39 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/0.5991, allocations: 40.48 kB / 258.5 MB, free: 40.38 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.0002599/0.5994, allocations: 155.9 kB / 258.6 MB, free: 40.25 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002538/0.5997, allocations: 92.53 kB / 258.7 MB, free: 40.2 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.6009, allocations: 498.2 kB / 259.2 MB, free: 40 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.601, allocations: 6.688 kB / 259.2 MB, free: 40 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.601, allocations: 0 / 259.2 MB, free: 40 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.601, allocations: 3.891 kB / 259.2 MB, free: 40 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006282/0.6073, allocations: 2.896 MB / 262.1 MB, free: 38.36 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/0.6074, allocations: 9.906 kB / 262.1 MB, free: 38.36 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/0.6092, allocations: 266.5 kB / 262.4 MB, free: 38.34 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.43e-05/0.6093, allocations: 19.56 kB / 262.4 MB, free: 38.33 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.392e-05/0.6094, allocations: 30.97 kB / 262.4 MB, free: 38.32 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.949e-05/0.6094, allocations: 24.44 kB / 262.4 MB, free: 38.31 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/0.6094, allocations: 21.05 kB / 262.5 MB, free: 38.31 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00223/0.6117, allocations: 1.715 MB / 264.2 MB, free: 36.7 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003256/0.612, allocations: 192.6 kB / 264.4 MB, free: 36.54 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001963/0.6122, allocations: 34.27 kB / 264.4 MB, free: 36.52 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001309/0.6136, allocations: 82.95 kB / 264.5 MB, free: 36.5 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.6138, allocations: 89.38 kB / 264.6 MB, free: 36.47 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.955e-05/0.6139, allocations: 41 kB / 264.6 MB, free: 36.46 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.001052/0.615, allocations: 0.5579 MB / 265.2 MB, free: 36.01 MB / 202.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.615, allocations: 0 / 265.2 MB, free: 36.01 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0013/0.6163, allocations: 219.4 kB / 265.4 MB, free: 35.8 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.003122/0.6194, allocations: 5.188 MB / 270.6 MB, free: 30.39 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.6214, allocations: 0.7508 MB / 271.3 MB, free: 29.66 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/0.6214, allocations: 0 / 271.3 MB, free: 29.66 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.6225, allocations: 424.1 kB / 271.7 MB, free: 29.26 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001791/0.6243, allocations: 195 kB / 271.9 MB, free: 29.11 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00478/0.6291, allocations: 1.703 MB / 273.6 MB, free: 27.39 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006104/0.6298, allocations: 1.036 MB / 274.7 MB, free: 26.47 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009604/0.6308, allocations: 386.8 kB / 275 MB, free: 26.13 MB / 202.7 MB Notification: Performance of SimCode: time 1.453e-06/0.6308, allocations: 0 / 275 MB, free: 26.13 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_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_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.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_D_CombiTable1Ds24comparisonWithFEA_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