Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.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_TCPIP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 103.8 kB / 16.57 MB, free: 6.262 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.001004/0.001004, allocations: 195.8 kB / 17.49 MB, free: 5.875 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.413/1.413, allocations: 222.9 MB / 241.2 MB, free: 15.45 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.05637/0.05637, allocations: 12.03 MB / 303.3 MB, free: 3.41 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 55.91 kB / 366.4 MB, free: 4.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.2, allocations: 52.32 MB / 418.8 MB, free: 21.47 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP): time 0.003521/0.2036, allocations: 2.799 MB / 421.5 MB, free: 18.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001159/0.2048, allocations: 0.868 MB / 422.4 MB, free: 17.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.958e-05/0.2049, allocations: 7.938 kB / 422.4 MB, free: 17.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000242/0.2051, allocations: 55.59 kB / 422.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.2053, allocations: 31.78 kB / 422.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004648/0.2058, allocations: 231.6 kB / 422.7 MB, free: 17.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002499/0.206, allocations: 351.2 kB / 423.1 MB, free: 17.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.2063, allocations: 214.3 kB / 423.3 MB, free: 16.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.2064, allocations: 167.3 kB / 423.5 MB, free: 16.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/0.2066, allocations: 211 kB / 423.7 MB, free: 16.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.224e-05/0.2067, allocations: 36 kB / 423.7 MB, free: 16.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002416/0.207, allocations: 171.8 kB / 423.9 MB, free: 16.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.2071, allocations: 135.6 kB / 424 MB, free: 16.21 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.2072, allocations: 194.9 kB / 424.2 MB, free: 16.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004022/0.2076, allocations: 465.2 kB / 424.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.778e-06/0.2077, allocations: 0 / 424.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.2077, allocations: 0 / 424.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.2077, allocations: 0 / 424.6 MB, free: 15.57 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg addInteger.pkgOut[1].pkg = tcpipClient.pkgIn.pkg tcpipClient.pkgOut.pkg = getReal.pkgIn.pkg getInteger.pkgIn.pkg = getFloat.pkgOut[1].pkg getReal.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addFloat.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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001278/0.209, allocations: 1.096 MB / 425.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.209, allocations: 8.031 kB / 425.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.822e-05/0.2091, allocations: 44.47 kB / 425.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.2093, allocations: 307.5 kB / 426.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/0.2094, allocations: 29.36 kB / 426.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/0.2094, allocations: 40.38 kB / 426.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005864/0.21, allocations: 456.3 kB / 426.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.21, allocations: 192 / 426.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.516e-05/0.2101, allocations: 31.86 kB / 426.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.2101, allocations: 8 kB / 426.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003557/0.2104, allocations: 258 kB / 426.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001095/0.2115, allocations: 1.241 MB / 428.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004194/0.212, allocations: 276.6 kB / 428.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.2122, allocations: 150.4 kB / 428.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.2122, allocations: 7.984 kB / 428.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002847/0.2125, allocations: 230 kB / 428.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.633e-06/0.2125, allocations: 0 / 428.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008256/0.2133, allocations: 0.5415 MB / 429.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.2134, allocations: 126.8 kB / 429.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.2135, allocations: 214.1 kB / 429.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.584e-05/0.2136, allocations: 37.7 kB / 429.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.315e-05/0.2136, allocations: 196.3 kB / 429.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.321e-05/0.2137, allocations: 90.91 kB / 430 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.2138, allocations: 106.2 kB / 430.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.656e-05/0.2139, allocations: 338.8 kB / 430.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.214, allocations: 109 kB / 430.5 MB, free: 9.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001998/0.2142, allocations: 289.5 kB / 430.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003881/0.2146, allocations: 459.9 kB / 431.2 MB, free: 8.438 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2146, allocations: 0 / 431.2 MB, free: 8.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0005421/0.2152, allocations: 456.7 kB / 431.7 MB, free: 7.984 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.2152, allocations: 10.19 kB / 431.7 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.2152, allocations: 4 kB / 431.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.2153, allocations: 8 kB / 431.7 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.2155, allocations: 75.84 kB / 431.8 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.2155, allocations: 20.42 kB / 431.8 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.2157, allocations: 39.69 kB / 431.8 MB, free: 7.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.2157, allocations: 20 kB / 431.9 MB, free: 7.812 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 50 (getFloat.dummy,$PRE.getFloat.dummy,getFloat.y[2],$PRE.getFloat.y[2],getFloat.y[1],$PRE.getFloat.y[1],getFloat.pkgOut[1].dummy,$PRE.getFloat.pkgOut[1].dummy,addFloat.pkgOut[1].dummy,$PRE.addFloat.pkgOut[1].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,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,tcpipClient.pkgOut.dummy,$PRE.tcpipClient.pkgOut.dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,getFloat.pkgOut[1].trigger,addFloat.pkgOut[1].trigger,$whenCondition1,$whenCondition2,addInteger.u[1],tcpipClient.isConnected,getFloat.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,addFloat.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,tcpipClient.pkgIn.autoPkgBitSize,tcpipClient.pkgIn.userPkgBitSize,addReal.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 (56): * Single equations (assignments): 56 * 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.000187/0.2159, allocations: 227.8 kB / 432.1 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.2159, allocations: 23.72 kB / 432.1 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004892/0.2164, allocations: 372.7 kB / 432.5 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.2164, allocations: 4 kB / 432.5 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.2164, allocations: 0 / 432.5 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.2165, allocations: 3.984 kB / 432.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009064/0.2174, allocations: 0.9 MB / 433.4 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2174, allocations: 4 kB / 433.4 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.93e-05/0.2174, allocations: 12 kB / 433.4 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.2175, allocations: 4 kB / 433.4 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.2175, allocations: 11.98 kB / 433.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2175, allocations: 0 / 433.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2175, allocations: 3.938 kB / 433.4 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005694/0.2181, allocations: 0.5515 MB / 434 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.069e-05/0.2181, allocations: 100.8 kB / 434.1 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.702e-05/0.2181, allocations: 15.92 kB / 434.1 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.2183, allocations: 15.98 kB / 434.1 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.446e-05/0.2183, allocations: 15.92 kB / 434.1 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.132e-05/0.2183, allocations: 15.98 kB / 434.1 MB, free: 5.434 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.647e-05/0.2184, allocations: 124.1 kB / 434.3 MB, free: 5.309 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2184, allocations: 0 / 434.3 MB, free: 5.309 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004847/0.2189, allocations: 139.6 kB / 434.4 MB, free: 5.172 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 (getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,getFloat.pkgOut[1].trigger,addFloat.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,tcpipClient.pkgOut.dummy,tcpipClient.isConnected,addInteger.pkgOut[1].dummy,addInteger.u[1],getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,addFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,tcpipClient.pkgIn.userPkgBitSize,tcpipClient.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0006213/0.2195, allocations: 362.3 kB / 434.7 MB, free: 4.879 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004526/0.22, allocations: 324.4 kB / 435.1 MB, free: 4.562 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.22, allocations: 0 / 435.1 MB, free: 4.562 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001999/0.2202, allocations: 156.5 kB / 435.2 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004898/0.2207, allocations: 72.56 kB / 435.3 MB, free: 4.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009943/0.2217, allocations: 0.7831 MB / 436.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001789/0.2219, allocations: 0.7916 MB / 436.9 MB, free: 2.707 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.767e-05/0.222, allocations: 31.42 kB / 436.9 MB, free: 2.676 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.222, allocations: 0 / 436.9 MB, free: 2.676 MB / 302.1 MB Notification: Performance of Templates: time 0.007611/0.2296, allocations: 5.585 MB / 442.5 MB, free: 13.1 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.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_TCPIPCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPFunctions.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_TCPIPCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPFunctions.cpp:144:5: warning: expression result unused [-Wunused-value] tmp28; ^~~~~ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPFunctions.cpp:488: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_TCPIPCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPFunctions.cpp:509: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) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPFunctions.cpp:530:3: error: no matching function for call to 'MDD_SerialPackagerAddDoubleAsFloat' MDD_SerialPackagerAddDoubleAsFloat(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:369:16: note: candidate function not viable: 2nd argument ('const double *') would lose const qualifier DllExport void MDD_SerialPackagerAddDoubleAsFloat(void* p_package, double * u, size_t n, int endian) { ^ 1 warning and 4 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPCalcHelperMain.o] Error 1