Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.046/2.046, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.312e-05/4.321e-05, allocations: 4 kB / 284.4 MB, free: 8.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1092, allocations: 50.37 MB / 334.8 MB, free: 6.121 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4828/0.5922, allocations: 82.07 MB / 416.8 MB, free: 11.83 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003685/0.5926, allocations: 82.27 kB / 416.9 MB, free: 11.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03797/0.6306, allocations: 6.421 MB / 423.3 MB, free: 6.402 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.6306, allocations: 0 / 423.3 MB, free: 6.402 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.8e-05/0.6307, allocations: 4 kB / 423.3 MB, free: 6.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.001072/0.6318, allocations: 0.4986 MB / 423.8 MB, free: 5.863 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.04e-05/0.6319, allocations: 16.02 kB / 423.9 MB, free: 5.848 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.123e-05/0.632, allocations: 34.19 kB / 423.9 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.6321, allocations: 23.72 kB / 423.9 MB, free: 5.785 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008623/0.633, allocations: 292.1 kB / 424.2 MB, free: 5.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.633, allocations: 4 kB / 424.2 MB, free: 5.477 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.696e-05/0.6331, allocations: 7.375 kB / 424.2 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005442/0.6336, allocations: 147.3 kB / 424.4 MB, free: 5.324 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.6337, allocations: 3.984 kB / 424.4 MB, free: 5.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.6337, allocations: 4 kB / 424.4 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.6337, allocations: 0 / 424.4 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001846/0.6339, allocations: 41.19 kB / 424.4 MB, free: 5.289 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009819/0.635, allocations: 398.3 kB / 424.8 MB, free: 4.891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003483/0.6353, allocations: 118.8 kB / 424.9 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.6355, allocations: 52.5 kB / 425 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.058e-05/0.6356, allocations: 0 / 425 MB, free: 4.719 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.6358, allocations: 73.14 kB / 425 MB, free: 4.645 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 3.126e-06/0.6358, allocations: 0 / 425 MB, free: 4.645 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005051/0.6364, allocations: 126.2 kB / 425.2 MB, free: 4.535 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.6365, allocations: 162.2 kB / 425.3 MB, free: 4.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006964/0.6372, allocations: 299.2 kB / 425.6 MB, free: 4.094 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.6373, allocations: 25.7 kB / 425.6 MB, free: 4.062 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.6374, allocations: 181.2 kB / 425.8 MB, free: 3.906 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.505e-05/0.6375, allocations: 19.19 kB / 425.8 MB, free: 3.891 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.234e-05/0.6375, allocations: 3.312 kB / 425.8 MB, free: 3.891 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.6377, allocations: 322.8 kB / 426.1 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.884e-05/0.6378, allocations: 28.81 kB / 426.2 MB, free: 3.547 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.6381, allocations: 88.67 kB / 426.3 MB, free: 3.449 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001323/0.6382, allocations: 35.55 kB / 426.3 MB, free: 3.422 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.6382, allocations: 0 / 426.3 MB, free: 3.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003752/0.6386, allocations: 106.3 kB / 426.4 MB, free: 3.332 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.6387, allocations: 7.984 kB / 426.4 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.6387, allocations: 0 / 426.4 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-05/0.6387, allocations: 4 kB / 426.4 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/0.639, allocations: 20.06 kB / 426.4 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.639, allocations: 7.984 kB / 426.4 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001826/0.6392, allocations: 4 kB / 426.4 MB, free: 3.289 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.6392, allocations: 7.25 kB / 426.4 MB, free: 3.285 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,subSample.y,subSample.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.0001416/0.6394, allocations: 120 kB / 426.6 MB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.6396, allocations: 72.19 kB / 426.6 MB, free: 3.09 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004148/0.64, allocations: 110.9 kB / 426.7 MB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.64, allocations: 8.062 kB / 426.8 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.6401, allocations: 0 / 426.8 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.6401, allocations: 0 / 426.8 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004039/0.6405, allocations: 258.2 kB / 427 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.6405, allocations: 0 / 427 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001535/0.6407, allocations: 16.06 kB / 427 MB, free: 2.711 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.173e-05/0.6407, allocations: 7.984 kB / 427 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.6407, allocations: 4 kB / 427 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.172e-06/0.6408, allocations: 0 / 427 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.6408, allocations: 3.938 kB / 427 MB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004758/0.6413, allocations: 199.9 kB / 427.2 MB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002247/0.6415, allocations: 126.9 kB / 427.4 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.473e-05/0.6416, allocations: 3.25 kB / 427.4 MB, free: 2.355 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.6418, allocations: 4 kB / 427.4 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.007e-05/0.6419, allocations: 15.67 kB / 427.4 MB, free: 2.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.6419, allocations: 4 kB / 427.4 MB, free: 2.336 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005131/0.6424, allocations: 242.5 kB / 427.6 MB, free: 2.141 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.6424, allocations: 0 / 427.6 MB, free: 2.141 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006461/0.6431, allocations: 46.31 kB / 427.7 MB, free: 2.102 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,subSample.y,sample.y,subSample.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.00252/0.6456, allocations: 1.16 MB / 428.8 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004092/0.6461, allocations: 91.91 kB / 428.9 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.6461, allocations: 4.25 kB / 428.9 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.6463, allocations: 31.86 kB / 428.9 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006706/0.6469, allocations: 55.97 kB / 429 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.6484, allocations: 386.5 kB / 429.4 MB, free: 472 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005343/0.6489, allocations: 0.7504 MB / 430.1 MB, free: 15.69 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001888/0.6491, allocations: 58.78 kB / 430.2 MB, free: 15.66 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6492, allocations: 4 kB / 430.2 MB, free: 15.66 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_SubSampleCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSampleCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSampleFMU.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_SubSample.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSampleCalcHelperMain.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_SubSample_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample.fmu] Error 1