Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.ClockedBlocks.Examples.TestSerialPackager_String,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_String") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_String,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_String") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 122.5 kB / 17.13 MB, free: 5.914 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.001265/0.001265, allocations: 192.2 kB / 18.06 MB, free: 5 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.325/1.325, allocations: 222.9 MB / 241.8 MB, free: 15.06 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.05925/0.05925, allocations: 12.05 MB / 304 MB, free: 3.066 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 71.88 kB / 420.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08266/0.08396, allocations: 52.3 MB / 473 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_String): time 0.004229/0.08823, allocations: 2.643 MB / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.08999, allocations: 0.9229 MB / 476.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001984/0.09021, allocations: 7.938 kB / 476.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002761/0.09051, allocations: 51.47 kB / 476.7 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003788/0.09092, allocations: 71.52 kB / 476.7 MB, free: 9.105 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/ClockedBlocks/Packaging.mo:132:9-139:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:141:7-156:25:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:65:9-74:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:100:9-107:25:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:158:7-173:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:109:9-119:23:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:54:9-63:22:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.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/ClockedBlocks/Packaging.mo:121:9-130:22:writable] Warning: Pure function 'Modelica_DeviceDrivers.ClockedBlocks.Packaging.SerialPackager.Internal.DummyFunctions.getString' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getString'. Notification: Performance of NFTyping.typeClassSections: time 0.0008787/0.09182, allocations: 251.3 kB / 477 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003905/0.09222, allocations: 283.2 kB / 477.3 MB, free: 8.582 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.09251, allocations: 165.1 kB / 477.4 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.09272, allocations: 135.5 kB / 477.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002511/0.09297, allocations: 159.3 kB / 477.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.122e-05/0.09304, allocations: 32 kB / 477.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000327/0.09339, allocations: 191.8 kB / 477.9 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.09353, allocations: 99.72 kB / 478 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000141/0.09368, allocations: 151.1 kB / 478.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006588/0.09435, allocations: 0.4985 MB / 478.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.09436, allocations: 0 / 478.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.09437, allocations: 0 / 478.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.09439, allocations: 0 / 478.7 MB, free: 7.16 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 getString.pkgOut[1].pkg = getInteger.pkgIn.pkg unpackInt.pkgOut[1].pkg = getString.pkgIn.pkg addString.pkgOut[1].pkg = addInteger.pkgIn.pkg packInt.pkgOut[1].pkg = addString.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgOut[1].pkg = resetPointer.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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001509/0.0959, allocations: 0.9864 MB / 479.7 MB, free: 6.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.09595, allocations: 12.03 kB / 479.7 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.687e-05/0.09605, allocations: 32.56 kB / 479.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.0964, allocations: 279.9 kB / 480 MB, free: 5.73 MB / 350.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: packager.initialized = previous(packager.initialized) to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-05/0.09651, allocations: 61.31 kB / 480 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.993e-05/0.09657, allocations: 31.94 kB / 480.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.09801, allocations: 0.8881 MB / 481 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.09804, allocations: 0 / 481 MB, free: 4.723 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.432e-05/0.09808, allocations: 16 kB / 481 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.09809, allocations: 4 kB / 481 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003455/0.09844, allocations: 186.1 kB / 481.2 MB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006889/0.09914, allocations: 0.5703 MB / 481.7 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008877/0.1, allocations: 0.7029 MB / 482.4 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004605/0.1005, allocations: 314.9 kB / 482.7 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001936/0.1007, allocations: 121.6 kB / 482.9 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.1008, allocations: 43.12 kB / 482.9 MB, free: 2.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=63): time 2.745e-06/0.1008, allocations: 0 / 482.9 MB, free: 2.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=63): time 0.001176/0.102, allocations: 0.5883 MB / 483.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/0.1021, allocations: 145 kB / 483.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.1022, allocations: 162.2 kB / 483.8 MB, free: 1.688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.545e-05/0.1023, allocations: 37.95 kB / 483.8 MB, free: 1.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.821e-05/0.1024, allocations: 109.3 kB / 483.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.655e-05/0.1024, allocations: 51.78 kB / 484 MB, free: 1.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.1025, allocations: 102.2 kB / 484.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1027, allocations: 334.8 kB / 484.4 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.1028, allocations: 81.06 kB / 484.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000365/0.1032, allocations: 469.8 kB / 484.9 MB, free: 316 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000602/0.1038, allocations: 0.5872 MB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.081e-05/0.1038, allocations: 4 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00075/0.1046, allocations: 0.5054 MB / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.1046, allocations: 12 kB / 486.1 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/0.1046, allocations: 16 kB / 486.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.64e-05/0.1047, allocations: 19.94 kB / 486.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003271/0.105, allocations: 123.7 kB / 486.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.79e-05/0.105, allocations: 23.92 kB / 486.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.1053, allocations: 51.53 kB / 486.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.384e-05/0.1053, allocations: 40.34 kB / 486.3 MB, free: 14.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 43 (integerExpression.y,integerExpression2.y,findString.y,getString.pkgOut[1].autoPkgBitSize,getString.pkgOut[1].userPkgBitSize,getString.pkgIn.autoPkgBitSize,getString.pkgIn.userPkgBitSize,addString.pkgOut[1].autoPkgBitSize,addString.pkgOut[1].userPkgBitSize,addString.pkgIn.autoPkgBitSize,addString.pkgIn.userPkgBitSize,sample3.y,sample1.y,getInteger.y[1],getInteger.pkgIn.autoPkgBitSize,getInteger.pkgIn.userPkgBitSize,unpackInt.y,unpackInt.pkgOut[1].autoPkgBitSize,unpackInt.pkgOut[1].userPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,unpackInt.pkgIn.userPkgBitSize,resetPointer.pkgOut[1].autoPkgBitSize,resetPointer.pkgOut[1].userPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,resetPointer.pkgIn.userPkgBitSize,addInteger.u[1],addInteger.pkgOut[1].autoPkgBitSize,addInteger.pkgOut[1].userPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addInteger.pkgIn.userPkgBitSize,packInt.u,packInt.pkgOut[1].autoPkgBitSize,packInt.pkgOut[1].userPkgBitSize,packInt.pkgIn.autoPkgBitSize,packInt.pkgIn.userPkgBitSize,$CLKPRE.packager.bufferSize,packager.bufferSize,$CLKPRE.packager.backwardPropagatedBufferSize,packager.backwardPropagatedBufferSize,$CLKPRE.packager.initialized,packager.initialized,packager.pkgOut.autoPkgBitSize,packager.pkgOut.userPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 4 (packager.bufferSize,packager.backwardPropagatedBufferSize,packager.dummy,packager.initialized) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0002416/0.1056, allocations: 218.8 kB / 486.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000708/0.1063, allocations: 434.6 kB / 487 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008143/0.1071, allocations: 497.8 kB / 487.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.1071, allocations: 8 kB / 487.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1071, allocations: 0 / 487.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.1071, allocations: 3.984 kB / 487.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003657/0.1075, allocations: 349.1 kB / 487.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.1075, allocations: 0 / 487.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003162/0.1079, allocations: 99.83 kB / 487.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.1079, allocations: 0 / 487.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.343e-05/0.1079, allocations: 19.94 kB / 487.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1079, allocations: 0 / 487.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1079, allocations: 0 / 487.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008037/0.1087, allocations: 0.644 MB / 488.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.72e-05/0.1088, allocations: 112.6 kB / 488.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.753e-05/0.1089, allocations: 19.88 kB / 488.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.109, allocations: 16 kB / 488.7 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.313e-05/0.1091, allocations: 3.938 kB / 488.7 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.893e-05/0.1091, allocations: 23.98 kB / 488.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.287e-05/0.1092, allocations: 110.1 kB / 488.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1092, allocations: 0 / 488.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006313/0.1099, allocations: 120 kB / 489 MB, free: 11.99 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: 43 (integerExpression.y,integerExpression2.y,$cse1,$cse2,$cse3,packager.pkgOut.userPkgBitSize,packager.pkgOut.autoPkgBitSize,packager.initialized,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.userPkgBitSize,packInt.pkgIn.autoPkgBitSize,packInt.pkgOut[1].userPkgBitSize,packInt.pkgOut[1].autoPkgBitSize,packInt.u,addInteger.pkgIn.userPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].userPkgBitSize,addInteger.pkgOut[1].autoPkgBitSize,addInteger.u[1],resetPointer.pkgIn.userPkgBitSize,resetPointer.pkgIn.autoPkgBitSize,resetPointer.pkgOut[1].userPkgBitSize,resetPointer.pkgOut[1].autoPkgBitSize,unpackInt.pkgIn.userPkgBitSize,unpackInt.pkgIn.autoPkgBitSize,unpackInt.pkgOut[1].userPkgBitSize,unpackInt.pkgOut[1].autoPkgBitSize,unpackInt.y,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getInteger.y[1],sample1.y,sample3.y,addString.pkgIn.userPkgBitSize,addString.pkgIn.autoPkgBitSize,addString.pkgOut[1].userPkgBitSize,addString.pkgOut[1].autoPkgBitSize,getString.pkgIn.userPkgBitSize,getString.pkgIn.autoPkgBitSize,getString.pkgOut[1].userPkgBitSize,getString.pkgOut[1].autoPkgBitSize,findString.y) * Number of discrete states: 0 () * Number of clocked states: 4 (packager.initialized,packager.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 1 * 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.0006028/0.1105, allocations: 330.8 kB / 489.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006252/0.1111, allocations: 397.6 kB / 489.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1111, allocations: 2 kB / 489.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.456e-05/0.1111, allocations: 7.984 kB / 489.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001435/0.1126, allocations: 1.132 MB / 490.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.1136, allocations: 0.6449 MB / 491.5 MB, free: 9.457 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.114, allocations: 0.8083 MB / 492.3 MB, free: 8.621 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.417e-05/0.1141, allocations: 31.44 kB / 492.3 MB, free: 8.59 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1141, allocations: 0 / 492.3 MB, free: 8.59 MB / 366.1 MB Notification: Performance of Templates: time 0.008254/0.1224, allocations: 5.159 MB / 497.5 MB, free: 3.457 MB / 366.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_String.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.ClockedBlocks.Examples.TestSerialPackager_StringCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_StringCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_StringCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.ClockedBlocks.Examples.TestSerialPackager_StringCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_StringFunctions.cpp:498: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.ClockedBlocks.Examples.TestSerialPackager_StringCalcHelperMain.o] Error 1