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.247/2.247, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.877e-05/4.893e-05, allocations: 8 kB / 255.4 MB, free: 3.113 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1277, allocations: 44.51 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1802/0.308, allocations: 69.71 MB / 369.6 MB, free: 0.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/0.3084, allocations: 59.97 kB / 369.7 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3399/0.6483, allocations: 0.8207 MB / 370.5 MB, free: 71.42 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6483, allocations: 0 / 370.5 MB, free: 71.42 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.6484, allocations: 3.188 kB / 370.5 MB, free: 71.42 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.0003977/0.6488, allocations: 329.6 kB / 370.8 MB, free: 71.08 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.6488, allocations: 10.28 kB / 370.8 MB, free: 71.08 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.899e-05/0.6489, allocations: 42.84 kB / 370.9 MB, free: 71.04 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.811e-05/0.649, allocations: 7 kB / 370.9 MB, free: 71.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.657e-05/0.6491, allocations: 173.6 kB / 371.1 MB, free: 70.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.6491, allocations: 4.438 kB / 371.1 MB, free: 70.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.6491, allocations: 5.156 kB / 371.1 MB, free: 70.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002614/0.6494, allocations: 118.5 kB / 371.2 MB, free: 70.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.6494, allocations: 0 / 371.2 MB, free: 70.77 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.6495, allocations: 2.875 kB / 371.2 MB, free: 70.77 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.6495, allocations: 1.25 kB / 371.2 MB, free: 70.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.6496, allocations: 45.25 kB / 371.2 MB, free: 70.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003865/0.65, allocations: 0.4916 MB / 371.7 MB, free: 70.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.6502, allocations: 128.8 kB / 371.8 MB, free: 70.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.6504, allocations: 79.97 kB / 371.9 MB, free: 70.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.6504, allocations: 5.406 kB / 371.9 MB, free: 70.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.6505, allocations: 41.14 kB / 372 MB, free: 70.08 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.973e-06/0.6505, allocations: 0 / 372 MB, free: 70.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0006105/0.6511, allocations: 186.8 kB / 372.2 MB, free: 70.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.6512, allocations: 134.5 kB / 372.3 MB, free: 69.88 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.6513, allocations: 104 kB / 372.4 MB, free: 69.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.6513, allocations: 31.55 kB / 372.4 MB, free: 69.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.801e-05/0.6514, allocations: 152.4 kB / 372.6 MB, free: 69.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.566e-05/0.6514, allocations: 18.22 kB / 372.6 MB, free: 69.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.243e-05/0.6514, allocations: 2.25 kB / 372.6 MB, free: 69.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.227e-05/0.6515, allocations: 320.5 kB / 372.9 MB, free: 69.28 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.6517, allocations: 40.81 kB / 372.9 MB, free: 69.28 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.6518, allocations: 72.12 kB / 373 MB, free: 69.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001389/0.652, allocations: 46.95 kB / 373.1 MB, free: 69.24 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.652, allocations: 0 / 373.1 MB, free: 69.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004394/0.6524, allocations: 141.8 kB / 373.2 MB, free: 69.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.6525, allocations: 9.625 kB / 373.2 MB, free: 69.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.6525, allocations: 1.062 kB / 373.2 MB, free: 69.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.6525, allocations: 1.5 kB / 373.2 MB, free: 69.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.671e-05/0.6526, allocations: 6.531 kB / 373.2 MB, free: 69.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.6526, allocations: 1.562 kB / 373.2 MB, free: 69.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.971e-05/0.6527, allocations: 2.781 kB / 373.2 MB, free: 69.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.359e-05/0.6527, allocations: 12.73 kB / 373.2 MB, free: 69.19 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 8.097e-05/0.6528, allocations: 112.8 kB / 373.3 MB, free: 69.08 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.6529, allocations: 3.656 kB / 373.3 MB, free: 69.08 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.166e-05/0.653, allocations: 13.7 kB / 373.4 MB, free: 69.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.653, allocations: 2.953 kB / 373.4 MB, free: 69.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.653, allocations: 4.562 kB / 373.4 MB, free: 69.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.653, allocations: 2.422 kB / 373.4 MB, free: 69.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009418/0.654, allocations: 0.6487 MB / 374 MB, free: 68.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.654, allocations: 0.6562 kB / 374 MB, free: 68.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.477e-05/0.654, allocations: 6.516 kB / 374 MB, free: 68.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.6541, allocations: 1.406 kB / 374 MB, free: 68.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.6541, allocations: 5.812 kB / 374 MB, free: 68.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.6541, allocations: 2.016 kB / 374 MB, free: 68.54 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.6541, allocations: 1.188 kB / 374 MB, free: 68.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005669/0.6547, allocations: 0.5322 MB / 374.6 MB, free: 68.13 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.6547, allocations: 83.8 kB / 374.6 MB, free: 68.03 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.959e-05/0.6548, allocations: 8.906 kB / 374.7 MB, free: 68.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.655, allocations: 2.547 kB / 374.7 MB, free: 68.03 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.436e-05/0.655, allocations: 5.859 kB / 374.7 MB, free: 68.03 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.4e-05/0.6551, allocations: 10.08 kB / 374.7 MB, free: 68.03 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.873e-05/0.6551, allocations: 94.48 kB / 374.8 MB, free: 67.95 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6552, allocations: 0 / 374.8 MB, free: 67.95 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004816/0.6556, allocations: 14.41 kB / 374.8 MB, free: 67.95 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.0009969/0.6567, allocations: 1.321 MB / 376.1 MB, free: 66.79 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002402/0.6569, allocations: 86.39 kB / 376.2 MB, free: 66.79 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.6569, allocations: 0 / 376.2 MB, free: 66.79 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.559e-05/0.657, allocations: 43.97 kB / 376.2 MB, free: 66.78 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.6574, allocations: 6.047 kB / 376.2 MB, free: 66.78 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000669/0.658, allocations: 201.5 kB / 376.4 MB, free: 66.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.6582, allocations: 0.692 MB / 377.1 MB, free: 65.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.536e-05/0.6583, allocations: 20.23 kB / 377.1 MB, free: 65.91 MB / 314.7 MB Notification: Performance of SimCode: time 1.202e-06/0.6583, allocations: 0 / 377.1 MB, free: 65.91 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