Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.935/1.935, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.935e-05/2.945e-05, allocations: 4 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09198/0.09204, allocations: 44.5 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4184/0.5105, allocations: 82.01 MB / 381.9 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.5108, allocations: 82.66 kB / 382 MB, free: 12.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06178/0.5726, allocations: 15.15 MB / 397.2 MB, free: 11.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.5727, allocations: 0 / 397.2 MB, free: 11.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000106/0.5728, allocations: 15.16 kB / 397.2 MB, free: 11.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.002971/0.5758, allocations: 0.989 MB / 398.2 MB, free: 10.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.5759, allocations: 11.62 kB / 398.2 MB, free: 10.59 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002963/0.5762, allocations: 106.7 kB / 398.3 MB, free: 10.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003091/0.5765, allocations: 101.6 kB / 398.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/0.578, allocations: 0.5202 MB / 398.9 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.5783, allocations: 57.02 kB / 399 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001925/0.5785, allocations: 62.66 kB / 399 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.5802, allocations: 0.6039 MB / 399.6 MB, free: 9.992 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.262e-05/0.5803, allocations: 7.906 kB / 399.6 MB, free: 9.984 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001121/0.5805, allocations: 22.59 kB / 399.7 MB, free: 9.984 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.5805, allocations: 19.45 kB / 399.7 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00159/0.5821, allocations: 0.497 MB / 400.2 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006792/0.5889, allocations: 2.647 MB / 402.8 MB, free: 8.508 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.5902, allocations: 473.4 kB / 403.3 MB, free: 8.449 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008343/0.5911, allocations: 274.3 kB / 403.6 MB, free: 8.418 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.011e-05/0.5912, allocations: 12.17 kB / 403.6 MB, free: 8.414 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.5912, allocations: 34.38 kB / 403.6 MB, free: 8.375 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 3.447e-06/0.5912, allocations: 3.938 kB / 403.6 MB, free: 8.371 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.006696/0.5979, allocations: 1.373 MB / 405 MB, free: 7.949 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.598, allocations: 63.66 kB / 405 MB, free: 7.883 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001788/0.5998, allocations: 0.828 MB / 405.9 MB, free: 7.684 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001698/0.6001, allocations: 36.52 kB / 405.9 MB, free: 7.652 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002775/0.6004, allocations: 405.9 kB / 406.3 MB, free: 7.391 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002341/0.6006, allocations: 218.6 kB / 406.5 MB, free: 7.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.262e-05/0.6007, allocations: 13.47 kB / 406.5 MB, free: 7.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.6008, allocations: 344.5 kB / 406.9 MB, free: 6.906 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006096/0.6015, allocations: 206.1 kB / 407.1 MB, free: 6.906 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006271/0.6021, allocations: 308.4 kB / 407.4 MB, free: 6.805 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007047/0.6028, allocations: 275.4 kB / 407.6 MB, free: 6.734 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.6029, allocations: 0 / 407.6 MB, free: 6.734 MB / 314.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001669/0.6045, allocations: 0.6432 MB / 408.3 MB, free: 6.586 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.304e-05/0.6046, allocations: 37.58 kB / 408.3 MB, free: 6.551 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.6047, allocations: 3.984 kB / 408.3 MB, free: 6.547 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.002e-05/0.6047, allocations: 7.75 kB / 408.3 MB, free: 6.547 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/0.6064, allocations: 198.2 kB / 408.5 MB, free: 6.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.206e-05/0.6065, allocations: 7.844 kB / 408.5 MB, free: 6.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/0.6077, allocations: 68.3 kB / 408.6 MB, free: 6.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.303e-05/0.6078, allocations: 22.98 kB / 408.6 MB, free: 6.477 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.0002141/0.608, allocations: 140.6 kB / 408.8 MB, free: 6.359 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002147/0.6083, allocations: 93.05 kB / 408.8 MB, free: 6.312 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001593/0.6099, allocations: 0.5683 MB / 409.4 MB, free: 6.18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/0.6099, allocations: 11.69 kB / 409.4 MB, free: 6.176 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.6099, allocations: 7.938 kB / 409.4 MB, free: 6.168 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.61, allocations: 3.984 kB / 409.4 MB, free: 6.164 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004047/0.614, allocations: 1.881 MB / 411.3 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.6141, allocations: 3.875 kB / 411.3 MB, free: 5.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/0.6153, allocations: 156 kB / 411.5 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.449e-05/0.6153, allocations: 3.938 kB / 411.5 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.408e-05/0.6154, allocations: 17.84 kB / 411.5 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.178e-06/0.6154, allocations: 3.906 kB / 411.5 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.6154, allocations: 3.938 kB / 411.5 MB, free: 5.207 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.6169, allocations: 0.8263 MB / 412.3 MB, free: 4.695 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005223/0.6175, allocations: 241.2 kB / 412.6 MB, free: 4.531 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.6176, allocations: 16.88 kB / 412.6 MB, free: 4.531 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009262/0.6186, allocations: 57.42 kB / 412.6 MB, free: 4.516 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.6187, allocations: 53.19 kB / 412.7 MB, free: 4.496 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.232e-05/0.6188, allocations: 15.06 kB / 412.7 MB, free: 4.496 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00121/0.62, allocations: 0.6629 MB / 413.4 MB, free: 4.352 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.62, allocations: 0 / 413.4 MB, free: 4.352 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001038/0.6211, allocations: 178.8 kB / 413.5 MB, free: 4.344 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.002403/0.6235, allocations: 2.283 MB / 415.8 MB, free: 18.51 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00144/0.625, allocations: 0.5726 MB / 416.4 MB, free: 18.4 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.625, allocations: 0 / 416.4 MB, free: 18.4 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006357/0.6257, allocations: 277.5 kB / 416.7 MB, free: 18.37 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/0.6268, allocations: 103.6 kB / 416.8 MB, free: 18.34 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00399/0.6308, allocations: 1.387 MB / 418.2 MB, free: 17.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007244/0.6316, allocations: 0.9763 MB / 419.1 MB, free: 16.9 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007946/0.6324, allocations: 301.8 kB / 419.4 MB, free: 16.86 MB / 330.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6324, allocations: 0 / 419.4 MB, free: 16.86 MB / 330.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_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviourCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_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_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.so OMCppModelica_3_2_2_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.2/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.2/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_FMU.makefile:93: recipe for target 'Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu' failed make: *** [Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu] Error 1