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 / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.778e-05/2.807e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1717, allocations: 25.15 MB / 176.6 MB, free: 15.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1175/0.2892, allocations: 35.63 MB / 212.3 MB, free: 13.73 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.2895, allocations: 59.97 kB / 212.3 MB, free: 13.67 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01703/0.3066, allocations: 4.009 MB / 216.3 MB, free: 9.652 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3066, allocations: 0 / 216.3 MB, free: 9.652 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.032e-05/0.3066, allocations: 4 kB / 216.3 MB, free: 9.648 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.0008044/0.3075, allocations: 471.2 kB / 216.8 MB, free: 9.141 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.3075, allocations: 15.97 kB / 216.8 MB, free: 9.125 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.577e-05/0.3076, allocations: 46.55 kB / 216.9 MB, free: 9.07 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.304e-05/0.3077, allocations: 23.72 kB / 216.9 MB, free: 9.047 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003759/0.3081, allocations: 239 kB / 217.1 MB, free: 8.773 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.3081, allocations: 12.33 kB / 217.1 MB, free: 8.762 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.648e-05/0.3082, allocations: 20 kB / 217.2 MB, free: 8.742 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004807/0.3087, allocations: 168.4 kB / 217.3 MB, free: 8.574 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.3087, allocations: 0 / 217.3 MB, free: 8.574 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.3088, allocations: 15.88 kB / 217.3 MB, free: 8.559 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.3088, allocations: 7.984 kB / 217.3 MB, free: 8.551 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004058/0.3092, allocations: 132.6 kB / 217.5 MB, free: 8.422 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.3106, allocations: 0.586 MB / 218.1 MB, free: 7.781 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004567/0.3111, allocations: 166.5 kB / 218.2 MB, free: 7.609 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002373/0.3113, allocations: 100.8 kB / 218.3 MB, free: 7.508 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001379/0.3115, allocations: 85.06 kB / 218.4 MB, free: 7.406 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.3115, allocations: 30.56 kB / 218.4 MB, free: 7.367 MB / 186.7 MB Notification: Performance of pre-optimization done (n=17): time 2.705e-06/0.3115, allocations: 0 / 218.4 MB, free: 7.367 MB / 186.7 MB Notification: Performance of matching and sorting (n=17): time 0.0006283/0.3122, allocations: 218.4 kB / 218.6 MB, free: 7.148 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.94e-05/0.3122, allocations: 55.41 kB / 218.7 MB, free: 7.082 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002837/0.3125, allocations: 186 kB / 218.9 MB, free: 6.895 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.3126, allocations: 33.64 kB / 218.9 MB, free: 6.855 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.3127, allocations: 198.8 kB / 219.1 MB, free: 6.66 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.438e-05/0.3128, allocations: 55.2 kB / 219.2 MB, free: 6.605 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.694e-05/0.3128, allocations: 4 kB / 219.2 MB, free: 6.602 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.313, allocations: 322.8 kB / 219.5 MB, free: 6.277 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.3132, allocations: 63.98 kB / 219.5 MB, free: 6.215 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.3134, allocations: 86.73 kB / 219.6 MB, free: 6.121 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.3136, allocations: 80.89 kB / 219.7 MB, free: 6.043 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3137, allocations: 0 / 219.7 MB, free: 6.043 MB / 186.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005401/0.3142, allocations: 216.8 kB / 219.9 MB, free: 5.828 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.3142, allocations: 7.953 kB / 219.9 MB, free: 5.82 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3143, allocations: 4 kB / 219.9 MB, free: 5.816 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.3143, allocations: 0 / 219.9 MB, free: 5.816 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003797/0.3147, allocations: 47.91 kB / 220 MB, free: 5.77 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.3147, allocations: 0 / 220 MB, free: 5.77 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.3149, allocations: 35.8 kB / 220 MB, free: 5.734 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.291e-05/0.315, allocations: 11.92 kB / 220 MB, free: 5.723 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.0001061/0.3151, allocations: 116.9 kB / 220.1 MB, free: 5.602 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.878e-05/0.3152, allocations: 15.81 kB / 220.2 MB, free: 5.586 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006637/0.3158, allocations: 258 kB / 220.4 MB, free: 5.324 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.3159, allocations: 0 / 220.4 MB, free: 5.324 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3159, allocations: 0 / 220.4 MB, free: 5.324 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/0.3159, allocations: 7.953 kB / 220.4 MB, free: 5.316 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005195/0.3164, allocations: 285.4 kB / 220.7 MB, free: 4.988 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.3164, allocations: 3.984 kB / 220.7 MB, free: 4.984 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003492/0.3168, allocations: 31.98 kB / 220.7 MB, free: 4.953 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.3168, allocations: 0 / 220.7 MB, free: 4.953 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.064e-05/0.3169, allocations: 11.98 kB / 220.7 MB, free: 4.941 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3169, allocations: 0 / 220.7 MB, free: 4.941 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.3169, allocations: 0 / 220.7 MB, free: 4.941 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000859/0.3178, allocations: 431 kB / 221.2 MB, free: 4.504 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.363e-05/0.3179, allocations: 100.9 kB / 221.3 MB, free: 4.387 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.725e-05/0.3179, allocations: 4 kB / 221.3 MB, free: 4.383 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.3181, allocations: 4 kB / 221.3 MB, free: 4.379 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.659e-05/0.3182, allocations: 15.98 kB / 221.3 MB, free: 4.363 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.3182, allocations: 4 kB / 221.3 MB, free: 4.359 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002178/0.3184, allocations: 160.4 kB / 221.4 MB, free: 4.203 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3184, allocations: 0 / 221.4 MB, free: 4.203 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004432/0.3189, allocations: 67.91 kB / 221.5 MB, free: 4.137 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.001399/0.3203, allocations: 1.006 MB / 222.5 MB, free: 3.137 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004236/0.3207, allocations: 147.4 kB / 222.7 MB, free: 2.996 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3208, allocations: 4 kB / 222.7 MB, free: 2.992 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.321, allocations: 83.88 kB / 222.7 MB, free: 2.91 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007326/0.3217, allocations: 65.69 kB / 222.8 MB, free: 2.852 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001901/0.3236, allocations: 0.5482 MB / 223.4 MB, free: 2.258 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000396/0.3241, allocations: 0.748 MB / 224.1 MB, free: 1.48 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001821/0.3243, allocations: 71.41 kB / 224.2 MB, free: 1.41 MB / 186.7 MB Notification: Performance of SimCode: time 1.202e-06/0.3243, allocations: 0 / 224.2 MB, free: 1.41 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__omcQuot_436F6D626954696D655461626C65246C6F73735461626C65_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__omcQuot_436F6D626954696D655461626C65246C6F73735461626C65_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__omcQuot_436F6D626954696D655461626C65246C6F73735461626C65_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__omcQuot_436F6D626954696D655461626C65246C6F73735461626C65_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