Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.09/2.09, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.279e-05/4.298e-05, allocations: 4 kB / 284.4 MB, free: 8.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 50.36 MB / 334.8 MB, free: 6.141 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4556/0.5621, allocations: 82.09 MB / 416.9 MB, free: 11.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/0.5625, allocations: 78.58 kB / 416.9 MB, free: 11.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02983/0.5924, allocations: 6.424 MB / 423.4 MB, free: 6.422 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5924, allocations: 0 / 423.4 MB, free: 6.422 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.681e-05/0.5925, allocations: 4 kB / 423.4 MB, free: 6.418 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.0008563/0.5933, allocations: 0.5032 MB / 423.9 MB, free: 5.879 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.5934, allocations: 8.031 kB / 423.9 MB, free: 5.871 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.578e-05/0.5935, allocations: 34.38 kB / 423.9 MB, free: 5.832 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.038e-05/0.5936, allocations: 23.72 kB / 423.9 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000616/0.5942, allocations: 292 kB / 424.2 MB, free: 5.504 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.5942, allocations: 4 kB / 424.2 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.088e-05/0.5943, allocations: 7.312 kB / 424.2 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004049/0.5947, allocations: 157 kB / 424.4 MB, free: 5.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.5947, allocations: 0 / 424.4 MB, free: 5.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.5947, allocations: 4 kB / 424.4 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.5948, allocations: 0 / 424.4 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001274/0.5949, allocations: 38.8 kB / 424.4 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000754/0.5957, allocations: 406 kB / 424.8 MB, free: 4.906 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002529/0.5959, allocations: 106.4 kB / 424.9 MB, free: 4.793 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.5961, allocations: 48.38 kB / 425 MB, free: 4.746 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.5961, allocations: 3.812 kB / 425 MB, free: 4.746 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001912/0.5963, allocations: 76.64 kB / 425 MB, free: 4.668 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.906e-06/0.5963, allocations: 0 / 425 MB, free: 4.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003943/0.5967, allocations: 127.6 kB / 425.2 MB, free: 4.555 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/0.5969, allocations: 156.7 kB / 425.3 MB, free: 4.367 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000528/0.5974, allocations: 298.9 kB / 425.6 MB, free: 4.121 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.114e-05/0.5975, allocations: 25.7 kB / 425.6 MB, free: 4.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.5976, allocations: 182.4 kB / 425.8 MB, free: 3.934 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.652e-05/0.5976, allocations: 23.5 kB / 425.8 MB, free: 3.914 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.656e-06/0.5977, allocations: 0 / 425.8 MB, free: 3.914 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.5978, allocations: 330.5 kB / 426.2 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.364e-05/0.5979, allocations: 22.94 kB / 426.2 MB, free: 3.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001566/0.5981, allocations: 88.72 kB / 426.3 MB, free: 3.473 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.904e-05/0.5982, allocations: 34.55 kB / 426.3 MB, free: 3.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.5982, allocations: 0 / 426.3 MB, free: 3.445 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002765/0.5985, allocations: 105.6 kB / 426.4 MB, free: 3.355 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.5985, allocations: 4 kB / 426.4 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.5985, allocations: 4 kB / 426.4 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.5986, allocations: 0 / 426.4 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.5988, allocations: 23.92 kB / 426.4 MB, free: 3.324 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.5988, allocations: 4.125 kB / 426.4 MB, free: 3.32 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001487/0.599, allocations: 7.625 kB / 426.4 MB, free: 3.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.599, allocations: 7.984 kB / 426.5 MB, free: 3.309 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,superSample.y,superSample.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.0001204/0.5991, allocations: 120.6 kB / 426.6 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.5993, allocations: 72.95 kB / 426.6 MB, free: 3.113 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003394/0.5996, allocations: 113.8 kB / 426.8 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.5997, allocations: 4.062 kB / 426.8 MB, free: 3.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.5997, allocations: 4 kB / 426.8 MB, free: 3.016 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.297e-06/0.5997, allocations: 7.984 kB / 426.8 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.6, allocations: 249.3 kB / 427 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.6, allocations: 0 / 427 MB, free: 2.746 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.6002, allocations: 23.11 kB / 427 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.6002, allocations: 0 / 427 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.6002, allocations: 4 kB / 427 MB, free: 2.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.6002, allocations: 0 / 427 MB, free: 2.723 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6002, allocations: 3.938 kB / 427 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003731/0.6006, allocations: 194.9 kB / 427.2 MB, free: 2.516 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001954/0.6008, allocations: 126.7 kB / 427.4 MB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.03e-05/0.6009, allocations: 4 kB / 427.4 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.601, allocations: 2.812 kB / 427.4 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.16e-05/0.6011, allocations: 15.98 kB / 427.4 MB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.6011, allocations: 3.062 kB / 427.4 MB, free: 2.363 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000386/0.6015, allocations: 242.6 kB / 427.6 MB, free: 2.168 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.6016, allocations: 4 kB / 427.6 MB, free: 2.164 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004391/0.602, allocations: 42.28 kB / 427.7 MB, free: 2.129 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,superSample.y,sample.y,superSample.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.001871/0.6039, allocations: 1.172 MB / 428.8 MB, free: 1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003169/0.6042, allocations: 81.28 kB / 428.9 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.6043, allocations: 4.25 kB / 428.9 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.572e-05/0.6044, allocations: 34.42 kB / 429 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005501/0.6049, allocations: 54.77 kB / 429 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.606, allocations: 383.6 kB / 429.4 MB, free: 500 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.6065, allocations: 0.7543 MB / 430.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.6066, allocations: 55.8 kB / 430.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of SimCode: time 8.61e-07/0.6066, allocations: 0 / 430.2 MB, free: 15.69 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_SuperSampleCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSampleCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSampleFMU.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_SuperSample.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSampleCalcHelperMain.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_SuperSample_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample.fmu] Error 1