Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.79/1.79, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.443e-05/3.459e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.282, allocations: 38.77 MB / 263.8 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1264/0.4085, allocations: 69.56 MB / 333.4 MB, free: 4.109 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.4088, allocations: 67.97 kB / 333.4 MB, free: 4.043 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02235/0.4311, allocations: 5.116 MB / 338.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4312, allocations: 0 / 338.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.203e-05/0.4312, allocations: 4 kB / 338.6 MB, free: 14.91 MB / 298.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.0009472/0.4322, allocations: 0.5163 MB / 339.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.4322, allocations: 12.03 kB / 339.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.255e-05/0.4323, allocations: 46.55 kB / 339.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.4325, allocations: 27.72 kB / 339.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004484/0.433, allocations: 250.6 kB / 339.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.433, allocations: 12.33 kB / 339.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.619e-05/0.4331, allocations: 20 kB / 339.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004262/0.4335, allocations: 152.2 kB / 339.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.4336, allocations: 3.906 kB / 339.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.4336, allocations: 4 kB / 339.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.4336, allocations: 4 kB / 339.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003623/0.434, allocations: 112.6 kB / 339.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.4354, allocations: 0.5821 MB / 340.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004358/0.4359, allocations: 149 kB / 340.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.4361, allocations: 76.84 kB / 340.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.4361, allocations: 4 kB / 340.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/0.4364, allocations: 111.4 kB / 340.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 3.226e-06/0.4364, allocations: 3.938 kB / 340.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005258/0.437, allocations: 158.5 kB / 340.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.437, allocations: 55.31 kB / 340.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004026/0.4374, allocations: 235 kB / 341.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.354e-05/0.4375, allocations: 33.69 kB / 341.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.4376, allocations: 198.8 kB / 341.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.338e-05/0.4377, allocations: 63.11 kB / 341.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.683e-05/0.4378, allocations: 4 kB / 341.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.4379, allocations: 322.8 kB / 341.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.4381, allocations: 59.94 kB / 341.7 MB, free: 11.51 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000203/0.4383, allocations: 78.75 kB / 341.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002304/0.4386, allocations: 97.8 kB / 341.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.4386, allocations: 0 / 341.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005964/0.4392, allocations: 239.6 kB / 342.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.937e-05/0.4393, allocations: 31.73 kB / 342.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.4393, allocations: 0 / 342.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.4393, allocations: 7.938 kB / 342.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003615/0.4397, allocations: 43.97 kB / 342.2 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.437e-06/0.4397, allocations: 0 / 342.2 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002224/0.4399, allocations: 31.83 kB / 342.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.44, allocations: 8 kB / 342.3 MB, free: 10.96 MB / 298.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: 3 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * 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.0001209/0.4401, allocations: 120.1 kB / 342.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.977e-05/0.4402, allocations: 23.72 kB / 342.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000558/0.4408, allocations: 199.2 kB / 342.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.4408, allocations: 4 kB / 342.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.4408, allocations: 0 / 342.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.4408, allocations: 0 / 342.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004582/0.4413, allocations: 289.5 kB / 342.9 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.4413, allocations: 0 / 342.9 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003657/0.4417, allocations: 35.98 kB / 342.9 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.4417, allocations: 7.953 kB / 342.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.4417, allocations: 0 / 342.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.4417, allocations: 0 / 342.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.4418, allocations: 7.969 kB / 342.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000686/0.4425, allocations: 273.1 kB / 343.2 MB, free: 9.941 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.4426, allocations: 108.8 kB / 343.3 MB, free: 9.816 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.239e-05/0.4427, allocations: 8.016 kB / 343.3 MB, free: 9.809 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001792/0.4429, allocations: 11.98 kB / 343.3 MB, free: 9.797 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.833e-05/0.4429, allocations: 11.98 kB / 343.3 MB, free: 9.785 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.443, allocations: 8 kB / 343.4 MB, free: 9.777 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002969/0.4433, allocations: 189.6 kB / 343.5 MB, free: 9.594 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4433, allocations: 0 / 343.5 MB, free: 9.594 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004449/0.4438, allocations: 71.84 kB / 343.6 MB, free: 9.523 MB / 298.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: 2 ($whenCondition1,lossTable.nextTimeEvent) * Number of discrete states: 1 (lossTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * 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.001831/0.4456, allocations: 1.004 MB / 344.6 MB, free: 8.527 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005214/0.4462, allocations: 207.3 kB / 344.8 MB, free: 8.316 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4462, allocations: 0 / 344.8 MB, free: 8.316 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001942/0.4464, allocations: 72.05 kB / 344.9 MB, free: 8.246 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004602/0.4469, allocations: 32.59 kB / 344.9 MB, free: 8.211 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001549/0.4484, allocations: 0.5369 MB / 345.5 MB, free: 7.633 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004278/0.4489, allocations: 0.748 MB / 346.2 MB, free: 6.855 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.4491, allocations: 71.41 kB / 346.3 MB, free: 6.785 MB / 298.7 MB Notification: Performance of SimCode: time 9.81e-07/0.4491, allocations: 0 / 346.3 MB, free: 6.785 MB / 298.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_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.o OMCppModelica_3_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.cpp In file included from OMCppModelica_3_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_MotorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_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_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor.so OMCppModelica_3_2_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.2.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.2.1/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library" -lModelicaStandardTables -lModelicaIO -lModelicaMatIO -lzlib -lOMCppModelicaUtilities_static -lOMCppDgesv_static /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `Mat_VarDelete': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:4972: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `strdup_vprintf': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1469: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1476: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1469: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:1476: undefined reference to `rpl_vsnprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/cpp/libModelicaMatIO.a(ModelicaMatIO.c.o): In function `Mat_Create5': /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:7716: undefined reference to `rpl_snprintf' /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/3rdParty/ModelicaExternalC/C-Sources/ModelicaMatIO.c:7711: undefined reference to `rpl_snprintf' clang: error: linker command failed with exit code 1 (use -v to see invocation) Modelica_3_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor_FMU.makefile:93: recipe for target 'Modelica_3_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu' failed make: *** [Modelica_3_2_1_cpp_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu] Error 1