Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.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_ExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008734/0.0008734, allocations: 91.14 kB / 16.71 MB, free: 6.637 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.0009339/0.0009339, allocations: 178.4 kB / 17.62 MB, free: 6.16 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.232/1.232, allocations: 223.3 MB / 241.7 MB, free: 212 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.05367/0.05367, allocations: 12.05 MB / 304.8 MB, free: 3.145 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002698/0.0002697, allocations: 8 kB / 368.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.168, allocations: 53.36 MB / 422.3 MB, free: 20.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger): time 0.002143/0.1702, allocations: 2.3 MB / 424.6 MB, free: 18.08 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008816/0.171, allocations: 0.6852 MB / 425.3 MB, free: 17.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.141e-05/0.1711, allocations: 8.75 kB / 425.3 MB, free: 17.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.1713, allocations: 35.67 kB / 425.3 MB, free: 17.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001112/0.1714, allocations: 41.02 kB / 425.4 MB, free: 17.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003419/0.1718, allocations: 200.4 kB / 425.6 MB, free: 17.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002212/0.172, allocations: 319.2 kB / 425.9 MB, free: 16.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002188/0.1722, allocations: 189.8 kB / 426.1 MB, free: 16.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.703e-05/0.1723, allocations: 119.5 kB / 426.2 MB, free: 16.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.1725, allocations: 143.2 kB / 426.3 MB, free: 16.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.809e-05/0.1725, allocations: 16 kB / 426.3 MB, free: 16.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.1727, allocations: 99.89 kB / 426.4 MB, free: 16.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.822e-05/0.1728, allocations: 107.6 kB / 426.5 MB, free: 16.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.054e-05/0.1729, allocations: 176.8 kB / 426.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002606/0.1731, allocations: 381.1 kB / 427.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1731, allocations: 4 kB / 427.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1731, allocations: 0 / 427.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1731, allocations: 0 / 427.1 MB, free: 15.59 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg resetPointer.pkgOut[1].pkg = resetPointer.pkgIn.pkg packInt1.pkgOut[1].pkg = packInt1.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = packInt.pkgIn.pkg unpackInt1.pkgOut[1].pkg = getInteger.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg packInt1.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg packager.pkgOut.pkg = packInt.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.0009578/0.1741, allocations: 0.9537 MB / 428 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.774e-05/0.1741, allocations: 8.031 kB / 428 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.756e-05/0.1742, allocations: 40.47 kB / 428.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.1744, allocations: 287.7 kB / 428.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.1744, allocations: 29.36 kB / 428.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.426e-05/0.1745, allocations: 40.31 kB / 428.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005173/0.175, allocations: 414 kB / 428.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.175, allocations: 192 / 428.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.1751, allocations: 15.94 kB / 428.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.1751, allocations: 12 kB / 428.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003212/0.1754, allocations: 223.8 kB / 429.1 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009368/0.1764, allocations: 1.105 MB / 430.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003384/0.1767, allocations: 270.3 kB / 430.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.1769, allocations: 115.5 kB / 430.6 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.1769, allocations: 7.984 kB / 430.6 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002078/0.1771, allocations: 199.3 kB / 430.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.774e-06/0.1771, allocations: 0 / 430.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0006274/0.1777, allocations: 443.2 kB / 431.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.1778, allocations: 148.5 kB / 431.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.1779, allocations: 193.5 kB / 431.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.1779, allocations: 41.7 kB / 431.6 MB, free: 10.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.603e-05/0.178, allocations: 184.5 kB / 431.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.092e-05/0.1781, allocations: 67.25 kB / 431.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-05/0.1781, allocations: 65.67 kB / 431.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.343e-05/0.1782, allocations: 330.8 kB / 432.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.1783, allocations: 88.77 kB / 432.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.1785, allocations: 235.1 kB / 432.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003034/0.1788, allocations: 354.5 kB / 432.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.1788, allocations: 4 kB / 432.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000424/0.1792, allocations: 356.9 kB / 433.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/0.1792, allocations: 8 kB / 433.2 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1792, allocations: 4 kB / 433.2 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1793, allocations: 8 kB / 433.2 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.1794, allocations: 63.84 kB / 433.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.1795, allocations: 8 kB / 433.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.1796, allocations: 28.19 kB / 433.3 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.1796, allocations: 27.98 kB / 433.4 MB, free: 8.805 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: 46 (unpackInt1.dummy,$PRE.unpackInt1.dummy,unpackInt1.y,$PRE.unpackInt1.y,unpackInt1.pkgOut[1].dummy,$PRE.unpackInt1.pkgOut[1].dummy,getInteger.dummy,$PRE.getInteger.dummy,getInteger.y[1],$PRE.getInteger.y[1],unpackInt.dummy,$PRE.unpackInt.dummy,unpackInt.y,$PRE.unpackInt.y,unpackInt.pkgOut[1].dummy,$PRE.unpackInt.pkgOut[1].dummy,resetPointer.dummy,$PRE.resetPointer.dummy,resetPointer.pkgOut[1].dummy,$PRE.resetPointer.pkgOut[1].dummy,packInt1.pkgOut[1].dummy,$PRE.packInt1.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,packInt.pkgOut[1].dummy,$PRE.packInt.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addInteger.u[1],iExp2.y,unpackInt1.pkgOut[1].trigger,iExp.y,$PRE.iExp.y,$whenCondition1,unpackInt1.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,packager.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,resetPointer.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0001491/0.1798, allocations: 211.1 kB / 433.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.1798, allocations: 23.8 kB / 433.6 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.862e-05/0.1798, allocations: 13.19 kB / 433.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1799, allocations: 4 kB / 433.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1799, allocations: 4.25 kB / 433.6 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1799, allocations: 3.984 kB / 433.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006674/0.1805, allocations: 0.7645 MB / 434.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1806, allocations: 0 / 434.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.501e-05/0.1806, allocations: 11.98 kB / 434.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1806, allocations: 0 / 434.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.699e-05/0.1806, allocations: 7.938 kB / 434.4 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.1806, allocations: 7.984 kB / 434.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1806, allocations: 7.938 kB / 434.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004472/0.1811, allocations: 473.7 kB / 434.9 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.47e-05/0.1811, allocations: 92.86 kB / 435 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.1812, allocations: 11.98 kB / 435 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.989e-05/0.1813, allocations: 4 kB / 435 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.813e-05/0.1813, allocations: 27.91 kB / 435 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.766e-05/0.1814, allocations: 8 kB / 435 MB, free: 7.039 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.038e-05/0.1814, allocations: 124.2 kB / 435.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1814, allocations: 0 / 435.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003839/0.1818, allocations: 111.6 kB / 435.3 MB, free: 6.809 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: 29 (packager.internalTrigger,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,unpackInt1.pkgOut[1].trigger,$whenCondition1,iExp.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],iExp2.y,packInt1.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.y[1],getInteger.dummy,unpackInt1.pkgOut[1].dummy,unpackInt1.y,unpackInt1.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (iExp.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 20 * 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.0002497/0.1821, allocations: 196.4 kB / 435.4 MB, free: 6.617 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003404/0.1824, allocations: 250.7 kB / 435.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1824, allocations: 0 / 435.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.1826, allocations: 123.8 kB / 435.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004178/0.183, allocations: 55.36 kB / 435.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006697/0.1837, allocations: 0.6369 MB / 436.5 MB, free: 5.523 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001474/0.1838, allocations: 0.7794 MB / 437.3 MB, free: 4.715 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.662e-05/0.1839, allocations: 19.44 kB / 437.3 MB, free: 4.695 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1839, allocations: 0 / 437.3 MB, free: 4.695 MB / 302.1 MB Notification: Performance of Templates: time 0.00478/0.1887, allocations: 4.243 MB / 441.5 MB, free: 496 kB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.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_ExternalTriggerCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerFunctions.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_ExternalTriggerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerFunctions.cpp:273: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) { ^ 2 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerCalcHelperMain.o] Error 1