Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.WriteRealMatrixToFile,fileNamePrefix="Modelica_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.306/2.306, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.557e-05/4.566e-05, allocations: 4 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1161, allocations: 50.42 MB / 342.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4434/0.5596, allocations: 75.18 MB / 417.8 MB, free: 2.566 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.5599, allocations: 61.91 kB / 417.9 MB, free: 2.535 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002747/0.5627, allocations: 0.8287 MB / 418.7 MB, free: 1.785 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5627, allocations: 0 / 418.7 MB, free: 1.785 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.5627, allocations: 0 / 418.7 MB, free: 1.785 MB / 330.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.0003812/0.5631, allocations: 356.1 kB / 419 MB, free: 1.387 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.238e-05/0.5632, allocations: 16.03 kB / 419.1 MB, free: 1.371 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.336e-05/0.5633, allocations: 41.86 kB / 419.1 MB, free: 1.324 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.5633, allocations: 11.86 kB / 419.1 MB, free: 1.312 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.5635, allocations: 163 kB / 419.3 MB, free: 1.113 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.5635, allocations: 6.953 kB / 419.3 MB, free: 1.109 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/0.5636, allocations: 3.812 kB / 419.3 MB, free: 1.109 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002297/0.5638, allocations: 84.7 kB / 419.4 MB, free: 1.023 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.5638, allocations: 0 / 419.4 MB, free: 1.023 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.5638, allocations: 0 / 419.4 MB, free: 1.023 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.5639, allocations: 3.953 kB / 419.4 MB, free: 1.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001137/0.564, allocations: 51.66 kB / 419.4 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003134/0.5643, allocations: 243.3 kB / 419.7 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.5645, allocations: 73.48 kB / 419.7 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.5646, allocations: 63.52 kB / 419.8 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.5647, allocations: 0 / 419.8 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.553e-05/0.5647, allocations: 68.56 kB / 419.9 MB, free: 492 kB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.5648, allocations: 0 / 419.9 MB, free: 492 kB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005906/0.5654, allocations: 222.7 kB / 420.1 MB, free: 264 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/0.5654, allocations: 81.11 kB / 420.1 MB, free: 164 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.5656, allocations: 102.2 kB / 420.2 MB, free: 60 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.5656, allocations: 29.7 kB / 420.3 MB, free: 24 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.5657, allocations: 153.9 kB / 420.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.887e-05/0.5658, allocations: 19.66 kB / 420.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.023e-05/0.5658, allocations: 3.938 kB / 420.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.5659, allocations: 318.8 kB / 420.8 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.566, allocations: 43.22 kB / 420.8 MB, free: 15.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.462e-05/0.5661, allocations: 35.98 kB / 420.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.5663, allocations: 84.89 kB / 420.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5663, allocations: 0 / 420.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004177/0.5667, allocations: 197.2 kB / 421.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.797e-05/0.5668, allocations: 37.69 kB / 421.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.5668, allocations: 0 / 421.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.5668, allocations: 0 / 421.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.866e-05/0.5669, allocations: 15.89 kB / 421.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.5669, allocations: 4.062 kB / 421.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.852e-05/0.5669, allocations: 3.562 kB / 421.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.839e-05/0.567, allocations: 8 kB / 421.2 MB, free: 15.11 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001167/0.5671, allocations: 138.2 kB / 421.3 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.368e-05/0.5672, allocations: 7.906 kB / 421.3 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.42e-05/0.5672, allocations: 8.625 kB / 421.3 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.5672, allocations: 0 / 421.3 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.5672, allocations: 3.953 kB / 421.3 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.5673, allocations: 4 kB / 421.3 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007232/0.568, allocations: 470.8 kB / 421.8 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.568, allocations: 4 kB / 421.8 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.586e-06/0.568, allocations: 0 / 421.8 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.568, allocations: 0 / 421.8 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.5681, allocations: 7.312 kB / 421.8 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.5681, allocations: 4.828 kB / 421.8 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.5681, allocations: 0 / 421.8 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005185/0.5686, allocations: 322.2 kB / 422.1 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.491e-05/0.5687, allocations: 81.09 kB / 422.2 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.5687, allocations: 4 kB / 422.2 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.891e-05/0.5688, allocations: 0 / 422.2 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.987e-05/0.5688, allocations: 10.64 kB / 422.2 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.5689, allocations: 8.5 kB / 422.2 MB, free: 13.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.179e-05/0.569, allocations: 98.7 kB / 422.3 MB, free: 13.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.569, allocations: 0 / 422.3 MB, free: 13.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003466/0.5693, allocations: 8 kB / 422.3 MB, free: 13.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 4 ($outputAlias_success4,$outputAlias_success3,$outputAlias_success2,$outputAlias_success1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001041/0.5704, allocations: 0.9001 MB / 423.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002535/0.5707, allocations: 144.2 kB / 423.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5707, allocations: 0 / 423.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.5708, allocations: 113.4 kB / 423.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.571, allocations: 3.953 kB / 423.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005093/0.5715, allocations: 187.4 kB / 423.7 MB, free: 12.51 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.5718, allocations: 0.6887 MB / 424.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.786e-05/0.5719, allocations: 22.23 kB / 424.4 MB, free: 11.78 MB / 346.7 MB Notification: Performance of SimCode: time 9.31e-07/0.5719, allocations: 0 / 424.4 MB, free: 11.78 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"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFileCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFileCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFileCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile.so OMCppModelica_trunk_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 trunk/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 trunk/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/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_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile_FMU.makefile:93: recipe for target 'Modelica_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu' failed make: *** [Modelica_trunk_cpp_Modelica_Utilities_Examples_WriteRealMatrixToFile.fmu] Error 1