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.903/1.903, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.08e-05/3.089e-05, allocations: 4 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09055/0.09061, allocations: 44.5 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4341/0.5248, allocations: 87.14 MB / 387.1 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003585/0.5252, allocations: 86.45 kB / 387.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2421/0.7673, allocations: 49.41 MB / 436.6 MB, free: 12.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.7674, allocations: 0 / 436.6 MB, free: 12.28 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002135/0.7676, allocations: 48 kB / 436.6 MB, free: 12.23 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.009723/0.7773, allocations: 2.324 MB / 438.9 MB, free: 10 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.7774, allocations: 8.031 kB / 439 MB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000973/0.7784, allocations: 293 kB / 439.2 MB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008809/0.7793, allocations: 288.4 kB / 439.5 MB, free: 9.543 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004604/0.7839, allocations: 1.327 MB / 440.8 MB, free: 8.523 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/0.7841, allocations: 155.1 kB / 441 MB, free: 8.434 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006883/0.7848, allocations: 214.3 kB / 441.2 MB, free: 8.293 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006108/0.791, allocations: 1.79 MB / 443 MB, free: 6.934 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.126e-05/0.7911, allocations: 0 / 443 MB, free: 6.934 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003232/0.7914, allocations: 84 kB / 443.1 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-05/0.7915, allocations: 52 kB / 443.1 MB, free: 6.801 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006146/0.7977, allocations: 1.77 MB / 444.9 MB, free: 5.016 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02737/0.8251, allocations: 7.597 MB / 452.5 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006036/0.8312, allocations: 2.243 MB / 454.7 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004057/0.8353, allocations: 1.284 MB / 456 MB, free: 9.668 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002851/0.8356, allocations: 45.41 kB / 456.1 MB, free: 9.633 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.889e-05/0.8357, allocations: 56.56 kB / 456.1 MB, free: 9.566 MB / 346.7 MB Notification: Performance of pre-optimization done (n=240): time 5.13e-06/0.8357, allocations: 3.938 kB / 456.1 MB, free: 9.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=372): time 0.09411/0.9298, allocations: 15.3 MB / 471.4 MB, free: 10.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1248/1.055, allocations: 30.86 MB / 0.4905 GB, free: 10.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004179/1.059, allocations: 1.608 MB / 0.4921 GB, free: 9.176 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007455/1.06, allocations: 89.7 kB / 0.4922 GB, free: 9.082 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009934/1.061, allocations: 0.8829 MB / 0.493 GB, free: 8.191 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001947/1.063, allocations: 1.23 MB / 0.4942 GB, free: 6.973 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004248/1.063, allocations: 68 kB / 0.4943 GB, free: 6.906 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003203/1.063, allocations: 441.9 kB / 0.4947 GB, free: 6.465 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004324/1.068, allocations: 1.257 MB / 0.4959 GB, free: 5.207 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004996/1.073, allocations: 1.54 MB / 0.4974 GB, free: 3.621 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005166/1.078, allocations: 1.461 MB / 0.4989 GB, free: 2.145 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.625e-05/1.078, allocations: 0 / 0.4989 GB, free: 2.145 MB / 394.7 MB Notification: Performance of matching and sorting (n=434) (initialization): time 0.01973/1.098, allocations: 4.478 MB / 0.5032 GB, free: 13.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.396e-05/1.098, allocations: 37.64 kB / 0.5033 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.966e-05/1.098, allocations: 4 kB / 0.5033 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01059/1.109, allocations: 1.352 MB / 0.5046 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006074/1.115, allocations: 0.5773 MB / 0.5052 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3282/1.443, allocations: 19.21 MB / 0.5239 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005055/1.448, allocations: 167.7 kB / 0.5241 GB, free: 107.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009668/1.449, allocations: 118.1 kB / 0.5242 GB, free: 107.5 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.001082/1.45, allocations: 273.1 kB / 0.5245 GB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008915/1.451, allocations: 264 kB / 0.5247 GB, free: 107.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01939/1.471, allocations: 4.603 MB / 0.5292 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01621/1.487, allocations: 4.025 MB / 0.5331 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.071e-05/1.487, allocations: 4.516 kB / 0.5331 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001064/1.487, allocations: 17.2 kB / 0.5332 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03065/1.518, allocations: 9.765 MB / 0.5427 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.852e-05/1.518, allocations: 3.531 kB / 0.5427 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005173/1.523, allocations: 0.493 MB / 0.5432 GB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009909/1.533, allocations: 1.385 MB / 0.5445 GB, free: 105.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007951/1.534, allocations: 78.45 kB / 0.5446 GB, free: 105.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03343/1.567, allocations: 17.69 MB / 0.5619 GB, free: 92.22 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09777/1.665, allocations: 27.25 MB / 0.5885 GB, free: 75.53 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02249/1.688, allocations: 6.677 MB / 0.595 GB, free: 69.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002469/1.69, allocations: 0.7004 MB / 0.5957 GB, free: 68.53 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001049/1.691, allocations: 64 kB / 0.5958 GB, free: 68.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004524/1.696, allocations: 160.1 kB / 0.5959 GB, free: 68.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001374/1.697, allocations: 277.3 kB / 0.5962 GB, free: 68.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006033/1.698, allocations: 106 kB / 0.5963 GB, free: 68.08 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003009/1.701, allocations: 1.247 MB / 0.5975 GB, free: 66.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.11e-07/1.701, allocations: 0 / 0.5975 GB, free: 66.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005957/1.707, allocations: 1.074 MB / 0.5985 GB, free: 65.87 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.02428/1.731, allocations: 8.439 MB / 0.6068 GB, free: 57.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01223/1.743, allocations: 4.598 MB / 0.6113 GB, free: 53.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/1.743, allocations: 0 / 0.6113 GB, free: 53.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007916/1.751, allocations: 3.12 MB / 0.6143 GB, free: 50.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003097/1.755, allocations: 304.8 kB / 0.6146 GB, free: 49.99 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02151/1.776, allocations: 6.567 MB / 0.621 GB, free: 43.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002583/1.779, allocations: 1.829 MB / 0.6228 GB, free: 42.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003849/1.783, allocations: 1.118 MB / 0.6239 GB, free: 41.49 MB / 410.7 MB Notification: Performance of SimCode: time 1.353e-06/1.783, allocations: 0 / 0.6239 GB, free: 41.49 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