Running command: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_Synchronous): time 2.038/2.038, allocations: 218.4 MB / 231.5 MB, free: 12.46 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.965e-05/3.97e-05, allocations: 4 kB / 284.4 MB, free: 8.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1038, allocations: 50.36 MB / 334.8 MB, free: 6.137 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4413/0.5452, allocations: 82.15 MB / 416.9 MB, free: 11.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.5454, allocations: 67.66 kB / 417 MB, free: 11.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02522/0.5707, allocations: 5.771 MB / 422.7 MB, free: 6.898 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5707, allocations: 0 / 422.7 MB, free: 6.898 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.318e-05/0.5708, allocations: 8 kB / 422.8 MB, free: 6.891 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0008041/0.5716, allocations: 499.1 kB / 423.2 MB, free: 6.367 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.5717, allocations: 8.031 kB / 423.3 MB, free: 6.359 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.912e-05/0.5717, allocations: 42.44 kB / 423.3 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.225e-05/0.5718, allocations: 27.7 kB / 423.3 MB, free: 6.285 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005888/0.5724, allocations: 292 kB / 423.6 MB, free: 5.984 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.5725, allocations: 4 kB / 423.6 MB, free: 5.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/0.5725, allocations: 11.94 kB / 423.6 MB, free: 5.973 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004453/0.573, allocations: 169.2 kB / 423.8 MB, free: 5.812 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.573, allocations: 3.984 kB / 423.8 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.027e-05/0.573, allocations: 0 / 423.8 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.573, allocations: 4 kB / 423.8 MB, free: 5.805 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001611/0.5732, allocations: 51.17 kB / 423.8 MB, free: 5.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009079/0.5741, allocations: 427.8 kB / 424.3 MB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.5745, allocations: 124.7 kB / 424.4 MB, free: 5.242 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.5746, allocations: 54.5 kB / 424.4 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.5746, allocations: 0 / 424.4 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002225/0.5749, allocations: 93.36 kB / 424.5 MB, free: 5.105 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.294e-06/0.5749, allocations: 0 / 424.5 MB, free: 5.105 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004393/0.5753, allocations: 145.1 kB / 424.7 MB, free: 4.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.5755, allocations: 147.7 kB / 424.8 MB, free: 4.809 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005294/0.576, allocations: 290.6 kB / 425.1 MB, free: 4.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.982e-05/0.5761, allocations: 33.2 kB / 425.1 MB, free: 4.535 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.5762, allocations: 182.1 kB / 425.3 MB, free: 4.379 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.807e-05/0.5763, allocations: 27.39 kB / 425.3 MB, free: 4.355 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.5763, allocations: 7.25 kB / 425.3 MB, free: 4.352 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.5764, allocations: 318 kB / 425.7 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.5765, allocations: 33.69 kB / 425.7 MB, free: 4.012 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002059/0.5768, allocations: 121.4 kB / 425.8 MB, free: 3.883 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.5769, allocations: 45.48 kB / 425.8 MB, free: 3.852 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.5769, allocations: 0 / 425.8 MB, free: 3.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003699/0.5773, allocations: 149.9 kB / 426 MB, free: 3.727 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.5774, allocations: 4 kB / 426 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.5774, allocations: 0 / 426 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.5774, allocations: 4 kB / 426 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.5776, allocations: 35.39 kB / 426 MB, free: 3.688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.5777, allocations: 4 kB / 426 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001568/0.5778, allocations: 11.56 kB / 426.1 MB, free: 3.676 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.5779, allocations: 4 kB / 426.1 MB, free: 3.672 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.triggeredBooleanSampler.y,triggeredBooleanSampler.y,$whenCondition2,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToTrigger.y2,$CLKPRE.ClockedSignalToTrigger.y2,$whenCondition1,ClockedSignalToTrigger.y,$PRE.ClockedSignalToTrigger.y3,ClockedSignalToTrigger.y3,ClockedSignalToTrigger.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0001286/0.578, allocations: 129.9 kB / 426.2 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.5781, allocations: 69.17 kB / 426.3 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003903/0.5785, allocations: 144.5 kB / 426.4 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.5786, allocations: 4 kB / 426.4 MB, free: 3.359 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.5786, allocations: 4.094 kB / 426.4 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.5786, allocations: 3.938 kB / 426.4 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000846/0.5795, allocations: 499.3 kB / 426.9 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.5795, allocations: 0 / 426.9 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.5796, allocations: 15.94 kB / 426.9 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.388e-06/0.5796, allocations: 3.984 kB / 426.9 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.5797, allocations: 4 kB / 426.9 MB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.5797, allocations: 0 / 426.9 MB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.5797, allocations: 0 / 426.9 MB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004265/0.5801, allocations: 272.7 kB / 427.2 MB, free: 2.594 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.5803, allocations: 111.6 kB / 427.3 MB, free: 2.473 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.441e-05/0.5803, allocations: 4 kB / 427.3 MB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.5805, allocations: 11.42 kB / 427.3 MB, free: 2.461 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.229e-05/0.5806, allocations: 11.42 kB / 427.3 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.5806, allocations: 4 kB / 427.3 MB, free: 2.449 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003694/0.581, allocations: 239.3 kB / 427.6 MB, free: 2.258 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.581, allocations: 0 / 427.6 MB, free: 2.258 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005247/0.5816, allocations: 63.86 kB / 427.6 MB, free: 2.203 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (sample1.y,ClockedSignalToTrigger.u,ClockedSignalToTrigger.y2,ClockedSignalToTrigger.y,$whenCondition2,$whenCondition1,ClockedSignalToTrigger.y3,triggeredBooleanSampler.y,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 3 (integerTable.combiTimeTable.nextTimeEvent,ClockedSignalToTrigger.y3,integerTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00205/0.5836, allocations: 1.229 MB / 428.8 MB, free: 1.051 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004262/0.5841, allocations: 112.6 kB / 429 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5841, allocations: 0 / 429 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.5842, allocations: 38.5 kB / 429 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005151/0.5847, allocations: 54.05 kB / 429 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.5859, allocations: 423.1 kB / 429.5 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.5864, allocations: 0.7438 MB / 430.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/0.5866, allocations: 71.97 kB / 430.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of SimCode: time 2.925e-06/0.5866, allocations: 0 / 430.3 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_WorkInProgress_Tests_TestClockedIntegerToTriggerCalcHelperMain.o OMCppModelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTriggerCalcHelperMain.cpp In file included from OMCppModelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTriggerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTriggerFMU.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_WorkInProgress_Tests_TestClockedIntegerToTrigger.so OMCppModelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTriggerCalcHelperMain.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_WorkInProgress_Tests_TestClockedIntegerToTrigger_FMU.makefile:93: recipe for target 'Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger.fmu' failed make: *** [Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger.fmu] Error 1