Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.122/2.122, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.952e-05/3.954e-05, allocations: 4 kB / 284.4 MB, free: 8.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 50.37 MB / 334.8 MB, free: 6.117 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4254/0.5313, allocations: 82.5 MB / 417.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/0.5317, allocations: 82.02 kB / 417.3 MB, free: 11.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03941/0.5711, allocations: 8.396 MB / 425.7 MB, free: 4.426 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5712, allocations: 0 / 425.7 MB, free: 4.426 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.853e-05/0.5713, allocations: 8 kB / 425.7 MB, free: 4.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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009695/0.5722, allocations: 0.5046 MB / 426.3 MB, free: 3.879 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.5723, allocations: 8.031 kB / 426.3 MB, free: 3.871 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.181e-05/0.5724, allocations: 49.3 kB / 426.3 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.838e-05/0.5725, allocations: 27.03 kB / 426.3 MB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006459/0.5732, allocations: 277.9 kB / 426.6 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.375e-05/0.5732, allocations: 11.58 kB / 426.6 MB, free: 3.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.874e-05/0.5733, allocations: 19.69 kB / 426.6 MB, free: 3.484 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007234/0.574, allocations: 278.9 kB / 426.9 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.574, allocations: 4 kB / 426.9 MB, free: 3.242 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.5741, allocations: 3.25 kB / 426.9 MB, free: 3.242 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.5741, allocations: 4 kB / 426.9 MB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002/0.5743, allocations: 61.48 kB / 427 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008457/0.5752, allocations: 401.2 kB / 427.4 MB, free: 2.797 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004302/0.5756, allocations: 174.5 kB / 427.5 MB, free: 2.637 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.5759, allocations: 78.2 kB / 427.6 MB, free: 2.574 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-05/0.5759, allocations: 3.984 kB / 427.6 MB, free: 2.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002136/0.5762, allocations: 78.27 kB / 427.7 MB, free: 2.492 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 3.707e-06/0.5762, allocations: 0 / 427.7 MB, free: 2.492 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005883/0.5768, allocations: 169.2 kB / 427.9 MB, free: 2.352 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.5769, allocations: 142.7 kB / 428 MB, free: 2.188 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000437/0.5774, allocations: 243 kB / 428.2 MB, free: 1.988 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.97e-05/0.5774, allocations: 33.31 kB / 428.3 MB, free: 1.953 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.5775, allocations: 176 kB / 428.4 MB, free: 1.793 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.213e-05/0.5776, allocations: 30.7 kB / 428.5 MB, free: 1.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.157e-05/0.5776, allocations: 7.375 kB / 428.5 MB, free: 1.766 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.5778, allocations: 326 kB / 428.8 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.5779, allocations: 34.34 kB / 428.8 MB, free: 1.418 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002373/0.5782, allocations: 163.1 kB / 429 MB, free: 1.215 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.5783, allocations: 65.81 kB / 429.1 MB, free: 1.168 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.824e-06/0.5784, allocations: 8 kB / 429.1 MB, free: 1.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004992/0.5789, allocations: 188.8 kB / 429.3 MB, free: 1 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.5789, allocations: 8.531 kB / 429.3 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.5789, allocations: 8 kB / 429.3 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.578e-05/0.579, allocations: 4 kB / 429.3 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001831/0.5792, allocations: 23.92 kB / 429.3 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.901e-05/0.5792, allocations: 8 kB / 429.3 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.5794, allocations: 19.7 kB / 429.3 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.5795, allocations: 11.06 kB / 429.3 MB, free: 0.9258 MB / 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.table1.combiTimeTable.nextTimeEvent,sample.u,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,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.000181/0.5797, allocations: 133.2 kB / 429.5 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003217/0.58, allocations: 124.1 kB / 429.6 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003545/0.5804, allocations: 123 kB / 429.7 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.5804, allocations: 0 / 429.7 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.5804, allocations: 4 kB / 429.7 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.5804, allocations: 0 / 429.7 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003533/0.5808, allocations: 253.3 kB / 430 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.5808, allocations: 0 / 430 MB, free: 324 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001034/0.5809, allocations: 15.06 kB / 430 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-06/0.581, allocations: 0 / 430 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.581, allocations: 15.61 kB / 430 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.581, allocations: 4 kB / 430 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.581, allocations: 0 / 430 MB, free: 296 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005053/0.5815, allocations: 244 kB / 430.2 MB, free: 52 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.5818, allocations: 123.4 kB / 430.3 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.317e-05/0.5818, allocations: 13.12 kB / 430.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.582, allocations: 11.23 kB / 430.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.461e-05/0.5821, allocations: 7.953 kB / 430.4 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-05/0.5821, allocations: 8.047 kB / 430.4 MB, free: 15.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003348/0.5825, allocations: 199 kB / 430.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.494e-06/0.5825, allocations: 0 / 430.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005263/0.583, allocations: 52.56 kB / 430.6 MB, free: 15.69 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,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.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.002343/0.5854, allocations: 1.296 MB / 431.9 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00051/0.5859, allocations: 133.4 kB / 432.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.586, allocations: 0 / 432.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.108e-05/0.5861, allocations: 29.92 kB / 432.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006863/0.5868, allocations: 106.5 kB / 432.2 MB, free: 14.28 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.588, allocations: 416.7 kB / 432.6 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.5884, allocations: 0.7555 MB / 433.4 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.5886, allocations: 70.34 kB / 433.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of SimCode: time 9.01e-07/0.5886, allocations: 0 / 433.4 MB, free: 13.06 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_BooleanSignals_UpSampleCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSampleCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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_BooleanSignals_UpSample.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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_BooleanSignals_UpSample_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample.fmu] Error 1