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.072/1.072, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.0003451, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05344/0.05383, allocations: 25.17 MB / 183.6 MB, free: 5.875 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2215/0.2754, allocations: 43.11 MB / 226.7 MB, free: 2.961 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.2757, allocations: 72.34 kB / 226.8 MB, free: 2.926 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08522/0.3609, allocations: 20.1 MB / 246.9 MB, free: 2.09 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.361, allocations: 0 / 246.9 MB, free: 2.09 MB / 186.7 MB Notification: Performance of Transformations before backend: time 7.576e-05/0.3611, allocations: 24 kB / 246.9 MB, free: 2.066 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.00476/0.3659, allocations: 1.312 MB / 248.2 MB, free: 0.7734 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.3659, allocations: 8.031 kB / 248.2 MB, free: 0.7656 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004612/0.3664, allocations: 146.5 kB / 248.4 MB, free: 0.6719 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003206/0.3667, allocations: 129.7 kB / 248.5 MB, free: 0.5469 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001567/0.3683, allocations: 0.6179 MB / 249.1 MB, free: 20 kB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00022/0.3686, allocations: 74.92 kB / 249.2 MB, free: 15.98 MB / 202.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002521/0.3688, allocations: 95.41 kB / 249.3 MB, free: 15.91 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003581/0.3724, allocations: 1.077 MB / 250.4 MB, free: 15.17 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-05/0.3725, allocations: 0 / 250.4 MB, free: 15.17 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000148/0.3727, allocations: 38.25 kB / 250.4 MB, free: 15.16 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.018e-05/0.3727, allocations: 24 kB / 250.4 MB, free: 15.14 MB / 202.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00391/0.3766, allocations: 1.001 MB / 251.4 MB, free: 14.43 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01013/0.3868, allocations: 3.852 MB / 255.3 MB, free: 10.49 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004443/0.3913, allocations: 0.9858 MB / 256.3 MB, free: 9.484 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.061e-05/0.3914, allocations: 16.2 kB / 256.3 MB, free: 9.469 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.651e-05/0.3915, allocations: 38.8 kB / 256.3 MB, free: 9.422 MB / 202.7 MB Notification: Performance of pre-optimization done (n=65): time 3.577e-06/0.3915, allocations: 0 / 256.3 MB, free: 9.422 MB / 202.7 MB Notification: Performance of matching and sorting (n=79): time 0.01027/0.4018, allocations: 2.431 MB / 258.7 MB, free: 6.984 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.401e-05/0.4019, allocations: 101.5 kB / 258.8 MB, free: 6.867 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/0.4035, allocations: 0.7344 MB / 259.6 MB, free: 6.125 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001414/0.4037, allocations: 37.7 kB / 259.6 MB, free: 6.082 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004459/0.4042, allocations: 0.5053 MB / 260.1 MB, free: 5.57 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003383/0.4045, allocations: 268.1 kB / 260.4 MB, free: 5.305 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.67e-05/0.4046, allocations: 20 kB / 260.4 MB, free: 5.285 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.4048, allocations: 342.9 kB / 260.7 MB, free: 4.941 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001907/0.4067, allocations: 457.7 kB / 261.2 MB, free: 4.496 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00199/0.4087, allocations: 0.5899 MB / 261.8 MB, free: 3.859 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001969/0.4107, allocations: 486 kB / 262.2 MB, free: 3.383 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.4107, allocations: 0 / 262.2 MB, free: 3.383 MB / 202.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.004379/0.4151, allocations: 1.166 MB / 263.4 MB, free: 2.207 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.4152, allocations: 7.984 kB / 263.4 MB, free: 2.199 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.4152, allocations: 7.938 kB / 263.4 MB, free: 2.191 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.975e-05/0.4152, allocations: 8 kB / 263.4 MB, free: 2.184 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002598/0.4178, allocations: 335.6 kB / 263.8 MB, free: 1.855 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.287e-05/0.4179, allocations: 8 kB / 263.8 MB, free: 1.848 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.4196, allocations: 111.9 kB / 263.9 MB, free: 1.738 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001335/0.4197, allocations: 39.98 kB / 263.9 MB, free: 1.699 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 114 * 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.0007517/0.4205, allocations: 285.6 kB / 264.2 MB, free: 1.41 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.4208, allocations: 102.8 kB / 264.3 MB, free: 1.309 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002174/0.423, allocations: 0.6031 MB / 264.9 MB, free: 0.6914 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.423, allocations: 8 kB / 264.9 MB, free: 0.6836 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.423, allocations: 0 / 264.9 MB, free: 0.6836 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.179e-05/0.4231, allocations: 3.984 kB / 264.9 MB, free: 0.6797 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008005/0.4311, allocations: 2.929 MB / 267.8 MB, free: 13.57 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.698e-05/0.4311, allocations: 8 kB / 267.8 MB, free: 13.57 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001841/0.433, allocations: 263.7 kB / 268.1 MB, free: 13.31 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.492e-05/0.433, allocations: 15.95 kB / 268.1 MB, free: 13.29 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.532e-05/0.4331, allocations: 27.98 kB / 268.1 MB, free: 13.27 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.147e-05/0.4332, allocations: 19.94 kB / 268.2 MB, free: 13.25 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.792e-05/0.4332, allocations: 15.94 kB / 268.2 MB, free: 13.23 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003935/0.4371, allocations: 1.789 MB / 270 MB, free: 11.07 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005031/0.4377, allocations: 195.9 kB / 270.2 MB, free: 10.86 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002548/0.438, allocations: 31.92 kB / 270.2 MB, free: 10.82 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.4393, allocations: 79.94 kB / 270.3 MB, free: 10.75 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000216/0.4395, allocations: 87.69 kB / 270.4 MB, free: 10.66 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.4396, allocations: 36 kB / 270.4 MB, free: 10.62 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.001286/0.4409, allocations: 0.5732 MB / 271 MB, free: 10.06 MB / 218.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.4409, allocations: 0 / 271 MB, free: 10.06 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001435/0.4424, allocations: 220 kB / 271.2 MB, free: 9.844 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 40 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (79): * Single equations (assignments): 78 * 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.005434/0.4478, allocations: 5.053 MB / 276.2 MB, free: 4.508 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.003671/0.4515, allocations: 0.9293 MB / 277.2 MB, free: 3.578 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 1.504e-05/0.4516, allocations: 4 kB / 277.2 MB, free: 3.574 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001768/0.4534, allocations: 478 kB / 277.6 MB, free: 3.109 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001964/0.4554, allocations: 191 kB / 277.8 MB, free: 2.918 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01912/0.4745, allocations: 8.47 MB / 286.3 MB, free: 10.08 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008702/0.4755, allocations: 1.041 MB / 287.3 MB, free: 9.008 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.4766, allocations: 391.3 kB / 287.7 MB, free: 8.625 MB / 234.7 MB Notification: Performance of SimCode: time 8.92e-07/0.4766, allocations: 0 / 287.7 MB, free: 8.625 MB / 234.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 -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_ForceCurrentBehaviourCalcHelperMain.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.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__omcQCombiTable1Ds_24comparisonWithFEA_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