Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.141/2.141, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.514e-05/3.524e-05, allocations: 4 kB / 284.4 MB, free: 8.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1165, allocations: 50.36 MB / 334.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4833/0.5999, allocations: 82.12 MB / 416.9 MB, free: 12.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.6002, allocations: 78.45 kB / 417 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02566/0.6259, allocations: 5.875 MB / 422.8 MB, free: 7.184 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.626, allocations: 0 / 422.8 MB, free: 7.184 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.838e-05/0.626, allocations: 8 kB / 422.8 MB, free: 7.176 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.0007384/0.6268, allocations: 484.9 kB / 423.3 MB, free: 6.664 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.6268, allocations: 8.031 kB / 423.3 MB, free: 6.656 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.247e-05/0.6269, allocations: 41.75 kB / 423.4 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.065e-05/0.627, allocations: 19.72 kB / 423.4 MB, free: 6.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005452/0.6275, allocations: 265.8 kB / 423.6 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.6276, allocations: 11.39 kB / 423.7 MB, free: 6.305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.6276, allocations: 7.438 kB / 423.7 MB, free: 6.301 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004135/0.628, allocations: 164.6 kB / 423.8 MB, free: 6.137 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.628, allocations: 3.938 kB / 423.8 MB, free: 6.133 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.6281, allocations: 7.5 kB / 423.8 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.6281, allocations: 0 / 423.8 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001595/0.6283, allocations: 33.98 kB / 423.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006526/0.6289, allocations: 382.2 kB / 424.2 MB, free: 5.719 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002571/0.6292, allocations: 124.9 kB / 424.4 MB, free: 5.578 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.6293, allocations: 58.36 kB / 424.4 MB, free: 5.52 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.049e-05/0.6294, allocations: 8 kB / 424.4 MB, free: 5.516 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001699/0.6296, allocations: 74.58 kB / 424.5 MB, free: 5.438 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 2.224e-06/0.6296, allocations: 0 / 424.5 MB, free: 5.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003794/0.63, allocations: 126.3 kB / 424.6 MB, free: 5.328 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.6301, allocations: 164.9 kB / 424.8 MB, free: 5.133 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003987/0.6305, allocations: 248.7 kB / 425 MB, free: 4.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.6306, allocations: 25.7 kB / 425 MB, free: 4.898 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.6307, allocations: 179.2 kB / 425.2 MB, free: 4.738 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.342e-05/0.6307, allocations: 15.22 kB / 425.2 MB, free: 4.727 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.275e-06/0.6307, allocations: 7.312 kB / 425.2 MB, free: 4.723 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.6309, allocations: 322.8 kB / 425.6 MB, free: 4.398 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.092e-05/0.631, allocations: 19.44 kB / 425.6 MB, free: 4.387 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.6311, allocations: 85.72 kB / 425.7 MB, free: 4.289 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.301e-05/0.6312, allocations: 26.86 kB / 425.7 MB, free: 4.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.6313, allocations: 8.031 kB / 425.7 MB, free: 4.262 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002676/0.6315, allocations: 109.7 kB / 425.8 MB, free: 4.168 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.6316, allocations: 8 kB / 425.8 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.6316, allocations: 0 / 425.8 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.6316, allocations: 4 kB / 425.8 MB, free: 4.156 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.6318, allocations: 15.98 kB / 425.8 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.6318, allocations: 3.984 kB / 425.8 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.6319, allocations: 15.56 kB / 425.9 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/0.632, allocations: 4 kB / 425.9 MB, free: 4.121 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.0001133/0.6321, allocations: 120.5 kB / 426 MB, free: 4 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001687/0.6323, allocations: 80.34 kB / 426.1 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002948/0.6326, allocations: 104.1 kB / 426.2 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.6326, allocations: 4 kB / 426.2 MB, free: 3.832 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.6326, allocations: 96 / 426.2 MB, free: 3.832 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.6326, allocations: 11.92 kB / 426.2 MB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003189/0.633, allocations: 242 kB / 426.4 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.633, allocations: 8.125 kB / 426.4 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.849e-05/0.6331, allocations: 7.938 kB / 426.4 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.6331, allocations: 4 kB / 426.4 MB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.6331, allocations: 3.438 kB / 426.4 MB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.6331, allocations: 7.984 kB / 426.4 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.6331, allocations: 0 / 426.4 MB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003684/0.6335, allocations: 202.6 kB / 426.6 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.6337, allocations: 115.5 kB / 426.7 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.629e-05/0.6337, allocations: 4 kB / 426.8 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.6339, allocations: 15.05 kB / 426.8 MB, free: 3.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.6339, allocations: 7.953 kB / 426.8 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.087e-05/0.634, allocations: 7.984 kB / 426.8 MB, free: 3.164 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003074/0.6343, allocations: 201.7 kB / 427 MB, free: 3 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6343, allocations: 0 / 427 MB, free: 3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003971/0.6347, allocations: 39.75 kB / 427 MB, free: 2.965 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.001857/0.6366, allocations: 1.254 MB / 428.3 MB, free: 1.754 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002896/0.6369, allocations: 76.55 kB / 428.3 MB, free: 1.699 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.6369, allocations: 0 / 428.3 MB, free: 1.699 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.696e-05/0.637, allocations: 22.44 kB / 428.4 MB, free: 1.684 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005478/0.6375, allocations: 68.56 kB / 428.4 MB, free: 1.633 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000953/0.6385, allocations: 349.7 kB / 428.8 MB, free: 1.277 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.6389, allocations: 0.7397 MB / 429.5 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.6391, allocations: 54.84 kB / 429.6 MB, free: 500 kB / 346.7 MB Notification: Performance of SimCode: time 1.163e-06/0.6391, allocations: 0 / 429.6 MB, free: 500 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_BooleanSignals_BackSampleCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSampleCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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_BooleanSignals_BackSample.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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_BooleanSignals_BackSample_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample.fmu] Error 1