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.689/1.689, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.593e-05/3.598e-05, allocations: 4 kB / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2518, allocations: 38.77 MB / 263.9 MB, free: 9.848 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1693/0.4211, allocations: 98.32 MB / 362.2 MB, free: 7.371 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003158/0.4215, allocations: 87.94 kB / 362.3 MB, free: 7.285 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4468/0.8683, allocations: 48.8 MB / 411.1 MB, free: 63.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.8684, allocations: 0 / 411.1 MB, free: 63.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000273/0.8687, allocations: 59.94 kB / 411.1 MB, free: 63.71 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.00773/0.8764, allocations: 2.426 MB / 413.5 MB, free: 61.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.8765, allocations: 8.031 kB / 413.6 MB, free: 61.21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001101/0.8776, allocations: 342.9 kB / 413.9 MB, free: 60.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001346/0.8789, allocations: 336.3 kB / 414.2 MB, free: 60.53 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005066/0.884, allocations: 1.717 MB / 415.9 MB, free: 58.76 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001469/0.8842, allocations: 152 kB / 416.1 MB, free: 58.61 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008012/0.885, allocations: 207.9 kB / 416.3 MB, free: 58.4 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006632/0.8917, allocations: 2.577 MB / 418.9 MB, free: 55.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.813e-05/0.8918, allocations: 7.906 kB / 418.9 MB, free: 55.7 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002993/0.8921, allocations: 88 kB / 419 MB, free: 55.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000113/0.8923, allocations: 87.92 kB / 419 MB, free: 55.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005588/0.8979, allocations: 2.031 MB / 421.1 MB, free: 53.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02062/0.9185, allocations: 8.326 MB / 429.4 MB, free: 44.97 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003881/0.9224, allocations: 1.546 MB / 430.9 MB, free: 43.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002285/0.9248, allocations: 0.9598 MB / 431.9 MB, free: 42.39 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004014/0.9252, allocations: 134 kB / 432 MB, free: 42.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.9252, allocations: 48.17 kB / 432.1 MB, free: 42.19 MB / 314.7 MB Notification: Performance of pre-optimization done (n=115): time 5.3e-06/0.9253, allocations: 4 kB / 432.1 MB, free: 42.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=131): time 0.01416/0.9394, allocations: 4.992 MB / 437.1 MB, free: 37.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.9395, allocations: 68.67 kB / 437.1 MB, free: 37.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003861/0.9434, allocations: 1.83 MB / 439 MB, free: 35.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003447/0.9438, allocations: 45.7 kB / 439 MB, free: 35.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007401/0.9445, allocations: 1.008 MB / 440 MB, free: 34.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005197/0.945, allocations: 453.3 kB / 440.5 MB, free: 33.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.9452, allocations: 28 kB / 440.5 MB, free: 33.62 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.9453, allocations: 362.8 kB / 440.9 MB, free: 33.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001622/0.9469, allocations: 0.7146 MB / 441.6 MB, free: 32.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.9487, allocations: 0.955 MB / 442.5 MB, free: 31.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00189/0.9507, allocations: 0.8694 MB / 443.4 MB, free: 30.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.9507, allocations: 4 kB / 443.4 MB, free: 30.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006794/0.9575, allocations: 2.581 MB / 446 MB, free: 28.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.098e-05/0.9576, allocations: 33.7 kB / 446 MB, free: 27.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.459e-05/0.9576, allocations: 8.25 kB / 446 MB, free: 27.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003479/0.9611, allocations: 0.8422 MB / 446.9 MB, free: 27.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002113/0.9633, allocations: 263.6 kB / 447.1 MB, free: 26.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01677/0.9801, allocations: 9.286 MB / 456.4 MB, free: 17.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/0.9822, allocations: 99.89 kB / 456.5 MB, free: 17.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001752/0.9824, allocations: 59.92 kB / 456.6 MB, free: 17.13 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.000364/0.9828, allocations: 177.8 kB / 456.7 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004762/0.9833, allocations: 201.6 kB / 456.9 MB, free: 16.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008522/0.9918, allocations: 2.454 MB / 459.4 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.503e-05/0.9919, allocations: 16 kB / 459.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-05/0.9919, allocations: 8 kB / 459.4 MB, free: 14.26 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.091e-05/0.992, allocations: 3.984 kB / 459.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01848/1.01, allocations: 4.976 MB / 464.4 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.187e-05/1.011, allocations: 4 kB / 464.4 MB, free: 9.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002599/1.013, allocations: 211.9 kB / 464.6 MB, free: 8.973 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004415/1.018, allocations: 0.7016 MB / 465.3 MB, free: 8.262 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002329/1.018, allocations: 35.97 kB / 465.3 MB, free: 8.227 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0186/1.036, allocations: 8.449 MB / 473.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.101e-05/1.037, allocations: 7.969 kB / 473.8 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01329/1.05, allocations: 3.567 MB / 477.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002119/1.052, allocations: 474.5 kB / 477.8 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005742/1.053, allocations: 36 kB / 477.9 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002528/1.055, allocations: 95.83 kB / 477.9 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005645/1.056, allocations: 108.8 kB / 478.1 MB, free: 10.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002396/1.056, allocations: 40.05 kB / 478.1 MB, free: 10.92 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.005397/1.061, allocations: 1.422 MB / 479.5 MB, free: 9.465 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.72e-07/1.061, allocations: 0 / 479.5 MB, free: 9.465 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004999/1.066, allocations: 0.5821 MB / 480.1 MB, free: 8.883 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.01482/1.081, allocations: 4.947 MB / 485 MB, free: 3.879 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006583/1.088, allocations: 2.371 MB / 487.4 MB, free: 1.461 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/1.088, allocations: 0 / 487.4 MB, free: 1.461 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004486/1.093, allocations: 1.638 MB / 489.1 MB, free: 15.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003325/1.096, allocations: 417.1 kB / 489.5 MB, free: 15.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/1.111, allocations: 4.947 MB / 494.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002902/1.113, allocations: 1.985 MB / 496.4 MB, free: 8.297 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002326/1.116, allocations: 0.9366 MB / 497.3 MB, free: 7.359 MB / 346.7 MB Notification: Performance of SimCode: time 3.737e-06/1.116, allocations: 0 / 497.3 MB, free: 7.359 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