Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.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_String,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 114.1 kB / 17.13 MB, free: 5.965 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.002028/0.002029, allocations: 187.1 kB / 18.06 MB, free: 5.047 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.364/1.364, allocations: 222.9 MB / 241.8 MB, free: 15.07 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.05961/0.05961, allocations: 12.03 MB / 304 MB, free: 3.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 59.91 kB / 420.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09723/0.09855, allocations: 52.32 MB / 473.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String): time 0.004415/0.103, allocations: 2.626 MB / 475.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.1048, allocations: 0.9151 MB / 476.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002057/0.105, allocations: 7.938 kB / 476.6 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003037/0.1053, allocations: 59.41 kB / 476.7 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000368/0.1057, allocations: 75.44 kB / 476.7 MB, free: 9.145 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:130:7-137:16:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.clear' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.clear'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:139:5-153:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.integerBitPack' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.integerBitPack'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:63:7-72:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:98:7-105:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.resetPointer' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.resetPointer'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:155:5-169:25:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.integerBitUnpack' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.integerBitUnpack'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:107:7-117:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:52:7-61:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addString' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addString'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:119:7-128:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getString' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getString'. Notification: Performance of NFTyping.typeClassSections: time 0.0007861/0.1065, allocations: 263.3 kB / 477 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004198/0.1069, allocations: 327.2 kB / 477.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003321/0.1073, allocations: 201.9 kB / 477.5 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002091/0.1075, allocations: 167.4 kB / 477.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002829/0.1078, allocations: 203.1 kB / 477.9 MB, free: 8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.57e-05/0.1079, allocations: 40 kB / 477.9 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003278/0.1082, allocations: 199.8 kB / 478.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.1084, allocations: 135.6 kB / 478.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001883/0.1086, allocations: 183.1 kB / 478.4 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007044/0.1093, allocations: 0.5841 MB / 479 MB, free: 6.867 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1093, allocations: 3.938 kB / 479 MB, free: 6.863 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1093, allocations: 0 / 479 MB, free: 6.863 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.477e-05/0.1093, allocations: 4 kB / 479 MB, free: 6.859 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: getString.pkgOut[1].pkg = getString.pkgIn.pkg addString.pkgOut[1].pkg = addString.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt.pkgIn.pkg resetPointer.pkgOut[1].pkg = resetPointer.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = packInt.pkgIn.pkg addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg getString.pkgOut[1].pkg = getInteger.pkgIn.pkg unpackInt.pkgOut[1].pkg = getString.pkgIn.pkg packInt.pkgOut[1].pkg = addString.pkgIn.pkg addString.pkgOut[1].pkg = addInteger.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.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.001718/0.1111, allocations: 1.033 MB / 480 MB, free: 5.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1111, allocations: 12.03 kB / 480.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.309e-05/0.1112, allocations: 36.47 kB / 480.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.1116, allocations: 291.1 kB / 480.4 MB, free: 5.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.847e-05/0.1116, allocations: 33.36 kB / 480.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.012e-05/0.1117, allocations: 39.88 kB / 480.4 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006726/0.1123, allocations: 413.9 kB / 480.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.1124, allocations: 0 / 480.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.727e-05/0.1124, allocations: 15.94 kB / 480.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.1124, allocations: 12 kB / 480.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003857/0.1128, allocations: 218 kB / 481.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.1141, allocations: 1.014 MB / 482.1 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003763/0.1145, allocations: 243.6 kB / 482.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.1147, allocations: 110.6 kB / 482.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001366/0.1149, allocations: 89.11 kB / 482.5 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000286/0.1151, allocations: 196.4 kB / 482.7 MB, free: 2.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.723e-06/0.1152, allocations: 0 / 482.7 MB, free: 2.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007872/0.116, allocations: 429.1 kB / 483.1 MB, free: 2.441 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/0.116, allocations: 122.8 kB / 483.3 MB, free: 2.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.1162, allocations: 190.1 kB / 483.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.1163, allocations: 41.69 kB / 483.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.1164, allocations: 184.3 kB / 483.7 MB, free: 1.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.717e-05/0.1164, allocations: 67.19 kB / 483.7 MB, free: 1.805 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.1166, allocations: 90.05 kB / 483.8 MB, free: 1.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1167, allocations: 338.8 kB / 484.2 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.1169, allocations: 80.7 kB / 484.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/0.1171, allocations: 228 kB / 484.5 MB, free: 1.004 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005647/0.1177, allocations: 370.7 kB / 484.8 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.1177, allocations: 4 kB / 484.8 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005726/0.1183, allocations: 356.8 kB / 485.2 MB, free: 220 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.1183, allocations: 5.875 kB / 485.2 MB, free: 216 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.1183, allocations: 8 kB / 485.2 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.1184, allocations: 8.594 kB / 485.2 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000207/0.1186, allocations: 51.84 kB / 485.2 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.1186, allocations: 12 kB / 485.3 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000144/0.1188, allocations: 39.62 kB / 485.3 MB, free: 96 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.1188, allocations: 19.94 kB / 485.3 MB, free: 76 kB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: getString.data:DISCRETE(fixed = true ) "Output string (read from package)" type: String Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 44 (getString.dummy,$PRE.getString.dummy,getString.pkgOut[1].dummy,$PRE.getString.pkgOut[1].dummy,addString.pkgOut[1].dummy,$PRE.addString.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,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,getString.pkgOut[1].trigger,$whenCondition1,integerExpression.y,addInteger.u[1],$PRE.getString.data,findString.y,getString.data,getString.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,addString.pkgIn.autoPkgBitSize,resetPointer.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 (46): * Single equations (assignments): 46 * 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.0002912/0.1191, allocations: 199 kB / 485.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.295e-05/0.1191, allocations: 15.81 kB / 485.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004523/0.1196, allocations: 281.3 kB / 485.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1196, allocations: 3.984 kB / 485.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.1196, allocations: 4 kB / 485.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.465e-06/0.1196, allocations: 7.922 kB / 485.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009868/0.1206, allocations: 0.7443 MB / 486.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.1206, allocations: 0 / 486.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.011e-05/0.1207, allocations: 19.88 kB / 486.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1207, allocations: 0 / 486.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.1207, allocations: 15.92 kB / 486.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.1208, allocations: 4 kB / 486.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1208, allocations: 0 / 486.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005915/0.1214, allocations: 452 kB / 487 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.98e-05/0.1214, allocations: 100.8 kB / 487.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/0.1215, allocations: 3.938 kB / 487.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.1216, allocations: 15.98 kB / 487.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.785e-05/0.1217, allocations: 15.92 kB / 487.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/0.1217, allocations: 15.98 kB / 487.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.899e-05/0.1218, allocations: 112.3 kB / 487.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1218, allocations: 3.938 kB / 487.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005695/0.1224, allocations: 139.6 kB / 487.4 MB, free: 13.84 MB / 366.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: 28 (unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getString.pkgIn.autoPkgBitSize,getString.pkgOut[1].trigger,$whenCondition1,integerExpression.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.y[1],getInteger.dummy,addString.pkgOut[1].dummy,getString.pkgOut[1].dummy,getString.data,getString.dummy,findString.y,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,addString.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 5 * 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.0005885/0.123, allocations: 291.9 kB / 487.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004584/0.1234, allocations: 263.8 kB / 488 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1235, allocations: 0 / 488 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.1236, allocations: 111.9 kB / 488.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004388/0.1241, allocations: 47.95 kB / 488.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.1252, allocations: 0.5253 MB / 488.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.1256, allocations: 0.7755 MB / 489.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.545e-05/0.1256, allocations: 27.42 kB / 489.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1256, allocations: 0 / 489.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of Templates: time 0.008852/0.1345, allocations: 4.894 MB / 494.4 MB, free: 6.902 MB / 366.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_String.makefile clang++ -std=c++17 -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_StringCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_StringCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_StringCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_StringFunctions.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_StringCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_StringFunctions.cpp:474: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_StringCalcHelperMain.o] Error 1