Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.13/2.13, allocations: 218.4 MB / 231.5 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.995e-05/4.007e-05, allocations: 7.984 kB / 284.4 MB, free: 8.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 50.36 MB / 334.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4618/0.5676, allocations: 82.16 MB / 416.9 MB, free: 11.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/0.5679, allocations: 90.8 kB / 417 MB, free: 11.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02681/0.5947, allocations: 6.016 MB / 423 MB, free: 6.66 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5948, allocations: 4 kB / 423 MB, free: 6.656 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.95e-05/0.5948, allocations: 4 kB / 423 MB, free: 6.652 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007947/0.5956, allocations: 0.4993 MB / 423.5 MB, free: 6.113 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.5957, allocations: 8.031 kB / 423.5 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.029e-05/0.5958, allocations: 37.69 kB / 423.6 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.297e-05/0.5959, allocations: 26.59 kB / 423.6 MB, free: 6.039 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006184/0.5965, allocations: 297 kB / 423.9 MB, free: 5.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.5965, allocations: 7.953 kB / 423.9 MB, free: 5.723 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.726e-05/0.5966, allocations: 10.44 kB / 423.9 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004371/0.597, allocations: 182 kB / 424.1 MB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.5971, allocations: 0 / 424.1 MB, free: 5.535 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.5971, allocations: 8 kB / 424.1 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.5971, allocations: 0 / 424.1 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001398/0.5973, allocations: 44.42 kB / 424.1 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007346/0.598, allocations: 404.9 kB / 424.5 MB, free: 5.094 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002921/0.5983, allocations: 137.7 kB / 424.7 MB, free: 4.945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.5984, allocations: 57.86 kB / 424.7 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.311e-05/0.5985, allocations: 11.98 kB / 424.7 MB, free: 4.875 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.5987, allocations: 74.03 kB / 424.8 MB, free: 4.805 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 2.405e-06/0.5987, allocations: 0 / 424.8 MB, free: 4.805 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004036/0.5992, allocations: 131.8 kB / 424.9 MB, free: 4.688 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.5993, allocations: 195.6 kB / 425.1 MB, free: 4.457 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005178/0.5998, allocations: 304.4 kB / 425.4 MB, free: 4.207 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.5999, allocations: 25.7 kB / 425.5 MB, free: 4.176 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.6, allocations: 182.5 kB / 425.6 MB, free: 4.016 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.831e-05/0.6001, allocations: 27.42 kB / 425.7 MB, free: 3.992 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.948e-06/0.6001, allocations: 3.625 kB / 425.7 MB, free: 3.992 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.6002, allocations: 314.8 kB / 426 MB, free: 3.676 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.467e-05/0.6003, allocations: 33.86 kB / 426 MB, free: 3.652 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.6005, allocations: 99.7 kB / 426.1 MB, free: 3.539 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.6006, allocations: 38.05 kB / 426.1 MB, free: 3.512 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.6006, allocations: 0 / 426.1 MB, free: 3.512 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002963/0.6009, allocations: 121.1 kB / 426.3 MB, free: 3.406 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.601, allocations: 4 kB / 426.3 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.601, allocations: 4 kB / 426.3 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.601, allocations: 192 / 426.3 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.6012, allocations: 27.98 kB / 426.3 MB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.6013, allocations: 3.938 kB / 426.3 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/0.6014, allocations: 15.31 kB / 426.3 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.6015, allocations: 4 kB / 426.3 MB, free: 3.352 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001235/0.6016, allocations: 120.8 kB / 426.4 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.6018, allocations: 80.78 kB / 426.5 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003386/0.6021, allocations: 123.2 kB / 426.6 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.6021, allocations: 4 kB / 426.6 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.6021, allocations: 0 / 426.6 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.6022, allocations: 0 / 426.6 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003789/0.6025, allocations: 264 kB / 426.9 MB, free: 2.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.6026, allocations: 3.938 kB / 426.9 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.6027, allocations: 23.92 kB / 426.9 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.6027, allocations: 0 / 426.9 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.6028, allocations: 4 kB / 426.9 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.6028, allocations: 0 / 426.9 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.6028, allocations: 8 kB / 426.9 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004033/0.6032, allocations: 215.6 kB / 427.1 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001842/0.6034, allocations: 127.2 kB / 427.3 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.298e-05/0.6035, allocations: 7.984 kB / 427.3 MB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.6036, allocations: 7.438 kB / 427.3 MB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.682e-05/0.6037, allocations: 11.94 kB / 427.3 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.6037, allocations: 7.938 kB / 427.3 MB, free: 2.348 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000394/0.6041, allocations: 243.1 kB / 427.5 MB, free: 2.156 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6041, allocations: 0 / 427.5 MB, free: 2.156 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004611/0.6046, allocations: 57.73 kB / 427.6 MB, free: 2.105 MB / 346.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: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.001931/0.6066, allocations: 1.26 MB / 428.9 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003422/0.6069, allocations: 87.16 kB / 428.9 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6069, allocations: 0 / 428.9 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.6071, allocations: 41.09 kB / 429 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005743/0.6077, allocations: 66.11 kB / 429 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/0.6088, allocations: 419.1 kB / 429.5 MB, free: 340 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/0.6093, allocations: 0.7512 MB / 430.2 MB, free: 15.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.6095, allocations: 67.53 kB / 430.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of SimCode: time 4.428e-06/0.6095, allocations: 4 kB / 430.3 MB, free: 15.52 MB / 362.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_BackSampleCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSampleCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSampleFMU.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_BackSample.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSampleCalcHelperMain.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_BackSample_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample.fmu] Error 1