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.735/1.735, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.233e-05/3.236e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2806/0.2807, allocations: 38.77 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1443/0.425, allocations: 69.56 MB / 333.4 MB, free: 4.098 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000341/0.4254, allocations: 71.95 kB / 333.5 MB, free: 4.027 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02728/0.4527, allocations: 5.119 MB / 338.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.589e-06/0.4528, allocations: 4 kB / 338.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.053e-05/0.4528, allocations: 4 kB / 338.6 MB, free: 14.89 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.0009444/0.4538, allocations: 0.5125 MB / 339.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.4538, allocations: 12.03 kB / 339.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.924e-05/0.4539, allocations: 50.55 kB / 339.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001905/0.4541, allocations: 27.72 kB / 339.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004267/0.4546, allocations: 238.7 kB / 339.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.513e-05/0.4546, allocations: 20.2 kB / 339.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.369e-05/0.4547, allocations: 16 kB / 339.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004067/0.4551, allocations: 147.9 kB / 339.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.4551, allocations: 3.906 kB / 339.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.417e-05/0.4552, allocations: 8 kB / 339.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.138e-06/0.4552, allocations: 4 kB / 339.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000355/0.4556, allocations: 104.6 kB / 339.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001388/0.457, allocations: 0.594 MB / 340.3 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004314/0.4574, allocations: 153.1 kB / 340.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.4576, allocations: 76.84 kB / 340.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.4577, allocations: 0 / 340.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002713/0.458, allocations: 104.8 kB / 340.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 2.635e-06/0.458, allocations: 3.938 kB / 340.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005236/0.4585, allocations: 161.7 kB / 340.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.4586, allocations: 55.41 kB / 340.9 MB, free: 12.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004028/0.459, allocations: 238.9 kB / 341.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.459, allocations: 25.7 kB / 341.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.4592, allocations: 198.8 kB / 341.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.495e-05/0.4593, allocations: 67.17 kB / 341.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.498e-05/0.4593, allocations: 0 / 341.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4594, allocations: 322.8 kB / 341.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.4596, allocations: 55.98 kB / 341.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002015/0.4598, allocations: 90.69 kB / 341.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.4601, allocations: 89.86 kB / 341.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4601, allocations: 0 / 341.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006113/0.4607, allocations: 235.6 kB / 342.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.555e-05/0.4608, allocations: 37.69 kB / 342.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.4608, allocations: 0 / 342.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.4608, allocations: 0 / 342.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003792/0.4612, allocations: 47.98 kB / 342.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.4613, allocations: 11.94 kB / 342.3 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.4615, allocations: 23.77 kB / 342.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.4616, allocations: 12 kB / 342.3 MB, free: 10.94 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.0001239/0.4617, allocations: 118.8 kB / 342.4 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.495e-05/0.4618, allocations: 15.81 kB / 342.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006125/0.4624, allocations: 199.1 kB / 342.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.4624, allocations: 0 / 342.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.4624, allocations: 3.984 kB / 342.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.4624, allocations: 4 kB / 342.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004533/0.4629, allocations: 281.5 kB / 342.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4629, allocations: 0 / 342.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003833/0.4633, allocations: 43.92 kB / 342.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.602e-05/0.4633, allocations: 3.953 kB / 342.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/0.4634, allocations: 0 / 342.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.4634, allocations: 4 kB / 343 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4634, allocations: 0 / 343 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007157/0.4641, allocations: 270.9 kB / 343.2 MB, free: 9.938 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.4643, allocations: 108.8 kB / 343.3 MB, free: 9.812 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.79e-05/0.4644, allocations: 7.953 kB / 343.3 MB, free: 9.805 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001756/0.4646, allocations: 8 kB / 343.3 MB, free: 9.797 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.8e-05/0.4646, allocations: 15.92 kB / 343.4 MB, free: 9.781 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.214e-05/0.4647, allocations: 7.984 kB / 343.4 MB, free: 9.773 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003244/0.465, allocations: 189.7 kB / 343.5 MB, free: 9.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4651, allocations: 0 / 343.5 MB, free: 9.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004817/0.4656, allocations: 83.83 kB / 343.6 MB, free: 9.508 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.002008/0.4676, allocations: 1.011 MB / 344.6 MB, free: 8.508 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005413/0.4682, allocations: 199.5 kB / 344.8 MB, free: 8.301 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.4682, allocations: 0 / 344.8 MB, free: 8.301 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001885/0.4684, allocations: 63.94 kB / 344.9 MB, free: 8.238 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004584/0.4688, allocations: 44.56 kB / 344.9 MB, free: 8.191 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.4704, allocations: 0.5287 MB / 345.5 MB, free: 7.625 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/0.4708, allocations: 0.7558 MB / 346.2 MB, free: 6.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/0.471, allocations: 71.42 kB / 346.3 MB, free: 6.77 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.471, allocations: 0 / 346.3 MB, free: 6.77 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