Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.597/1.597, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.639e-05/4.655e-05, allocations: 4 kB / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2869, allocations: 38.76 MB / 263.8 MB, free: 9.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1656/0.4525, allocations: 98.32 MB / 362.2 MB, free: 7.367 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.4529, allocations: 83.95 kB / 362.2 MB, free: 7.285 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4293/0.8821, allocations: 48.79 MB / 411 MB, free: 63.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.8822, allocations: 0 / 411 MB, free: 63.79 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003644/0.8826, allocations: 59.94 kB / 411.1 MB, free: 63.73 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01055/0.8932, allocations: 2.422 MB / 413.5 MB, free: 61.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/0.8933, allocations: 16.03 kB / 413.5 MB, free: 61.23 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001582/0.8948, allocations: 346.9 kB / 413.9 MB, free: 60.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001989/0.8969, allocations: 336.2 kB / 414.2 MB, free: 60.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007913/0.9048, allocations: 1.705 MB / 415.9 MB, free: 58.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002716/0.9051, allocations: 156 kB / 416.1 MB, free: 58.63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/0.9062, allocations: 203.9 kB / 416.3 MB, free: 58.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01028/0.9165, allocations: 2.605 MB / 418.9 MB, free: 55.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001509/0.9167, allocations: 7.906 kB / 418.9 MB, free: 55.69 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004667/0.9172, allocations: 91.98 kB / 419 MB, free: 55.6 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001588/0.9174, allocations: 87.92 kB / 419 MB, free: 55.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008549/0.926, allocations: 2.058 MB / 421.1 MB, free: 53.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02772/0.9537, allocations: 8.322 MB / 429.4 MB, free: 44.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004006/0.9578, allocations: 1.568 MB / 431 MB, free: 43.3 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002175/0.96, allocations: 0.952 MB / 431.9 MB, free: 42.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000396/0.9604, allocations: 142 kB / 432.1 MB, free: 42.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.9605, allocations: 51.52 kB / 432.1 MB, free: 42.13 MB / 314.7 MB Notification: Performance of pre-optimization done (n=115): time 3.817e-06/0.9605, allocations: 0 / 432.1 MB, free: 42.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=131): time 0.01432/0.9748, allocations: 4.991 MB / 437.1 MB, free: 37.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.9749, allocations: 68.67 kB / 437.2 MB, free: 36.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004113/0.979, allocations: 1.834 MB / 439 MB, free: 35.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003545/0.9794, allocations: 49.7 kB / 439.1 MB, free: 35.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007565/0.9802, allocations: 0.9966 MB / 440.1 MB, free: 34.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005474/0.9807, allocations: 457.4 kB / 440.5 MB, free: 33.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.9809, allocations: 24 kB / 440.5 MB, free: 33.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.981, allocations: 370.8 kB / 440.9 MB, free: 33.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001666/0.9827, allocations: 0.7106 MB / 441.6 MB, free: 32.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/0.9845, allocations: 0.9668 MB / 442.6 MB, free: 31.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002009/0.9865, allocations: 0.8733 MB / 443.4 MB, free: 30.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.697e-06/0.9865, allocations: 0 / 443.4 MB, free: 30.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.007232/0.9938, allocations: 2.597 MB / 446 MB, free: 27.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.493e-05/0.9939, allocations: 33.7 kB / 446.1 MB, free: 27.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.719e-05/0.994, allocations: 8 kB / 446.1 MB, free: 27.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006401/1, allocations: 0.8385 MB / 446.9 MB, free: 27.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/1.003, allocations: 267.6 kB / 447.2 MB, free: 26.77 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01803/1.022, allocations: 9.282 MB / 456.5 MB, free: 17.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002237/1.024, allocations: 95.89 kB / 456.6 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002397/1.024, allocations: 52 kB / 456.6 MB, free: 17.07 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000363/1.025, allocations: 192.7 kB / 456.8 MB, free: 16.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005226/1.025, allocations: 197.6 kB / 457 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006541/1.032, allocations: 2.446 MB / 459.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/1.032, allocations: 12 kB / 459.5 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/1.032, allocations: 8 kB / 459.5 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-05/1.032, allocations: 15.91 kB / 459.5 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01335/1.045, allocations: 4.973 MB / 464.4 MB, free: 9.113 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.91e-05/1.045, allocations: 4 kB / 464.5 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001925/1.047, allocations: 207.9 kB / 464.7 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003185/1.05, allocations: 0.7095 MB / 465.4 MB, free: 8.188 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002594/1.051, allocations: 31.98 kB / 465.4 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01354/1.064, allocations: 8.462 MB / 473.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.064, allocations: 0 / 473.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/1.074, allocations: 3.575 MB / 477.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00179/1.076, allocations: 474.4 kB / 477.9 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005222/1.077, allocations: 31.98 kB / 477.9 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001991/1.079, allocations: 95.91 kB / 478 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004819/1.079, allocations: 108.7 kB / 478.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001722/1.079, allocations: 47.97 kB / 478.2 MB, free: 10.83 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003622/1.083, allocations: 1.426 MB / 479.6 MB, free: 9.371 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.41e-07/1.083, allocations: 0 / 479.6 MB, free: 9.371 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003229/1.086, allocations: 0.5782 MB / 480.2 MB, free: 8.793 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01189/1.098, allocations: 4.93 MB / 485.1 MB, free: 3.805 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007101/1.105, allocations: 2.42 MB / 487.5 MB, free: 1.332 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.275e-06/1.105, allocations: 0 / 487.5 MB, free: 1.332 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004811/1.11, allocations: 1.674 MB / 489.2 MB, free: 15.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003358/1.114, allocations: 417.7 kB / 489.6 MB, free: 15.18 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01504/1.129, allocations: 4.953 MB / 494.6 MB, free: 10.14 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00277/1.131, allocations: 1.982 MB / 496.5 MB, free: 8.125 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002266/1.134, allocations: 0.9366 MB / 497.5 MB, free: 7.188 MB / 346.7 MB Notification: Performance of SimCode: time 1.252e-06/1.134, allocations: 0 / 497.5 MB, free: 7.188 MB / 346.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_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesCalcHelperMain.o OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesFMU.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_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses.so OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLossesCalcHelperMain.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/Electrical" "-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_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses_FMU.makefile:93: recipe for target 'Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses.fmu' failed make: *** [Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses.fmu] Error 1