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.001572/0.001572, allocations: 101.5 kB / 16.57 MB, free: 6.719 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.001273/0.001273, allocations: 191.7 kB / 17.49 MB, free: 6.004 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.386/1.386, allocations: 222.9 MB / 241.2 MB, free: 15.47 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.05667/0.05667, allocations: 12.04 MB / 303.3 MB, free: 3.414 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 55.91 kB / 366.4 MB, free: 4.281 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2354, allocations: 52.33 MB / 418.8 MB, free: 21.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory): time 0.003965/0.2394, allocations: 2.727 MB / 421.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009793/0.2404, allocations: 0.7084 MB / 422.2 MB, free: 17.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.843e-05/0.2405, allocations: 7.938 kB / 422.2 MB, free: 17.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002639/0.2408, allocations: 47.66 kB / 422.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.241, allocations: 32.88 kB / 422.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003719/0.2413, allocations: 179.7 kB / 422.5 MB, free: 17.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002266/0.2416, allocations: 287.2 kB / 422.7 MB, free: 17.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002433/0.2418, allocations: 178 kB / 422.9 MB, free: 17.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001028/0.2419, allocations: 135.4 kB / 423 MB, free: 17.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001685/0.2421, allocations: 163.3 kB / 423.2 MB, free: 16.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.979e-05/0.2422, allocations: 24 kB / 423.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.2423, allocations: 135.9 kB / 423.4 MB, free: 16.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.029e-05/0.2424, allocations: 111.6 kB / 423.5 MB, free: 16.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.2426, allocations: 147.2 kB / 423.6 MB, free: 16.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002804/0.2428, allocations: 357.2 kB / 424 MB, free: 16.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.2429, allocations: 8 kB / 424 MB, free: 16.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.2429, allocations: 0 / 424 MB, free: 16.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.2429, allocations: 0 / 424 MB, free: 16.1 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.001065/0.2439, allocations: 0.8458 MB / 424.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.244, allocations: 11.97 kB / 424.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.267e-05/0.2441, allocations: 40.56 kB / 424.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002176/0.2443, allocations: 279.6 kB / 425.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.2443, allocations: 32.95 kB / 425.2 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.87e-05/0.2444, allocations: 28.38 kB / 425.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004822/0.2448, allocations: 360.2 kB / 425.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.2449, allocations: 192 / 425.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/0.2449, allocations: 27.86 kB / 425.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.2449, allocations: 8 kB / 425.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002926/0.2452, allocations: 188.7 kB / 425.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009887/0.2462, allocations: 1.169 MB / 426.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003655/0.2466, allocations: 238.5 kB / 427.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001471/0.2468, allocations: 123.4 kB / 427.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.2468, allocations: 19.91 kB / 427.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002499/0.247, allocations: 211.7 kB / 427.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.422e-06/0.2471, allocations: 3.938 kB / 427.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007372/0.2478, allocations: 453 kB / 428 MB, free: 11.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.2479, allocations: 144.5 kB / 428.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.248, allocations: 222.9 kB / 428.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.2481, allocations: 37.69 kB / 428.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.683e-05/0.2482, allocations: 168.3 kB / 428.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.763e-05/0.2482, allocations: 79.08 kB / 428.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.7e-05/0.2483, allocations: 98.11 kB / 428.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.584e-05/0.2484, allocations: 342.8 kB / 429 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.2485, allocations: 92.81 kB / 429.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.2487, allocations: 239.1 kB / 429.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003491/0.2491, allocations: 378.5 kB / 429.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.2491, allocations: 0 / 429.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004807/0.2496, allocations: 377.5 kB / 430.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.2496, allocations: 11.94 kB / 430.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.2496, allocations: 7.984 kB / 430.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.2496, allocations: 12.03 kB / 430.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.2498, allocations: 55.91 kB / 430.2 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.2498, allocations: 15.88 kB / 430.2 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.25, allocations: 28.06 kB / 430.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.347e-05/0.25, allocations: 20 kB / 430.2 MB, free: 9.32 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.0001692/0.2502, allocations: 199 kB / 430.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.133e-05/0.2502, allocations: 27.66 kB / 430.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002813/0.2505, allocations: 191.1 kB / 430.6 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2505, allocations: 4 kB / 430.7 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.2505, allocations: 3.938 kB / 430.7 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2505, allocations: 4 kB / 430.7 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007572/0.2513, allocations: 0.8375 MB / 431.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2513, allocations: 4.438 kB / 431.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.12e-05/0.2514, allocations: 7.938 kB / 431.5 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.2514, allocations: 4 kB / 431.5 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.2514, allocations: 11.98 kB / 431.5 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.2514, allocations: 4 kB / 431.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2514, allocations: 0 / 431.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004982/0.2519, allocations: 0.5504 MB / 432.1 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.005e-05/0.2519, allocations: 100.8 kB / 432.2 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.393e-05/0.252, allocations: 4 kB / 432.2 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.2521, allocations: 7.984 kB / 432.2 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.546e-05/0.2522, allocations: 19.97 kB / 432.2 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.2522, allocations: 11.98 kB / 432.2 MB, free: 7.234 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.332e-05/0.2523, allocations: 132.1 kB / 432.3 MB, free: 7.105 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2523, allocations: 0 / 432.3 MB, free: 7.105 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000465/0.2528, allocations: 119.6 kB / 432.5 MB, free: 6.988 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.0005716/0.2533, allocations: 299.2 kB / 432.8 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003885/0.2537, allocations: 276.2 kB / 433 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2538, allocations: 0 / 433 MB, free: 6.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.2539, allocations: 139.7 kB / 433.2 MB, free: 6.34 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004861/0.2544, allocations: 45.08 kB / 433.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009197/0.2554, allocations: 0.6851 MB / 433.9 MB, free: 5.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.2555, allocations: 0.7675 MB / 434.7 MB, free: 4.773 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.613e-05/0.2556, allocations: 31.42 kB / 434.7 MB, free: 4.742 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2556, allocations: 3.938 kB / 434.7 MB, free: 4.738 MB / 302.1 MB Notification: Performance of Templates: time 0.005366/0.261, allocations: 4.646 MB / 439.3 MB, free: 120 kB / 302.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