Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 107.3 kB / 16.69 MB, free: 6.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 190 kB / 17.61 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 241.3 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.0573/0.0573, allocations: 12.04 MB / 303.5 MB, free: 3.355 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 67.89 kB / 366.6 MB, free: 4.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2246, allocations: 52.32 MB / 418.9 MB, free: 21.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM): time 0.003696/0.2283, allocations: 2.939 MB / 421.9 MB, free: 18.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.2295, allocations: 0.8757 MB / 422.8 MB, free: 17.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.2297, allocations: 7.938 kB / 422.8 MB, free: 17.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002906/0.23, allocations: 67.52 kB / 422.8 MB, free: 17.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.2301, allocations: 42.28 kB / 422.9 MB, free: 17.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004859/0.2306, allocations: 239.6 kB / 423.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003133/0.231, allocations: 411 kB / 423.5 MB, free: 16.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002711/0.2312, allocations: 242.3 kB / 423.7 MB, free: 16.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.2314, allocations: 195.3 kB / 423.9 MB, free: 16.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.2316, allocations: 250.8 kB / 424.2 MB, free: 16.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.762e-05/0.2317, allocations: 44 kB / 424.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.2319, allocations: 195.8 kB / 424.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.232, allocations: 151.6 kB / 424.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.2321, allocations: 222.7 kB / 424.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003633/0.2325, allocations: 0.501 MB / 425.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.2325, allocations: 4 kB / 425.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.2325, allocations: 0 / 425.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.2325, allocations: 0 / 425.3 MB, free: 14.91 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg getInteger.pkgIn.pkg = getFloat.pkgOut[1].pkg getReal.pkgOut[1].pkg = getFloat.pkgIn.pkg lcmSend.pkgIn.pkg = addInteger.pkgOut[1].pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addFloat.pkgIn.pkg lcmReceive.pkgOut.pkg = getReal.pkgIn.pkg packager.pkgOut.pkg = addReal.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 105 * Number of variables: 105 Notification: Performance of Generate backend data structure: time 0.001236/0.2338, allocations: 1.138 MB / 426.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.2338, allocations: 12.03 kB / 426.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.123e-05/0.2339, allocations: 44.38 kB / 426.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002641/0.2342, allocations: 331.4 kB / 426.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.906e-05/0.2342, allocations: 29.38 kB / 426.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.534e-05/0.2342, allocations: 40.36 kB / 426.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006236/0.2349, allocations: 484 kB / 427.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.2349, allocations: 4.188 kB / 427.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.2349, allocations: 27.8 kB / 427.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.235, allocations: 11.98 kB / 427.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004149/0.2354, allocations: 263.8 kB / 427.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.2366, allocations: 1.378 MB / 429 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004382/0.237, allocations: 302.4 kB / 429.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.2372, allocations: 155.4 kB / 429.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.2372, allocations: 8 kB / 429.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000284/0.2375, allocations: 260.6 kB / 429.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.824e-06/0.2375, allocations: 0 / 429.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008487/0.2384, allocations: 0.5744 MB / 430.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.04e-05/0.2385, allocations: 160.5 kB / 430.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.2387, allocations: 264.7 kB / 430.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.2387, allocations: 41.7 kB / 430.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.224e-05/0.2388, allocations: 216.2 kB / 431 MB, free: 8.848 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.849e-05/0.2389, allocations: 102.7 kB / 431.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.239, allocations: 118.2 kB / 431.2 MB, free: 8.625 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.672e-05/0.2391, allocations: 350.7 kB / 431.5 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.2393, allocations: 125 kB / 431.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002378/0.2395, allocations: 314.4 kB / 432 MB, free: 7.758 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004088/0.2399, allocations: 480.4 kB / 432.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.24, allocations: 0 / 432.4 MB, free: 7.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005849/0.2405, allocations: 489 kB / 432.9 MB, free: 6.715 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2406, allocations: 8 kB / 432.9 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.2406, allocations: 4 kB / 432.9 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.2406, allocations: 12 kB / 432.9 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000229/0.2408, allocations: 75.83 kB / 433 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.304e-05/0.2409, allocations: 16.03 kB / 433 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.241, allocations: 43.53 kB / 433.1 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.78e-05/0.2411, allocations: 27.98 kB / 433.1 MB, free: 6.531 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 54 (addFloat.pkgOut[1].dummy,$PRE.addFloat.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,lcmSend.dummy,$PRE.lcmSend.dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addFloat.pkgOut[1].backwardTrigger,addFloat.pkgOut[1].trigger,$whenCondition2,addInteger.u[1],getFloat.dummy,$PRE.getFloat.dummy,getFloat.y[2],$PRE.getFloat.y[2],getFloat.y[1],$PRE.getFloat.y[1],getFloat.pkgOut[1].dummy,$PRE.getFloat.pkgOut[1].dummy,getInteger.dummy,$PRE.getInteger.dummy,getInteger.y[1],$PRE.getInteger.y[1],getReal.dummy,$PRE.getReal.dummy,getReal.y[3],$PRE.getReal.y[3],getReal.y[2],$PRE.getReal.y[2],getReal.y[1],$PRE.getReal.y[1],getReal.pkgOut[1].dummy,$PRE.getReal.pkgOut[1].dummy,lcmReceive.pkgOut.dummy,$PRE.lcmReceive.pkgOut.dummy,getFloat.pkgOut[1].trigger,$whenCondition1,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,getFloat.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,lcmReceive.bufferSize,addFloat.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,lcmSend.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,addReal.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,lcmSend.bufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001985/0.2413, allocations: 235.4 kB / 433.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.889e-05/0.2413, allocations: 31.7 kB / 433.3 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003253/0.2416, allocations: 243.3 kB / 433.6 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.2417, allocations: 4 kB / 433.6 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.2417, allocations: 4 kB / 433.6 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.2417, allocations: 3.984 kB / 433.6 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009622/0.2427, allocations: 1.017 MB / 434.6 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.2427, allocations: 4 kB / 434.6 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.869e-05/0.2427, allocations: 15.94 kB / 434.6 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.2427, allocations: 4 kB / 434.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.2428, allocations: 7.984 kB / 434.6 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.2428, allocations: 11.94 kB / 434.7 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2428, allocations: 0 / 434.7 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006027/0.2434, allocations: 0.6566 MB / 435.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.174e-05/0.2434, allocations: 100.8 kB / 435.4 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.872e-05/0.2435, allocations: 11.98 kB / 435.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.2436, allocations: 19.92 kB / 435.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.183e-05/0.2437, allocations: 15.92 kB / 435.5 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.124e-05/0.2437, allocations: 19.98 kB / 435.5 MB, free: 4.027 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.6e-05/0.2438, allocations: 156.5 kB / 435.6 MB, free: 3.875 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2438, allocations: 0 / 435.6 MB, free: 3.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005037/0.2443, allocations: 151.5 kB / 435.8 MB, free: 3.727 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 35 (getFloat.pkgOut[1].trigger,$whenCondition1,lcmReceive.pkgOut.dummy,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,lcmReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addFloat.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,lcmSend.bufferSize,lcmSend.dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,lcmSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 23 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006448/0.245, allocations: 354.3 kB / 436.1 MB, free: 3.445 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005196/0.2455, allocations: 388.2 kB / 436.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2455, allocations: 1.625 kB / 436.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.2457, allocations: 168 kB / 436.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005859/0.2463, allocations: 95.23 kB / 436.8 MB, free: 2.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.2474, allocations: 0.8771 MB / 437.6 MB, free: 1.898 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.2476, allocations: 0.8115 MB / 438.5 MB, free: 1.059 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/0.2477, allocations: 31.42 kB / 438.5 MB, free: 1.027 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2477, allocations: 0 / 438.5 MB, free: 1.027 MB / 302.1 MB Notification: Performance of Templates: time 0.008635/0.2563, allocations: 6.168 MB / 444.6 MB, free: 10.88 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.makefile clang++ -std=c++14 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:452:5: error: no matching function for call to 'strncpy' strncpy(pkg->data + pkg->pos, u, (size_t)bufferSize); ^~~~~~~ /usr/include/string.h:144:14: note: candidate function not viable: no known conversion from 'unsigned char *' to 'char *__restrict' for 1st argument extern char *strncpy (char *__restrict __dest, ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDLCM.h:35:22: error: no matching function for call to 'MDD_SerialPackagerSetDataWithErrorReturn' int rc = MDD_SerialPackagerSetDataWithErrorReturn(lcm->pkg, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:177:5: note: candidate function not viable: cannot convert argument of incomplete type 'void *const' to 'const char *' for 2nd argument int MDD_SerialPackagerSetDataWithErrorReturn(void* p_package, const char * data, int size) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:470:3: error: no matching function for call to 'MDD_SerialPackagerAddInteger' MDD_SerialPackagerAddInteger(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:243:16: note: candidate function not viable: 2nd argument ('const int *') would lose const qualifier DllExport void MDD_SerialPackagerAddInteger(void* p_package, int * u, size_t n, int endian) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:491:3: error: no matching function for call to 'MDD_SerialPackagerAddDouble' MDD_SerialPackagerAddDouble(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:307:16: note: candidate function not viable: 2nd argument ('const double *') would lose const qualifier DllExport void MDD_SerialPackagerAddDouble(void* p_package, double * u, size_t n, int endian) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:512:3: error: no matching function for call to 'MDD_SerialPackagerAddDoubleAsFloat' MDD_SerialPackagerAddDoubleAsFloat(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:369:16: note: candidate function not viable: 2nd argument ('const double *') would lose const qualifier DllExport void MDD_SerialPackagerAddDoubleAsFloat(void* p_package, double * u, size_t n, int endian) { ^ 5 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.o] Error 1