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.747/1.747, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 7.154e-05/7.177e-05, allocations: 4 kB / 225.1 MB, free: 2.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2677, allocations: 38.76 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1444/0.4121, allocations: 79.19 MB / 343 MB, free: 10.54 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003311/0.4125, allocations: 83.95 kB / 343.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09791/0.5104, allocations: 21.32 MB / 364.4 MB, free: 5.055 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.659e-06/0.5105, allocations: 0 / 364.4 MB, free: 5.055 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.83e-05/0.5106, allocations: 23.94 kB / 364.4 MB, free: 5.031 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.004531/0.5151, allocations: 1.245 MB / 365.7 MB, free: 3.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.032e-05/0.5152, allocations: 8.031 kB / 365.7 MB, free: 3.723 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005187/0.5157, allocations: 147.9 kB / 365.8 MB, free: 3.57 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004902/0.5162, allocations: 131.1 kB / 366 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.5183, allocations: 0.6484 MB / 366.6 MB, free: 2.754 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002334/0.5186, allocations: 81.92 kB / 366.7 MB, free: 2.672 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003183/0.5189, allocations: 95.91 kB / 366.8 MB, free: 2.578 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003004/0.5219, allocations: 0.9269 MB / 367.7 MB, free: 1.637 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.221e-05/0.522, allocations: 4 kB / 367.7 MB, free: 1.633 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001569/0.5222, allocations: 43.94 kB / 367.8 MB, free: 1.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.855e-05/0.5223, allocations: 20 kB / 367.8 MB, free: 1.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002684/0.5249, allocations: 0.7697 MB / 368.6 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2558/0.7808, allocations: 3.83 MB / 372.4 MB, free: 82.17 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00339/0.7843, allocations: 0.8414 MB / 373.2 MB, free: 82.12 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/0.7854, allocations: 376.2 kB / 373.6 MB, free: 82.1 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.861e-05/0.7856, allocations: 14.2 kB / 373.6 MB, free: 82.1 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.7856, allocations: 40.91 kB / 373.6 MB, free: 82.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 4.418e-06/0.7856, allocations: 0 / 373.6 MB, free: 82.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.006274/0.7919, allocations: 1.647 MB / 375.3 MB, free: 81.72 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.511e-05/0.7921, allocations: 85.36 kB / 375.4 MB, free: 81.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001698/0.7938, allocations: 0.8087 MB / 376.2 MB, free: 81.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001976/0.794, allocations: 40.58 kB / 376.2 MB, free: 81.46 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003874/0.7944, allocations: 0.5099 MB / 376.7 MB, free: 81.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003606/0.7948, allocations: 288.8 kB / 377 MB, free: 81.06 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.7949, allocations: 18.44 kB / 377 MB, free: 81.06 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.795, allocations: 346.2 kB / 377.4 MB, free: 80.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009375/0.796, allocations: 297.7 kB / 377.7 MB, free: 80.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000979/0.797, allocations: 466.2 kB / 378.1 MB, free: 80.6 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.7981, allocations: 366.8 kB / 378.5 MB, free: 80.56 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.7981, allocations: 2.5 kB / 378.5 MB, free: 80.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002368/0.8005, allocations: 0.894 MB / 379.4 MB, free: 80.46 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.726e-05/0.8006, allocations: 35.73 kB / 379.4 MB, free: 80.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.8006, allocations: 7.547 kB / 379.4 MB, free: 80.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.654e-05/0.8007, allocations: 15.02 kB / 379.4 MB, free: 80.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00273/0.8034, allocations: 345.3 kB / 379.8 MB, free: 80.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.039e-05/0.8035, allocations: 13.62 kB / 379.8 MB, free: 80.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.8054, allocations: 119.9 kB / 379.9 MB, free: 80.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.8056, allocations: 37.95 kB / 379.9 MB, free: 80.42 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.0002797/0.8059, allocations: 161.1 kB / 380.1 MB, free: 80.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002753/0.8062, allocations: 100.9 kB / 380.2 MB, free: 80.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001048/0.8072, allocations: 360.2 kB / 380.5 MB, free: 80.21 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.8073, allocations: 10.22 kB / 380.6 MB, free: 80.21 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.8073, allocations: 8.891 kB / 380.6 MB, free: 80.21 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.8073, allocations: 3.797 kB / 380.6 MB, free: 80.21 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006683/0.814, allocations: 2.886 MB / 383.5 MB, free: 78.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.659e-05/0.8141, allocations: 15.53 kB / 383.5 MB, free: 78.58 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001947/0.816, allocations: 269.6 kB / 383.7 MB, free: 78.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.813e-05/0.8161, allocations: 18.5 kB / 383.7 MB, free: 78.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/0.8162, allocations: 32.56 kB / 383.8 MB, free: 78.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.975e-05/0.8163, allocations: 18.41 kB / 383.8 MB, free: 78.54 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.547e-05/0.8163, allocations: 18.81 kB / 383.8 MB, free: 78.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/0.8184, allocations: 1.677 MB / 385.5 MB, free: 76.83 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004044/0.8189, allocations: 209.1 kB / 385.7 MB, free: 76.66 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/0.8191, allocations: 39.58 kB / 385.7 MB, free: 76.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00139/0.8205, allocations: 86.7 kB / 385.8 MB, free: 76.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.8208, allocations: 88.25 kB / 385.9 MB, free: 76.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.182e-05/0.8209, allocations: 39.08 kB / 385.9 MB, free: 76.59 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001232/0.8221, allocations: 0.6176 MB / 386.6 MB, free: 76.32 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.8221, allocations: 3.938 kB / 386.6 MB, free: 76.31 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001488/0.8236, allocations: 231.8 kB / 386.8 MB, free: 76.29 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.003545/0.8272, allocations: 5.535 MB / 392.3 MB, free: 70.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002043/0.8293, allocations: 0.7706 MB / 393.1 MB, free: 70.59 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.7e-05/0.8294, allocations: 7.969 kB / 393.1 MB, free: 70.58 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.8305, allocations: 406.1 kB / 393.5 MB, free: 70.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001749/0.8323, allocations: 188.8 kB / 393.7 MB, free: 70.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005734/0.838, allocations: 1.774 MB / 395.5 MB, free: 69.25 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000677/0.8388, allocations: 1.054 MB / 396.5 MB, free: 68.53 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001069/0.8399, allocations: 398 kB / 396.9 MB, free: 68.25 MB / 314.7 MB Notification: Performance of SimCode: time 1.012e-06/0.8399, allocations: 3.938 kB / 396.9 MB, free: 68.24 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