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/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.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.146/1.146, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003647/0.0003647, allocations: 4 kB / 158.4 MB, free: 15.09 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07965/0.08007, allocations: 25.18 MB / 183.6 MB, free: 5.875 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2223/0.3024, allocations: 35.7 MB / 219.3 MB, free: 5.922 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.3027, allocations: 61.56 kB / 219.4 MB, free: 5.914 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01519/0.3179, allocations: 4.013 MB / 223.4 MB, free: 4.355 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.318, allocations: 4 kB / 223.4 MB, free: 4.352 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.318, allocations: 3.844 kB / 223.4 MB, free: 4.352 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.0007646/0.3188, allocations: 493.3 kB / 223.9 MB, free: 3.895 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.3188, allocations: 11.44 kB / 223.9 MB, free: 3.895 MB / 170.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.89e-05/0.3189, allocations: 52.64 kB / 223.9 MB, free: 3.848 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.736e-05/0.319, allocations: 26.84 kB / 224 MB, free: 3.832 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.3193, allocations: 239.2 kB / 224.2 MB, free: 3.602 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.3194, allocations: 10.86 kB / 224.2 MB, free: 3.602 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.3194, allocations: 17.66 kB / 224.2 MB, free: 3.602 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003953/0.3198, allocations: 176.9 kB / 224.4 MB, free: 3.535 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.3199, allocations: 3.938 kB / 224.4 MB, free: 3.531 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.3199, allocations: 10.97 kB / 224.4 MB, free: 3.531 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3199, allocations: 3.969 kB / 224.4 MB, free: 3.531 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003544/0.3203, allocations: 140.8 kB / 224.5 MB, free: 3.504 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.3215, allocations: 0.576 MB / 225.1 MB, free: 3.109 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004216/0.3219, allocations: 178.6 kB / 225.3 MB, free: 3.059 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000117/0.3221, allocations: 84.94 kB / 225.4 MB, free: 2.961 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.3221, allocations: 38.36 kB / 225.4 MB, free: 2.918 MB / 170.7 MB Notification: Performance of pre-optimization done (n=17): time 3.517e-06/0.3221, allocations: 0 / 225.4 MB, free: 2.918 MB / 170.7 MB Notification: Performance of matching and sorting (n=17): time 0.0007038/0.3228, allocations: 291 kB / 225.7 MB, free: 2.836 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.3229, allocations: 51.41 kB / 225.7 MB, free: 2.773 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002342/0.3231, allocations: 193.4 kB / 225.9 MB, free: 2.656 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/0.3232, allocations: 29.55 kB / 226 MB, free: 2.625 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.865e-05/0.3232, allocations: 196.7 kB / 226.2 MB, free: 2.453 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.3233, allocations: 60.98 kB / 226.2 MB, free: 2.414 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.438e-05/0.3233, allocations: 0 / 226.2 MB, free: 2.414 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.441e-05/0.3234, allocations: 318.2 kB / 226.5 MB, free: 2.102 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.3236, allocations: 67.77 kB / 226.6 MB, free: 2.09 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.3238, allocations: 93.53 kB / 226.7 MB, free: 2.055 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.324, allocations: 86.62 kB / 226.8 MB, free: 2.043 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.324, allocations: 0 / 226.8 MB, free: 2.043 MB / 170.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005084/0.3245, allocations: 216.3 kB / 227 MB, free: 1.98 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.3245, allocations: 5.094 kB / 227 MB, free: 1.98 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.3246, allocations: 5.172 kB / 227 MB, free: 1.977 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.531e-05/0.3246, allocations: 2.5 kB / 227 MB, free: 1.977 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003645/0.325, allocations: 45.39 kB / 227 MB, free: 1.969 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.517e-06/0.325, allocations: 2.406 kB / 227 MB, free: 1.969 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002098/0.3252, allocations: 26.08 kB / 227.1 MB, free: 1.953 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.352e-05/0.3253, allocations: 9.688 kB / 227.1 MB, free: 1.953 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 () * Number of clocked 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 0.0002293/0.3255, allocations: 144 kB / 227.2 MB, free: 1.832 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.314e-05/0.3256, allocations: 20.72 kB / 227.2 MB, free: 1.82 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006072/0.3262, allocations: 247.7 kB / 227.5 MB, free: 1.75 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.3262, allocations: 3.938 kB / 227.5 MB, free: 1.746 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3262, allocations: 4 kB / 227.5 MB, free: 1.742 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.3263, allocations: 11.44 kB / 227.5 MB, free: 1.734 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004025/0.3267, allocations: 283.6 kB / 227.8 MB, free: 1.504 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3267, allocations: 3.938 kB / 227.8 MB, free: 1.5 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003365/0.327, allocations: 37.77 kB / 227.8 MB, free: 1.492 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.3271, allocations: 0 / 227.8 MB, free: 1.492 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/0.3271, allocations: 3.625 kB / 227.8 MB, free: 1.492 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.3271, allocations: 7.812 kB / 227.8 MB, free: 1.488 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3271, allocations: 0 / 227.8 MB, free: 1.488 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007461/0.3279, allocations: 436.3 kB / 228.3 MB, free: 1.297 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.466e-05/0.328, allocations: 107.2 kB / 228.4 MB, free: 1.184 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.561e-05/0.328, allocations: 0 / 228.4 MB, free: 1.184 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.3282, allocations: 6.438 kB / 228.4 MB, free: 1.184 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.3283, allocations: 18.56 kB / 228.4 MB, free: 1.176 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.742e-05/0.3283, allocations: 3.75 kB / 228.4 MB, free: 1.176 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0001913/0.3285, allocations: 161.2 kB / 228.5 MB, free: 1.082 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3285, allocations: 4.062 kB / 228.5 MB, free: 1.078 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.000451/0.329, allocations: 66.53 kB / 228.6 MB, free: 1.062 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 () * Number of clocked 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.001216/0.3302, allocations: 1.012 MB / 229.6 MB, free: 320 kB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.00041/0.3306, allocations: 150.5 kB / 229.8 MB, free: 300 kB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.3307, allocations: 0 / 229.8 MB, free: 300 kB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.3308, allocations: 82.55 kB / 229.9 MB, free: 284 kB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007157/0.3316, allocations: 61.62 kB / 229.9 MB, free: 260 kB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002587/0.3342, allocations: 1.283 MB / 231.2 MB, free: 15.19 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004492/0.3347, allocations: 0.7472 MB / 231.9 MB, free: 14.42 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/0.3349, allocations: 64.11 kB / 232 MB, free: 14.4 MB / 186.7 MB Notification: Performance of SimCode: time 1.272e-06/0.3349, allocations: 0 / 232 MB, free: 14.4 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=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_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/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_Thermal_HeatTransfer_Examples_Motor.so OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.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/Thermal" "-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_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.o: In function `Functions::Modelica_Blocks_Sources__omcQCombiTimeTable_24lossTable_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__omcQCombiTimeTable_24lossTable_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__omcQCombiTimeTable_24lossTable_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__omcQCombiTimeTable_24lossTable_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