Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.505e-05, allocations: 4 kB / 255.5 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1397, allocations: 44.51 MB / 300 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4512/0.5909, allocations: 87.15 MB / 387.1 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/0.5913, allocations: 84.27 kB / 387.2 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.211/0.8023, allocations: 49.38 MB / 436.6 MB, free: 12.13 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.8023, allocations: 0 / 436.6 MB, free: 12.13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002761/0.8026, allocations: 48 kB / 436.6 MB, free: 12.08 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.01079/0.8134, allocations: 2.325 MB / 438.9 MB, free: 9.852 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.8135, allocations: 8.031 kB / 439 MB, free: 9.844 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001354/0.8148, allocations: 291.9 kB / 439.2 MB, free: 9.676 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001581/0.8165, allocations: 292.4 kB / 439.5 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005256/0.8218, allocations: 1.317 MB / 440.8 MB, free: 8.375 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003435/0.8222, allocations: 159.7 kB / 441 MB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001058/0.8232, allocations: 208.3 kB / 441.2 MB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008396/0.8317, allocations: 1.77 MB / 443 MB, free: 6.965 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001434/0.8318, allocations: 0 / 443 MB, free: 6.965 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006615/0.8325, allocations: 84 kB / 443.1 MB, free: 6.883 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.294e-05/0.8326, allocations: 48 kB / 443.1 MB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007693/0.8403, allocations: 1.742 MB / 444.8 MB, free: 5.086 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02833/0.8687, allocations: 7.597 MB / 452.4 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007015/0.8758, allocations: 2.222 MB / 454.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004751/0.8806, allocations: 1.284 MB / 455.9 MB, free: 9.758 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004008/0.881, allocations: 37.81 kB / 456 MB, free: 9.723 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.4e-05/0.8811, allocations: 64.5 kB / 456 MB, free: 9.652 MB / 346.7 MB Notification: Performance of pre-optimization done (n=240): time 5.34e-06/0.8811, allocations: 0 / 456 MB, free: 9.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=372): time 0.1004/0.9815, allocations: 15.29 MB / 471.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1354/1.117, allocations: 30.91 MB / 0.4905 GB, free: 10.83 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004687/1.122, allocations: 1.619 MB / 0.4921 GB, free: 9.211 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008632/1.123, allocations: 81.7 kB / 0.4921 GB, free: 9.125 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/1.124, allocations: 0.8901 MB / 0.493 GB, free: 8.23 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002199/1.126, allocations: 1.226 MB / 0.4942 GB, free: 7.016 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006494/1.127, allocations: 71.94 kB / 0.4943 GB, free: 6.945 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003945/1.127, allocations: 438 kB / 0.4947 GB, free: 6.508 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004947/1.132, allocations: 1.253 MB / 0.4959 GB, free: 5.254 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005534/1.138, allocations: 1.522 MB / 0.4974 GB, free: 3.688 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005682/1.143, allocations: 1.465 MB / 0.4988 GB, free: 2.207 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-05/1.144, allocations: 7.938 kB / 0.4988 GB, free: 2.199 MB / 394.7 MB Notification: Performance of matching and sorting (n=434) (initialization): time 0.02176/1.165, allocations: 4.462 MB / 0.5032 GB, free: 13.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.123e-05/1.165, allocations: 38.95 kB / 0.5032 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.691e-05/1.165, allocations: 0 / 0.5032 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01056/1.176, allocations: 1.345 MB / 0.5045 GB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00639/1.182, allocations: 0.5773 MB / 0.5051 GB, free: 11.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3214/1.504, allocations: 19.22 MB / 0.5239 GB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004823/1.509, allocations: 161.9 kB / 0.524 GB, free: 108.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004274/1.509, allocations: 120 kB / 0.5241 GB, free: 108.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (315): * Single equations (assignments): 305 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 51,2 43} Notification: Performance of prepare postOptimizeDAE: time 0.0008369/1.51, allocations: 278.8 kB / 0.5244 GB, free: 108.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007061/1.511, allocations: 263 kB / 0.5247 GB, free: 108.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01952/1.53, allocations: 4.604 MB / 0.5292 GB, free: 108 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01685/1.547, allocations: 4.025 MB / 0.5331 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.313e-05/1.547, allocations: 7.156 kB / 0.5331 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001087/1.547, allocations: 17.81 kB / 0.5331 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03111/1.578, allocations: 9.749 MB / 0.5426 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.233e-05/1.579, allocations: 6.188 kB / 0.5426 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005359/1.584, allocations: 0.4994 MB / 0.5431 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01006/1.594, allocations: 1.382 MB / 0.5445 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008303/1.595, allocations: 83.53 kB / 0.5446 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03478/1.63, allocations: 17.69 MB / 0.5618 GB, free: 92.81 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09846/1.728, allocations: 27.31 MB / 0.5885 GB, free: 76.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02289/1.751, allocations: 6.683 MB / 0.595 GB, free: 69.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002457/1.754, allocations: 0.6972 MB / 0.5957 GB, free: 69 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009633/1.755, allocations: 71.28 kB / 0.5958 GB, free: 68.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004537/1.759, allocations: 155 kB / 0.5959 GB, free: 68.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001337/1.761, allocations: 281.5 kB / 0.5962 GB, free: 68.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005622/1.761, allocations: 102.1 kB / 0.5963 GB, free: 68.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002988/1.764, allocations: 1.246 MB / 0.5975 GB, free: 67.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.52e-07/1.764, allocations: 0 / 0.5975 GB, free: 67.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005927/1.77, allocations: 1.074 MB / 0.5986 GB, free: 66.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (256): * Single equations (assignments): 249 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 43,4 53} Notification: Performance of Backend phase and start with SimCode phase: time 0.02398/1.794, allocations: 8.439 MB / 0.6068 GB, free: 58.26 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01266/1.807, allocations: 4.476 MB / 0.6112 GB, free: 53.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-05/1.807, allocations: 4 kB / 0.6112 GB, free: 53.86 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008524/1.816, allocations: 3.018 MB / 0.6141 GB, free: 50.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003281/1.819, allocations: 307.4 kB / 0.6144 GB, free: 50.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02115/1.84, allocations: 6.457 MB / 0.6207 GB, free: 44.76 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001926/1.842, allocations: 1.84 MB / 0.6225 GB, free: 43.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003438/1.846, allocations: 1.117 MB / 0.6236 GB, free: 42.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.673e-06/1.846, allocations: 0 / 0.6236 GB, free: 42.29 MB / 410.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_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryFMU.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_SolenoidActuator_ComparisonQuasiStationary.so OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.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_SolenoidActuator_ComparisonQuasiStationary_FMU.makefile:93: recipe for target 'Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu' failed make: *** [Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu] Error 1