Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 102.9 kB / 16.56 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.001536/0.001536, 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.33/1.33, allocations: 222.9 MB / 241.2 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.05873/0.05873, allocations: 12.02 MB / 303.3 MB, free: 3.422 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 59.91 kB / 366.4 MB, free: 4.281 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2136, allocations: 52.32 MB / 418.8 MB, free: 21.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger): time 0.003264/0.2169, allocations: 2.657 MB / 421.4 MB, free: 18.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008787/0.2178, allocations: 0.7006 MB / 422.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.046e-05/0.2179, allocations: 7.938 kB / 422.1 MB, free: 17.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002259/0.2182, allocations: 35.67 kB / 422.2 MB, free: 17.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001203/0.2183, allocations: 35.78 kB / 422.2 MB, free: 17.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003742/0.2187, allocations: 199.7 kB / 422.4 MB, free: 17.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002258/0.2189, allocations: 326.3 kB / 422.7 MB, free: 17.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002367/0.2192, allocations: 194.1 kB / 422.9 MB, free: 17.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.2193, allocations: 151.5 kB / 423 MB, free: 17.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.2195, allocations: 195.1 kB / 423.2 MB, free: 16.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.36e-05/0.2195, allocations: 32 kB / 423.3 MB, free: 16.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.2197, allocations: 119.9 kB / 423.4 MB, free: 16.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.2198, allocations: 123.7 kB / 423.5 MB, free: 16.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.2199, allocations: 183 kB / 423.7 MB, free: 16.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002774/0.2202, allocations: 389.2 kB / 424.1 MB, free: 16.01 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.2202, allocations: 0 / 424.1 MB, free: 16.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.2202, allocations: 0 / 424.1 MB, free: 16.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.2202, allocations: 0 / 424.1 MB, free: 16.01 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg resetPointer.pkgOut[1].pkg = resetPointer.pkgIn.pkg packInt1.pkgOut[1].pkg = packInt1.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = packInt.pkgIn.pkg unpackInt1.pkgOut[1].pkg = getInteger.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg packInt1.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg packager.pkgOut.pkg = packInt.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001192/0.2214, allocations: 1.028 MB / 425.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2215, allocations: 8.031 kB / 425.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.554e-05/0.2215, allocations: 48.45 kB / 425.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.2218, allocations: 290 kB / 425.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.2218, allocations: 25.38 kB / 425.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.131e-05/0.2218, allocations: 36.36 kB / 425.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005324/0.2224, allocations: 410 kB / 425.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.2224, allocations: 8.062 kB / 425.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.316e-05/0.2224, allocations: 23.92 kB / 425.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.2225, allocations: 12 kB / 425.9 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003182/0.2228, allocations: 219.8 kB / 426.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009774/0.2238, allocations: 1.097 MB / 427.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003538/0.2241, allocations: 262.3 kB / 427.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.2243, allocations: 119.5 kB / 427.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.2243, allocations: 4 kB / 427.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002228/0.2245, allocations: 213.6 kB / 427.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.824e-06/0.2245, allocations: 0 / 427.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.000658/0.2252, allocations: 431.4 kB / 428.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.2253, allocations: 160.6 kB / 428.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.2254, allocations: 189.4 kB / 428.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.134e-05/0.2254, allocations: 37.7 kB / 428.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.84e-05/0.2255, allocations: 192.4 kB / 428.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.555e-05/0.2255, allocations: 71.17 kB / 428.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.923e-05/0.2256, allocations: 94.05 kB / 429 MB, free: 10.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.779e-05/0.2257, allocations: 338.8 kB / 429.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.2258, allocations: 80.83 kB / 429.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.226, allocations: 231.2 kB / 429.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002907/0.2263, allocations: 358.5 kB / 430 MB, free: 9.617 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.2263, allocations: 0 / 430 MB, free: 9.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004112/0.2267, allocations: 356.8 kB / 430.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.2267, allocations: 8 kB / 430.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.2268, allocations: 4 kB / 430.3 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.2268, allocations: 8.594 kB / 430.3 MB, free: 9.242 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001781/0.227, allocations: 63.84 kB / 430.4 MB, free: 9.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.227, allocations: 11.94 kB / 430.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001183/0.2271, allocations: 27.69 kB / 430.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.2271, allocations: 20 kB / 430.4 MB, free: 9.121 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 46 (unpackInt1.dummy,$PRE.unpackInt1.dummy,unpackInt1.y,$PRE.unpackInt1.y,unpackInt1.pkgOut[1].dummy,$PRE.unpackInt1.pkgOut[1].dummy,getInteger.dummy,$PRE.getInteger.dummy,getInteger.y[1],$PRE.getInteger.y[1],unpackInt.dummy,$PRE.unpackInt.dummy,unpackInt.y,$PRE.unpackInt.y,unpackInt.pkgOut[1].dummy,$PRE.unpackInt.pkgOut[1].dummy,resetPointer.dummy,$PRE.resetPointer.dummy,resetPointer.pkgOut[1].dummy,$PRE.resetPointer.pkgOut[1].dummy,packInt1.pkgOut[1].dummy,$PRE.packInt1.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,packInt.pkgOut[1].dummy,$PRE.packInt.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addInteger.u[1],iExp2.y,unpackInt1.pkgOut[1].trigger,iExp.y,$PRE.iExp.y,$whenCondition1,unpackInt1.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,packager.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,resetPointer.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001592/0.2273, allocations: 211.4 kB / 430.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.549e-05/0.2273, allocations: 27.8 kB / 430.7 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.213e-05/0.2274, allocations: 17.19 kB / 430.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.2274, allocations: 4 kB / 430.7 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2274, allocations: 0 / 430.7 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.2274, allocations: 7.984 kB / 430.7 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006727/0.2281, allocations: 0.7634 MB / 431.5 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2281, allocations: 4 kB / 431.5 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.318e-05/0.2281, allocations: 4 kB / 431.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.2281, allocations: 4 kB / 431.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.2282, allocations: 11.98 kB / 431.5 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.2282, allocations: 3.938 kB / 431.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2282, allocations: 0 / 431.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000453/0.2286, allocations: 476.8 kB / 432 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.926e-05/0.2287, allocations: 96.86 kB / 432.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.55e-05/0.2287, allocations: 12 kB / 432.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.904e-05/0.2288, allocations: 3.984 kB / 432.1 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.514e-05/0.2289, allocations: 23.86 kB / 432.1 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.2289, allocations: 15.98 kB / 432.1 MB, free: 7.348 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.793e-05/0.229, allocations: 124.2 kB / 432.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.229, allocations: 0 / 432.2 MB, free: 7.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004114/0.2294, allocations: 103.6 kB / 432.3 MB, free: 7.125 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 29 (packager.internalTrigger,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,unpackInt1.pkgOut[1].trigger,$whenCondition1,iExp.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],iExp2.y,packInt1.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.y[1],getInteger.dummy,unpackInt1.pkgOut[1].dummy,unpackInt1.y,unpackInt1.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (iExp.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 20 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003033/0.2297, allocations: 208.2 kB / 432.5 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003441/0.2301, allocations: 247.6 kB / 432.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2301, allocations: 0 / 432.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.2302, allocations: 113 kB / 432.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.2307, allocations: 59.94 kB / 432.9 MB, free: 6.512 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007291/0.2314, allocations: 0.6317 MB / 433.6 MB, free: 5.836 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000173/0.2316, allocations: 0.7755 MB / 434.4 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.981e-05/0.2316, allocations: 23.42 kB / 434.4 MB, free: 5.012 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2316, allocations: 3.938 kB / 434.4 MB, free: 5.008 MB / 302.1 MB Notification: Performance of Templates: time 0.004977/0.2366, allocations: 4.264 MB / 438.6 MB, free: 0.7852 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger.makefile clang++ -std=c++14 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:452:5: error: no matching function for call to 'strncpy' strncpy(pkg->data + pkg->pos, u, (size_t)bufferSize); ^~~~~~~ /usr/include/string.h:144:14: note: candidate function not viable: no known conversion from 'unsigned char *' to 'char *__restrict' for 1st argument extern char *strncpy (char *__restrict __dest, ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerFunctions.cpp:273:3: error: no matching function for call to 'MDD_SerialPackagerAddInteger' MDD_SerialPackagerAddInteger(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:243:16: note: candidate function not viable: 2nd argument ('const int *') would lose const qualifier DllExport void MDD_SerialPackagerAddInteger(void* p_package, int * u, size_t n, int endian) { ^ 2 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTriggerCalcHelperMain.o] Error 1