Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.837/1.837, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.692e-05/3.707e-05, allocations: 3.984 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2765, allocations: 38.78 MB / 263.9 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.151/0.4276, allocations: 79.2 MB / 343.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000319/0.428, allocations: 87.94 kB / 343.1 MB, free: 10.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09941/0.5274, allocations: 21.32 MB / 364.5 MB, free: 4.941 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.5275, allocations: 0 / 364.5 MB, free: 4.941 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001039/0.5276, allocations: 23.98 kB / 364.5 MB, free: 4.918 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.004975/0.5326, allocations: 1.241 MB / 365.7 MB, free: 3.621 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/0.5326, allocations: 12.03 kB / 365.7 MB, free: 3.609 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005245/0.5332, allocations: 144 kB / 365.9 MB, free: 3.461 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000446/0.5336, allocations: 135.1 kB / 366 MB, free: 3.328 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/0.5356, allocations: 0.6484 MB / 366.7 MB, free: 2.641 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002376/0.5359, allocations: 78 kB / 366.7 MB, free: 2.562 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003037/0.5362, allocations: 95.89 kB / 366.8 MB, free: 2.469 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003404/0.5397, allocations: 0.9191 MB / 367.7 MB, free: 1.535 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.222e-05/0.5398, allocations: 8 kB / 367.8 MB, free: 1.527 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002062/0.54, allocations: 36 kB / 367.8 MB, free: 1.492 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.041e-05/0.5401, allocations: 20 kB / 367.8 MB, free: 1.473 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003506/0.5436, allocations: 0.7578 MB / 368.6 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.293/0.8367, allocations: 3.832 MB / 372.4 MB, free: 82.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003357/0.8401, allocations: 0.8298 MB / 373.2 MB, free: 82.03 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.8412, allocations: 371.5 kB / 373.6 MB, free: 82.01 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.99e-05/0.8413, allocations: 18.33 kB / 373.6 MB, free: 82.01 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.8414, allocations: 41.03 kB / 373.7 MB, free: 81.97 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 3.396e-06/0.8414, allocations: 0 / 373.7 MB, free: 81.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.006118/0.8475, allocations: 1.64 MB / 375.3 MB, free: 81.63 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.8476, allocations: 90.83 kB / 375.4 MB, free: 81.54 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/0.8493, allocations: 0.8008 MB / 376.2 MB, free: 81.41 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.8496, allocations: 43.86 kB / 376.2 MB, free: 81.38 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003581/0.8499, allocations: 0.5083 MB / 376.7 MB, free: 81.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002916/0.8502, allocations: 288.6 kB / 377 MB, free: 80.97 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.896e-05/0.8504, allocations: 18.56 kB / 377 MB, free: 80.97 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.741e-05/0.8505, allocations: 349.7 kB / 377.4 MB, free: 80.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008507/0.8513, allocations: 300.6 kB / 377.7 MB, free: 80.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008996/0.8522, allocations: 456.1 kB / 378.1 MB, free: 80.51 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009027/0.8532, allocations: 359.6 kB / 378.5 MB, free: 80.47 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.8532, allocations: 0 / 378.5 MB, free: 80.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002215/0.8554, allocations: 0.8953 MB / 379.4 MB, free: 80.37 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.323e-05/0.8555, allocations: 33.55 kB / 379.4 MB, free: 80.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.8555, allocations: 3.812 kB / 379.4 MB, free: 80.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.012e-05/0.8556, allocations: 15.7 kB / 379.4 MB, free: 80.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002797/0.8584, allocations: 346.3 kB / 379.7 MB, free: 80.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.16e-05/0.8585, allocations: 12.58 kB / 379.8 MB, free: 80.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.8605, allocations: 119.4 kB / 379.9 MB, free: 80.33 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001883/0.8607, allocations: 42.3 kB / 379.9 MB, free: 80.33 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.0002743/0.861, allocations: 158.1 kB / 380.1 MB, free: 80.23 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002948/0.8613, allocations: 96.19 kB / 380.2 MB, free: 80.18 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001038/0.8623, allocations: 366.4 kB / 380.5 MB, free: 80.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.8624, allocations: 14.97 kB / 380.5 MB, free: 80.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.8624, allocations: 3.953 kB / 380.5 MB, free: 80.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.8624, allocations: 3.703 kB / 380.5 MB, free: 80.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006766/0.8692, allocations: 2.852 MB / 383.4 MB, free: 78.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.655e-05/0.8693, allocations: 14.8 kB / 383.4 MB, free: 78.46 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001982/0.8713, allocations: 277.8 kB / 383.7 MB, free: 78.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-05/0.8713, allocations: 14.34 kB / 383.7 MB, free: 78.44 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/0.8714, allocations: 32.67 kB / 383.7 MB, free: 78.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.027e-05/0.8715, allocations: 23.47 kB / 383.8 MB, free: 78.43 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.329e-05/0.8715, allocations: 18.12 kB / 383.8 MB, free: 78.42 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/0.8736, allocations: 1.677 MB / 385.4 MB, free: 76.72 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000435/0.8741, allocations: 205.3 kB / 385.6 MB, free: 76.55 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002111/0.8743, allocations: 35.2 kB / 385.7 MB, free: 76.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0014/0.8758, allocations: 79.3 kB / 385.8 MB, free: 76.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002164/0.876, allocations: 94.38 kB / 385.9 MB, free: 76.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.164e-05/0.8761, allocations: 42.27 kB / 385.9 MB, free: 76.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001249/0.8774, allocations: 0.6168 MB / 386.5 MB, free: 76.21 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.8774, allocations: 0 / 386.5 MB, free: 76.21 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001685/0.8791, allocations: 233.5 kB / 386.7 MB, free: 76.18 MB / 314.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.003555/0.8827, allocations: 5.521 MB / 392.3 MB, free: 70.83 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002005/0.8847, allocations: 0.7507 MB / 393 MB, free: 70.49 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.542e-05/0.8848, allocations: 3.281 kB / 393 MB, free: 70.49 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.8859, allocations: 392.9 kB / 393.4 MB, free: 70.33 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00181/0.8877, allocations: 192.1 kB / 393.6 MB, free: 70.26 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005742/0.8935, allocations: 1.756 MB / 395.3 MB, free: 69.19 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000655/0.8942, allocations: 1.057 MB / 396.4 MB, free: 68.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001051/0.8953, allocations: 396.8 kB / 396.8 MB, free: 68.18 MB / 314.7 MB Notification: Performance of SimCode: time 1.543e-06/0.8953, allocations: 0 / 396.8 MB, free: 68.18 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_ForceCurrentBehaviourCalcHelperMain.o OMCppModelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.cpp In file included from OMCppModelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviourCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_1_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_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.so OMCppModelica_3_2_1_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.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_ForceCurrentBehaviour_FMU.makefile:93: recipe for target 'Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu' failed make: *** [Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu] Error 1