Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.067/2.067, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.069e-05/4.075e-05, allocations: 4 kB / 284.4 MB, free: 8.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1089, allocations: 50.36 MB / 334.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4818/0.5908, allocations: 82.06 MB / 416.8 MB, free: 11.81 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003101/0.5911, allocations: 82.08 kB / 416.9 MB, free: 11.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.028/0.6192, allocations: 5.893 MB / 422.8 MB, free: 6.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.6192, allocations: 0 / 422.8 MB, free: 6.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.206e-05/0.6193, allocations: 7.5 kB / 422.8 MB, free: 6.797 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008375/0.6201, allocations: 0.4901 MB / 423.3 MB, free: 6.266 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.6202, allocations: 8.031 kB / 423.3 MB, free: 6.258 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.754e-05/0.6202, allocations: 41 kB / 423.3 MB, free: 6.215 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.737e-05/0.6203, allocations: 23.72 kB / 423.4 MB, free: 6.191 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006475/0.621, allocations: 291.6 kB / 423.7 MB, free: 5.887 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.6211, allocations: 4 kB / 423.7 MB, free: 5.883 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.674e-05/0.6211, allocations: 6.875 kB / 423.7 MB, free: 5.879 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004578/0.6216, allocations: 155.4 kB / 423.8 MB, free: 5.723 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.6216, allocations: 0 / 423.8 MB, free: 5.723 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.6216, allocations: 3.625 kB / 423.8 MB, free: 5.723 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.6216, allocations: 4 kB / 423.8 MB, free: 5.719 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.6218, allocations: 37.86 kB / 423.9 MB, free: 5.691 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000836/0.6226, allocations: 399.8 kB / 424.3 MB, free: 5.293 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.6229, allocations: 116.5 kB / 424.4 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.623, allocations: 40.33 kB / 424.4 MB, free: 5.133 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.6231, allocations: 4 kB / 424.4 MB, free: 5.129 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.6233, allocations: 83.88 kB / 424.5 MB, free: 5.047 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 3.857e-06/0.6233, allocations: 0 / 424.5 MB, free: 5.047 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.000437/0.6238, allocations: 125.2 kB / 424.6 MB, free: 4.938 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.6239, allocations: 158.2 kB / 424.8 MB, free: 4.746 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005465/0.6245, allocations: 299.9 kB / 425.1 MB, free: 4.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/0.6245, allocations: 25.7 kB / 425.1 MB, free: 4.469 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.6247, allocations: 181.6 kB / 425.3 MB, free: 4.312 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.802e-05/0.6247, allocations: 26.98 kB / 425.3 MB, free: 4.289 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.546e-06/0.6247, allocations: 0 / 425.3 MB, free: 4.289 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.6249, allocations: 322.7 kB / 425.6 MB, free: 3.969 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.754e-05/0.625, allocations: 22.88 kB / 425.6 MB, free: 3.953 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.6252, allocations: 88.03 kB / 425.7 MB, free: 3.855 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001119/0.6253, allocations: 38.23 kB / 425.8 MB, free: 3.828 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.6253, allocations: 0 / 425.8 MB, free: 3.828 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002985/0.6256, allocations: 103.8 kB / 425.9 MB, free: 3.738 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.6256, allocations: 4 kB / 425.9 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.6257, allocations: 0 / 425.9 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.762e-05/0.6257, allocations: 8.031 kB / 425.9 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002076/0.6259, allocations: 23.92 kB / 425.9 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.626, allocations: 4.125 kB / 425.9 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000173/0.6261, allocations: 7.812 kB / 425.9 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.6262, allocations: 4 kB / 425.9 MB, free: 3.691 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001351/0.6263, allocations: 128.5 kB / 426 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.6265, allocations: 65.3 kB / 426.1 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003691/0.6268, allocations: 120.7 kB / 426.2 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.906e-06/0.6269, allocations: 8.062 kB / 426.2 MB, free: 3.395 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.6269, allocations: 4.125 kB / 426.2 MB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.6269, allocations: 0 / 426.2 MB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000349/0.6273, allocations: 250.2 kB / 426.5 MB, free: 3.125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.6273, allocations: 3.938 kB / 426.5 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001544/0.6274, allocations: 19.92 kB / 426.5 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/0.6275, allocations: 0 / 426.5 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.6275, allocations: 3.75 kB / 426.5 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/0.6275, allocations: 4 kB / 426.5 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.6275, allocations: 0 / 426.5 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003924/0.6279, allocations: 190 kB / 426.7 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001833/0.6281, allocations: 127.3 kB / 426.8 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.998e-05/0.6282, allocations: 0 / 426.8 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001358/0.6283, allocations: 11.23 kB / 426.8 MB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.495e-05/0.6284, allocations: 11.98 kB / 426.8 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.6284, allocations: 4 kB / 426.8 MB, free: 2.742 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004157/0.6289, allocations: 243.4 kB / 427.1 MB, free: 2.551 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.6289, allocations: 0 / 427.1 MB, free: 2.551 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005188/0.6294, allocations: 55.39 kB / 427.1 MB, free: 2.5 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002004/0.6314, allocations: 1.164 MB / 428.3 MB, free: 1.379 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004025/0.6319, allocations: 87.2 kB / 428.4 MB, free: 1.312 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.6319, allocations: 4.25 kB / 428.4 MB, free: 1.309 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.632, allocations: 30.48 kB / 428.4 MB, free: 1.285 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005725/0.6326, allocations: 53.64 kB / 428.5 MB, free: 1.246 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.6338, allocations: 388 kB / 428.8 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004155/0.6343, allocations: 0.7476 MB / 429.6 MB, free: 96 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.6344, allocations: 61.47 kB / 429.6 MB, free: 68 kB / 346.7 MB Notification: Performance of SimCode: time 1.323e-06/0.6345, allocations: 0 / 429.6 MB, free: 68 kB / 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"." -DUSE_LOGGER -c -o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSampleCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSampleCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSampleFMU.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_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSampleCalcHelperMain.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_Synchronous 0.93.0" "-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.3/Resources/Library/x86_64-linux" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/Resources/Library/x86_64-linux" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/Resources/Library/linux64" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/Resources/Library/linux64" "-L/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/Resources/Library" -Wl,-rpath="/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/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) Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample.fmu] Error 1