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.872/1.872, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.084e-05/3.088e-05, allocations: 7.984 kB / 255.5 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 44.49 MB / 300 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4032/0.5132, allocations: 78.91 MB / 378.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.5135, allocations: 80.67 kB / 378.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1183/0.6318, allocations: 38.5 MB / 417.4 MB, free: 1.867 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.6319, allocations: 3.938 kB / 417.5 MB, free: 1.863 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001968/0.6321, allocations: 38.77 kB / 417.5 MB, free: 1.863 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.00358/0.6357, allocations: 1.978 MB / 419.5 MB, free: 480 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.6357, allocations: 11.5 kB / 419.5 MB, free: 480 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001165/0.6359, allocations: 76.3 kB / 419.6 MB, free: 428 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000637/0.6365, allocations: 284.4 kB / 419.8 MB, free: 272 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004993/0.6415, allocations: 1.873 MB / 421.7 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.843e-05/0.6417, allocations: 57.56 kB / 421.8 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002598/0.6419, allocations: 54.42 kB / 421.8 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008617/0.6428, allocations: 365.3 kB / 422.2 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.6428, allocations: 0 / 422.2 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.071e-05/0.6429, allocations: 11.09 kB / 422.2 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.6429, allocations: 9.594 kB / 422.2 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007427/0.6437, allocations: 294 kB / 422.5 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007023/0.6507, allocations: 3.1 MB / 425.6 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007191/0.6515, allocations: 300.5 kB / 425.9 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003292/0.6518, allocations: 154.3 kB / 426 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.713e-05/0.6519, allocations: 6.375 kB / 426 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.6519, allocations: 41.05 kB / 426.1 MB, free: 13.96 MB / 330.7 MB Notification: Performance of pre-optimization done (n=37): time 2.345e-06/0.6519, allocations: 3.938 kB / 426.1 MB, free: 13.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.006829/0.6588, allocations: 2.215 MB / 428.3 MB, free: 12.78 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.537e-05/0.6589, allocations: 93.11 kB / 428.4 MB, free: 12.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01588/0.6748, allocations: 4.825 MB / 433.2 MB, free: 10.17 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001434/0.675, allocations: 40.64 kB / 433.2 MB, free: 10.13 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001532/0.6765, allocations: 0.8977 MB / 434.1 MB, free: 9.871 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002632/0.6768, allocations: 174.8 kB / 434.3 MB, free: 9.73 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/0.6769, allocations: 6.812 kB / 434.3 MB, free: 9.73 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.677, allocations: 329.9 kB / 434.6 MB, free: 9.406 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004349/0.6775, allocations: 139 kB / 434.8 MB, free: 9.324 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004459/0.6779, allocations: 206 kB / 435 MB, free: 9.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005063/0.6785, allocations: 230.2 kB / 435.2 MB, free: 8.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.6785, allocations: 0 / 435.2 MB, free: 8.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001337/0.6798, allocations: 0.5539 MB / 435.8 MB, free: 8.551 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.712e-05/0.6799, allocations: 63.62 kB / 435.8 MB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.6799, allocations: 0 / 435.8 MB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008003/0.6807, allocations: 161.2 kB / 436 MB, free: 8.348 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007811/0.6815, allocations: 99.38 kB / 436.1 MB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.6828, allocations: 0.7562 MB / 436.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.684, allocations: 23.23 kB / 436.9 MB, free: 7.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.965e-05/0.6841, allocations: 21.25 kB / 436.9 MB, free: 7.535 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.0001729/0.6842, allocations: 132.6 kB / 437 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006616/0.6849, allocations: 280.5 kB / 437.3 MB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002372/0.6873, allocations: 0.7498 MB / 438 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.6873, allocations: 8 kB / 438 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.6874, allocations: 0 / 438 MB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.6874, allocations: 3.984 kB / 438 MB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003308/0.6907, allocations: 1.697 MB / 439.7 MB, free: 5.266 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.218e-06/0.6907, allocations: 4 kB / 439.7 MB, free: 5.262 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009214/0.6917, allocations: 94.69 kB / 439.8 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004425/0.6921, allocations: 98.39 kB / 439.9 MB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.6922, allocations: 12.44 kB / 439.9 MB, free: 5.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009067/0.6931, allocations: 0.637 MB / 440.6 MB, free: 4.477 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.6931, allocations: 3.953 kB / 440.6 MB, free: 4.473 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.6956, allocations: 1.063 MB / 441.6 MB, free: 3.578 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001867/0.6975, allocations: 0.6633 MB / 442.3 MB, free: 3.008 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003952/0.6979, allocations: 22.42 kB / 442.3 MB, free: 2.992 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009264/0.6988, allocations: 26.88 kB / 442.4 MB, free: 2.973 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.6989, allocations: 35.7 kB / 442.4 MB, free: 2.941 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.934e-05/0.699, allocations: 19.55 kB / 442.4 MB, free: 2.926 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.009182/0.7082, allocations: 3.791 MB / 446.2 MB, free: 15.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.133e-06/0.7082, allocations: 0 / 446.2 MB, free: 15.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001975/0.7102, allocations: 327.9 kB / 446.5 MB, free: 15.66 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.003821/0.7141, allocations: 1.949 MB / 448.5 MB, free: 13.74 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.7153, allocations: 482.6 kB / 448.9 MB, free: 13.24 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.7153, allocations: 0 / 448.9 MB, free: 13.24 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005477/0.7159, allocations: 197.6 kB / 449.1 MB, free: 13.05 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.7175, allocations: 167 kB / 449.3 MB, free: 12.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/0.7318, allocations: 5.636 MB / 454.9 MB, free: 7.176 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002473/0.7343, allocations: 1.853 MB / 456.8 MB, free: 5.289 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002236/0.7366, allocations: 1.015 MB / 457.8 MB, free: 4.273 MB / 346.7 MB Notification: Performance of SimCode: time 1.232e-06/0.7366, allocations: 3.938 kB / 457.8 MB, free: 4.27 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