Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Dv.Test9,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test9",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.741/2.741, allocations: 270 MB / 282.7 MB, free: 1.816 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.356e-05/3.376e-05, allocations: 0 / 347.1 MB, free: 3.094 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4068, allocations: 61.87 MB / 408.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1713/0.5782, allocations: 88.73 MB / 497.7 MB, free: 1.789 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/0.5786, allocations: 71.95 kB / 497.7 MB, free: 1.719 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03102/0.6096, allocations: 8.064 MB / 0.4939 GB, free: 9.629 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.634e-06/0.6097, allocations: 4 kB / 0.4939 GB, free: 9.625 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.114e-05/0.6097, allocations: 11.98 kB / 0.4939 GB, free: 9.613 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000794/0.6105, allocations: 0.5479 MB / 0.4945 GB, free: 9.023 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.6106, allocations: 8.031 kB / 0.4945 GB, free: 9.016 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.115e-05/0.6106, allocations: 38.55 kB / 0.4945 GB, free: 8.969 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.6108, allocations: 39.44 kB / 0.4946 GB, free: 8.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006616/0.6114, allocations: 331.3 kB / 0.4949 GB, free: 8.566 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.6115, allocations: 8 kB / 0.4949 GB, free: 8.559 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.6115, allocations: 4 kB / 0.4949 GB, free: 8.555 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001412/0.6116, allocations: 41.69 kB / 0.4949 GB, free: 8.508 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.6117, allocations: 0 / 0.4949 GB, free: 8.508 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.6117, allocations: 0 / 0.4949 GB, free: 8.508 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.6117, allocations: 4 kB / 0.4949 GB, free: 8.504 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.768e-05/0.6118, allocations: 19.94 kB / 0.495 GB, free: 8.484 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009137/0.6127, allocations: 456.6 kB / 0.4954 GB, free: 7.988 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001055/0.6128, allocations: 30.58 kB / 0.4954 GB, free: 7.949 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.462e-05/0.6129, allocations: 16.94 kB / 0.4954 GB, free: 7.93 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.613, allocations: 4 kB / 0.4954 GB, free: 7.926 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.613, allocations: 31.84 kB / 0.4955 GB, free: 7.887 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 2.234e-06/0.613, allocations: 0 / 0.4955 GB, free: 7.887 MB / 426.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002823/0.6133, allocations: 93.22 kB / 0.4956 GB, free: 7.789 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.6133, allocations: 51.41 kB / 0.4956 GB, free: 7.727 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001945/0.6153, allocations: 0.781 MB / 0.4964 GB, free: 6.934 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.6154, allocations: 29.7 kB / 0.4964 GB, free: 6.898 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/0.6156, allocations: 234.5 kB / 0.4966 GB, free: 6.668 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.6156, allocations: 7.844 kB / 0.4966 GB, free: 6.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.35e-06/0.6157, allocations: 0 / 0.4966 GB, free: 6.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.6158, allocations: 318.8 kB / 0.4969 GB, free: 6.34 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.277e-05/0.6159, allocations: 12 kB / 0.4969 GB, free: 6.328 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.713e-05/0.6159, allocations: 8 kB / 0.497 GB, free: 6.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.587e-05/0.616, allocations: 20.11 kB / 0.497 GB, free: 6.301 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.616, allocations: 0 / 0.497 GB, free: 6.301 MB / 426.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001526/0.6162, allocations: 45.69 kB / 0.497 GB, free: 6.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.6162, allocations: 8 kB / 0.497 GB, free: 6.242 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.6162, allocations: 0 / 0.497 GB, free: 6.242 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.6162, allocations: 0 / 0.497 GB, free: 6.242 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.6164, allocations: 15.92 kB / 0.497 GB, free: 6.227 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.433e-06/0.6164, allocations: 0 / 0.497 GB, free: 6.227 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001661/0.6166, allocations: 16 kB / 0.4971 GB, free: 6.211 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/0.6166, allocations: 0 / 0.4971 GB, free: 6.211 MB / 426.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.326e-05/0.6167, allocations: 108.9 kB / 0.4972 GB, free: 6.098 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.6168, allocations: 43.44 kB / 0.4972 GB, free: 6.055 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003172/0.6172, allocations: 109 kB / 0.4973 GB, free: 5.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.6172, allocations: 0 / 0.4973 GB, free: 5.93 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.6172, allocations: 0 / 0.4973 GB, free: 5.93 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.6172, allocations: 0 / 0.4973 GB, free: 5.93 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004593/0.6177, allocations: 337.4 kB / 0.4976 GB, free: 5.551 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.6177, allocations: 0 / 0.4976 GB, free: 5.551 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.6178, allocations: 15.98 kB / 0.4976 GB, free: 5.535 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.6178, allocations: 0 / 0.4976 GB, free: 5.535 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.6179, allocations: 0 / 0.4976 GB, free: 5.535 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.6179, allocations: 0 / 0.4976 GB, free: 5.535 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.6179, allocations: 0 / 0.4976 GB, free: 5.535 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.6182, allocations: 198.9 kB / 0.4978 GB, free: 5.324 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002915/0.6185, allocations: 160.6 kB / 0.498 GB, free: 5.148 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.991e-05/0.6185, allocations: 3.938 kB / 0.498 GB, free: 5.145 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.6187, allocations: 7.984 kB / 0.498 GB, free: 5.137 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.781e-05/0.6188, allocations: 4 kB / 0.498 GB, free: 5.133 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.6188, allocations: 0 / 0.498 GB, free: 5.133 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001169/0.62, allocations: 0.6342 MB / 0.4986 GB, free: 4.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.71e-07/0.62, allocations: 0 / 0.4986 GB, free: 4.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004609/0.6205, allocations: 55.89 kB / 0.4987 GB, free: 4.445 MB / 426.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.001514/0.622, allocations: 0.978 MB / 0.4996 GB, free: 3.555 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001607/0.6222, allocations: 24 kB / 0.4996 GB, free: 3.531 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6222, allocations: 0 / 0.4996 GB, free: 3.531 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.798e-05/0.6223, allocations: 8 kB / 0.4997 GB, free: 3.523 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/0.6227, allocations: 30.08 kB / 0.4997 GB, free: 3.492 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.6248, allocations: 0.8549 MB / 0.5005 GB, free: 2.594 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005428/0.6254, allocations: 0.8301 MB / 0.5013 GB, free: 1.738 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002854/0.6257, allocations: 115.6 kB / 0.5014 GB, free: 1.625 MB / 426.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6257, allocations: 0 / 0.5014 GB, free: 1.625 MB / 426.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 OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test9CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test9CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test9CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test9FMU.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 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test9.so OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test9CalcHelperMain.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/ModelicaTest trunk/Tables" "-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" -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) ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test9_FMU.makefile:93: recipe for target 'ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test9.fmu' failed make: *** [ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Dv_Test9.fmu] Error 1