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.001172/0.001172, allocations: 105.5 kB / 16.98 MB, free: 6.137 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.001321/0.001321, allocations: 191.4 kB / 17.91 MB, free: 5.234 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.331/1.331, allocations: 222.9 MB / 241.6 MB, free: 15.17 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.05759/0.05759, allocations: 12.04 MB / 303.8 MB, free: 3.168 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 63.89 kB / 367.1 MB, free: 3.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2247, allocations: 52.33 MB / 419.5 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager_String): time 0.003684/0.2284, allocations: 2.628 MB / 422.1 MB, free: 18.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.2297, allocations: 0.9307 MB / 423 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.2298, allocations: 7.938 kB / 423 MB, free: 17.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.2301, allocations: 47.48 kB / 423.1 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002523/0.2303, allocations: 67.5 kB / 423.1 MB, free: 17.4 MB / 302.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.000581/0.2309, allocations: 270.8 kB / 423.4 MB, free: 17.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002261/0.2311, allocations: 275.4 kB / 423.7 MB, free: 16.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002308/0.2314, allocations: 163.1 kB / 423.8 MB, free: 16.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001044/0.2315, allocations: 131.5 kB / 424 MB, free: 16.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000168/0.2317, allocations: 159.3 kB / 424.1 MB, free: 16.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.237e-05/0.2317, allocations: 32 kB / 424.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002188/0.2319, allocations: 187.8 kB / 424.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.2321, allocations: 107.7 kB / 424.4 MB, free: 16.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.2322, allocations: 135.3 kB / 424.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000481/0.2327, allocations: 490.6 kB / 425.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2327, allocations: 0 / 425.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.2327, allocations: 0 / 425.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.2327, allocations: 3.938 kB / 425.1 MB, free: 15.48 MB / 302.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.001148/0.2338, allocations: 0.9747 MB / 426 MB, free: 14.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.2339, allocations: 12.02 kB / 426 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.717e-05/0.234, allocations: 36.56 kB / 426.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000236/0.2342, allocations: 276.9 kB / 426.3 MB, free: 14.06 MB / 302.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 7.867e-05/0.2343, allocations: 58.56 kB / 426.4 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.356e-05/0.2343, allocations: 24 kB / 426.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001132/0.2355, allocations: 0.8921 MB / 427.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.2355, allocations: 0 / 427.3 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.004e-05/0.2355, allocations: 15.98 kB / 427.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.2355, allocations: 11.98 kB / 427.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002811/0.2358, allocations: 178.1 kB / 427.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000458/0.2363, allocations: 0.5625 MB / 428.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006962/0.237, allocations: 0.7036 MB / 428.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003712/0.2374, allocations: 326.8 kB / 429.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001503/0.2375, allocations: 109.7 kB / 429.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.2376, allocations: 47.12 kB / 429.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=63): time 2.134e-06/0.2376, allocations: 0 / 429.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.0009274/0.2385, allocations: 0.5884 MB / 429.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.321e-05/0.2386, allocations: 148.9 kB / 430 MB, free: 10.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.864e-05/0.2387, allocations: 160.4 kB / 430.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.2388, allocations: 41.95 kB / 430.2 MB, free: 9.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.234e-05/0.2388, allocations: 113.2 kB / 430.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.197e-05/0.2388, allocations: 39.72 kB / 430.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.105e-05/0.2389, allocations: 106.2 kB / 430.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.582e-05/0.239, allocations: 334.8 kB / 430.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.2391, allocations: 81.06 kB / 430.9 MB, free: 9.305 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.2393, allocations: 461.9 kB / 431.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000376/0.2397, allocations: 0.5949 MB / 431.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.2397, allocations: 15.88 kB / 431.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005558/0.2403, allocations: 0.5015 MB / 432.4 MB, free: 7.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.2403, allocations: 8 kB / 432.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.2403, allocations: 16 kB / 432.4 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.2404, allocations: 19.94 kB / 432.5 MB, free: 7.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002758/0.2406, allocations: 119.8 kB / 432.6 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.774e-05/0.2407, allocations: 31.86 kB / 432.6 MB, free: 7.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.2409, allocations: 43.59 kB / 432.6 MB, free: 7.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.767e-05/0.2409, allocations: 40.38 kB / 432.7 MB, free: 7.074 MB / 302.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.0001853/0.2411, allocations: 230.7 kB / 432.9 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006065/0.2417, allocations: 426.8 kB / 433.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006763/0.2424, allocations: 493.9 kB / 433.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.2424, allocations: 8 kB / 433.8 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.2424, allocations: 0 / 433.8 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.2424, allocations: 11.98 kB / 433.8 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002776/0.2427, allocations: 337 kB / 434.2 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.308e-06/0.2427, allocations: 4 kB / 434.2 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000311/0.2431, allocations: 91.89 kB / 434.3 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.2431, allocations: 0 / 434.3 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.689e-05/0.2431, allocations: 23.94 kB / 434.3 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.2431, allocations: 0 / 434.3 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2431, allocations: 7.938 kB / 434.3 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006402/0.2438, allocations: 0.6401 MB / 434.9 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.393e-05/0.2438, allocations: 108.7 kB / 435 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.41e-05/0.2439, allocations: 15.94 kB / 435 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.244, allocations: 12 kB / 435.1 MB, free: 4.586 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.735e-05/0.244, allocations: 3.984 kB / 435.1 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.2441, allocations: 24 kB / 435.1 MB, free: 4.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.251e-05/0.2441, allocations: 110.2 kB / 435.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.71e-07/0.2441, allocations: 0 / 435.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000562/0.2447, allocations: 128 kB / 435.3 MB, free: 4.328 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 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.0005519/0.2453, allocations: 330.5 kB / 435.6 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007997/0.2461, allocations: 495.3 kB / 436.1 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2461, allocations: 3.938 kB / 436.1 MB, free: 3.559 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.222e-05/0.2461, allocations: 11.98 kB / 436.1 MB, free: 3.547 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.2473, allocations: 1.129 MB / 437.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008708/0.2481, allocations: 0.6606 MB / 437.9 MB, free: 1.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002095/0.2484, allocations: 0.8044 MB / 438.7 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.176e-05/0.2484, allocations: 31.44 kB / 438.8 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2484, allocations: 0 / 438.8 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of Templates: time 0.007924/0.2564, allocations: 5.105 MB / 443.9 MB, free: 11.75 MB / 318.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