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.001265/0.001265, allocations: 102.9 kB / 16.56 MB, free: 6.723 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.001198/0.001198, 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.323/1.323, allocations: 222.9 MB / 241.2 MB, free: 15.48 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.05701/0.05701, allocations: 12.04 MB / 303.3 MB, free: 3.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 63.91 kB / 366.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.2145, allocations: 52.32 MB / 418.7 MB, free: 21.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger): time 0.003854/0.2184, allocations: 2.824 MB / 421.6 MB, free: 18.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.2195, allocations: 0.7473 MB / 422.3 MB, free: 17.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.458e-05/0.2196, allocations: 11.94 kB / 422.3 MB, free: 17.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002571/0.2199, allocations: 55.59 kB / 422.4 MB, free: 17.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001341/0.22, allocations: 31.78 kB / 422.4 MB, free: 17.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003631/0.2204, allocations: 187.7 kB / 422.6 MB, free: 17.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002254/0.2206, allocations: 311.2 kB / 422.9 MB, free: 17.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002354/0.2209, allocations: 177.2 kB / 423.1 MB, free: 16.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001018/0.221, allocations: 143.5 kB / 423.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.2212, allocations: 175.1 kB / 423.4 MB, free: 16.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.471e-05/0.2212, allocations: 28 kB / 423.4 MB, free: 16.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000169/0.2214, allocations: 139.9 kB / 423.6 MB, free: 16.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.987e-05/0.2215, allocations: 103.7 kB / 423.7 MB, free: 16.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.2216, allocations: 174.9 kB / 423.8 MB, free: 16.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002769/0.2219, allocations: 377.2 kB / 424.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2219, allocations: 4 kB / 424.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2219, allocations: 0 / 424.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.2219, allocations: 0 / 424.2 MB, free: 15.87 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.001066/0.223, allocations: 0.8673 MB / 425.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.223, allocations: 11.97 kB / 425.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.857e-05/0.2231, allocations: 40.47 kB / 425.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000244/0.2234, allocations: 291.7 kB / 425.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.2234, allocations: 25.03 kB / 425.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.2235, allocations: 36.36 kB / 425.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005152/0.224, allocations: 399.8 kB / 425.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.224, allocations: 192 / 425.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.224, allocations: 23.92 kB / 425.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.2241, allocations: 8 kB / 425.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.2244, allocations: 217.6 kB / 426.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.2255, allocations: 1.307 MB / 427.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003388/0.2259, allocations: 285 kB / 427.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.226, allocations: 136.2 kB / 427.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.2261, allocations: 11.97 kB / 427.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002678/0.2263, allocations: 224.6 kB / 428 MB, free: 11.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.674e-06/0.2263, allocations: 0 / 428 MB, free: 11.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007527/0.2271, allocations: 480.9 kB / 428.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.2272, allocations: 174.4 kB / 428.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.2274, allocations: 239.4 kB / 428.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.2274, allocations: 41.69 kB / 429 MB, free: 10.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.598e-05/0.2275, allocations: 176.5 kB / 429.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.238e-05/0.2275, allocations: 86.95 kB / 429.2 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.2277, allocations: 118.1 kB / 429.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.308e-05/0.2277, allocations: 334.8 kB / 429.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.2279, allocations: 109 kB / 429.8 MB, free: 9.918 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/0.2281, allocations: 281.8 kB / 430 MB, free: 9.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000366/0.2285, allocations: 392.2 kB / 430.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.2285, allocations: 8 kB / 430.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005378/0.229, allocations: 421.2 kB / 430.8 MB, free: 8.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2291, allocations: 12.09 kB / 430.9 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.2291, allocations: 4 kB / 430.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.2291, allocations: 11.94 kB / 430.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002085/0.2293, allocations: 63.89 kB / 430.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.2293, allocations: 11.94 kB / 430.9 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001413/0.2295, allocations: 39.59 kB / 431 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/0.2295, allocations: 20 kB / 431 MB, free: 8.527 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.0001662/0.2297, allocations: 211 kB / 431.2 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.63e-05/0.2297, allocations: 27.72 kB / 431.2 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004117/0.2302, allocations: 299.2 kB / 431.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.2302, allocations: 4 kB / 431.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.2302, allocations: 0 / 431.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.2302, allocations: 7.984 kB / 431.5 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007462/0.2309, allocations: 0.7714 MB / 432.3 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.231, allocations: 8 kB / 432.3 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.198e-05/0.231, allocations: 15.98 kB / 432.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.231, allocations: 4 kB / 432.3 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.2311, allocations: 7.984 kB / 432.3 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.2311, allocations: 4.031 kB / 432.3 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.2311, allocations: 7.938 kB / 432.4 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005258/0.2316, allocations: 0.4975 MB / 432.9 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.156e-05/0.2316, allocations: 100.8 kB / 433 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.881e-05/0.2317, allocations: 11.98 kB / 433 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.2318, allocations: 0 / 433 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.886e-05/0.2319, allocations: 23.97 kB / 433 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.789e-05/0.2319, allocations: 19.98 kB / 433 MB, free: 6.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.545e-05/0.232, allocations: 123.2 kB / 433.1 MB, free: 6.289 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.232, allocations: 0 / 433.1 MB, free: 6.289 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004384/0.2324, allocations: 131.7 kB / 433.3 MB, free: 6.16 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.0005539/0.233, allocations: 318.3 kB / 433.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004233/0.2334, allocations: 299.5 kB / 433.9 MB, free: 5.605 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.2334, allocations: 0 / 433.9 MB, free: 5.605 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.2336, allocations: 139.4 kB / 434 MB, free: 5.473 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000418/0.234, allocations: 54.97 kB / 434 MB, free: 5.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007901/0.2348, allocations: 0.6822 MB / 434.7 MB, free: 4.691 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/0.235, allocations: 0.7837 MB / 435.5 MB, free: 3.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.274e-05/0.2351, allocations: 31.42 kB / 435.5 MB, free: 3.848 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2351, allocations: 0 / 435.5 MB, free: 3.848 MB / 302.1 MB Notification: Performance of Templates: time 0.005731/0.2408, allocations: 4.921 MB / 440.5 MB, free: 14.96 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