Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test48,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.017/2.017, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.204e-05/4.212e-05, allocations: 4 kB / 273.2 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 48.71 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4962/0.6044, allocations: 75.78 MB / 397.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002733/0.6048, allocations: 70.75 kB / 397.7 MB, free: 13.97 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01894/0.6237, allocations: 4.327 MB / 402 MB, free: 9.648 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6238, allocations: 0 / 402 MB, free: 9.648 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.412e-05/0.6238, allocations: 0 / 402 MB, free: 9.648 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.0005769/0.6244, allocations: 435.8 kB / 402.5 MB, free: 9.172 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.748e-05/0.6244, allocations: 8.031 kB / 402.5 MB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.56e-05/0.6245, allocations: 42.55 kB / 402.5 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.612e-05/0.6246, allocations: 15.81 kB / 402.5 MB, free: 9.098 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003331/0.6249, allocations: 206.8 kB / 402.7 MB, free: 8.855 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.625, allocations: 4 kB / 402.7 MB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.623e-05/0.625, allocations: 3.938 kB / 402.7 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001368/0.6251, allocations: 53.62 kB / 402.8 MB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.6252, allocations: 0 / 402.8 MB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.6252, allocations: 4 kB / 402.8 MB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.6252, allocations: 0 / 402.8 MB, free: 8.785 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.541e-05/0.6253, allocations: 11.98 kB / 402.8 MB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005127/0.6258, allocations: 304.9 kB / 403.1 MB, free: 8.426 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002497/0.6261, allocations: 43.03 kB / 403.1 MB, free: 8.375 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.525e-05/0.6261, allocations: 8.859 kB / 403.2 MB, free: 8.363 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.6262, allocations: 8 kB / 403.2 MB, free: 8.355 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001558/0.6263, allocations: 63.42 kB / 403.2 MB, free: 8.281 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 2.184e-06/0.6264, allocations: 0 / 403.2 MB, free: 8.281 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0004899/0.6269, allocations: 121.1 kB / 403.3 MB, free: 8.156 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.6269, allocations: 51.41 kB / 403.4 MB, free: 8.094 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.6273, allocations: 226.6 kB / 403.6 MB, free: 7.859 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.6274, allocations: 25.7 kB / 403.6 MB, free: 7.828 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.6275, allocations: 174.5 kB / 403.8 MB, free: 7.656 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.823e-05/0.6275, allocations: 15.8 kB / 403.8 MB, free: 7.641 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.145e-05/0.6275, allocations: 4 kB / 403.8 MB, free: 7.637 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.6277, allocations: 318.8 kB / 404.1 MB, free: 7.316 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.926e-05/0.6278, allocations: 20 kB / 404.2 MB, free: 7.297 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.174e-05/0.6278, allocations: 23.98 kB / 404.2 MB, free: 7.273 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.628, allocations: 53.69 kB / 404.2 MB, free: 7.215 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.628, allocations: 3.938 kB / 404.2 MB, free: 7.211 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002768/0.6283, allocations: 119.3 kB / 404.4 MB, free: 7.082 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.086e-05/0.6283, allocations: 37.69 kB / 404.4 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.6283, allocations: 4.094 kB / 404.4 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.6284, allocations: 3.938 kB / 404.4 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.442e-05/0.6285, allocations: 8 kB / 404.4 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.6285, allocations: 3.953 kB / 404.4 MB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.92e-05/0.6286, allocations: 8 kB / 404.4 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.6286, allocations: 4.141 kB / 404.4 MB, free: 7.008 MB / 330.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: 3 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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.0001054/0.6287, allocations: 113 kB / 404.5 MB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.583e-05/0.6288, allocations: 11.81 kB / 404.5 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000286/0.6291, allocations: 98.61 kB / 404.6 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.6291, allocations: 0 / 404.6 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.6291, allocations: 0 / 404.6 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.6291, allocations: 3.953 kB / 404.6 MB, free: 6.773 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005565/0.6297, allocations: 374.5 kB / 405 MB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.6297, allocations: 4.188 kB / 405 MB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.361e-05/0.6298, allocations: 8 kB / 405 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.6298, allocations: 0 / 405 MB, free: 6.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.6298, allocations: 4 kB / 405 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.6298, allocations: 11.89 kB / 405 MB, free: 6.324 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.6298, allocations: 3.984 kB / 405 MB, free: 6.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002613/0.6301, allocations: 175.4 kB / 405.2 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.6302, allocations: 97 kB / 405.3 MB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.43e-05/0.6303, allocations: 0 / 405.3 MB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.6304, allocations: 4 kB / 405.3 MB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.389e-05/0.6304, allocations: 7.953 kB / 405.3 MB, free: 6.008 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.6305, allocations: 8 kB / 405.3 MB, free: 6 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00026/0.6307, allocations: 181.1 kB / 405.5 MB, free: 5.824 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.02e-07/0.6308, allocations: 0 / 405.5 MB, free: 5.824 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003964/0.6312, allocations: 43.98 kB / 405.6 MB, free: 5.781 MB / 330.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: 2 ($whenCondition1,t_new.nextTimeEvent) * Number of discrete states: 1 (t_new.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.001464/0.6326, allocations: 0.9548 MB / 406.5 MB, free: 4.855 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002601/0.6329, allocations: 107.4 kB / 406.6 MB, free: 4.738 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.6329, allocations: 0 / 406.6 MB, free: 4.738 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.178e-05/0.633, allocations: 23.94 kB / 406.6 MB, free: 4.715 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003306/0.6334, allocations: 20.12 kB / 406.7 MB, free: 4.691 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008439/0.6342, allocations: 285 kB / 406.9 MB, free: 4.375 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.6346, allocations: 0.7198 MB / 407.7 MB, free: 3.629 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001023/0.6347, allocations: 31.44 kB / 407.7 MB, free: 3.598 MB / 330.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6347, allocations: 0 / 407.7 MB, free: 3.598 MB / 330.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 OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48CalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48CalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48FMU.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_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48.so OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48CalcHelperMain.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 3.2.1/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 3.2.1/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48_FMU.makefile:93: recipe for target 'ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48.fmu' failed make: *** [ModelicaTest_3_2_1_cpp_ModelicaTest_Tables_CombiTimeTable_Test48.fmu] Error 1