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.001056/0.001056, allocations: 107.8 kB / 16.69 MB, free: 5.906 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.0009938/0.0009938, allocations: 190.7 kB / 17.61 MB, free: 5.473 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.374/1.374, allocations: 222.9 MB / 241.3 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05822/0.05822, allocations: 12.04 MB / 303.5 MB, free: 3.371 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 60.12 kB / 366.6 MB, free: 4.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2057, allocations: 52.32 MB / 418.9 MB, free: 21.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPServer): time 0.004416/0.2101, allocations: 3.262 MB / 422.2 MB, free: 18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.2117, allocations: 0.8992 MB / 423.1 MB, free: 17.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002835/0.212, allocations: 11.88 kB / 423.1 MB, free: 17.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003618/0.2124, allocations: 87.42 kB / 423.2 MB, free: 17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.2126, allocations: 39.7 kB / 423.2 MB, free: 16.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008212/0.2134, allocations: 271.5 kB / 423.5 MB, free: 16.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004124/0.2138, allocations: 387.5 kB / 423.9 MB, free: 16.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002983/0.2141, allocations: 238.2 kB / 424.1 MB, free: 16.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.2143, allocations: 171.3 kB / 424.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.2146, allocations: 191.1 kB / 424.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.926e-05/0.2146, allocations: 40 kB / 424.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002991/0.2149, allocations: 159.9 kB / 424.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.2151, allocations: 123.6 kB / 424.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001609/0.2152, allocations: 202.9 kB / 425 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004694/0.2157, allocations: 437.1 kB / 425.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.2157, allocations: 4 kB / 425.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2157, allocations: 0 / 425.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.355e-05/0.2158, allocations: 4 kB / 425.4 MB, free: 14.77 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.001368/0.2171, allocations: 0.8997 MB / 426.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.2172, allocations: 8.031 kB / 426.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.2173, allocations: 48.38 kB / 426.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003233/0.2176, allocations: 330.5 kB / 426.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.575e-05/0.2177, allocations: 29.38 kB / 426.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.201e-05/0.2177, allocations: 40.36 kB / 426.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006105/0.2184, allocations: 432.8 kB / 427.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.2184, allocations: 192 / 427.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/0.2184, allocations: 23.92 kB / 427.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.2184, allocations: 8 kB / 427.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.2188, allocations: 240.2 kB / 427.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.2201, allocations: 1.307 MB / 428.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004348/0.2206, allocations: 298.6 kB / 429 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001853/0.2208, allocations: 151.4 kB / 429.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-05/0.2208, allocations: 7.984 kB / 429.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003029/0.2211, allocations: 259.2 kB / 429.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.944e-06/0.2212, allocations: 4 kB / 429.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008138/0.222, allocations: 0.5331 MB / 430 MB, free: 9.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.021e-05/0.222, allocations: 152.5 kB / 430.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.2222, allocations: 260.7 kB / 430.4 MB, free: 9.457 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.2223, allocations: 45.7 kB / 430.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.18e-05/0.2224, allocations: 192.5 kB / 430.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.182e-05/0.2225, allocations: 106.7 kB / 430.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.2226, allocations: 110.4 kB / 430.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.857e-05/0.2227, allocations: 350.8 kB / 431.2 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.2229, allocations: 121 kB / 431.3 MB, free: 8.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.2231, allocations: 276.4 kB / 431.6 MB, free: 8.191 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006515/0.2238, allocations: 0.6677 MB / 432.2 MB, free: 7.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.323e-06/0.2238, allocations: 0 / 432.2 MB, free: 7.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.0007225/0.2245, allocations: 0.5627 MB / 432.8 MB, free: 6.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.707e-05/0.2246, allocations: 59.41 kB / 432.9 MB, free: 6.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.2246, allocations: 8 kB / 432.9 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.2246, allocations: 8 kB / 432.9 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001785/0.2248, allocations: 63.84 kB / 432.9 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.2248, allocations: 11.98 kB / 432.9 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001799/0.225, allocations: 47.47 kB / 433 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.225, allocations: 24 kB / 433 MB, free: 6.609 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.0002491/0.2253, allocations: 228.2 kB / 433.2 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.418e-05/0.2254, allocations: 39.56 kB / 433.3 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.369e-05/0.2254, allocations: 22.95 kB / 433.3 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2254, allocations: 4 kB / 433.3 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.2254, allocations: 8 kB / 433.3 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2255, allocations: 3.984 kB / 433.3 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009224/0.2264, allocations: 0.8617 MB / 434.2 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.2264, allocations: 4 kB / 434.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.235e-05/0.2264, allocations: 11.92 kB / 434.2 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.2265, allocations: 4 kB / 434.2 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.2265, allocations: 8 kB / 434.2 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.2265, allocations: 11.98 kB / 434.2 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2265, allocations: 7.875 kB / 434.2 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005816/0.2271, allocations: 0.5302 MB / 434.8 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.021e-05/0.2271, allocations: 100.8 kB / 434.9 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.252e-05/0.2272, allocations: 16.05 kB / 434.9 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.2273, allocations: 15.98 kB / 434.9 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.4e-05/0.2274, allocations: 15.92 kB / 434.9 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.775e-05/0.2274, allocations: 19.98 kB / 434.9 MB, free: 4.598 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.709e-05/0.2275, allocations: 156.5 kB / 435.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2275, allocations: 4 kB / 435.1 MB, free: 4.445 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004909/0.228, allocations: 151.6 kB / 435.2 MB, free: 4.297 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.0008265/0.2289, allocations: 430 kB / 435.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006332/0.2295, allocations: 0.5164 MB / 436.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2295, allocations: 0 / 436.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002207/0.2297, allocations: 191.8 kB / 436.4 MB, free: 3.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004263/0.2302, allocations: 40.41 kB / 436.4 MB, free: 3.195 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.2312, allocations: 0.8152 MB / 437.2 MB, free: 2.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.2314, allocations: 0.8073 MB / 438 MB, free: 1.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.689e-05/0.2315, allocations: 31.44 kB / 438 MB, free: 1.477 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2315, allocations: 3.938 kB / 438 MB, free: 1.473 MB / 302.1 MB Notification: Performance of Templates: time 0.009139/0.2407, allocations: 5.886 MB / 443.9 MB, free: 11.61 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