Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.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_SharedMemoryExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009188/0.0009188, allocations: 90.39 kB / 16.71 MB, free: 6.141 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.001/0.001, allocations: 184.3 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.226/1.226, allocations: 223.3 MB / 241.7 MB, free: 196 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.05536/0.05536, allocations: 12.05 MB / 304.8 MB, free: 3.191 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002763/0.0002763, allocations: 8 kB / 368.9 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1639, allocations: 53.35 MB / 422.3 MB, free: 20.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger): time 0.002258/0.1662, allocations: 2.452 MB / 424.7 MB, free: 17.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009088/0.1671, allocations: 0.7402 MB / 425.5 MB, free: 17.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.354e-05/0.1672, allocations: 8.656 kB / 425.5 MB, free: 17.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.1674, allocations: 58.42 kB / 425.5 MB, free: 17.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.1675, allocations: 27.78 kB / 425.6 MB, free: 17.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003378/0.1679, allocations: 191.6 kB / 425.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002196/0.1681, allocations: 311.2 kB / 426.1 MB, free: 16.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.1683, allocations: 175.5 kB / 426.2 MB, free: 16.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.15e-05/0.1684, allocations: 107.5 kB / 426.3 MB, free: 16.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001438/0.1686, allocations: 143.2 kB / 426.5 MB, free: 16.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.817e-05/0.1686, allocations: 12 kB / 426.5 MB, free: 16.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.1688, allocations: 131.8 kB / 426.6 MB, free: 16.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.033e-05/0.1688, allocations: 83.72 kB / 426.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.491e-05/0.1689, allocations: 160.8 kB / 426.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.1692, allocations: 377.1 kB / 427.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.1692, allocations: 0 / 427.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1692, allocations: 0 / 427.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1692, allocations: 0 / 427.2 MB, free: 15.41 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0008327/0.1701, allocations: 0.7923 MB / 428 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.741e-05/0.1701, allocations: 15.97 kB / 428 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.834e-05/0.1702, allocations: 44.45 kB / 428.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.1704, allocations: 279.7 kB / 428.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.1704, allocations: 33.02 kB / 428.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.098e-05/0.1704, allocations: 28.38 kB / 428.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004806/0.1709, allocations: 411.7 kB / 428.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.171, allocations: 8.125 kB / 428.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.102e-05/0.171, allocations: 19.94 kB / 428.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.171, allocations: 8 kB / 428.9 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.1713, allocations: 205.7 kB / 429.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.1723, allocations: 1.319 MB / 430.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003135/0.1726, allocations: 281.1 kB / 430.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.1728, allocations: 136.2 kB / 430.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.1728, allocations: 8 kB / 430.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002421/0.1731, allocations: 232.5 kB / 431 MB, free: 11.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.713e-06/0.1731, allocations: 0 / 431 MB, free: 11.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=34): time 0.0006916/0.1738, allocations: 482.7 kB / 431.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.1738, allocations: 182.4 kB / 431.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.174, allocations: 231.5 kB / 431.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.174, allocations: 33.7 kB / 431.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.707e-05/0.1741, allocations: 180.6 kB / 432.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.956e-05/0.1742, allocations: 86.92 kB / 432.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.005e-05/0.1742, allocations: 65.67 kB / 432.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.451e-05/0.1743, allocations: 342.8 kB / 432.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.1744, allocations: 109.1 kB / 432.7 MB, free: 9.566 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.1747, allocations: 274.1 kB / 433 MB, free: 9.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.175, allocations: 396.2 kB / 433.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.175, allocations: 0 / 433.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005238/0.1756, allocations: 437.2 kB / 433.8 MB, free: 8.328 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.1756, allocations: 4 kB / 433.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.1756, allocations: 8 kB / 433.8 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.1756, allocations: 12.03 kB / 433.8 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.1758, allocations: 67.78 kB / 433.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.1758, allocations: 8 kB / 433.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.176, allocations: 43.55 kB / 433.9 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.176, allocations: 24 kB / 433.9 MB, free: 8.164 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 50 (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,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.u[1],sharedMemoryRead.internalTrigger,sharedMemoryWrite.internalTrigger,enable.y,zeroCrossing1.enable,$PRE.zeroCrossing1.enable,zeroCrossing1.disable,$PRE.zeroCrossing1.disable,zeroCrossing1.u_pos,$PRE.zeroCrossing1.u_pos,getReal.pkgOut[1].trigger,addInteger.pkgOut[1].trigger,$whenCondition1,$whenCondition2,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 (58): * Single equations (assignments): 58 * 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.0001502/0.1762, allocations: 207.4 kB / 434.1 MB, free: 7.953 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.615e-05/0.1762, allocations: 31.7 kB / 434.2 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003838/0.1766, allocations: 297.7 kB / 434.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1766, allocations: 7.984 kB / 434.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/0.1766, allocations: 0 / 434.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1766, allocations: 0 / 434.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006951/0.1773, allocations: 0.7827 MB / 435.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1773, allocations: 0 / 435.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.934e-05/0.1774, allocations: 12 kB / 435.3 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1774, allocations: 0 / 435.3 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.1774, allocations: 15.98 kB / 435.3 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1774, allocations: 3.938 kB / 435.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1774, allocations: 4 kB / 435.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004777/0.1779, allocations: 0.4937 MB / 435.8 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.593e-05/0.178, allocations: 96.77 kB / 435.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/0.178, allocations: 11.98 kB / 435.9 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.1781, allocations: 7.984 kB / 435.9 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.1782, allocations: 27.92 kB / 435.9 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-05/0.1782, allocations: 19.92 kB / 435.9 MB, free: 6.051 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.121e-05/0.1783, allocations: 127.2 kB / 436.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1783, allocations: 0 / 436.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004055/0.1787, allocations: 119.8 kB / 436.2 MB, free: 5.809 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 30 (sharedMemoryWrite.internalTrigger,sharedMemoryRead.internalTrigger,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,getReal.pkgOut[1].trigger,addInteger.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],sharedMemoryWrite.bufferSize,sharedMemoryWrite.dummy,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,sharedMemoryRead.pkgOut.dummy,zeroCrossing1.u_pos,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (zeroCrossing1.u_pos) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 12 * 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.0004649/0.1791, allocations: 309 kB / 436.5 MB, free: 5.555 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004132/0.1796, allocations: 307.5 kB / 436.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1796, allocations: 1.312 kB / 436.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001797/0.1798, allocations: 140.5 kB / 436.9 MB, free: 5.117 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004216/0.1802, allocations: 47.53 kB / 437 MB, free: 5.074 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007111/0.1809, allocations: 0.6946 MB / 437.7 MB, free: 4.332 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.1811, allocations: 0.7798 MB / 438.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.969e-05/0.1811, allocations: 27.42 kB / 438.5 MB, free: 3.496 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1811, allocations: 0 / 438.5 MB, free: 3.496 MB / 302.1 MB Notification: Performance of Templates: time 0.005641/0.1868, allocations: 4.895 MB / 443.4 MB, free: 14.63 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.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_SharedMemoryExternalTriggerCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerCalcHelperMain.cpp:17: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.h:171:13: warning: '_realExpression1_P_y_' macro redefined [-Wmacro-redefined] #define _realExpression1_P_y_ _pointerToRealVars[3] ^ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.h:168:13: note: previous definition is here #define _realExpression1_P_y_ _pointerToRealVars[0] ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerFunctions.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_SharedMemoryExternalTriggerCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerFunctions.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_SharedMemoryExternalTriggerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerFunctions.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_SharedMemoryExternalTriggerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerFunctions.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) { ^ 1 warning and 4 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTriggerCalcHelperMain.o] Error 1