Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.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_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 105.2 kB / 16.57 MB, free: 6.73 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.001274/0.001274, allocations: 193.9 kB / 17.48 MB, free: 6.027 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.344/1.344, allocations: 222.9 MB / 241.2 MB, free: 15.44 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.05648/0.05648, allocations: 12.04 MB / 303.3 MB, free: 3.426 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 59.89 kB / 366.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2016/0.2028, allocations: 52.33 MB / 418.8 MB, free: 21.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM): time 0.003723/0.2066, allocations: 2.929 MB / 421.7 MB, free: 18.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.2078, allocations: 0.8835 MB / 422.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001118/0.208, allocations: 7.938 kB / 422.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002592/0.2082, allocations: 67.52 kB / 422.6 MB, free: 17.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.2084, allocations: 47.7 kB / 422.7 MB, free: 17.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004204/0.2088, allocations: 239.6 kB / 422.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000267/0.2091, allocations: 383 kB / 423.3 MB, free: 16.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002735/0.2094, allocations: 237 kB / 423.5 MB, free: 16.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.2095, allocations: 179.3 kB / 423.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.2097, allocations: 234.8 kB / 423.9 MB, free: 16.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.082e-05/0.2098, allocations: 36 kB / 424 MB, free: 16.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002135/0.21, allocations: 179.8 kB / 424.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.2101, allocations: 139.6 kB / 424.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.2103, allocations: 214.8 kB / 424.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003434/0.2106, allocations: 0.497 MB / 425 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2106, allocations: 0 / 425 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2106, allocations: 0 / 425 MB, free: 15.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2106, allocations: 0 / 425 MB, free: 15.1 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 getInteger.pkgIn.pkg = getFloat.pkgOut[1].pkg getReal.pkgOut[1].pkg = getFloat.pkgIn.pkg lcmSend.pkgIn.pkg = addInteger.pkgOut[1].pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addFloat.pkgIn.pkg lcmReceive.pkgOut.pkg = getReal.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: 105 * Number of variables: 105 Notification: Performance of Generate backend data structure: time 0.001261/0.2119, allocations: 1.138 MB / 426.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.212, allocations: 12.03 kB / 426.1 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.098e-05/0.2121, allocations: 52.36 kB / 426.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.2123, allocations: 327.4 kB / 426.5 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.2124, allocations: 33.38 kB / 426.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.649e-05/0.2124, allocations: 40.36 kB / 426.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006236/0.2131, allocations: 484 kB / 427.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.2131, allocations: 192 / 427.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.939e-05/0.2131, allocations: 31.84 kB / 427.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.2131, allocations: 8 kB / 427.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003891/0.2135, allocations: 271.7 kB / 427.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.2147, allocations: 1.367 MB / 428.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004581/0.2152, allocations: 298.4 kB / 429 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001864/0.2154, allocations: 159.3 kB / 429.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.2154, allocations: 15.98 kB / 429.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002991/0.2158, allocations: 244.8 kB / 429.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.424e-06/0.2158, allocations: 0 / 429.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009032/0.2167, allocations: 0.5853 MB / 430 MB, free: 9.766 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.2167, allocations: 160.4 kB / 430.2 MB, free: 9.578 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.2169, allocations: 264.7 kB / 430.4 MB, free: 9.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.83e-05/0.217, allocations: 37.7 kB / 430.5 MB, free: 9.262 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.426e-05/0.2171, allocations: 220.2 kB / 430.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.793e-05/0.2171, allocations: 94.83 kB / 430.8 MB, free: 8.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.2173, allocations: 122.1 kB / 430.9 MB, free: 8.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.437e-05/0.2173, allocations: 350.7 kB / 431.2 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000184/0.2175, allocations: 117 kB / 431.3 MB, free: 8.355 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002452/0.2178, allocations: 318.4 kB / 431.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004449/0.2182, allocations: 476.4 kB / 432.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.2182, allocations: 4 kB / 432.1 MB, free: 7.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006229/0.2188, allocations: 488.5 kB / 432.6 MB, free: 6.914 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.2189, allocations: 8.812 kB / 432.6 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.2189, allocations: 4 kB / 432.6 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.2189, allocations: 16 kB / 432.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002346/0.2192, allocations: 75.83 kB / 432.7 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.2192, allocations: 24.11 kB / 432.7 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.2193, allocations: 39.62 kB / 432.8 MB, free: 6.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/0.2194, allocations: 27.98 kB / 432.8 MB, free: 6.723 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 54 (addFloat.pkgOut[1].dummy,$PRE.addFloat.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,lcmSend.dummy,$PRE.lcmSend.dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addFloat.pkgOut[1].backwardTrigger,addFloat.pkgOut[1].trigger,$whenCondition2,addInteger.u[1],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,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,lcmReceive.pkgOut.dummy,$PRE.lcmReceive.pkgOut.dummy,getFloat.pkgOut[1].trigger,$whenCondition1,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,getFloat.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,lcmReceive.bufferSize,addFloat.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,lcmSend.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,addReal.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,lcmSend.bufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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.0001905/0.2196, allocations: 235 kB / 433 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.364e-05/0.2196, allocations: 35.61 kB / 433.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003478/0.22, allocations: 235.3 kB / 433.3 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.22, allocations: 4 kB / 433.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.22, allocations: 0 / 433.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.22, allocations: 3.984 kB / 433.3 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009947/0.221, allocations: 1.024 MB / 434.3 MB, free: 5.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.221, allocations: 3.984 kB / 434.3 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.187e-05/0.2211, allocations: 11.94 kB / 434.3 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.2211, allocations: 4 kB / 434.3 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/0.2211, allocations: 11.98 kB / 434.4 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.2211, allocations: 7.938 kB / 434.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2211, allocations: 0 / 434.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006506/0.2218, allocations: 0.6566 MB / 435 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.2219, allocations: 104.8 kB / 435.1 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.131e-05/0.2219, allocations: 7.984 kB / 435.1 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001478/0.2221, allocations: 11.92 kB / 435.1 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.717e-05/0.2221, allocations: 19.98 kB / 435.2 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.2221, allocations: 19.98 kB / 435.2 MB, free: 4.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.356e-05/0.2222, allocations: 152.5 kB / 435.3 MB, free: 4.082 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2222, allocations: 7.938 kB / 435.3 MB, free: 4.074 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005378/0.2228, allocations: 151.5 kB / 435.5 MB, free: 3.926 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: 35 (getFloat.pkgOut[1].trigger,$whenCondition1,lcmReceive.pkgOut.dummy,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,lcmReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addFloat.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,lcmSend.bufferSize,lcmSend.dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,lcmSend.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 (34): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 23 * 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.0006665/0.2235, allocations: 370.4 kB / 435.8 MB, free: 3.625 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004975/0.224, allocations: 345.9 kB / 436.2 MB, free: 3.289 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.224, allocations: 4 kB / 436.2 MB, free: 3.285 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002234/0.2242, allocations: 167.7 kB / 436.3 MB, free: 3.121 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005903/0.2248, allocations: 80.34 kB / 436.4 MB, free: 3.047 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.2259, allocations: 0.8812 MB / 437.3 MB, free: 2.121 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001847/0.2261, allocations: 0.8112 MB / 438.1 MB, free: 1.281 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.209e-05/0.2262, allocations: 31.42 kB / 438.2 MB, free: 1.25 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2262, allocations: 3.938 kB / 438.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of Templates: time 0.008013/0.2342, allocations: 6.156 MB / 444.3 MB, free: 11.11 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.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_LCMCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.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_LCMCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDLCM.h:35:22: error: no matching function for call to 'MDD_SerialPackagerSetDataWithErrorReturn' int rc = MDD_SerialPackagerSetDataWithErrorReturn(lcm->pkg, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:177:5: note: candidate function not viable: cannot convert argument of incomplete type 'void *const' to 'const char *' for 2nd argument int MDD_SerialPackagerSetDataWithErrorReturn(void* p_package, const char * data, int size) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:470: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_LCMCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:491: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_LCMCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMFunctions.cpp:512: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) { ^ 5 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCMCalcHelperMain.o] Error 1