Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.647/1.647, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.956e-05/4.977e-05, allocations: 0 / 225.1 MB, free: 2.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2571, allocations: 38.77 MB / 263.8 MB, free: 9.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1622/0.4194, allocations: 82.88 MB / 346.7 MB, free: 6.832 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003886/0.4198, allocations: 87.94 kB / 346.8 MB, free: 6.746 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3936/0.8134, allocations: 44.12 MB / 390.9 MB, free: 81.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.8135, allocations: 0 / 390.9 MB, free: 81.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001776/0.8137, allocations: 44.72 kB / 391 MB, free: 81.48 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: 513 * Number of variables: 513 Notification: Performance of Generate backend data structure: time 0.008065/0.8218, allocations: 2.315 MB / 393.3 MB, free: 79.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.8218, allocations: 8.031 kB / 393.3 MB, free: 79.35 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000772/0.8226, allocations: 283 kB / 393.6 MB, free: 79.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007743/0.8234, allocations: 288.8 kB / 393.8 MB, free: 78.78 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00338/0.8268, allocations: 1.269 MB / 395.1 MB, free: 77.49 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/0.827, allocations: 160 kB / 395.3 MB, free: 77.33 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004808/0.8275, allocations: 195.9 kB / 395.5 MB, free: 77.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004755/0.8322, allocations: 1.732 MB / 397.2 MB, free: 75.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-05/0.8323, allocations: 0 / 397.2 MB, free: 75.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002811/0.8326, allocations: 83.94 kB / 397.3 MB, free: 75.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.866e-05/0.8327, allocations: 52 kB / 397.3 MB, free: 75.22 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004774/0.8375, allocations: 1.707 MB / 399 MB, free: 73.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01879/0.8563, allocations: 7.458 MB / 406.5 MB, free: 65.85 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004393/0.8607, allocations: 2.145 MB / 408.6 MB, free: 63.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003225/0.864, allocations: 1.243 MB / 409.9 MB, free: 62.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003152/0.8643, allocations: 123.5 kB / 410 MB, free: 62.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.147e-05/0.8644, allocations: 60.52 kB / 410.1 MB, free: 62.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=226): time 4.689e-06/0.8644, allocations: 0 / 410.1 MB, free: 62.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=347): time 0.09353/0.958, allocations: 15.06 MB / 425.1 MB, free: 47.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1969/1.155, allocations: 33.22 MB / 458.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003373/1.158, allocations: 1.608 MB / 459.9 MB, free: 11.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006794/1.159, allocations: 85.7 kB / 460 MB, free: 11.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006479/1.16, allocations: 0.8863 MB / 460.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001122/1.161, allocations: 1.14 MB / 462 MB, free: 9.586 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003461/1.161, allocations: 72.09 kB / 462.1 MB, free: 9.516 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/1.161, allocations: 425.5 kB / 462.5 MB, free: 9.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00351/1.165, allocations: 1.311 MB / 463.8 MB, free: 7.777 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003671/1.169, allocations: 1.592 MB / 465.4 MB, free: 6.137 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003852/1.172, allocations: 1.502 MB / 466.9 MB, free: 4.617 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.306e-05/1.173, allocations: 0 / 466.9 MB, free: 4.617 MB / 314.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.01029/1.183, allocations: 4.049 MB / 471 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.49e-05/1.183, allocations: 33.7 kB / 471 MB, free: 488 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/1.183, allocations: 4 kB / 471 MB, free: 484 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01918/1.202, allocations: 1.521 MB / 472.5 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006608/1.209, allocations: 0.6083 MB / 473.2 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01279/1.222, allocations: 9.862 MB / 483 MB, free: 3.746 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005246/1.227, allocations: 163.9 kB / 483.2 MB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005122/1.227, allocations: 135.9 kB / 483.3 MB, free: 3.453 MB / 330.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 (301): * Single equations (assignments): 291 * 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 45,2 38} Notification: Performance of prepare postOptimizeDAE: time 0.0008992/1.228, allocations: 267.2 kB / 483.6 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007714/1.229, allocations: 260.9 kB / 483.8 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01251/1.242, allocations: 4.178 MB / 488 MB, free: 14.69 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01054/1.252, allocations: 3.584 MB / 491.6 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/1.252, allocations: 4 kB / 491.6 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.315e-05/1.252, allocations: 15.94 kB / 491.6 MB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02581/1.278, allocations: 9.505 MB / 0.4894 GB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-05/1.278, allocations: 4 kB / 0.4894 GB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005921/1.284, allocations: 0.5189 MB / 0.4899 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2474/1.532, allocations: 1.557 MB / 0.4914 GB, free: 98.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007692/1.532, allocations: 94.64 kB / 0.4915 GB, free: 98.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0103/1.543, allocations: 9.889 MB / 0.5011 GB, free: 91.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1346/1.677, allocations: 28.81 MB / 0.5293 GB, free: 79.2 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01568/1.693, allocations: 6.307 MB / 0.5354 GB, free: 73.41 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002441/1.696, allocations: 0.7216 MB / 0.5361 GB, free: 72.79 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007962/1.696, allocations: 67.12 kB / 0.5362 GB, free: 72.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004332/1.701, allocations: 158.5 kB / 0.5364 GB, free: 72.61 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006605/1.701, allocations: 232.3 kB / 0.5366 GB, free: 72.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003651/1.702, allocations: 118 kB / 0.5367 GB, free: 72.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002539/1.704, allocations: 1.252 MB / 0.5379 GB, free: 71.24 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.11e-07/1.704, allocations: 0 / 0.5379 GB, free: 71.24 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004189/1.709, allocations: 0.866 MB / 0.5388 GB, free: 70.38 MB / 346.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 (242): * Single equations (assignments): 235 * 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 38,4 47} Notification: Performance of Backend phase and start with SimCode phase: time 0.01664/1.725, allocations: 8.043 MB / 0.5466 GB, free: 62.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01052/1.736, allocations: 4.095 MB / 0.5506 GB, free: 58.6 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/1.736, allocations: 8 kB / 0.5506 GB, free: 58.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006683/1.743, allocations: 2.554 MB / 0.5531 GB, free: 56.12 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002732/1.745, allocations: 306.6 kB / 0.5534 GB, free: 55.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01786/1.763, allocations: 6.45 MB / 0.5597 GB, free: 50.03 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001499/1.765, allocations: 1.746 MB / 0.5614 GB, free: 48.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003471/1.768, allocations: 1.138 MB / 0.5625 GB, free: 47.64 MB / 346.7 MB Notification: Performance of SimCode: time 1.333e-06/1.768, allocations: 4 kB / 0.5625 GB, free: 47.64 MB / 346.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_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.o OMCppModelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.cpp In file included from OMCppModelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationaryCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_1_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_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.so OMCppModelica_3_2_1_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.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_SolenoidActuator_ComparisonQuasiStationary_FMU.makefile:93: recipe for target 'Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu' failed make: *** [Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary.fmu] Error 1