Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.ClockedBlocks.Examples.TestSerialPackager_SharedMemory,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemory") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemory,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemory") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008774/0.0008774, allocations: 92.36 kB / 16.71 MB, free: 6.145 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.0009429/0.000943, allocations: 176.9 kB / 17.62 MB, free: 5.855 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.231/1.231, allocations: 223.3 MB / 241.7 MB, free: 200 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.05467/0.05467, allocations: 12.05 MB / 304.8 MB, free: 3.141 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000269/0.000269, allocations: 8 kB / 368.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1647, allocations: 53.35 MB / 422.3 MB, free: 20.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemory): time 0.002405/0.1671, allocations: 2.405 MB / 424.7 MB, free: 18.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1682, allocations: 0.7218 MB / 425.4 MB, free: 17.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.1683, allocations: 7.938 kB / 425.4 MB, free: 17.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.1685, allocations: 43.7 kB / 425.5 MB, free: 17.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.1686, allocations: 20.89 kB / 425.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004945/0.1691, allocations: 215.7 kB / 425.7 MB, free: 17.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002323/0.1694, allocations: 293.5 kB / 426 MB, free: 16.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002412/0.1696, allocations: 202 kB / 426.2 MB, free: 16.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.681e-05/0.1697, allocations: 99.55 kB / 426.3 MB, free: 16.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001566/0.1699, allocations: 135.2 kB / 426.4 MB, free: 16.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.951e-05/0.1699, allocations: 12 kB / 426.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001693/0.1701, allocations: 131.9 kB / 426.5 MB, free: 16.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.733e-05/0.1702, allocations: 63.75 kB / 426.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.111e-05/0.1703, allocations: 156.8 kB / 426.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002769/0.1705, allocations: 353.3 kB / 427.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1705, allocations: 0 / 427.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1706, allocations: 4 kB / 427.1 MB, free: 15.71 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.1706, allocations: 3.938 kB / 427.1 MB, free: 15.7 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0008927/0.1715, allocations: 0.8143 MB / 427.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.1715, allocations: 19.91 kB / 427.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.058e-05/0.1716, allocations: 40.47 kB / 428 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.1718, allocations: 293.9 kB / 428.3 MB, free: 14.42 MB / 302.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sharedMemoryRead.initialized = previous(sharedMemoryRead.initialized) to residual form! Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: packager.initialized = previous(packager.initialized) to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.885e-05/0.1719, allocations: 89.47 kB / 428.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.659e-05/0.172, allocations: 36.38 kB / 428.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.1731, allocations: 0.9021 MB / 429.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1731, allocations: 7.875 kB / 429.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.1731, allocations: 12 kB / 429.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.1731, allocations: 8 kB / 429.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003267/0.1735, allocations: 220.8 kB / 429.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006925/0.1742, allocations: 0.9796 MB / 430.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005814/0.1748, allocations: 0.8713 MB / 431.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002989/0.1751, allocations: 277.8 kB / 431.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.595e-05/0.1752, allocations: 40.17 kB / 431.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.1752, allocations: 50.5 kB / 431.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 2.174e-06/0.1752, allocations: 0 / 431.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.0009413/0.1761, allocations: 0.6019 MB / 432.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.27e-05/0.1762, allocations: 237.5 kB / 432.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.1764, allocations: 178.9 kB / 432.8 MB, free: 9.578 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.1764, allocations: 41.7 kB / 432.8 MB, free: 9.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.508e-05/0.1764, allocations: 136.9 kB / 432.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.816e-05/0.1765, allocations: 55.58 kB / 433 MB, free: 9.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.089e-05/0.1765, allocations: 61.62 kB / 433.1 MB, free: 9.273 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.46e-05/0.1766, allocations: 338.8 kB / 433.4 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.1767, allocations: 89.06 kB / 433.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.1769, allocations: 419.8 kB / 433.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/0.1773, allocations: 0.5312 MB / 434.4 MB, free: 7.582 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1773, allocations: 4 kB / 434.4 MB, free: 7.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005884/0.1779, allocations: 0.4897 MB / 434.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.1779, allocations: 20.17 kB / 434.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.178, allocations: 12 kB / 434.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.178, allocations: 16 kB / 435 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.1783, allocations: 107.8 kB / 435.1 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.1783, allocations: 19.94 kB / 435.1 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/0.1785, allocations: 47.53 kB / 435.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.1785, allocations: 39.98 kB / 435.2 MB, free: 6.824 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 25 (integerExpression.y,assignClock2.y,assignClock2.u,$CLKPRE.sharedMemoryRead.initialized,sharedMemoryRead.initialized,$CLKPRE.sharedMemoryRead.bufferSize,sharedMemoryRead.bufferSize,sharedMemoryRead.pkgOut.autoPkgBitSize,getInteger.y[1],getInteger.pkgIn.autoPkgBitSize,getReal.pkgOut[1].autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,sample1.y,$CLKPRE.sharedMemoryWrite.initialized,sharedMemoryWrite.initialized,sharedMemoryWrite.bufferSize,addInteger.u[1],getInteger.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,addReal.pkgOut[1].autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,packager.initialized,packager.pkgOut.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 5 (sharedMemoryRead.dummy,sharedMemoryRead.initialized,sharedMemoryRead.bufferSize,sharedMemoryWrite.initialized,packager.dummy) * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001604/0.1787, allocations: 235.1 kB / 435.4 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005418/0.1792, allocations: 403.5 kB / 435.8 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007434/0.18, allocations: 0.5287 MB / 436.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.443e-06/0.18, allocations: 4 kB / 436.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.18, allocations: 4 kB / 436.3 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.18, allocations: 4.109 kB / 436.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004333/0.1805, allocations: 341.1 kB / 436.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.1805, allocations: 4 kB / 436.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002347/0.1807, allocations: 80.08 kB / 436.7 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.1807, allocations: 4 kB / 436.7 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.1808, allocations: 15.98 kB / 436.8 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.1808, allocations: 7.984 kB / 436.8 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1808, allocations: 11.92 kB / 436.8 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006362/0.1814, allocations: 0.8757 MB / 437.7 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.418e-05/0.1815, allocations: 108.7 kB / 437.8 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.906e-05/0.1815, allocations: 16 kB / 437.8 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002528/0.1818, allocations: 12 kB / 437.8 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.487e-05/0.1818, allocations: 27.91 kB / 437.8 MB, free: 4.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.062e-05/0.1819, allocations: 20 kB / 437.8 MB, free: 4.012 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.634e-05/0.1819, allocations: 123.2 kB / 438 MB, free: 3.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1819, allocations: 0 / 438 MB, free: 3.891 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006398/0.1826, allocations: 111.9 kB / 438.1 MB, free: 3.781 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 19 (packager.pkgOut.autoPkgBitSize,packager.initialized,packager.backwardPropagatedBufferSize,packager.bufferSize,integerExpression.y,$cse4,addInteger.u[1],sharedMemoryWrite.bufferSize,sharedMemoryWrite.initialized,sample1.y,getReal.pkgIn.autoPkgBitSize,getReal.pkgOut[1].autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getInteger.y[1],sharedMemoryRead.pkgOut.autoPkgBitSize,sharedMemoryRead.bufferSize,sharedMemoryRead.initialized,assignClock2.u,assignClock2.y) * Number of discrete states: 1 (sharedMemoryWrite.initialized) * Number of clocked states: 5 (packager.dummy,sharedMemoryWrite.initialized,sharedMemoryRead.bufferSize,sharedMemoryRead.initialized,sharedMemoryRead.dummy) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 2 * 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.0005344/0.1831, allocations: 334 kB / 438.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007107/0.1838, allocations: 1.082 MB / 439.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1839, allocations: 0 / 439.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002599/0.1841, allocations: 0.7468 MB / 440.2 MB, free: 1.637 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.1854, allocations: 1.091 MB / 441.3 MB, free: 0.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009705/0.1864, allocations: 0.8035 MB / 442.1 MB, free: 15.65 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003218/0.1867, allocations: 0.812 MB / 442.9 MB, free: 14.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.479e-05/0.1868, allocations: 27.42 kB / 443 MB, free: 14.79 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1868, allocations: 0 / 443 MB, free: 14.79 MB / 318.1 MB Notification: Performance of Templates: time 0.006571/0.1934, allocations: 4.886 MB / 447.8 MB, free: 9.941 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemory.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -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" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryFunctions.cpp:429: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.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryFunctions.cpp:450: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.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp:29: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryInitialize.cpp:203:8: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_initialized_' if((!_omcQ_24CLKPRE_P_packager_P_initialized_)) ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryInitialize.cpp:223:49: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_backwardPropagatedBufferSize_' _packager_P_backwardPropagatedBufferSize_ = _omcQ_24CLKPRE_P_packager_P_backwardPropagatedBufferSize_; ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryInitialize.cpp:224:31: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_bufferSize_' _packager_P_bufferSize_ = _omcQ_24CLKPRE_P_packager_P_bufferSize_; ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryInitialize.cpp:225:32: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_initialized_' _packager_P_initialized_ = _omcQ_24CLKPRE_P_packager_P_initialized_; ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.cpp:33: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemory.cpp:227:8: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_initialized_' if((!_omcQ_24CLKPRE_P_packager_P_initialized_)) ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemory.cpp:247:49: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_backwardPropagatedBufferSize_' _packager_P_backwardPropagatedBufferSize_ = _omcQ_24CLKPRE_P_packager_P_backwardPropagatedBufferSize_; ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemory.cpp:248:31: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_bufferSize_' _packager_P_bufferSize_ = _omcQ_24CLKPRE_P_packager_P_bufferSize_; ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemory.cpp:249:32: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_initialized_' _packager_P_initialized_ = _omcQ_24CLKPRE_P_packager_P_initialized_; ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemory.cpp:262:8: error: use of undeclared identifier '_omcQ_24CLKPRE_P_packager_P_initialized_' if (!_omcQ_24CLKPRE_P_packager_P_initialized_) { ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemory.cpp:815:32: error: use of undeclared identifier '_omcQ_24CLKPRE_P_sharedMemoryWrite_P_sm_' _sharedMemoryWrite_P_sm_ = _omcQ_24CLKPRE_P_sharedMemoryWrite_P_sm_; ^ 14 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_SharedMemoryCalcHelperMain.o] Error 1