Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.343e-05/3.353e-05, allocations: 4 kB / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08882/0.08888, allocations: 44.52 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.397/0.486, allocations: 78.9 MB / 378.8 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.4863, allocations: 82.45 kB / 378.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1218/0.6081, allocations: 38.49 MB / 417.4 MB, free: 2.172 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6082, allocations: 0 / 417.4 MB, free: 2.172 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002905/0.6085, allocations: 34.94 kB / 417.4 MB, free: 2.168 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004278/0.6128, allocations: 1.988 MB / 419.4 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.6128, allocations: 11.62 kB / 419.4 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001732/0.613, allocations: 75.33 kB / 419.5 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007041/0.6137, allocations: 284.3 kB / 419.8 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005267/0.619, allocations: 1.865 MB / 421.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.6191, allocations: 67.83 kB / 421.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002604/0.6194, allocations: 48.58 kB / 421.8 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009103/0.6203, allocations: 373.1 kB / 422.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.6204, allocations: 0 / 422.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.161e-05/0.6205, allocations: 13.81 kB / 422.2 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.6205, allocations: 7.625 kB / 422.2 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007674/0.6212, allocations: 300.6 kB / 422.5 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007576/0.6288, allocations: 3.098 MB / 425.6 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008073/0.6297, allocations: 304.4 kB / 425.9 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003367/0.6301, allocations: 151.5 kB / 426 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.048e-05/0.6301, allocations: 7.547 kB / 426 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.6302, allocations: 42.33 kB / 426 MB, free: 14.26 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 3.386e-06/0.6302, allocations: 4 kB / 426.1 MB, free: 14.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.008355/0.6386, allocations: 2.221 MB / 428.3 MB, free: 13.06 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.6386, allocations: 85.17 kB / 428.4 MB, free: 12.96 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01732/0.656, allocations: 4.834 MB / 433.2 MB, free: 10.45 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001301/0.6562, allocations: 37.45 kB / 433.2 MB, free: 10.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001503/0.6577, allocations: 0.8982 MB / 434.1 MB, free: 10.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002666/0.658, allocations: 167.4 kB / 434.3 MB, free: 10.02 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.658, allocations: 10.69 kB / 434.3 MB, free: 10.01 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.6582, allocations: 329.3 kB / 434.6 MB, free: 9.691 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004371/0.6586, allocations: 139 kB / 434.8 MB, free: 9.609 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004791/0.6591, allocations: 208.8 kB / 435 MB, free: 9.441 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006666/0.6598, allocations: 227 kB / 435.2 MB, free: 9.266 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.427e-06/0.6598, allocations: 4 kB / 435.2 MB, free: 9.262 MB / 330.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001412/0.6613, allocations: 0.5618 MB / 435.7 MB, free: 8.824 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.417e-05/0.6613, allocations: 58.16 kB / 435.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.6614, allocations: 7.938 kB / 435.8 MB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008343/0.6622, allocations: 148.4 kB / 436 MB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008125/0.6631, allocations: 95.19 kB / 436.1 MB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001525/0.6646, allocations: 0.7606 MB / 436.8 MB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001242/0.6659, allocations: 30.67 kB / 436.8 MB, free: 7.828 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.573e-05/0.666, allocations: 15.44 kB / 436.9 MB, free: 7.816 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001865/0.6662, allocations: 131.4 kB / 437 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008639/0.6671, allocations: 280.5 kB / 437.3 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002453/0.6695, allocations: 0.7572 MB / 438 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.6696, allocations: 8 kB / 438 MB, free: 6.836 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.6696, allocations: 3.938 kB / 438 MB, free: 6.832 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.107e-05/0.6696, allocations: 3.984 kB / 438 MB, free: 6.828 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003824/0.6734, allocations: 1.697 MB / 439.7 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.13e-05/0.6735, allocations: 0 / 439.7 MB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009731/0.6745, allocations: 95.44 kB / 439.8 MB, free: 5.449 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004658/0.675, allocations: 98.78 kB / 439.9 MB, free: 5.371 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.882e-05/0.675, allocations: 15.3 kB / 439.9 MB, free: 5.363 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009598/0.676, allocations: 0.637 MB / 440.6 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.676, allocations: 0 / 440.6 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002572/0.6786, allocations: 1.063 MB / 441.6 MB, free: 3.855 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002163/0.6808, allocations: 0.6725 MB / 442.3 MB, free: 3.277 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000489/0.6813, allocations: 17.67 kB / 442.3 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.6825, allocations: 30.88 kB / 442.4 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.6827, allocations: 33.08 kB / 442.4 MB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.609e-05/0.6828, allocations: 15.55 kB / 442.4 MB, free: 3.203 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0102/0.693, allocations: 3.791 MB / 446.2 MB, free: 36 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.142e-06/0.693, allocations: 3.938 kB / 446.2 MB, free: 32 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.001937/0.695, allocations: 332 kB / 446.5 MB, free: 15.7 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.004376/0.6994, allocations: 1.948 MB / 448.5 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001372/0.7008, allocations: 492.3 kB / 448.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.7008, allocations: 0 / 448.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005827/0.7014, allocations: 198.5 kB / 449.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/0.7032, allocations: 171.5 kB / 449.3 MB, free: 12.92 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01566/0.7189, allocations: 5.628 MB / 454.9 MB, free: 7.223 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003033/0.722, allocations: 1.857 MB / 456.8 MB, free: 5.332 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002818/0.7248, allocations: 1.015 MB / 457.8 MB, free: 4.316 MB / 346.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7249, allocations: 4 kB / 457.8 MB, free: 4.312 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_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1CalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1CalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1CalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1FMU.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_Hysteresis_SinglePhaseTransformerWithHysteresis1.so OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1CalcHelperMain.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_Hysteresis_SinglePhaseTransformerWithHysteresis1_FMU.makefile:93: recipe for target 'Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu' failed make: *** [Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu] Error 1