Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.893/1.893, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.64e-05/2.661e-05, allocations: 4 kB / 255.5 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09415/0.0942, allocations: 44.5 MB / 300 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4272/0.5215, allocations: 84.03 MB / 384 MB, free: 12.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003583/0.5219, allocations: 84.36 kB / 384.1 MB, free: 12.75 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Magnetic/FluxTubes.mo:1375:11-1375:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.1001/0.622, allocations: 21.33 MB / 405.4 MB, free: 8.551 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.6221, allocations: 4 kB / 405.4 MB, free: 8.547 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.995e-05/0.6222, allocations: 23.38 kB / 405.4 MB, free: 8.547 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.003939/0.6261, allocations: 1.256 MB / 406.7 MB, free: 7.699 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.6262, allocations: 7.844 kB / 406.7 MB, free: 7.699 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003633/0.6265, allocations: 147.8 kB / 406.8 MB, free: 7.637 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003403/0.6269, allocations: 128.5 kB / 407 MB, free: 7.574 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.6285, allocations: 0.6448 MB / 407.6 MB, free: 7.199 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/0.6287, allocations: 83.36 kB / 407.7 MB, free: 7.188 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002285/0.6289, allocations: 92.62 kB / 407.8 MB, free: 7.188 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002414/0.6314, allocations: 0.9297 MB / 408.7 MB, free: 7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.975e-05/0.6314, allocations: 7.844 kB / 408.7 MB, free: 6.996 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/0.6316, allocations: 38.34 kB / 408.8 MB, free: 6.996 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.6316, allocations: 23.5 kB / 408.8 MB, free: 6.996 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002147/0.6338, allocations: 0.7522 MB / 409.5 MB, free: 6.953 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009096/0.6429, allocations: 3.855 MB / 413.4 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00355/0.6465, allocations: 0.8359 MB / 414.2 MB, free: 4.812 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001095/0.6477, allocations: 379.3 kB / 414.6 MB, free: 4.781 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.703e-05/0.6478, allocations: 16.33 kB / 414.6 MB, free: 4.773 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.6478, allocations: 45.75 kB / 414.7 MB, free: 4.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 3.226e-06/0.6478, allocations: 3.938 kB / 414.7 MB, free: 4.727 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.005686/0.6535, allocations: 1.628 MB / 416.3 MB, free: 4.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.6536, allocations: 92.3 kB / 416.4 MB, free: 4.086 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/0.6552, allocations: 0.8056 MB / 417.2 MB, free: 3.883 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000136/0.6553, allocations: 40.11 kB / 417.2 MB, free: 3.852 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003206/0.6557, allocations: 0.5102 MB / 417.7 MB, free: 3.516 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002536/0.6559, allocations: 293.5 kB / 418 MB, free: 3.305 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.854e-05/0.656, allocations: 20.31 kB / 418 MB, free: 3.305 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.052e-05/0.6561, allocations: 345.1 kB / 418.4 MB, free: 2.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008287/0.657, allocations: 302 kB / 418.7 MB, free: 2.977 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008839/0.6579, allocations: 454.1 kB / 419.1 MB, free: 2.801 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008773/0.6588, allocations: 369.9 kB / 419.5 MB, free: 2.723 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.6588, allocations: 0 / 419.5 MB, free: 2.723 MB / 314.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002125/0.6609, allocations: 0.8914 MB / 420.4 MB, free: 2.547 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.24e-05/0.661, allocations: 33.53 kB / 420.4 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.661, allocations: 3.875 kB / 420.4 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.207e-05/0.661, allocations: 11.62 kB / 420.4 MB, free: 2.512 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00269/0.6637, allocations: 355.4 kB / 420.8 MB, free: 2.422 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.372e-05/0.6638, allocations: 7.875 kB / 420.8 MB, free: 2.422 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.6656, allocations: 113 kB / 420.9 MB, free: 2.395 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.6657, allocations: 40.86 kB / 420.9 MB, free: 2.391 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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.0002561/0.666, allocations: 162.2 kB / 421.1 MB, free: 2.266 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002375/0.6662, allocations: 93.41 kB / 421.2 MB, free: 2.219 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/0.6673, allocations: 373.4 kB / 421.5 MB, free: 2.117 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.6673, allocations: 7.719 kB / 421.5 MB, free: 2.117 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.6673, allocations: 0 / 421.5 MB, free: 2.117 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.398e-05/0.6673, allocations: 7.828 kB / 421.5 MB, free: 2.113 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006822/0.6742, allocations: 2.853 MB / 424.4 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/0.6742, allocations: 11.59 kB / 424.4 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001993/0.6762, allocations: 278.1 kB / 424.7 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.696e-05/0.6763, allocations: 15.5 kB / 424.7 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001284/0.6764, allocations: 30.73 kB / 424.7 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.801e-05/0.6765, allocations: 19.66 kB / 424.7 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.274e-05/0.6765, allocations: 15.59 kB / 424.8 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002592/0.6791, allocations: 1.673 MB / 426.4 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004609/0.6796, allocations: 213.7 kB / 426.6 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002081/0.6798, allocations: 33.14 kB / 426.7 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/0.6812, allocations: 82.59 kB / 426.8 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.6814, allocations: 92.14 kB / 426.8 MB, free: 15.03 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.963e-05/0.6815, allocations: 43.8 kB / 426.9 MB, free: 15.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001255/0.6827, allocations: 0.6172 MB / 427.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6828, allocations: 3.938 kB / 427.5 MB, free: 14.88 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001425/0.6842, allocations: 239.3 kB / 427.7 MB, free: 14.88 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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.004864/0.6891, allocations: 5.55 MB / 433.3 MB, free: 9.711 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0022/0.6913, allocations: 0.7565 MB / 434.1 MB, free: 9.383 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-05/0.6914, allocations: 3.875 kB / 434.1 MB, free: 9.383 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.6926, allocations: 383.8 kB / 434.4 MB, free: 9.219 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00196/0.6946, allocations: 187.9 kB / 434.6 MB, free: 9.121 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006097/0.7007, allocations: 1.764 MB / 436.4 MB, free: 7.875 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008489/0.7016, allocations: 1.051 MB / 437.4 MB, free: 7.02 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/0.7027, allocations: 400.5 kB / 437.8 MB, free: 6.691 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.7027, allocations: 0 / 437.8 MB, free: 6.691 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_ForceCurrentBehaviourCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourFMU.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_ForceCurrentBehaviour.so OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.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_ForceCurrentBehaviour_FMU.makefile:93: recipe for target 'Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu' failed make: *** [Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu] Error 1