Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.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.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.088/1.088, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.788e-05/2.789e-05, allocations: 4 kB / 148.2 MB, free: 6.125 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05358/0.05365, allocations: 25.17 MB / 173.4 MB, free: 12.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2059/0.2596, allocations: 34.95 MB / 208.3 MB, free: 7.066 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.2599, allocations: 64.3 kB / 208.4 MB, free: 7.066 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01543/0.2754, allocations: 3.978 MB / 212.4 MB, free: 6.516 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2754, allocations: 0 / 212.4 MB, free: 6.516 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.034e-05/0.2754, allocations: 4.906 kB / 212.4 MB, free: 6.516 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0007053/0.2762, allocations: 470.7 kB / 212.8 MB, free: 6.109 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.2762, allocations: 12.59 kB / 212.9 MB, free: 6.105 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.836e-05/0.2763, allocations: 27.48 kB / 212.9 MB, free: 6.094 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.2767, allocations: 239.8 kB / 213.1 MB, free: 5.871 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.2767, allocations: 4.438 kB / 213.1 MB, free: 5.871 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.338e-05/0.2767, allocations: 9.969 kB / 213.1 MB, free: 5.871 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003678/0.2771, allocations: 132.5 kB / 213.3 MB, free: 5.867 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003496/0.2775, allocations: 154.4 kB / 213.4 MB, free: 5.828 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.2775, allocations: 1.094 kB / 213.4 MB, free: 5.828 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.2776, allocations: 3.938 kB / 213.4 MB, free: 5.824 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.2776, allocations: 3.469 kB / 213.4 MB, free: 5.824 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/0.2787, allocations: 0.5421 MB / 214 MB, free: 5.547 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003977/0.2792, allocations: 156.4 kB / 214.1 MB, free: 5.523 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001875/0.2794, allocations: 92.58 kB / 214.2 MB, free: 5.512 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001162/0.2795, allocations: 78.86 kB / 214.3 MB, free: 5.418 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.2795, allocations: 37.62 kB / 214.3 MB, free: 5.379 MB / 170.7 MB Notification: Performance of pre-optimization done (n=17): time 2.225e-06/0.2795, allocations: 0 / 214.3 MB, free: 5.379 MB / 170.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005832/0.2801, allocations: 219.7 kB / 214.5 MB, free: 5.332 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.532e-05/0.2802, allocations: 55.41 kB / 214.6 MB, free: 5.266 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.2804, allocations: 178.5 kB / 214.8 MB, free: 5.16 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.2804, allocations: 25.7 kB / 214.8 MB, free: 5.129 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.853e-05/0.2805, allocations: 199.6 kB / 215 MB, free: 4.961 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.17e-05/0.2806, allocations: 56.78 kB / 215 MB, free: 4.926 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.386e-05/0.2806, allocations: 0 / 215 MB, free: 4.926 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.812e-05/0.2807, allocations: 317 kB / 215.3 MB, free: 4.613 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.2808, allocations: 62.97 kB / 215.4 MB, free: 4.613 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.281, allocations: 95.38 kB / 215.5 MB, free: 4.582 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002319/0.2812, allocations: 75.64 kB / 215.6 MB, free: 4.582 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2812, allocations: 0 / 215.6 MB, free: 4.582 MB / 170.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004611/0.2817, allocations: 205.8 kB / 215.8 MB, free: 4.539 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.2817, allocations: 7.625 kB / 215.8 MB, free: 4.539 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2818, allocations: 0 / 215.8 MB, free: 4.539 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.2818, allocations: 3.844 kB / 215.8 MB, free: 4.539 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003472/0.2821, allocations: 51.33 kB / 215.8 MB, free: 4.531 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.2822, allocations: 0 / 215.8 MB, free: 4.531 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001894/0.2824, allocations: 24.7 kB / 215.9 MB, free: 4.52 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.2824, allocations: 7.625 kB / 215.9 MB, free: 4.52 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (lossTable.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 7.623e-05/0.2825, allocations: 108.8 kB / 216 MB, free: 4.41 MB / 170.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004606/0.283, allocations: 206.8 kB / 216.2 MB, free: 4.367 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.213e-05/0.283, allocations: 29.47 kB / 216.2 MB, free: 4.348 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000582/0.2836, allocations: 234.2 kB / 216.4 MB, free: 4.305 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.2836, allocations: 3.656 kB / 216.4 MB, free: 4.305 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.2837, allocations: 3.953 kB / 216.4 MB, free: 4.301 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2837, allocations: 0 / 216.4 MB, free: 4.301 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003543/0.284, allocations: 246 kB / 216.7 MB, free: 4.137 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2841, allocations: 3.875 kB / 216.7 MB, free: 4.137 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003271/0.2844, allocations: 39.77 kB / 216.7 MB, free: 4.129 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.2844, allocations: 0 / 216.7 MB, free: 4.129 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.2844, allocations: 3.812 kB / 216.7 MB, free: 4.129 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.2845, allocations: 7.938 kB / 216.7 MB, free: 4.121 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.2845, allocations: 0 / 216.7 MB, free: 4.121 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009673/0.2854, allocations: 418 kB / 217.1 MB, free: 3.977 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.312e-05/0.2856, allocations: 95.75 kB / 217.2 MB, free: 3.871 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.592e-05/0.2856, allocations: 0 / 217.2 MB, free: 3.871 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002517/0.2859, allocations: 3.844 kB / 217.2 MB, free: 3.871 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.369e-05/0.286, allocations: 21.47 kB / 217.3 MB, free: 3.867 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.254e-05/0.286, allocations: 3.875 kB / 217.3 MB, free: 3.867 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001925/0.2862, allocations: 145.4 kB / 217.4 MB, free: 3.789 MB / 170.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.2862, allocations: 0 / 217.4 MB, free: 3.789 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0007123/0.2869, allocations: 58.09 kB / 217.5 MB, free: 3.773 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 1 (lossTable.tableID) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * 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.001407/0.2884, allocations: 0.9864 MB / 218.4 MB, free: 3.047 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0004297/0.2888, allocations: 149.9 kB / 218.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.2888, allocations: 0 / 218.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001874/0.289, allocations: 77.3 kB / 218.7 MB, free: 3.031 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007651/0.2898, allocations: 40.84 kB / 218.7 MB, free: 3.031 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.292, allocations: 0.5309 MB / 219.2 MB, free: 2.738 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004173/0.2925, allocations: 0.7505 MB / 220 MB, free: 18.04 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.2927, allocations: 70 kB / 220.1 MB, free: 18.03 MB / 186.7 MB Notification: Performance of SimCode: time 1.142e-06/0.2927, allocations: 0 / 220.1 MB, free: 18.03 MB / 186.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_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.o OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.cpp In file included from OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorFMU.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_Thermal_HeatTransfer_Examples_Motor.so OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.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/Thermal" "-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_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.o: In function `Functions::Modelica_Blocks_Sources_CombiTimeTable$lossTable_tableTimeInit(std::__cxx11::basic_string, std::allocator >, std::__cxx11::basic_string, std::allocator >, BaseArray&, double, int, int, int&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_3.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor/./OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorFunctions.cpp:58: undefined reference to `ModelicaTables_CombiTimeTable_init' OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.o: In function `Functions::Modelica_Blocks_Sources_CombiTimeTable$lossTable_tableTimeIpo(int, int, double, double&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_3.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor/./OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorFunctions.cpp:85: undefined reference to `ModelicaTables_CombiTimeTable_interpolate' OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.o: In function `Functions::Modelica_Blocks_Sources_CombiTimeTable$lossTable_tableTimeTmax(int, double&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_3.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor/./OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorFunctions.cpp:108: undefined reference to `ModelicaTables_CombiTimeTable_maximumTime' OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.o: In function `Functions::Modelica_Blocks_Sources_CombiTimeTable$lossTable_tableTimeTmin(int, double&)': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Modelica_3.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor/./OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorFunctions.cpp:131: undefined reference to `ModelicaTables_CombiTimeTable_minimumTime' clang: error: linker command failed with exit code 1 (use -v to see invocation) Modelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor_FMU.makefile:93: recipe for target 'Modelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu' failed make: *** [Modelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu] Error 1