Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.092/2.092, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.83e-05/3.841e-05, allocations: 4 kB / 284.4 MB, free: 8.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 50.37 MB / 334.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4421/0.5489, allocations: 82.23 MB / 417 MB, free: 11.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/0.5493, allocations: 83.06 kB / 417.1 MB, free: 11.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02895/0.5782, allocations: 6.009 MB / 423.1 MB, free: 6.594 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5783, allocations: 4 kB / 423.1 MB, free: 6.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.408e-05/0.5783, allocations: 8 kB / 423.1 MB, free: 6.582 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.0009141/0.5793, allocations: 0.4905 MB / 423.6 MB, free: 6.059 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.5793, allocations: 12.03 kB / 423.6 MB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.928e-05/0.5794, allocations: 33.88 kB / 423.6 MB, free: 6.008 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.5795, allocations: 31.56 kB / 423.7 MB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006525/0.5802, allocations: 285 kB / 423.9 MB, free: 5.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.5802, allocations: 7.953 kB / 424 MB, free: 5.672 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.387e-05/0.5803, allocations: 15 kB / 424 MB, free: 5.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004652/0.5808, allocations: 165.3 kB / 424.1 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.5808, allocations: 0 / 424.1 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.5808, allocations: 3.938 kB / 424.1 MB, free: 5.492 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.5809, allocations: 8 kB / 424.1 MB, free: 5.484 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001438/0.581, allocations: 45.34 kB / 424.2 MB, free: 5.453 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009386/0.582, allocations: 497.4 kB / 424.7 MB, free: 4.961 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.5823, allocations: 136.4 kB / 424.8 MB, free: 4.812 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.5825, allocations: 53.8 kB / 424.9 MB, free: 4.758 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.5825, allocations: 8 kB / 424.9 MB, free: 4.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.5828, allocations: 93.97 kB / 425 MB, free: 4.652 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 2.765e-06/0.5828, allocations: 0 / 425 MB, free: 4.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004794/0.5833, allocations: 133.3 kB / 425.1 MB, free: 4.539 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.5834, allocations: 188 kB / 425.3 MB, free: 4.312 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005795/0.584, allocations: 302.8 kB / 425.6 MB, free: 4.062 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.75e-05/0.5841, allocations: 32.77 kB / 425.6 MB, free: 4.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.5843, allocations: 176.9 kB / 425.8 MB, free: 3.871 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.556e-05/0.5843, allocations: 19.25 kB / 425.8 MB, free: 3.855 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.047e-05/0.5843, allocations: 3.188 kB / 425.8 MB, free: 3.855 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.5845, allocations: 318.8 kB / 426.1 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.195e-05/0.5846, allocations: 29.31 kB / 426.1 MB, free: 3.516 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.5848, allocations: 101.9 kB / 426.2 MB, free: 3.402 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.5849, allocations: 37.17 kB / 426.3 MB, free: 3.375 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.585, allocations: 0 / 426.3 MB, free: 3.375 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003167/0.5853, allocations: 116.6 kB / 426.4 MB, free: 3.277 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.5853, allocations: 8 kB / 426.4 MB, free: 3.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.5853, allocations: 0 / 426.4 MB, free: 3.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.5854, allocations: 4 kB / 426.4 MB, free: 3.266 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002262/0.5856, allocations: 20.14 kB / 426.4 MB, free: 3.246 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.5856, allocations: 8 kB / 426.4 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.5858, allocations: 11.19 kB / 426.4 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.5859, allocations: 11.92 kB / 426.4 MB, free: 3.219 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.0001311/0.586, allocations: 120 kB / 426.6 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.5862, allocations: 76.09 kB / 426.6 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003695/0.5866, allocations: 111.4 kB / 426.7 MB, free: 2.93 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.5866, allocations: 8.062 kB / 426.8 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.5866, allocations: 0 / 426.8 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.5866, allocations: 4.125 kB / 426.8 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003788/0.587, allocations: 259.1 kB / 427 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.587, allocations: 0 / 427 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001623/0.5872, allocations: 15.98 kB / 427 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.126e-05/0.5872, allocations: 4 kB / 427 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.5873, allocations: 3.562 kB / 427 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-05/0.5873, allocations: 7.938 kB / 427 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5873, allocations: 0 / 427 MB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000494/0.5878, allocations: 221 kB / 427.3 MB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000198/0.588, allocations: 126.5 kB / 427.4 MB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.351e-05/0.5881, allocations: 7.938 kB / 427.4 MB, free: 2.246 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.5882, allocations: 11.38 kB / 427.4 MB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.71e-05/0.5883, allocations: 11.94 kB / 427.4 MB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/0.5884, allocations: 7.438 kB / 427.4 MB, free: 2.223 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000419/0.5888, allocations: 243.1 kB / 427.7 MB, free: 2.027 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5888, allocations: 3.938 kB / 427.7 MB, free: 2.023 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004802/0.5893, allocations: 51.38 kB / 427.7 MB, free: 1.98 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.002068/0.5914, allocations: 1.278 MB / 429 MB, free: 0.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004068/0.5919, allocations: 88.34 kB / 429.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.5919, allocations: 0 / 429.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.592, allocations: 38.22 kB / 429.1 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006016/0.5926, allocations: 57.42 kB / 429.2 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.5938, allocations: 419.2 kB / 429.6 MB, free: 208 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/0.5944, allocations: 0.7421 MB / 430.3 MB, free: 15.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001761/0.5946, allocations: 65.03 kB / 430.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of SimCode: time 1.173e-06/0.5946, allocations: 0 / 430.4 MB, free: 15.41 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_HoldCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_HoldCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_HoldCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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_IntegerSignals_Hold.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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_IntegerSignals_Hold_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold.fmu] Error 1