Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.831/1.831, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.465e-05/4.444e-05, allocations: 4 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.301/0.3011, allocations: 38.77 MB / 263.9 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1399/0.441, allocations: 77.14 MB / 341 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000318/0.4414, allocations: 83.95 kB / 341.1 MB, free: 12.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06753/0.509, allocations: 15.13 MB / 356.2 MB, free: 13.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.509, allocations: 0 / 356.2 MB, free: 13.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.569e-05/0.5091, allocations: 20 kB / 356.2 MB, free: 13.32 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.00301/0.5121, allocations: 0.995 MB / 357.2 MB, free: 12.28 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.323e-05/0.5122, allocations: 12.03 kB / 357.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002854/0.5125, allocations: 98.52 kB / 357.3 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000294/0.5128, allocations: 102.8 kB / 357.4 MB, free: 12.06 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001444/0.5143, allocations: 0.5317 MB / 358 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001836/0.5145, allocations: 49.31 kB / 358 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001717/0.5147, allocations: 63.98 kB / 358.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001719/0.5164, allocations: 0.5947 MB / 358.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.5165, allocations: 0 / 358.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.834e-05/0.5166, allocations: 24 kB / 358.7 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.027e-05/0.5166, allocations: 16 kB / 358.7 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.5181, allocations: 498.5 kB / 359.2 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006753/0.5249, allocations: 2.651 MB / 361.8 MB, free: 7.445 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001232/0.5262, allocations: 479.4 kB / 362.3 MB, free: 6.969 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008624/0.5271, allocations: 263.1 kB / 362.6 MB, free: 6.707 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.311e-05/0.5272, allocations: 16.42 kB / 362.6 MB, free: 6.691 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.5272, allocations: 38.98 kB / 362.6 MB, free: 6.645 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.705e-06/0.5272, allocations: 0 / 362.6 MB, free: 6.645 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.006678/0.5339, allocations: 1.368 MB / 364 MB, free: 5.273 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.534, allocations: 59.97 kB / 364 MB, free: 5.203 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001934/0.536, allocations: 0.8318 MB / 364.9 MB, free: 4.367 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001318/0.5361, allocations: 37.7 kB / 364.9 MB, free: 4.324 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003764/0.5365, allocations: 398.5 kB / 365.3 MB, free: 3.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002895/0.5368, allocations: 224.8 kB / 365.5 MB, free: 3.707 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.418e-05/0.5369, allocations: 16 kB / 365.5 MB, free: 3.691 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.5371, allocations: 334.8 kB / 365.9 MB, free: 3.355 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006703/0.5378, allocations: 209.5 kB / 366.1 MB, free: 3.148 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007227/0.5385, allocations: 311.6 kB / 366.4 MB, free: 2.812 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007342/0.5392, allocations: 271.8 kB / 366.6 MB, free: 2.539 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/0.5393, allocations: 7.938 kB / 366.6 MB, free: 2.531 MB / 314.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001796/0.5411, allocations: 0.642 MB / 367.3 MB, free: 1.879 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.611e-05/0.5412, allocations: 31.42 kB / 367.3 MB, free: 1.844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.5412, allocations: 4.281 kB / 367.3 MB, free: 1.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.043e-05/0.5412, allocations: 11.95 kB / 367.3 MB, free: 1.828 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/0.5429, allocations: 191.8 kB / 367.5 MB, free: 1.641 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.653e-05/0.543, allocations: 15.92 kB / 367.5 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.5442, allocations: 59.95 kB / 367.6 MB, free: 1.566 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.429e-05/0.5443, allocations: 27.94 kB / 367.6 MB, free: 1.539 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 88 * 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.0002212/0.5445, allocations: 140.8 kB / 367.8 MB, free: 1.395 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002384/0.5448, allocations: 82.97 kB / 367.8 MB, free: 1.312 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00173/0.5465, allocations: 0.5776 MB / 368.4 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.5466, allocations: 8 kB / 368.4 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/0.5466, allocations: 3.953 kB / 368.4 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.5466, allocations: 3.984 kB / 368.4 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2246/0.7712, allocations: 1.857 MB / 370.3 MB, free: 87.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.7713, allocations: 6.031 kB / 370.3 MB, free: 87.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001347/0.7727, allocations: 149.4 kB / 370.4 MB, free: 87.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-05/0.7727, allocations: 5.312 kB / 370.5 MB, free: 87.58 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-05/0.7728, allocations: 20.8 kB / 370.5 MB, free: 87.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.806e-05/0.7728, allocations: 10 kB / 370.5 MB, free: 87.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.306e-06/0.7728, allocations: 3.188 kB / 370.5 MB, free: 87.58 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.7745, allocations: 0.821 MB / 371.3 MB, free: 87.17 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005046/0.775, allocations: 237.2 kB / 371.5 MB, free: 87.07 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/0.7752, allocations: 18.3 kB / 371.6 MB, free: 87.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009183/0.7761, allocations: 57.08 kB / 371.6 MB, free: 87.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.7763, allocations: 50.64 kB / 371.7 MB, free: 87.07 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.202e-05/0.7763, allocations: 22.06 kB / 371.7 MB, free: 87.07 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001184/0.7775, allocations: 0.6594 MB / 372.3 MB, free: 86.97 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7775, allocations: 0 / 372.3 MB, free: 86.97 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009459/0.7785, allocations: 186.6 kB / 372.5 MB, free: 86.97 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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 Backend phase and start with SimCode phase: time 0.002186/0.7807, allocations: 2.246 MB / 374.8 MB, free: 85.26 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001312/0.782, allocations: 0.5637 MB / 375.3 MB, free: 85.19 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.782, allocations: 0 / 375.3 MB, free: 85.19 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006127/0.7827, allocations: 273.8 kB / 375.6 MB, free: 85.19 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009734/0.7837, allocations: 107.8 kB / 375.7 MB, free: 85.17 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003559/0.7872, allocations: 1.384 MB / 377.1 MB, free: 84.73 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005049/0.7878, allocations: 0.9761 MB / 378.1 MB, free: 84.03 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007139/0.7885, allocations: 302.7 kB / 378.4 MB, free: 84.02 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.7885, allocations: 0 / 378.4 MB, free: 84.02 MB / 314.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_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.o OMCppModelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.cpp In file included from OMCppModelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourFMU.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_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.so OMCppModelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.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/Magnetic" "-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_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_FMU.makefile:93: recipe for target 'Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu' failed make: *** [Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu] Error 1