Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold",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 4.051e-05/4.057e-05, allocations: 4 kB / 284.4 MB, free: 8.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1212, allocations: 50.37 MB / 334.8 MB, free: 6.129 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4745/0.5958, allocations: 82.13 MB / 416.9 MB, free: 11.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.5962, allocations: 81.33 kB / 417 MB, free: 11.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0256/0.6218, allocations: 5.83 MB / 422.8 MB, free: 6.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.6218, allocations: 0 / 422.8 MB, free: 6.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.803e-05/0.6219, allocations: 7.938 kB / 422.8 MB, free: 6.793 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.0007548/0.6226, allocations: 483.2 kB / 423.3 MB, free: 6.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.6227, allocations: 8.031 kB / 423.3 MB, free: 6.273 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.299e-05/0.6227, allocations: 37.81 kB / 423.3 MB, free: 6.23 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.858e-05/0.6228, allocations: 19.72 kB / 423.4 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005313/0.6234, allocations: 265.5 kB / 423.6 MB, free: 5.934 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.6234, allocations: 11.2 kB / 423.6 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.933e-05/0.6235, allocations: 11.98 kB / 423.6 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003996/0.6239, allocations: 155.2 kB / 423.8 MB, free: 5.762 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.6239, allocations: 3.938 kB / 423.8 MB, free: 5.758 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.6239, allocations: 7.188 kB / 423.8 MB, free: 5.754 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.624, allocations: 4 kB / 423.8 MB, free: 5.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001264/0.6241, allocations: 34.23 kB / 423.8 MB, free: 5.727 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007211/0.6248, allocations: 461.1 kB / 424.3 MB, free: 5.262 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002604/0.6251, allocations: 129 kB / 424.4 MB, free: 5.117 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.6252, allocations: 51.5 kB / 424.5 MB, free: 5.066 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.6253, allocations: 4 kB / 424.5 MB, free: 5.062 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001954/0.6255, allocations: 98.78 kB / 424.6 MB, free: 4.961 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 2.615e-06/0.6255, allocations: 0 / 424.6 MB, free: 4.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.000386/0.6259, allocations: 117.9 kB / 424.7 MB, free: 4.859 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.626, allocations: 162.2 kB / 424.8 MB, free: 4.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003985/0.6265, allocations: 249.7 kB / 425.1 MB, free: 4.461 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.6265, allocations: 29.64 kB / 425.1 MB, free: 4.426 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.6266, allocations: 173.9 kB / 425.3 MB, free: 4.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.335e-05/0.6267, allocations: 27.17 kB / 425.3 MB, free: 4.246 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-06/0.6267, allocations: 3.375 kB / 425.3 MB, free: 4.246 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.6268, allocations: 314.8 kB / 425.6 MB, free: 3.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.514e-05/0.6269, allocations: 27.05 kB / 425.6 MB, free: 3.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.6271, allocations: 71.94 kB / 425.7 MB, free: 3.828 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.516e-05/0.6272, allocations: 27.11 kB / 425.7 MB, free: 3.809 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.6272, allocations: 32 / 425.7 MB, free: 3.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003044/0.6275, allocations: 120.5 kB / 425.9 MB, free: 3.707 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.6275, allocations: 8 kB / 425.9 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.6276, allocations: 0 / 425.9 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.6276, allocations: 0 / 425.9 MB, free: 3.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.6277, allocations: 19.92 kB / 425.9 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.6278, allocations: 4 kB / 425.9 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.6279, allocations: 4 kB / 425.9 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.6279, allocations: 12.14 kB / 425.9 MB, free: 3.66 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.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.0001138/0.6281, allocations: 124.5 kB / 426 MB, free: 3.539 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.6282, allocations: 61.2 kB / 426.1 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00029/0.6285, allocations: 109.3 kB / 426.2 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.6285, allocations: 4 kB / 426.2 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.6285, allocations: 0 / 426.2 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.6286, allocations: 8.109 kB / 426.2 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003032/0.6289, allocations: 239.5 kB / 426.4 MB, free: 3.121 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.6289, allocations: 4 kB / 426.4 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.832e-05/0.629, allocations: 11.94 kB / 426.5 MB, free: 3.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.629, allocations: 3.984 kB / 426.5 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.629, allocations: 4 kB / 426.5 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.629, allocations: 0 / 426.5 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.629, allocations: 0 / 426.5 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003585/0.6294, allocations: 220.8 kB / 426.7 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.6296, allocations: 116.4 kB / 426.8 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.536e-05/0.6296, allocations: 11.36 kB / 426.8 MB, free: 2.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001125/0.6297, allocations: 4 kB / 426.8 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.624e-05/0.6298, allocations: 15.12 kB / 426.8 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.632e-05/0.6298, allocations: 8 kB / 426.8 MB, free: 2.707 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002873/0.6301, allocations: 198.1 kB / 427 MB, free: 2.547 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6302, allocations: 0 / 427 MB, free: 2.547 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003899/0.6306, allocations: 35.5 kB / 427.1 MB, free: 2.516 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,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.00187/0.6324, allocations: 1.243 MB / 428.3 MB, free: 1.316 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002902/0.6328, allocations: 79.61 kB / 428.4 MB, free: 1.258 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.6328, allocations: 0 / 428.4 MB, free: 1.258 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.6329, allocations: 34.23 kB / 428.4 MB, free: 1.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005064/0.6334, allocations: 49.75 kB / 428.5 MB, free: 1.195 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009354/0.6344, allocations: 346.7 kB / 428.8 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003926/0.6348, allocations: 0.743 MB / 429.5 MB, free: 76 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.6349, allocations: 53.8 kB / 429.6 MB, free: 52 kB / 346.7 MB Notification: Performance of SimCode: time 9.02e-07/0.6349, allocations: 0 / 429.6 MB, free: 52 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_HoldCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_HoldCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_HoldCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_HoldFMU.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_Hold.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_HoldCalcHelperMain.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_Hold_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold.fmu] Error 1