Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.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_TCPIPServer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001011, allocations: 106.1 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.0009744/0.0009744, 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.363/1.363, allocations: 222.9 MB / 241.2 MB, free: 13.76 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.05573/0.05574, allocations: 12.02 MB / 303.3 MB, free: 3.215 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 55.91 kB / 366.4 MB, free: 4.078 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2035, allocations: 52.32 MB / 418.8 MB, free: 21.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer): time 0.003795/0.2073, allocations: 3.261 MB / 422 MB, free: 18.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.2085, allocations: 0.9148 MB / 422.9 MB, free: 17.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.2086, allocations: 11.88 kB / 422.9 MB, free: 17.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000267/0.2089, allocations: 76.34 kB / 423 MB, free: 17.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.209, allocations: 35.72 kB / 423 MB, free: 17.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005304/0.2095, allocations: 278.5 kB / 423.3 MB, free: 16.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002327/0.2098, allocations: 367.5 kB / 423.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002451/0.21, allocations: 231.1 kB / 423.9 MB, free: 16.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.2102, allocations: 147.4 kB / 424 MB, free: 16.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.2103, allocations: 183.1 kB / 424.2 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.681e-05/0.2104, allocations: 28 kB / 424.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001816/0.2106, allocations: 143.9 kB / 424.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.789e-05/0.2107, allocations: 103.7 kB / 424.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.2108, allocations: 198.8 kB / 424.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002989/0.2111, allocations: 429.1 kB / 425.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2111, allocations: 0 / 425.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.2111, allocations: 0 / 425.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.2111, allocations: 0 / 425.1 MB, free: 14.95 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addInteger.pkgOut[1].pkg = tCPIPSend.pkgIn.pkg packager.pkgOut.pkg = addInteger.pkgIn.pkg tCPIPReceive.pkgOut.pkg = getInteger.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.00105/0.2122, allocations: 0.8997 MB / 426 MB, free: 13.97 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.933e-05/0.2122, allocations: 16.02 kB / 426 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.586e-05/0.2123, allocations: 48.38 kB / 426.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.2126, allocations: 326.5 kB / 426.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.2126, allocations: 33.3 kB / 426.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.331e-05/0.2127, allocations: 36.38 kB / 426.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005527/0.2132, allocations: 440.8 kB / 426.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.2133, allocations: 4.172 kB / 426.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.2133, allocations: 15.94 kB / 426.9 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.2133, allocations: 8 kB / 426.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003489/0.2137, allocations: 240.2 kB / 427.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.2148, allocations: 1.299 MB / 428.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004049/0.2152, allocations: 298.7 kB / 428.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001777/0.2154, allocations: 151.4 kB / 428.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.517e-05/0.2154, allocations: 8 kB / 428.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000304/0.2157, allocations: 259.2 kB / 429.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.394e-06/0.2157, allocations: 0 / 429.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008059/0.2166, allocations: 0.5369 MB / 429.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.2166, allocations: 152.5 kB / 429.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.2168, allocations: 256.7 kB / 430.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.2168, allocations: 45.69 kB / 430.1 MB, free: 9.582 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.215e-05/0.2169, allocations: 196.5 kB / 430.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.449e-05/0.217, allocations: 102.7 kB / 430.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.2171, allocations: 114.2 kB / 430.5 MB, free: 9.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.325e-05/0.2172, allocations: 350.9 kB / 430.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.2174, allocations: 117.1 kB / 431 MB, free: 8.703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.2176, allocations: 276.4 kB / 431.3 MB, free: 8.367 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005969/0.2182, allocations: 0.6713 MB / 431.9 MB, free: 7.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2182, allocations: 0 / 431.9 MB, free: 7.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0006798/0.2189, allocations: 0.5706 MB / 432.5 MB, free: 7.004 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.419e-05/0.2189, allocations: 66.2 kB / 432.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.219, allocations: 8 kB / 432.6 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.219, allocations: 4 kB / 432.6 MB, free: 6.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001739/0.2192, allocations: 63.84 kB / 432.6 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.2192, allocations: 8 kB / 432.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.2193, allocations: 51.47 kB / 432.7 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.164e-05/0.2194, allocations: 27.98 kB / 432.7 MB, free: 6.77 MB / 302.1 MB Warning: Assuming fixed start value for the following 5 variables: process.y[1]:DISCRETE(flow=false fixed = true ) type: Integer [3] process.y[2]:DISCRETE(flow=false fixed = true ) type: Integer [3] process.y[3]:DISCRETE(flow=false fixed = true ) type: Integer [3] tCPIPSend.dataSent:DISCRETE(fixed = true ) type: Integer tCPIPReceive.nReceivedBytes:DISCRETE(flow=false fixed = true ) "Number of received bytes" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 57 ($PRE.process.y[1],process.y[1],$PRE.process.y[2],process.y[2],$PRE.process.y[3],process.y[3],tCPIPSend.dummy1,$PRE.tCPIPSend.dummy1,tCPIPSend.pkgSize,$PRE.tCPIPSend.pkgSize,$PRE.tCPIPSend.dataSent,tCPIPSend.dataSent,tCPIPSend.dummy2,$PRE.tCPIPSend.dummy2,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,getInteger.dummy,$PRE.getInteger.dummy,getInteger.y[3],$PRE.getInteger.y[3],getInteger.y[2],$PRE.getInteger.y[2],getInteger.y[1],$PRE.getInteger.y[1],tCPIPReceive.pkgOut.dummy,$PRE.tCPIPReceive.pkgOut.dummy,$PRE.tCPIPSend.block_,$PRE.tCPIPSend.accepted,$PRE.tCPIPReceive.block_,$PRE.tCPIPReceive.accepted,$PRE.tCPIPReceive.nReceivedBytes,tCPIPSend.block_,tCPIPSend.accepted,addInteger.pkgOut[1].backwardTrigger,addInteger.pkgOut[1].trigger,tCPIPReceive.block_,tCPIPReceive.accepted,tCPIPReceive.recvTrigger,tCPIPReceive.nReceivedBytes,tCPIPReceive.conditionalInternalTrigger,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tCPIPSend.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,tCPIPSend.bufferSize,tCPIPSend.pkgIn.autoPkgBitSize,tCPIPSend.pkgIn.userPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,getInteger.pkgIn.autoPkgBitSize,tCPIPReceive.bufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 1 * 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.0002185/0.2196, allocations: 220.1 kB / 432.9 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.907e-05/0.2197, allocations: 39.55 kB / 433 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.176e-05/0.2197, allocations: 30.95 kB / 433 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2197, allocations: 4 kB / 433 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.2197, allocations: 7.938 kB / 433 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2197, allocations: 4 kB / 433 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008603/0.2206, allocations: 0.8656 MB / 433.9 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.2206, allocations: 0 / 433.9 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.896e-05/0.2207, allocations: 11.94 kB / 433.9 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.2207, allocations: 0 / 433.9 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.2207, allocations: 15.98 kB / 433.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2207, allocations: 0 / 433.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.2207, allocations: 11.94 kB / 433.9 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005444/0.2213, allocations: 0.5226 MB / 434.5 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.409e-05/0.2213, allocations: 108.7 kB / 434.6 MB, free: 4.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.125e-05/0.2214, allocations: 16.05 kB / 434.6 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.2215, allocations: 4 kB / 434.6 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/0.2215, allocations: 35.89 kB / 434.6 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.459e-05/0.2216, allocations: 15.98 kB / 434.6 MB, free: 4.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.262e-05/0.2217, allocations: 160.5 kB / 434.8 MB, free: 4.598 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2217, allocations: 0 / 434.8 MB, free: 4.598 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004426/0.2221, allocations: 139.6 kB / 434.9 MB, free: 4.461 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: 36 (tCPIPSend.internalTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,addInteger.pkgIn.autoPkgBitSize,tCPIPSend.pkgIn.userPkgBitSize,tCPIPSend.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,tCPIPReceive.recvTrigger,tCPIPReceive.conditionalInternalTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,tCPIPReceive.pkgOut.dummy,tCPIPReceive.nReceivedBytes,tCPIPReceive.accepted,tCPIPReceive.bufferSize,tCPIPReceive.block_,getInteger.pkgIn.autoPkgBitSize,getInteger.y[1],getInteger.y[2],getInteger.y[3],getInteger.dummy,packager.pkgOut.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,tCPIPSend.dataSent,tCPIPSend.accepted,tCPIPSend.bufferSize,tCPIPSend.dummy1,tCPIPSend.dummy2,tCPIPSend.pkgSize,tCPIPSend.block_,process.y[1],process.y[2],process.y[3]) * Number of discrete states: 2 (tCPIPReceive.block_,tCPIPSend.block_) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 21 * 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.0007597/0.2229, allocations: 433.5 kB / 435.3 MB, free: 4.137 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005275/0.2234, allocations: 490 kB / 435.8 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2234, allocations: 4.062 kB / 435.8 MB, free: 3.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002085/0.2237, allocations: 189.4 kB / 436 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000397/0.2241, allocations: 46.45 kB / 436.1 MB, free: 3.387 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008545/0.2249, allocations: 0.811 MB / 436.9 MB, free: 2.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001832/0.2251, allocations: 0.819 MB / 437.7 MB, free: 1.691 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.561e-05/0.2252, allocations: 23.44 kB / 437.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.2252, allocations: 0 / 437.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of Templates: time 0.007622/0.2328, allocations: 5.885 MB / 443.6 MB, free: 11.81 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer.makefile clang++ -std=c++14 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServerCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServerCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServerCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServerFunctions.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_TCPIPServerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServerFunctions.cpp:575: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_TCPIPServerCalcHelperMain.o] Error 1