Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SuperSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.196/2.196, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.368e-05/4.37e-05, allocations: 8 kB / 284.4 MB, free: 8.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1106, allocations: 50.36 MB / 334.8 MB, free: 6.125 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4685/0.5791, allocations: 82.03 MB / 416.8 MB, free: 12.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/0.5795, allocations: 82.69 kB / 416.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0298/0.6093, allocations: 6.281 MB / 423.2 MB, free: 6.992 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6094, allocations: 0 / 423.2 MB, free: 6.992 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.642e-05/0.6094, allocations: 0 / 423.2 MB, free: 6.992 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.0008571/0.6103, allocations: 491.1 kB / 423.6 MB, free: 6.477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.6104, allocations: 8.031 kB / 423.6 MB, free: 6.469 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.224e-05/0.6105, allocations: 34.19 kB / 423.7 MB, free: 6.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.736e-05/0.6105, allocations: 23.72 kB / 423.7 MB, free: 6.406 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005822/0.6111, allocations: 255.5 kB / 423.9 MB, free: 6.137 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.6112, allocations: 10.77 kB / 424 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.6112, allocations: 7.984 kB / 424 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003946/0.6116, allocations: 146.3 kB / 424.1 MB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.6117, allocations: 4 kB / 424.1 MB, free: 5.973 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.6117, allocations: 3.438 kB / 424.1 MB, free: 5.973 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.6117, allocations: 0 / 424.1 MB, free: 5.973 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001185/0.6118, allocations: 32.86 kB / 424.1 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007255/0.6126, allocations: 367.5 kB / 424.5 MB, free: 5.578 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.6128, allocations: 107.1 kB / 424.6 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.6129, allocations: 44.27 kB / 424.7 MB, free: 5.418 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.613, allocations: 4 kB / 424.7 MB, free: 5.414 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.6132, allocations: 69.52 kB / 424.7 MB, free: 5.344 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 3.115e-06/0.6132, allocations: 0 / 424.7 MB, free: 5.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003803/0.6136, allocations: 114.5 kB / 424.8 MB, free: 5.246 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.6137, allocations: 140.5 kB / 425 MB, free: 5.078 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004152/0.6141, allocations: 233.8 kB / 425.2 MB, free: 4.887 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.6142, allocations: 33 kB / 425.2 MB, free: 4.852 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.6143, allocations: 175.5 kB / 425.4 MB, free: 4.695 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.952e-05/0.6144, allocations: 19.47 kB / 425.4 MB, free: 4.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-06/0.6144, allocations: 0 / 425.4 MB, free: 4.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.6146, allocations: 326.2 kB / 425.7 MB, free: 4.355 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.99e-05/0.6147, allocations: 26.75 kB / 425.8 MB, free: 4.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001237/0.6148, allocations: 60.52 kB / 425.8 MB, free: 4.266 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.142e-05/0.6149, allocations: 27.17 kB / 425.9 MB, free: 4.246 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.6149, allocations: 4.031 kB / 425.9 MB, free: 4.242 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002777/0.6152, allocations: 102.3 kB / 426 MB, free: 4.152 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.6152, allocations: 4 kB / 426 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.6153, allocations: 4 kB / 426 MB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.6153, allocations: 0 / 426 MB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.6154, allocations: 19.42 kB / 426 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.6155, allocations: 0 / 426 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.6156, allocations: 4 kB / 426 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.6157, allocations: 8.125 kB / 426 MB, free: 4.117 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.0001372/0.6158, allocations: 124.3 kB / 426.1 MB, free: 3.992 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.616, allocations: 64.72 kB / 426.2 MB, free: 3.926 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003297/0.6163, allocations: 119.3 kB / 426.3 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.6163, allocations: 0 / 426.3 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.6163, allocations: 0 / 426.3 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.465e-06/0.6164, allocations: 4 kB / 426.3 MB, free: 3.824 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000294/0.6167, allocations: 232.8 kB / 426.5 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.6167, allocations: 4 kB / 426.5 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.919e-05/0.6168, allocations: 8 kB / 426.5 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.6168, allocations: 0 / 426.5 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.6168, allocations: 7.984 kB / 426.5 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.6168, allocations: 0 / 426.5 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.6168, allocations: 0 / 426.5 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003481/0.6172, allocations: 183.8 kB / 426.7 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001735/0.6174, allocations: 119.4 kB / 426.8 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.361e-05/0.6174, allocations: 3.188 kB / 426.8 MB, free: 3.234 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.6176, allocations: 7.984 kB / 426.9 MB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.553e-05/0.6176, allocations: 4 kB / 426.9 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.6176, allocations: 4 kB / 426.9 MB, free: 3.219 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003215/0.618, allocations: 198.4 kB / 427.1 MB, free: 3.059 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.618, allocations: 7.938 kB / 427.1 MB, free: 3.051 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004246/0.6184, allocations: 39.44 kB / 427.1 MB, free: 3.016 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.001897/0.6203, allocations: 1.139 MB / 428.2 MB, free: 1.922 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003424/0.6207, allocations: 64.19 kB / 428.3 MB, free: 1.875 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6208, allocations: 0 / 428.3 MB, free: 1.875 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.858e-05/0.6209, allocations: 35.34 kB / 428.3 MB, free: 1.848 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005489/0.6214, allocations: 54.95 kB / 428.4 MB, free: 1.805 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.6225, allocations: 330.3 kB / 428.7 MB, free: 1.465 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.6229, allocations: 0.7361 MB / 429.5 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.623, allocations: 58.91 kB / 429.5 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of SimCode: time 1.382e-06/0.6231, allocations: 4 kB / 429.5 MB, free: 0.668 MB / 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_SuperSampleCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SuperSampleCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SuperSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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_BooleanSignals_SuperSample.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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_BooleanSignals_SuperSample_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SuperSample.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SuperSample.fmu] Error 1