Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.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_SharedMemory,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008568/0.0008568, allocations: 92.89 kB / 16.71 MB, free: 6.215 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.001049/0.00105, allocations: 182.6 kB / 17.62 MB, free: 5.863 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.217/1.217, allocations: 223.3 MB / 241.7 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05392/0.05392, allocations: 12.06 MB / 304.8 MB, free: 3.102 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002714/0.0002714, allocations: 8 kB / 368.9 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.1702, allocations: 53.36 MB / 422.3 MB, free: 20.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory): time 0.002211/0.1725, allocations: 2.37 MB / 424.7 MB, free: 17.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008722/0.1733, allocations: 0.6976 MB / 425.4 MB, free: 17.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.852e-05/0.1734, allocations: 10.03 kB / 425.4 MB, free: 17.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000179/0.1736, allocations: 47.64 kB / 425.4 MB, free: 17.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001205/0.1737, allocations: 35.78 kB / 425.5 MB, free: 17.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.1741, allocations: 175.7 kB / 425.6 MB, free: 17.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002069/0.1743, allocations: 288.2 kB / 425.9 MB, free: 16.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002102/0.1745, allocations: 178.7 kB / 426.1 MB, free: 16.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.891e-05/0.1746, allocations: 103.5 kB / 426.2 MB, free: 16.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.1747, allocations: 123.3 kB / 426.3 MB, free: 16.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.1748, allocations: 19.98 kB / 426.3 MB, free: 16.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.1749, allocations: 115.9 kB / 426.4 MB, free: 16.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.861e-05/0.175, allocations: 83.67 kB / 426.5 MB, free: 16.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.479e-05/0.1751, allocations: 164.8 kB / 426.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002517/0.1753, allocations: 345.1 kB / 427 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.1753, allocations: 4 kB / 427 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1754, allocations: 0 / 427 MB, free: 15.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.1754, allocations: 0 / 427 MB, free: 15.61 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg getReal.pkgOut[1].pkg = getInteger.pkgIn.pkg sharedMemoryRead.pkgOut.pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = sharedMemoryWrite.pkgIn.pkg addReal.pkgOut[1].pkg = addInteger.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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0008021/0.1762, allocations: 0.7795 MB / 427.8 MB, free: 14.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.696e-05/0.1762, allocations: 11.97 kB / 427.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.406e-05/0.1763, allocations: 36.56 kB / 427.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/0.1765, allocations: 287.6 kB / 428.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.1765, allocations: 29.02 kB / 428.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.1765, allocations: 28.38 kB / 428.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004533/0.177, allocations: 368.2 kB / 428.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.177, allocations: 192 / 428.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/0.1771, allocations: 19.92 kB / 428.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1771, allocations: 8 kB / 428.6 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002776/0.1774, allocations: 188.7 kB / 428.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009026/0.1783, allocations: 1.169 MB / 429.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/0.1786, allocations: 242.5 kB / 430.2 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.1788, allocations: 123.3 kB / 430.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.1788, allocations: 11.98 kB / 430.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002224/0.179, allocations: 211.6 kB / 430.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.179, allocations: 0 / 430.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.000672/0.1797, allocations: 453.3 kB / 430.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.1798, allocations: 148.5 kB / 431.1 MB, free: 11.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.1799, allocations: 226.8 kB / 431.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.18, allocations: 37.69 kB / 431.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.226e-05/0.18, allocations: 172.3 kB / 431.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.64e-05/0.1801, allocations: 75.09 kB / 431.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.676e-05/0.1801, allocations: 61.69 kB / 431.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.549e-05/0.1802, allocations: 334.8 kB / 432 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.1803, allocations: 92.81 kB / 432.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.1805, allocations: 247.1 kB / 432.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.1809, allocations: 370.7 kB / 432.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1809, allocations: 4 kB / 432.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004755/0.1814, allocations: 376.8 kB / 433 MB, free: 9.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.1814, allocations: 8 kB / 433 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.1814, allocations: 11.98 kB / 433.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.1814, allocations: 4.594 kB / 433.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001737/0.1816, allocations: 59.91 kB / 433.1 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.1816, allocations: 15.88 kB / 433.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.1817, allocations: 31.69 kB / 433.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.223e-05/0.1818, allocations: 20 kB / 433.2 MB, free: 8.934 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 42 (sharedMemoryWrite.dummy,$PRE.sharedMemoryWrite.dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.pkgOut[1].trigger,$whenCondition2,addInteger.u[1],sharedMemoryRead.pkgOut.dummy,$PRE.sharedMemoryRead.pkgOut.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,getReal.pkgOut[1].trigger,$whenCondition1,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,sharedMemoryRead.bufferSize,getInteger.pkgIn.autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addReal.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,sharedMemoryWrite.bufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.0001464/0.1819, allocations: 206.8 kB / 433.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.235e-05/0.1819, allocations: 23.72 kB / 433.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002572/0.1822, allocations: 191 kB / 433.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.1822, allocations: 4 kB / 433.6 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1822, allocations: 3.938 kB / 433.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1822, allocations: 0 / 433.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007078/0.183, allocations: 0.837 MB / 434.4 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.183, allocations: 0 / 434.4 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.249e-05/0.183, allocations: 11.94 kB / 434.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.183, allocations: 8 kB / 434.5 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.1831, allocations: 12.03 kB / 434.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1831, allocations: 448 / 434.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1831, allocations: 11.92 kB / 434.5 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004783/0.1835, allocations: 0.5356 MB / 435 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.697e-05/0.1836, allocations: 100.7 kB / 435.1 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.005e-05/0.1836, allocations: 12 kB / 435.1 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.1838, allocations: 7.984 kB / 435.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.763e-05/0.1838, allocations: 15.98 kB / 435.2 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.48e-05/0.1838, allocations: 11.98 kB / 435.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.058e-05/0.1839, allocations: 124 kB / 435.3 MB, free: 6.727 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1839, allocations: 3.938 kB / 435.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004341/0.1843, allocations: 123.8 kB / 435.4 MB, free: 6.602 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: 28 (getReal.pkgOut[1].trigger,$whenCondition1,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,sharedMemoryRead.pkgOut.dummy,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],sharedMemoryWrite.bufferSize,sharedMemoryWrite.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * 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.0004808/0.1848, allocations: 297.8 kB / 435.7 MB, free: 6.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003721/0.1852, allocations: 281.2 kB / 436 MB, free: 6.086 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1852, allocations: 4.125 kB / 436 MB, free: 6.082 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001692/0.1854, allocations: 127.8 kB / 436.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004831/0.1859, allocations: 49.72 kB / 436.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008385/0.1867, allocations: 0.6863 MB / 436.8 MB, free: 5.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001567/0.1869, allocations: 0.7753 MB / 437.6 MB, free: 4.375 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.127e-05/0.187, allocations: 23.44 kB / 437.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.187, allocations: 0 / 437.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of Templates: time 0.005159/0.1921, allocations: 4.625 MB / 442.3 MB, free: 15.75 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.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_SharedMemoryCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryFunctions.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_SharedMemoryCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSharedMemory.h:215:23: error: assigning to 'caddr_t' (aka 'char *') from incompatible type 'void *' smb->shmptr = mmap(0, smb->shm_size, PROT_WRITE|PROT_READ, MAP_SHARED, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryFunctions.cpp:405: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_SharedMemoryCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryFunctions.cpp:426: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) { ^ 4 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.o] Error 1