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.709/1.709, allocations: 171.2 MB / 183.8 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.508e-05/3.514e-05, allocations: 7.984 kB / 225.1 MB, free: 2.609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2554, allocations: 38.76 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1445/0.4, allocations: 82.89 MB / 346.7 MB, free: 6.73 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003292/0.4003, allocations: 79.94 kB / 346.8 MB, free: 6.652 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4065/0.8068, allocations: 44.14 MB / 391 MB, free: 81.42 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.8069, allocations: 0 / 391 MB, free: 81.42 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000202/0.8071, allocations: 51.91 kB / 391 MB, free: 81.38 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.0089/0.816, allocations: 2.309 MB / 393.3 MB, free: 79.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.8161, allocations: 12.03 kB / 393.3 MB, free: 79.15 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009519/0.8171, allocations: 283 kB / 393.6 MB, free: 78.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009174/0.818, allocations: 288.8 kB / 393.9 MB, free: 78.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003675/0.8217, allocations: 1.269 MB / 395.2 MB, free: 77.29 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/0.8219, allocations: 152 kB / 395.3 MB, free: 77.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006008/0.8225, allocations: 199.9 kB / 395.5 MB, free: 76.94 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005421/0.8279, allocations: 1.701 MB / 397.2 MB, free: 75.19 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.731e-05/0.8281, allocations: 4 kB / 397.2 MB, free: 75.19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000303/0.8284, allocations: 80 kB / 397.3 MB, free: 75.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.074e-05/0.8284, allocations: 51.98 kB / 397.3 MB, free: 75.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00559/0.834, allocations: 1.691 MB / 399 MB, free: 73.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02156/0.8556, allocations: 7.453 MB / 406.5 MB, free: 65.72 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004894/0.8606, allocations: 2.119 MB / 408.6 MB, free: 63.55 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003514/0.8641, allocations: 1.241 MB / 409.8 MB, free: 62.31 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003207/0.8645, allocations: 126.4 kB / 410 MB, free: 62.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.8646, allocations: 60.52 kB / 410 MB, free: 62.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=226): time 5.06e-06/0.8646, allocations: 0 / 410 MB, free: 62.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=347): time 0.09775/0.9623, allocations: 15.06 MB / 425.1 MB, free: 46.98 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2233/1.186, allocations: 33.26 MB / 458.3 MB, free: 13.15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005565/1.191, allocations: 1.612 MB / 459.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009955/1.192, allocations: 81.7 kB / 460 MB, free: 11.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001111/1.193, allocations: 0.8834 MB / 460.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002058/1.196, allocations: 1.147 MB / 462.1 MB, free: 9.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000696/1.196, allocations: 64.09 kB / 462.1 MB, free: 9.367 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002925/1.197, allocations: 433.5 kB / 462.5 MB, free: 8.934 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005587/1.202, allocations: 1.311 MB / 463.9 MB, free: 7.621 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00619/1.208, allocations: 1.574 MB / 465.4 MB, free: 6 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004536/1.213, allocations: 1.502 MB / 466.9 MB, free: 4.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.809e-05/1.213, allocations: 4 kB / 466.9 MB, free: 4.477 MB / 314.7 MB Notification: Performance of matching and sorting (n=409) (initialization): time 0.01188/1.225, allocations: 4.033 MB / 471 MB, free: 400 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.235e-05/1.225, allocations: 33.7 kB / 471 MB, free: 360 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.792e-05/1.225, allocations: 4 kB / 471 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01992/1.245, allocations: 1.522 MB / 472.5 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00675/1.252, allocations: 0.6005 MB / 473.1 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01313/1.265, allocations: 9.855 MB / 483 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005508/1.271, allocations: 163.1 kB / 483.1 MB, free: 3.477 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009158/1.272, allocations: 135.9 kB / 483.3 MB, free: 3.344 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.001017/1.273, allocations: 278.8 kB / 483.5 MB, free: 3.066 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.274, allocations: 256.8 kB / 483.8 MB, free: 2.812 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01481/1.288, allocations: 4.166 MB / 488 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01243/1.301, allocations: 3.589 MB / 491.6 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-05/1.301, allocations: 4 kB / 491.6 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-05/1.301, allocations: 15.94 kB / 491.6 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02927/1.33, allocations: 9.495 MB / 0.4893 GB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.995e-05/1.33, allocations: 4 kB / 0.4893 GB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006151/1.337, allocations: 0.5167 MB / 0.4898 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2506/1.587, allocations: 1.556 MB / 0.4913 GB, free: 98.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008218/1.588, allocations: 95.73 kB / 0.4914 GB, free: 98.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01074/1.599, allocations: 9.874 MB / 0.5011 GB, free: 91.42 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1388/1.738, allocations: 28.86 MB / 0.5293 GB, free: 79.12 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01666/1.754, allocations: 6.303 MB / 0.5354 GB, free: 73.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002475/1.757, allocations: 0.7339 MB / 0.5361 GB, free: 72.86 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008887/1.758, allocations: 60 kB / 0.5362 GB, free: 72.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004781/1.763, allocations: 158.6 kB / 0.5363 GB, free: 72.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008711/1.764, allocations: 230.7 kB / 0.5366 GB, free: 72.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004252/1.764, allocations: 119.1 kB / 0.5367 GB, free: 72.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002643/1.767, allocations: 1.249 MB / 0.5379 GB, free: 71.32 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.132e-06/1.767, allocations: 0 / 0.5379 GB, free: 71.32 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004777/1.771, allocations: 0.8635 MB / 0.5387 GB, free: 70.46 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.01694/1.788, allocations: 8.048 MB / 0.5466 GB, free: 62.69 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01101/1.8, allocations: 4.021 MB / 0.5505 GB, free: 58.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/1.8, allocations: 0 / 0.5505 GB, free: 58.79 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006819/1.806, allocations: 2.511 MB / 0.553 GB, free: 56.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002838/1.809, allocations: 307.8 kB / 0.5533 GB, free: 56.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01812/1.827, allocations: 6.347 MB / 0.5595 GB, free: 50.38 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001525/1.829, allocations: 1.753 MB / 0.5612 GB, free: 48.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003466/1.832, allocations: 1.136 MB / 0.5623 GB, free: 47.98 MB / 346.7 MB Notification: Performance of SimCode: time 1.282e-06/1.833, allocations: 0 / 0.5623 GB, free: 47.98 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