Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.103/2.103, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.977e-05/3.984e-05, allocations: 4 kB / 284.4 MB, free: 8.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 50.36 MB / 334.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4796/0.5881, allocations: 82.01 MB / 416.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003117/0.5885, allocations: 81.39 kB / 416.9 MB, free: 12.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02665/0.6151, allocations: 5.754 MB / 422.6 MB, free: 7.402 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6152, allocations: 0 / 422.6 MB, free: 7.402 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.95e-05/0.6152, allocations: 3.984 kB / 422.6 MB, free: 7.398 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.0008162/0.6161, allocations: 476.4 kB / 423.1 MB, free: 6.895 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.385e-05/0.6162, allocations: 16.02 kB / 423.1 MB, free: 6.879 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.615e-05/0.6162, allocations: 33.88 kB / 423.1 MB, free: 6.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.509e-05/0.6163, allocations: 23.72 kB / 423.1 MB, free: 6.816 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000593/0.6169, allocations: 261.7 kB / 423.4 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.617, allocations: 11.95 kB / 423.4 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.617, allocations: 7.25 kB / 423.4 MB, free: 6.527 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004397/0.6175, allocations: 135.9 kB / 423.6 MB, free: 6.391 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.6175, allocations: 4 kB / 423.6 MB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.6175, allocations: 6.922 kB / 423.6 MB, free: 6.383 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.6175, allocations: 0 / 423.6 MB, free: 6.383 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.6177, allocations: 41.73 kB / 423.6 MB, free: 6.352 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007085/0.6184, allocations: 366.3 kB / 424 MB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.6186, allocations: 102.3 kB / 424.1 MB, free: 5.871 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.6188, allocations: 45.06 kB / 424.1 MB, free: 5.824 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.6188, allocations: 7.125 kB / 424.1 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.619, allocations: 73.39 kB / 424.2 MB, free: 5.746 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.675e-06/0.619, allocations: 0 / 424.2 MB, free: 5.746 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003743/0.6194, allocations: 105.7 kB / 424.3 MB, free: 5.652 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.6195, allocations: 139.8 kB / 424.4 MB, free: 5.488 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004086/0.62, allocations: 238.2 kB / 424.7 MB, free: 5.293 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.62, allocations: 25.7 kB / 424.7 MB, free: 5.262 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.6201, allocations: 178.5 kB / 424.9 MB, free: 5.105 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.893e-05/0.6202, allocations: 19.58 kB / 424.9 MB, free: 5.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-06/0.6202, allocations: 0 / 424.9 MB, free: 5.09 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.6203, allocations: 318.3 kB / 425.2 MB, free: 4.773 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.902e-05/0.6204, allocations: 22.19 kB / 425.2 MB, free: 4.758 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001205/0.6206, allocations: 68.42 kB / 425.3 MB, free: 4.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.817e-05/0.6207, allocations: 30.17 kB / 425.3 MB, free: 4.656 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.6207, allocations: 4.031 kB / 425.3 MB, free: 4.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002618/0.6209, allocations: 100.5 kB / 425.4 MB, free: 4.566 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.621, allocations: 4 kB / 425.4 MB, free: 4.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.621, allocations: 7.984 kB / 425.4 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.621, allocations: 0 / 425.4 MB, free: 4.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003718/0.6214, allocations: 12 kB / 425.4 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.485e-05/0.6215, allocations: 3.938 kB / 425.4 MB, free: 4.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002932/0.6218, allocations: 11.23 kB / 425.4 MB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.714e-05/0.6219, allocations: 8.125 kB / 425.5 MB, free: 4.523 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.0002088/0.6221, allocations: 128 kB / 425.6 MB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002499/0.6224, allocations: 64.72 kB / 425.6 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005157/0.6229, allocations: 108 kB / 425.7 MB, free: 4.238 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.623, allocations: 0 / 425.7 MB, free: 4.238 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.623, allocations: 0 / 425.7 MB, free: 4.238 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.623, allocations: 3.984 kB / 425.8 MB, free: 4.234 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004736/0.6235, allocations: 233.5 kB / 426 MB, free: 3.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.6235, allocations: 4.062 kB / 426 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.6237, allocations: 8 kB / 426 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.6237, allocations: 0 / 426 MB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.912e-05/0.6237, allocations: 7.25 kB / 426 MB, free: 3.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.428e-06/0.6238, allocations: 3.938 kB / 426 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.6238, allocations: 0 / 426 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005764/0.6244, allocations: 187.6 kB / 426.2 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002527/0.6247, allocations: 114.8 kB / 426.3 MB, free: 3.645 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.895e-05/0.6248, allocations: 4 kB / 426.3 MB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.625, allocations: 11.25 kB / 426.3 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.6251, allocations: 7.984 kB / 426.3 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.6252, allocations: 4 kB / 426.3 MB, free: 3.621 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000504/0.6257, allocations: 191.2 kB / 426.5 MB, free: 3.465 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.6257, allocations: 4 kB / 426.5 MB, free: 3.461 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007114/0.6265, allocations: 39.77 kB / 426.6 MB, free: 3.426 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.003056/0.6295, allocations: 1.139 MB / 427.7 MB, free: 2.332 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000494/0.6301, allocations: 65.61 kB / 427.8 MB, free: 2.285 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.6301, allocations: 4 kB / 427.8 MB, free: 2.281 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001545/0.6303, allocations: 27.06 kB / 427.8 MB, free: 2.262 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008546/0.6312, allocations: 62.06 kB / 427.8 MB, free: 2.215 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.6328, allocations: 330.9 kB / 428.2 MB, free: 1.871 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006316/0.6335, allocations: 0.7359 MB / 428.9 MB, free: 1.113 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/0.6337, allocations: 51.11 kB / 429 MB, free: 1.09 MB / 346.7 MB Notification: Performance of SimCode: time 2.014e-06/0.6338, allocations: 4 kB / 429 MB, free: 1.086 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"." -DUSE_LOGGER -c -o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSampleCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSampleCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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_BooleanSignals_ShiftSample.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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_BooleanSignals_ShiftSample_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample.fmu] Error 1