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.822/1.822, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.724e-05/2.727e-05, allocations: 3.094 kB / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 44.51 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4074/0.5145, allocations: 82 MB / 382 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.5148, allocations: 86.36 kB / 382 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05953/0.5743, allocations: 15.14 MB / 397.2 MB, free: 10.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5744, allocations: 3.969 kB / 397.2 MB, free: 10.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.883e-05/0.5745, allocations: 15.34 kB / 397.2 MB, free: 10.97 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.002462/0.5769, allocations: 1.001 MB / 398.2 MB, free: 10.26 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.577, allocations: 11.62 kB / 398.2 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001683/0.5772, allocations: 98.36 kB / 398.3 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002246/0.5774, allocations: 97.36 kB / 398.4 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.5785, allocations: 0.5296 MB / 398.9 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.5787, allocations: 48.5 kB / 399 MB, free: 9.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.5789, allocations: 62.02 kB / 399 MB, free: 9.816 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001414/0.5803, allocations: 0.6024 MB / 399.6 MB, free: 9.664 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.057e-05/0.5803, allocations: 3.906 kB / 399.6 MB, free: 9.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.891e-05/0.5804, allocations: 22.12 kB / 399.7 MB, free: 9.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.5805, allocations: 23.45 kB / 399.7 MB, free: 9.652 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.5818, allocations: 0.4917 MB / 400.2 MB, free: 9.617 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005528/0.5873, allocations: 2.652 MB / 402.8 MB, free: 8.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.5883, allocations: 453.6 kB / 403.3 MB, free: 8.137 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007182/0.5891, allocations: 277.6 kB / 403.6 MB, free: 8.105 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.884e-05/0.5892, allocations: 8.031 kB / 403.6 MB, free: 8.105 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.549e-05/0.5892, allocations: 45.08 kB / 403.6 MB, free: 8.062 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.925e-06/0.5892, allocations: 0 / 403.6 MB, free: 8.062 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.005683/0.5949, allocations: 1.367 MB / 405 MB, free: 7.637 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.595, allocations: 63.59 kB / 405 MB, free: 7.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001574/0.5966, allocations: 0.8306 MB / 405.9 MB, free: 7.371 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.473e-05/0.5966, allocations: 36.33 kB / 405.9 MB, free: 7.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002374/0.5969, allocations: 400 kB / 406.3 MB, free: 7.082 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000183/0.5971, allocations: 229 kB / 406.5 MB, free: 6.918 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.928e-05/0.5972, allocations: 8.875 kB / 406.5 MB, free: 6.918 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.569e-05/0.5972, allocations: 343.6 kB / 406.9 MB, free: 6.594 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005762/0.5978, allocations: 209.8 kB / 407.1 MB, free: 6.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005873/0.5984, allocations: 297.6 kB / 407.4 MB, free: 6.492 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006174/0.5991, allocations: 277.2 kB / 407.6 MB, free: 6.422 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.5991, allocations: 0 / 407.6 MB, free: 6.422 MB / 314.7 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001475/0.6006, allocations: 0.6444 MB / 408.3 MB, free: 6.273 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.6006, allocations: 35.02 kB / 408.3 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.6006, allocations: 0 / 408.3 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.746e-05/0.6007, allocations: 7.75 kB / 408.3 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/0.6022, allocations: 198.7 kB / 408.5 MB, free: 6.195 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.6023, allocations: 11.84 kB / 408.5 MB, free: 6.188 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.6034, allocations: 64.58 kB / 408.6 MB, free: 6.172 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.42e-05/0.6035, allocations: 22.25 kB / 408.6 MB, free: 6.172 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.0001747/0.6036, allocations: 149 kB / 408.7 MB, free: 6.051 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.6038, allocations: 89.67 kB / 408.8 MB, free: 6.004 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/0.6053, allocations: 0.5741 MB / 409.4 MB, free: 5.867 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.6053, allocations: 11.69 kB / 409.4 MB, free: 5.863 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.6053, allocations: 0 / 409.4 MB, free: 5.863 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.6054, allocations: 3.984 kB / 409.4 MB, free: 5.859 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003707/0.6091, allocations: 1.875 MB / 411.3 MB, free: 4.945 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.6091, allocations: 4.328 kB / 411.3 MB, free: 4.941 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.6103, allocations: 151.7 kB / 411.5 MB, free: 4.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.418e-05/0.6103, allocations: 7.75 kB / 411.5 MB, free: 4.906 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-05/0.6104, allocations: 15.08 kB / 411.5 MB, free: 4.902 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.528e-06/0.6104, allocations: 7.812 kB / 411.5 MB, free: 4.902 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.6104, allocations: 3.844 kB / 411.5 MB, free: 4.902 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.6117, allocations: 0.8267 MB / 412.3 MB, free: 4.391 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004456/0.6122, allocations: 239.4 kB / 412.5 MB, free: 4.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.6123, allocations: 19.36 kB / 412.6 MB, free: 4.227 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008774/0.6132, allocations: 61.48 kB / 412.6 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.6134, allocations: 38.73 kB / 412.7 MB, free: 4.195 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.314e-05/0.6134, allocations: 26.3 kB / 412.7 MB, free: 4.191 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001131/0.6146, allocations: 0.6606 MB / 413.3 MB, free: 4.043 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6146, allocations: 3.875 kB / 413.4 MB, free: 4.043 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008881/0.6155, allocations: 179 kB / 413.5 MB, free: 4.039 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.002287/0.6178, allocations: 2.275 MB / 415.8 MB, free: 18.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.6192, allocations: 0.5598 MB / 416.4 MB, free: 18.1 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.6192, allocations: 0 / 416.4 MB, free: 18.1 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005964/0.6198, allocations: 272.1 kB / 416.6 MB, free: 18.07 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.6208, allocations: 99.02 kB / 416.7 MB, free: 18.05 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003609/0.6244, allocations: 1.383 MB / 418.1 MB, free: 17.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000648/0.6251, allocations: 0.9761 MB / 419.1 MB, free: 16.61 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000722/0.6259, allocations: 303.4 kB / 419.4 MB, free: 16.57 MB / 330.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6259, allocations: 0 / 419.4 MB, free: 16.57 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