Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.098/2.098, allocations: 218.4 MB / 231.5 MB, free: 12.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.726e-05/3.719e-05, allocations: 8 kB / 284.4 MB, free: 8.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 50.35 MB / 334.8 MB, free: 6.133 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4232/0.5271, allocations: 82.03 MB / 416.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/0.5274, allocations: 85.62 kB / 416.9 MB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0277/0.5551, allocations: 6.284 MB / 423.2 MB, free: 6.93 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.5552, allocations: 0 / 423.2 MB, free: 6.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.735e-05/0.5552, allocations: 4 kB / 423.2 MB, free: 6.926 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.0007483/0.556, allocations: 482.8 kB / 423.6 MB, free: 6.418 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.5561, allocations: 8.031 kB / 423.6 MB, free: 6.41 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.363e-05/0.5561, allocations: 41.61 kB / 423.7 MB, free: 6.363 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.99e-05/0.5562, allocations: 19.72 kB / 423.7 MB, free: 6.344 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005827/0.5568, allocations: 255.8 kB / 424 MB, free: 6.074 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.5568, allocations: 7.953 kB / 424 MB, free: 6.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.311e-05/0.5569, allocations: 7.25 kB / 424 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003995/0.5573, allocations: 146.6 kB / 424.1 MB, free: 5.918 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.5573, allocations: 0 / 424.1 MB, free: 5.918 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.5573, allocations: 4 kB / 424.1 MB, free: 5.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.5574, allocations: 3.984 kB / 424.1 MB, free: 5.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.5575, allocations: 29.88 kB / 424.1 MB, free: 5.891 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000668/0.5582, allocations: 376.2 kB / 424.5 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.5584, allocations: 103.3 kB / 424.6 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.5585, allocations: 48.56 kB / 424.7 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.5586, allocations: 0 / 424.7 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/0.5588, allocations: 70.7 kB / 424.7 MB, free: 5.281 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.054e-06/0.5588, allocations: 0 / 424.7 MB, free: 5.281 MB / 346.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003603/0.5591, allocations: 110.5 kB / 424.8 MB, free: 5.184 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.5593, allocations: 139.6 kB / 425 MB, free: 5.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003879/0.5597, allocations: 237.3 kB / 425.2 MB, free: 4.824 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.5597, allocations: 29.08 kB / 425.2 MB, free: 4.793 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.5598, allocations: 176.3 kB / 425.4 MB, free: 4.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.715e-05/0.5599, allocations: 23.77 kB / 425.4 MB, free: 4.617 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-06/0.5599, allocations: 0 / 425.4 MB, free: 4.617 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.56, allocations: 318.7 kB / 425.7 MB, free: 4.301 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.497e-05/0.5601, allocations: 23.88 kB / 425.8 MB, free: 4.281 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.5602, allocations: 69 kB / 425.8 MB, free: 4.203 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001136/0.5604, allocations: 26.36 kB / 425.9 MB, free: 4.188 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.5604, allocations: 7.969 kB / 425.9 MB, free: 4.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002389/0.5606, allocations: 99.89 kB / 426 MB, free: 4.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.5607, allocations: 8 kB / 426 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.5607, allocations: 0 / 426 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.5607, allocations: 0 / 426 MB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.5609, allocations: 15.81 kB / 426 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.5609, allocations: 0 / 426 MB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.561, allocations: 11.98 kB / 426 MB, free: 4.059 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.5611, allocations: 8.125 kB / 426 MB, free: 4.051 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.0001148/0.5612, allocations: 120.3 kB / 426.1 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.5613, allocations: 65.09 kB / 426.2 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002872/0.5616, allocations: 104.7 kB / 426.3 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.5616, allocations: 0 / 426.3 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.5617, allocations: 4.125 kB / 426.3 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.5617, allocations: 3.984 kB / 426.3 MB, free: 3.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002922/0.562, allocations: 236.7 kB / 426.5 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.562, allocations: 8.062 kB / 426.5 MB, free: 3.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.501e-05/0.5621, allocations: 4 kB / 426.5 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.5621, allocations: 0 / 426.5 MB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/0.5621, allocations: 7.438 kB / 426.6 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.5621, allocations: 0 / 426.6 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5621, allocations: 0 / 426.6 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003251/0.5625, allocations: 183.7 kB / 426.7 MB, free: 3.305 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001533/0.5626, allocations: 122.7 kB / 426.8 MB, free: 3.176 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.162e-05/0.5627, allocations: 0 / 426.8 MB, free: 3.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.5628, allocations: 7.625 kB / 426.9 MB, free: 3.172 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.5629, allocations: 7.984 kB / 426.9 MB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.5629, allocations: 4 kB / 426.9 MB, free: 3.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002922/0.5632, allocations: 190.6 kB / 427.1 MB, free: 3.004 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.425e-06/0.5632, allocations: 7.938 kB / 427.1 MB, free: 2.996 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003881/0.5636, allocations: 46.89 kB / 427.1 MB, free: 2.957 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.001818/0.5655, allocations: 1.139 MB / 428.2 MB, free: 1.859 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000301/0.5658, allocations: 64.23 kB / 428.3 MB, free: 1.812 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.5658, allocations: 0 / 428.3 MB, free: 1.812 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.093e-05/0.5659, allocations: 30.67 kB / 428.3 MB, free: 1.789 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005261/0.5665, allocations: 58.28 kB / 428.4 MB, free: 1.746 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009572/0.5674, allocations: 330.2 kB / 428.7 MB, free: 1.406 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.5678, allocations: 0.7399 MB / 429.5 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.568, allocations: 45.86 kB / 429.5 MB, free: 0.625 MB / 346.7 MB Notification: Performance of SimCode: time 2.866e-06/0.568, allocations: 4 kB / 429.5 MB, free: 0.6211 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_SubSampleCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSampleCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSampleCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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_BooleanSignals_SubSample.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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_BooleanSignals_SubSample_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample.fmu] Error 1