Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2/2, allocations: 194.9 MB / 208.5 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.124e-05/3.133e-05, allocations: 0 / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09674/0.0968, allocations: 44.51 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1246/0.2215, allocations: 69.71 MB / 369.7 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/0.2217, allocations: 59.97 kB / 369.7 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2557/0.4774, allocations: 0.8168 MB / 370.5 MB, free: 71.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4775, allocations: 0 / 370.5 MB, free: 71.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.4775, allocations: 1.062 kB / 370.5 MB, free: 71.05 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003663/0.4779, allocations: 330.2 kB / 370.9 MB, free: 70.71 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.478, allocations: 9.438 kB / 370.9 MB, free: 70.71 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.449e-05/0.4781, allocations: 44.66 kB / 370.9 MB, free: 70.67 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.697e-05/0.4781, allocations: 6.656 kB / 370.9 MB, free: 70.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000109/0.4782, allocations: 170.1 kB / 371.1 MB, free: 70.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.4783, allocations: 3.031 kB / 371.1 MB, free: 70.46 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.675e-05/0.4783, allocations: 7.625 kB / 371.1 MB, free: 70.46 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002545/0.4786, allocations: 111.3 kB / 371.2 MB, free: 70.4 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.4786, allocations: 2.938 kB / 371.2 MB, free: 70.4 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.4786, allocations: 4.891 kB / 371.2 MB, free: 70.4 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.4786, allocations: 5.328 kB / 371.2 MB, free: 70.4 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.4788, allocations: 43.92 kB / 371.3 MB, free: 70.4 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003406/0.4791, allocations: 0.4959 MB / 371.8 MB, free: 69.89 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001976/0.4793, allocations: 125.2 kB / 371.9 MB, free: 69.79 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.4795, allocations: 81.92 kB / 372 MB, free: 69.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.442e-05/0.4795, allocations: 1.281 kB / 372 MB, free: 69.75 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.4796, allocations: 37.94 kB / 372 MB, free: 69.71 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 3.477e-06/0.4796, allocations: 4 kB / 372 MB, free: 69.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005924/0.4802, allocations: 185.7 kB / 372.2 MB, free: 69.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.4802, allocations: 135.5 kB / 372.3 MB, free: 69.51 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.569e-05/0.4804, allocations: 104.6 kB / 372.4 MB, free: 69.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.4804, allocations: 27.02 kB / 372.4 MB, free: 69.39 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.585e-05/0.4804, allocations: 152.2 kB / 372.6 MB, free: 69.24 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.307e-05/0.4805, allocations: 19.11 kB / 372.6 MB, free: 69.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.205e-05/0.4805, allocations: 8.062 kB / 372.6 MB, free: 69.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.056e-05/0.4806, allocations: 317.5 kB / 372.9 MB, free: 68.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.4807, allocations: 44.91 kB / 373 MB, free: 68.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001384/0.4809, allocations: 68.52 kB / 373 MB, free: 68.88 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.481, allocations: 43.44 kB / 373.1 MB, free: 68.87 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.481, allocations: 1.719 kB / 373.1 MB, free: 68.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003848/0.4814, allocations: 138.7 kB / 373.2 MB, free: 68.83 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.4815, allocations: 7.312 kB / 373.2 MB, free: 68.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.4815, allocations: 1 kB / 373.2 MB, free: 68.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.4815, allocations: 4.922 kB / 373.2 MB, free: 68.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.906e-05/0.4816, allocations: 3.656 kB / 373.2 MB, free: 68.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.4816, allocations: 1.906 kB / 373.2 MB, free: 68.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.801e-05/0.4816, allocations: 10.62 kB / 373.2 MB, free: 68.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.192e-05/0.4817, allocations: 13.38 kB / 373.3 MB, free: 68.82 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (success1,$outputAlias_success1,success2,$outputAlias_success2,success3,$outputAlias_success3,success4,$outputAlias_success4) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.126e-05/0.4818, allocations: 112.5 kB / 373.4 MB, free: 68.71 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.964e-05/0.4819, allocations: 5.188 kB / 373.4 MB, free: 68.71 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.595e-05/0.4819, allocations: 7.953 kB / 373.4 MB, free: 68.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.4819, allocations: 2.812 kB / 373.4 MB, free: 68.71 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.482, allocations: 1 kB / 373.4 MB, free: 68.71 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.482, allocations: 1.781 kB / 373.4 MB, free: 68.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009488/0.4829, allocations: 0.6487 MB / 374 MB, free: 68.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.483, allocations: 1.125 kB / 374 MB, free: 68.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.451e-05/0.483, allocations: 1.719 kB / 374 MB, free: 68.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.664e-06/0.483, allocations: 1.781 kB / 374 MB, free: 68.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.483, allocations: 4.375 kB / 374 MB, free: 68.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.483, allocations: 1.281 kB / 374 MB, free: 68.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.4831, allocations: 1.125 kB / 374 MB, free: 68.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005068/0.4836, allocations: 0.5379 MB / 374.6 MB, free: 67.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.035e-05/0.4836, allocations: 84.19 kB / 374.7 MB, free: 67.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.765e-05/0.4837, allocations: 10.53 kB / 374.7 MB, free: 67.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002058/0.4839, allocations: 2.766 kB / 374.7 MB, free: 67.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.071e-05/0.4839, allocations: 4.984 kB / 374.7 MB, free: 67.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.04e-05/0.4839, allocations: 12.67 kB / 374.7 MB, free: 67.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.06e-05/0.484, allocations: 86.33 kB / 374.8 MB, free: 67.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.484, allocations: 1.062 kB / 374.8 MB, free: 67.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004944/0.4845, allocations: 11.33 kB / 374.8 MB, free: 67.59 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (success4,$outputAlias_success4,success3,$outputAlias_success3,success2,$outputAlias_success2,success1,$outputAlias_success1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009218/0.4854, allocations: 1.331 MB / 376.1 MB, free: 66.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002242/0.4857, allocations: 79.45 kB / 376.2 MB, free: 66.42 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.4857, allocations: 1.062 kB / 376.2 MB, free: 66.42 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.912e-05/0.4858, allocations: 42.92 kB / 376.2 MB, free: 66.42 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.4862, allocations: 4.719 kB / 376.2 MB, free: 66.42 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006848/0.4869, allocations: 205.4 kB / 376.4 MB, free: 66.25 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001759/0.4871, allocations: 0.6881 MB / 377.1 MB, free: 65.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.847e-05/0.4871, allocations: 22.81 kB / 377.2 MB, free: 65.55 MB / 314.7 MB Notification: Performance of SimCode: time 1.002e-06/0.4872, allocations: 0 / 377.2 MB, free: 65.55 MB / 314.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_Utilities_Examples_WriteRealMatrixToFileCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFileCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFileCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFileFMU.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_Utilities_Examples_WriteRealMatrixToFile.so OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFileCalcHelperMain.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/Utilities" "-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" -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_Utilities_Examples_WriteRealMatrixToFile_FMU.makefile:93: recipe for target 'Modelica_3_2_2_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu' failed make: *** [Modelica_3_2_2_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu] Error 1