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.063/1.063, allocations: 111.2 MB / 124.2 MB, free: 11.17 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.381e-05/3.411e-05, allocations: 4 kB / 154.4 MB, free: 13.07 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1695, allocations: 25.16 MB / 179.5 MB, free: 0.8281 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06306/0.2326, allocations: 35.62 MB / 215.1 MB, free: 13.48 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.2329, allocations: 63.97 kB / 215.2 MB, free: 13.42 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01741/0.2504, allocations: 4 MB / 219.2 MB, free: 9.414 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2504, allocations: 0 / 219.2 MB, free: 9.414 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.214e-05/0.2504, allocations: 4 kB / 219.2 MB, free: 9.41 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008616/0.2513, allocations: 467.2 kB / 219.7 MB, free: 8.906 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.2514, allocations: 12.03 kB / 219.7 MB, free: 8.895 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.581e-05/0.2515, allocations: 54.55 kB / 219.7 MB, free: 8.832 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.955e-05/0.2516, allocations: 23.72 kB / 219.8 MB, free: 8.809 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004014/0.252, allocations: 231 kB / 220 MB, free: 8.543 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.252, allocations: 16.33 kB / 220 MB, free: 8.527 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.457e-05/0.2521, allocations: 16 kB / 220 MB, free: 8.512 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004608/0.2526, allocations: 172.8 kB / 220.2 MB, free: 8.34 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.2526, allocations: 0 / 220.2 MB, free: 8.34 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.941e-05/0.2526, allocations: 11.94 kB / 220.2 MB, free: 8.328 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.2527, allocations: 4 kB / 220.2 MB, free: 8.324 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004126/0.2531, allocations: 144.2 kB / 220.3 MB, free: 8.184 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001423/0.2545, allocations: 0.5899 MB / 220.9 MB, free: 7.539 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004554/0.255, allocations: 174.5 kB / 221.1 MB, free: 7.359 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002312/0.2553, allocations: 92.83 kB / 221.2 MB, free: 7.266 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000136/0.2554, allocations: 85.06 kB / 221.3 MB, free: 7.164 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.2555, allocations: 34.56 kB / 221.3 MB, free: 7.121 MB / 186.7 MB Notification: Performance of pre-optimization done (n=17): time 3.427e-06/0.2555, allocations: 0 / 221.3 MB, free: 7.121 MB / 186.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006316/0.2561, allocations: 222.6 kB / 221.5 MB, free: 6.898 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.2562, allocations: 51.41 kB / 221.6 MB, free: 6.836 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002925/0.2565, allocations: 197.9 kB / 221.8 MB, free: 6.633 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.2565, allocations: 25.7 kB / 221.8 MB, free: 6.602 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.2567, allocations: 194.8 kB / 222 MB, free: 6.41 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.635e-05/0.2568, allocations: 63.09 kB / 222 MB, free: 6.348 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.783e-05/0.2568, allocations: 4 kB / 222.1 MB, free: 6.344 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.2569, allocations: 322.8 kB / 222.4 MB, free: 6.02 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001843/0.2571, allocations: 67.98 kB / 222.4 MB, free: 5.953 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.2573, allocations: 90.73 kB / 222.5 MB, free: 5.855 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002171/0.2576, allocations: 80.89 kB / 222.6 MB, free: 5.777 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.2576, allocations: 0 / 222.6 MB, free: 5.777 MB / 186.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005435/0.2582, allocations: 208.7 kB / 222.8 MB, free: 5.57 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.2582, allocations: 7.953 kB / 222.8 MB, free: 5.562 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.2582, allocations: 4.062 kB / 222.8 MB, free: 5.559 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.2582, allocations: 4 kB / 222.8 MB, free: 5.555 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000429/0.2587, allocations: 47.92 kB / 222.9 MB, free: 5.508 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.2587, allocations: 7.969 kB / 222.9 MB, free: 5.5 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.2589, allocations: 23.69 kB / 222.9 MB, free: 5.477 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.299e-05/0.259, allocations: 12 kB / 222.9 MB, free: 5.465 MB / 186.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 0.0001135/0.2591, allocations: 116.9 kB / 223 MB, free: 5.344 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.194e-05/0.2592, allocations: 19.81 kB / 223 MB, free: 5.324 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000689/0.2599, allocations: 243.2 kB / 223.3 MB, free: 5.074 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.2599, allocations: 4 kB / 223.3 MB, free: 5.07 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.2599, allocations: 0 / 223.3 MB, free: 5.07 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.2599, allocations: 3.953 kB / 223.3 MB, free: 5.066 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000488/0.2604, allocations: 285.4 kB / 223.6 MB, free: 4.738 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.2605, allocations: 4 kB / 223.6 MB, free: 4.734 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.2608, allocations: 35.92 kB / 223.6 MB, free: 4.699 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.2609, allocations: 0 / 223.6 MB, free: 4.699 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.404e-05/0.2609, allocations: 15.98 kB / 223.6 MB, free: 4.684 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.2609, allocations: 0 / 223.6 MB, free: 4.684 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.2609, allocations: 0 / 223.6 MB, free: 4.684 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008998/0.2618, allocations: 430.1 kB / 224 MB, free: 4.25 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.262, allocations: 96.89 kB / 224.1 MB, free: 4.137 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.642e-05/0.262, allocations: 0 / 224.1 MB, free: 4.137 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.2623, allocations: 12.05 kB / 224.1 MB, free: 4.125 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.66e-05/0.2623, allocations: 15.98 kB / 224.2 MB, free: 4.109 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-05/0.2624, allocations: 12 kB / 224.2 MB, free: 4.098 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000238/0.2626, allocations: 156.4 kB / 224.3 MB, free: 3.945 MB / 186.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.2626, allocations: 3.938 kB / 224.3 MB, free: 3.941 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004601/0.2631, allocations: 67.83 kB / 224.4 MB, free: 3.875 MB / 186.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.001436/0.2646, allocations: 1.007 MB / 225.4 MB, free: 2.875 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004437/0.265, allocations: 156 kB / 225.6 MB, free: 2.723 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.2651, allocations: 4 kB / 225.6 MB, free: 2.719 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.2653, allocations: 79.92 kB / 225.6 MB, free: 2.641 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007261/0.266, allocations: 48.31 kB / 225.7 MB, free: 2.594 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.268, allocations: 0.5367 MB / 226.2 MB, free: 2.012 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.2684, allocations: 0.7558 MB / 227 MB, free: 1.227 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.2686, allocations: 71.41 kB / 227 MB, free: 1.16 MB / 186.7 MB Notification: Performance of SimCode: time 1.132e-06/0.2686, allocations: 0 / 227 MB, free: 1.16 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 -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/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 -lOMCppModelicaUtilities_static -lOMCppDgesv_static OMCppModelica_3_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.o: In function `Functions::Modelica_Blocks_Sources_D_CombiTimeTable24lossTable_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_D_CombiTimeTable24lossTable_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_D_CombiTimeTable24lossTable_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_D_CombiTimeTable24lossTable_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