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 2.048/2.048, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.046e-05/3.048e-05, allocations: 4 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0938/0.09385, allocations: 44.51 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.418/0.5119, allocations: 84.03 MB / 384 MB, free: 12.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.5123, allocations: 84.48 kB / 384 MB, free: 12.48 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.08029/0.5926, allocations: 21.33 MB / 405.4 MB, free: 8.293 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.5927, allocations: 0 / 405.4 MB, free: 8.293 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001005/0.5928, allocations: 23.44 kB / 405.4 MB, free: 8.289 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.004273/0.5971, allocations: 1.253 MB / 406.7 MB, free: 7.445 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.5971, allocations: 11.67 kB / 406.7 MB, free: 7.441 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003605/0.5975, allocations: 142.8 kB / 406.8 MB, free: 7.383 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003447/0.5979, allocations: 128.1 kB / 406.9 MB, free: 7.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001528/0.5994, allocations: 0.646 MB / 407.6 MB, free: 6.941 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000183/0.5996, allocations: 83.41 kB / 407.7 MB, free: 6.934 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002097/0.5998, allocations: 93 kB / 407.7 MB, free: 6.934 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002406/0.6023, allocations: 0.9319 MB / 408.7 MB, free: 6.746 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.864e-05/0.6024, allocations: 11.69 kB / 408.7 MB, free: 6.738 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.6025, allocations: 38.69 kB / 408.7 MB, free: 6.738 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.144e-05/0.6025, allocations: 23.25 kB / 408.8 MB, free: 6.738 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002143/0.6047, allocations: 0.7683 MB / 409.5 MB, free: 6.688 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008636/0.6134, allocations: 3.864 MB / 413.4 MB, free: 4.695 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003163/0.6166, allocations: 0.8404 MB / 414.2 MB, free: 4.539 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008544/0.6174, allocations: 368.6 kB / 414.6 MB, free: 4.512 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.763e-05/0.6175, allocations: 23.61 kB / 414.6 MB, free: 4.504 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.6176, allocations: 46.19 kB / 414.7 MB, free: 4.461 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 3.266e-06/0.6176, allocations: 3.938 kB / 414.7 MB, free: 4.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.005513/0.6231, allocations: 1.637 MB / 416.3 MB, free: 3.906 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/0.6232, allocations: 85.42 kB / 416.4 MB, free: 3.812 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/0.6247, allocations: 0.8061 MB / 417.2 MB, free: 3.609 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001237/0.6248, allocations: 42.58 kB / 417.2 MB, free: 3.578 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003057/0.6251, allocations: 0.5031 MB / 417.7 MB, free: 3.246 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002502/0.6254, allocations: 300.2 kB / 418 MB, free: 3.031 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.756e-05/0.6255, allocations: 21.69 kB / 418 MB, free: 3.031 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.257e-05/0.6256, allocations: 352.1 kB / 418.4 MB, free: 2.703 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008739/0.6265, allocations: 299.9 kB / 418.7 MB, free: 2.695 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008714/0.6274, allocations: 455.1 kB / 419.1 MB, free: 2.527 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008652/0.6283, allocations: 361.4 kB / 419.5 MB, free: 2.453 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.595e-06/0.6283, allocations: 7.859 kB / 419.5 MB, free: 2.449 MB / 314.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002121/0.6304, allocations: 0.8974 MB / 420.4 MB, free: 2.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.245e-05/0.6305, allocations: 41.42 kB / 420.4 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.6305, allocations: 3.875 kB / 420.4 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.052e-05/0.6305, allocations: 7.75 kB / 420.4 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002611/0.6332, allocations: 349.2 kB / 420.8 MB, free: 2.148 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.484e-05/0.6332, allocations: 15.67 kB / 420.8 MB, free: 2.141 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/0.635, allocations: 115.2 kB / 420.9 MB, free: 2.113 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.6351, allocations: 38.23 kB / 420.9 MB, free: 2.109 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.0002385/0.6354, allocations: 164.8 kB / 421.1 MB, free: 1.984 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/0.6356, allocations: 93.06 kB / 421.2 MB, free: 1.938 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009717/0.6366, allocations: 371.7 kB / 421.6 MB, free: 1.84 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.6366, allocations: 11.7 kB / 421.6 MB, free: 1.836 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.6366, allocations: 0 / 421.6 MB, free: 1.836 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.6366, allocations: 7.859 kB / 421.6 MB, free: 1.832 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005914/0.6426, allocations: 2.885 MB / 424.5 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.6426, allocations: 15.64 kB / 424.5 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001857/0.6445, allocations: 272.2 kB / 424.7 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.309e-05/0.6445, allocations: 19.25 kB / 424.8 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-05/0.6446, allocations: 26.47 kB / 424.8 MB, free: 492 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.702e-05/0.6446, allocations: 27.42 kB / 424.8 MB, free: 480 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.149e-05/0.6447, allocations: 15.59 kB / 424.8 MB, free: 476 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002343/0.647, allocations: 1.676 MB / 426.5 MB, free: 14.96 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004215/0.6475, allocations: 210.1 kB / 426.7 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002044/0.6477, allocations: 26.81 kB / 426.7 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.649, allocations: 81.72 kB / 426.8 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/0.6492, allocations: 91.38 kB / 426.9 MB, free: 14.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.698e-05/0.6493, allocations: 37.31 kB / 426.9 MB, free: 14.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001259/0.6506, allocations: 0.6169 MB / 427.6 MB, free: 14.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.6506, allocations: 3.938 kB / 427.6 MB, free: 14.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001297/0.6519, allocations: 240.2 kB / 427.8 MB, free: 14.59 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.004737/0.6567, allocations: 5.557 MB / 433.4 MB, free: 9.406 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001973/0.6587, allocations: 0.7754 MB / 434.1 MB, free: 9.242 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/0.6587, allocations: 1 kB / 434.1 MB, free: 9.242 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.6598, allocations: 405.6 kB / 434.5 MB, free: 9.062 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001636/0.6614, allocations: 180.3 kB / 434.7 MB, free: 8.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005447/0.6669, allocations: 1.777 MB / 436.5 MB, free: 7.723 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008606/0.6678, allocations: 1.053 MB / 437.5 MB, free: 6.863 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001106/0.6689, allocations: 399.2 kB / 437.9 MB, free: 6.539 MB / 330.7 MB Notification: Performance of SimCode: time 1.423e-06/0.6689, allocations: 0 / 437.9 MB, free: 6.539 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