Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.197/2.197, allocations: 218.4 MB / 231.5 MB, free: 12.47 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.257e-05/5.273e-05, allocations: 4 kB / 284.4 MB, free: 8.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1433, allocations: 50.36 MB / 334.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4611/0.6045, allocations: 82.57 MB / 417.3 MB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/0.6048, allocations: 81.95 kB / 417.4 MB, free: 11.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04127/0.6461, allocations: 8.621 MB / 426 MB, free: 4.125 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.6462, allocations: 0 / 426 MB, free: 4.125 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.896e-05/0.6462, allocations: 4 kB / 426 MB, free: 4.121 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001045/0.6473, allocations: 0.5385 MB / 426.6 MB, free: 3.551 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/0.6474, allocations: 8.031 kB / 426.6 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.356e-05/0.6475, allocations: 49.17 kB / 426.6 MB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.6476, allocations: 31.62 kB / 426.7 MB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000734/0.6483, allocations: 303.2 kB / 427 MB, free: 3.152 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.97e-05/0.6484, allocations: 19.12 kB / 427 MB, free: 3.137 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/0.6484, allocations: 11.94 kB / 427 MB, free: 3.129 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007973/0.6493, allocations: 315.3 kB / 427.3 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.6493, allocations: 0 / 427.3 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.553e-05/0.6493, allocations: 3.25 kB / 427.3 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.6493, allocations: 4 kB / 427.3 MB, free: 2.852 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002214/0.6496, allocations: 70.28 kB / 427.4 MB, free: 2.801 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009392/0.6505, allocations: 439.2 kB / 427.8 MB, free: 2.375 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004551/0.651, allocations: 182.2 kB / 428 MB, free: 2.211 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002241/0.6512, allocations: 96.62 kB / 428.1 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.209e-05/0.6513, allocations: 12.22 kB / 428.1 MB, free: 2.121 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002118/0.6515, allocations: 73.25 kB / 428.2 MB, free: 2.047 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 3.226e-06/0.6516, allocations: 4 kB / 428.2 MB, free: 2.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0006137/0.6522, allocations: 197.7 kB / 428.4 MB, free: 1.879 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.6523, allocations: 168.8 kB / 428.5 MB, free: 1.684 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005701/0.6529, allocations: 317 kB / 428.8 MB, free: 1.426 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.499e-05/0.653, allocations: 29.27 kB / 428.9 MB, free: 1.395 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.6531, allocations: 185.2 kB / 429 MB, free: 1.238 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.697e-05/0.6532, allocations: 30.59 kB / 429.1 MB, free: 1.215 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.265e-05/0.6532, allocations: 1 kB / 429.1 MB, free: 1.215 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.6534, allocations: 327.7 kB / 429.4 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.6535, allocations: 38.66 kB / 429.4 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002713/0.6538, allocations: 184.2 kB / 429.6 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000182/0.654, allocations: 72.72 kB / 429.7 MB, free: 0.582 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.654, allocations: 0 / 429.7 MB, free: 0.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005349/0.6546, allocations: 203.1 kB / 429.9 MB, free: 420 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.6546, allocations: 7.938 kB / 429.9 MB, free: 412 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.6546, allocations: 4 kB / 429.9 MB, free: 408 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.726e-05/0.6547, allocations: 8 kB / 429.9 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002959/0.655, allocations: 38.86 kB / 429.9 MB, free: 364 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.953e-05/0.655, allocations: 8 kB / 429.9 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002546/0.6553, allocations: 23.55 kB / 430 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.623e-05/0.6553, allocations: 12 kB / 430 MB, free: 324 kB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001891/0.6555, allocations: 140.5 kB / 430.1 MB, free: 188 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003373/0.6559, allocations: 133.7 kB / 430.2 MB, free: 68 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004237/0.6563, allocations: 132.1 kB / 430.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.437e-06/0.6563, allocations: 4 kB / 430.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.6563, allocations: 0 / 430.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.6564, allocations: 4 kB / 430.4 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003742/0.6568, allocations: 283.4 kB / 430.7 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.6568, allocations: 0 / 430.7 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.6571, allocations: 32.05 kB / 430.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.6571, allocations: 4 kB / 430.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.6571, allocations: 11.3 kB / 430.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.6572, allocations: 3.938 kB / 430.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.6572, allocations: 0 / 430.7 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005796/0.6578, allocations: 271.8 kB / 431 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002139/0.658, allocations: 132.2 kB / 431.1 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.856e-05/0.6581, allocations: 11.86 kB / 431.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.6583, allocations: 4 kB / 431.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.506e-05/0.6583, allocations: 11.92 kB / 431.1 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.714e-05/0.6584, allocations: 7.953 kB / 431.1 MB, free: 15.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004238/0.6588, allocations: 255.5 kB / 431.4 MB, free: 14.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6588, allocations: 0 / 431.4 MB, free: 14.99 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005587/0.6594, allocations: 62.5 kB / 431.4 MB, free: 14.94 MB / 362.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: 20 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.002436/0.6618, allocations: 1.336 MB / 432.8 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005915/0.6625, allocations: 154.2 kB / 432.9 MB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.6625, allocations: 320 / 432.9 MB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.88e-05/0.6626, allocations: 35.23 kB / 433 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008689/0.6635, allocations: 113.6 kB / 433.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002031/0.6656, allocations: 489 kB / 433.6 MB, free: 13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005975/0.6662, allocations: 0.7777 MB / 434.3 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003039/0.6666, allocations: 82.66 kB / 434.4 MB, free: 12.17 MB / 362.7 MB Notification: Performance of SimCode: time 1.262e-06/0.6666, allocations: 3.938 kB / 434.4 MB, free: 12.16 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_UpSampleCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSampleCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSampleFMU.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_UpSample.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSampleCalcHelperMain.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_UpSample_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample.fmu] Error 1