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.726/1.726, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.499e-05/3.524e-05, allocations: 0 / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2941, allocations: 38.76 MB / 263.8 MB, free: 9.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1443/0.4385, allocations: 77.13 MB / 341 MB, free: 12.61 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003278/0.4389, allocations: 83.95 kB / 341 MB, free: 12.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07092/0.5098, allocations: 15.13 MB / 356.2 MB, free: 13.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5099, allocations: 0 / 356.2 MB, free: 13.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.134e-05/0.51, allocations: 23.94 kB / 356.2 MB, free: 13.3 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.003325/0.5133, allocations: 0.9957 MB / 357.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.5134, allocations: 8.031 kB / 357.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002903/0.5137, allocations: 106.5 kB / 357.3 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003172/0.514, allocations: 98.78 kB / 357.4 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.5156, allocations: 0.5239 MB / 357.9 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001892/0.5159, allocations: 53.3 kB / 358 MB, free: 11.42 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001804/0.5161, allocations: 60 kB / 358 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001859/0.5179, allocations: 0.6012 MB / 358.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.513e-05/0.518, allocations: 3.938 kB / 358.6 MB, free: 10.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.5182, allocations: 28 kB / 358.7 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.093e-05/0.5182, allocations: 16 kB / 358.7 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.5199, allocations: 0.4894 MB / 359.2 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00732/0.5273, allocations: 2.647 MB / 361.8 MB, free: 7.426 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001305/0.5286, allocations: 484.3 kB / 362.3 MB, free: 6.945 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000886/0.5295, allocations: 270.5 kB / 362.6 MB, free: 6.676 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.429e-05/0.5296, allocations: 12.5 kB / 362.6 MB, free: 6.664 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.5297, allocations: 39 kB / 362.6 MB, free: 6.617 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 4.137e-06/0.5297, allocations: 0 / 362.6 MB, free: 6.617 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.006801/0.5365, allocations: 1.364 MB / 364 MB, free: 5.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/0.5367, allocations: 59.97 kB / 364 MB, free: 5.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002031/0.5387, allocations: 0.8356 MB / 364.9 MB, free: 4.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001515/0.5389, allocations: 37.7 kB / 364.9 MB, free: 4.297 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004156/0.5393, allocations: 406.5 kB / 365.3 MB, free: 3.895 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003409/0.5397, allocations: 220.8 kB / 365.5 MB, free: 3.676 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.796e-05/0.5398, allocations: 16 kB / 365.5 MB, free: 3.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.54, allocations: 334.8 kB / 365.9 MB, free: 3.324 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000695/0.5407, allocations: 209.5 kB / 366.1 MB, free: 3.117 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007529/0.5414, allocations: 313.2 kB / 366.4 MB, free: 2.777 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007542/0.5422, allocations: 275.7 kB / 366.6 MB, free: 2.504 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.5422, allocations: 0 / 366.6 MB, free: 2.504 MB / 314.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001864/0.5441, allocations: 0.6498 MB / 367.3 MB, free: 1.844 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.995e-05/0.5442, allocations: 29.98 kB / 367.3 MB, free: 1.809 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.5443, allocations: 11.98 kB / 367.3 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.035e-05/0.5443, allocations: 7.953 kB / 367.3 MB, free: 1.789 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/0.5461, allocations: 191.8 kB / 367.5 MB, free: 1.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.913e-05/0.5461, allocations: 15.94 kB / 367.5 MB, free: 1.586 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/0.5474, allocations: 63.95 kB / 367.6 MB, free: 1.523 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.5476, allocations: 23.98 kB / 367.6 MB, free: 1.5 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.0002707/0.5479, allocations: 140.8 kB / 367.8 MB, free: 1.355 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002566/0.5481, allocations: 86.97 kB / 367.8 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.55, allocations: 0.5776 MB / 368.4 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.599e-05/0.55, allocations: 8 kB / 368.4 MB, free: 0.668 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/0.5501, allocations: 3.953 kB / 368.4 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.98e-05/0.5501, allocations: 3.984 kB / 368.4 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2317/0.7818, allocations: 1.865 MB / 370.3 MB, free: 87.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.7819, allocations: 2.594 kB / 370.3 MB, free: 87.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/0.7833, allocations: 153.3 kB / 370.5 MB, free: 87.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.24e-05/0.7834, allocations: 8.875 kB / 370.5 MB, free: 87.46 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.934e-05/0.7835, allocations: 14.72 kB / 370.5 MB, free: 87.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-05/0.7835, allocations: 5.703 kB / 370.5 MB, free: 87.46 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.746e-06/0.7835, allocations: 4.078 kB / 370.5 MB, free: 87.46 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.7852, allocations: 0.8215 MB / 371.3 MB, free: 87.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005483/0.7858, allocations: 242.9 kB / 371.5 MB, free: 86.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00016/0.786, allocations: 14.91 kB / 371.6 MB, free: 86.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000974/0.787, allocations: 60.09 kB / 371.6 MB, free: 86.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/0.7872, allocations: 49.98 kB / 371.7 MB, free: 86.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.766e-05/0.7872, allocations: 25.61 kB / 371.7 MB, free: 86.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001281/0.7885, allocations: 0.6569 MB / 372.4 MB, free: 86.85 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.7886, allocations: 2.562 kB / 372.4 MB, free: 86.85 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001079/0.7897, allocations: 178.8 kB / 372.5 MB, free: 86.85 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.002399/0.7921, allocations: 2.263 MB / 374.8 MB, free: 85.14 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001437/0.7936, allocations: 0.5705 MB / 375.4 MB, free: 85.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.7936, allocations: 0 / 375.4 MB, free: 85.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006786/0.7943, allocations: 277.2 kB / 375.6 MB, free: 85.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.7955, allocations: 113.5 kB / 375.7 MB, free: 85.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004117/0.7996, allocations: 1.379 MB / 377.1 MB, free: 84.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.8002, allocations: 0.9834 MB / 378.1 MB, free: 83.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008301/0.8011, allocations: 299.8 kB / 378.4 MB, free: 83.91 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.8011, allocations: 3.188 kB / 378.4 MB, free: 83.91 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