Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 122 kB / 17.13 MB, free: 5.895 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.00118/0.00118, allocations: 194.9 kB / 18.06 MB, free: 4.977 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.326/1.326, allocations: 222.9 MB / 241.7 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.06009/0.06009, allocations: 12.05 MB / 304 MB, free: 3.07 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 63.91 kB / 420.7 MB, free: 17.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08917/0.0905, allocations: 52.31 MB / 473.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager): time 0.004897/0.09543, allocations: 2.892 MB / 475.9 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.09752, allocations: 1.075 MB / 477 MB, free: 8.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000243/0.09779, allocations: 11.94 kB / 477 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003204/0.09815, allocations: 67.28 kB / 477.1 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002802/0.09845, allocations: 47.53 kB / 477.1 MB, free: 8.715 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'. Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.09948, allocations: 299.2 kB / 477.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005427/0.1, allocations: 403.7 kB / 477.8 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003659/0.1004, allocations: 210.7 kB / 478 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002925/0.1007, allocations: 187.4 kB / 478.2 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003575/0.1011, allocations: 215 kB / 478.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.405e-05/0.1012, allocations: 44 kB / 478.5 MB, free: 7.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002673/0.1015, allocations: 135.9 kB / 478.6 MB, free: 7.242 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.1016, allocations: 143.6 kB / 478.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002175/0.1019, allocations: 187 kB / 478.9 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000727/0.1026, allocations: 0.5762 MB / 479.5 MB, free: 6.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.1026, allocations: 0 / 479.5 MB, free: 6.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1026, allocations: 0 / 479.5 MB, free: 6.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.769e-05/0.1026, allocations: 0 / 479.5 MB, free: 6.34 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: addBoolean.pkgOut[1].pkg = addBoolean.pkgIn.pkg unpackInt1.pkgOut[1].pkg = unpackInt1.pkgIn.pkg getInteger.pkgOut[1].pkg = getInteger.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 addBoolean.pkgOut[1].pkg = resetPointer.pkgIn.pkg getInteger.pkgOut[1].pkg = getBoolean.pkgIn.pkg addInteger.pkgOut[1].pkg = addBoolean.pkgIn.pkg unpackInt1.pkgOut[1].pkg = getInteger.pkgIn.pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.002009/0.1046, allocations: 1.223 MB / 480.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.1047, allocations: 8.031 kB / 480.7 MB, free: 5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.1048, allocations: 44.47 kB / 480.8 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004186/0.1053, allocations: 313.4 kB / 481.1 MB, free: 4.609 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.04e-05/0.1054, allocations: 59.27 kB / 481.1 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.292e-05/0.1054, allocations: 40.36 kB / 481.2 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.1072, allocations: 1.239 MB / 482.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.1073, allocations: 0 / 482.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.349e-05/0.1073, allocations: 16 kB / 482.4 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.1073, allocations: 11.94 kB / 482.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004643/0.1078, allocations: 250.4 kB / 482.7 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.1089, allocations: 0.8325 MB / 483.5 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.1101, allocations: 0.9924 MB / 484.5 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005913/0.1107, allocations: 427.7 kB / 484.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.1108, allocations: 36.64 kB / 485 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001306/0.111, allocations: 99.42 kB / 485.1 MB, free: 404 kB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 3.907e-06/0.111, allocations: 4 kB / 485.1 MB, free: 400 kB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.001434/0.1124, allocations: 0.7825 MB / 485.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001655/0.1126, allocations: 208.8 kB / 486.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002173/0.1128, allocations: 207.2 kB / 486.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.697e-05/0.1129, allocations: 41.7 kB / 486.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.776e-05/0.113, allocations: 133.8 kB / 486.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.484e-05/0.1131, allocations: 59.66 kB / 486.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.1132, allocations: 134.7 kB / 486.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1134, allocations: 354.8 kB / 487 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.1136, allocations: 97.94 kB / 487.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005174/0.1141, allocations: 0.6104 MB / 487.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008637/0.115, allocations: 0.7872 MB / 488.5 MB, free: 12.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-05/0.115, allocations: 8 kB / 488.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001102/0.1161, allocations: 0.6651 MB / 489.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.1162, allocations: 12 kB / 489.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.703e-05/0.1162, allocations: 20 kB / 489.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.363e-05/0.1162, allocations: 24.75 kB / 489.2 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004252/0.1167, allocations: 155.7 kB / 489.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.101e-05/0.1167, allocations: 39.8 kB / 489.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.1171, allocations: 71.52 kB / 489.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.058e-05/0.1171, allocations: 48 kB / 489.5 MB, free: 11.36 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * Number of states: 0 () * Number of discrete variables: 63 ($whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,sample4.u,integerExpression1.y,integerExpression2.y,integerExpression.y,getBoolean.y_int[1],getBoolean.y[1],getBoolean.pkgIn.autoPkgBitSize,getBoolean.pkgIn.userPkgBitSize,sample4.y,addBoolean.u_int[1],addBoolean.u[1],addBoolean.pkgOut[1].autoPkgBitSize,addBoolean.pkgOut[1].userPkgBitSize,addBoolean.pkgIn.autoPkgBitSize,addBoolean.pkgIn.userPkgBitSize,sample3.y,sample2.y,sample1.y,unpackInt1.y,unpackInt1.pkgOut[1].autoPkgBitSize,unpackInt1.pkgOut[1].userPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.userPkgBitSize,getInteger.y[1],getInteger.pkgOut[1].autoPkgBitSize,getInteger.pkgOut[1].userPkgBitSize,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,packInt1.u,packInt1.pkgOut[1].autoPkgBitSize,packInt1.pkgOut[1].userPkgBitSize,packInt1.pkgIn.autoPkgBitSize,packInt1.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 (89): * Single equations (assignments): 89 * 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.0003007/0.1174, allocations: 261.6 kB / 489.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008964/0.1183, allocations: 0.5398 MB / 490.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.1194, allocations: 0.6035 MB / 490.9 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.1194, allocations: 8 kB / 490.9 MB, free: 9.941 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.1194, allocations: 3.938 kB / 490.9 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.1195, allocations: 7.984 kB / 490.9 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004351/0.1199, allocations: 412.8 kB / 491.3 MB, free: 9.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.138e-05/0.1199, allocations: 4 kB / 491.3 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004081/0.1203, allocations: 123.8 kB / 491.4 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.327e-06/0.1204, allocations: 4 kB / 491.4 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.774e-05/0.1204, allocations: 19.98 kB / 491.5 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.476e-06/0.1204, allocations: 4 kB / 491.5 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.1204, allocations: 19.81 kB / 491.5 MB, free: 9.305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.1215, allocations: 0.6689 MB / 492.2 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.163e-05/0.1216, allocations: 120.5 kB / 492.3 MB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.173e-05/0.1217, allocations: 20 kB / 492.3 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.1218, allocations: 23.98 kB / 492.3 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.527e-05/0.1219, allocations: 19.86 kB / 492.3 MB, free: 8.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-05/0.122, allocations: 20 kB / 492.4 MB, free: 8.383 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000105/0.1221, allocations: 132.1 kB / 492.5 MB, free: 8.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1221, allocations: 0 / 492.5 MB, free: 8.254 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006173/0.1227, allocations: 115.9 kB / 492.6 MB, free: 8.141 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 62 ($whenCondition1,sample4.u,booleanPulse.pulseStart,integerExpression1.y,integerExpression2.y,integerExpression.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],packInt1.pkgIn.userPkgBitSize,packInt1.pkgIn.autoPkgBitSize,packInt1.pkgOut[1].userPkgBitSize,packInt1.pkgOut[1].autoPkgBitSize,packInt1.u,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.pkgOut[1].userPkgBitSize,getInteger.pkgOut[1].autoPkgBitSize,getInteger.y[1],unpackInt1.pkgIn.userPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,unpackInt1.pkgOut[1].userPkgBitSize,unpackInt1.pkgOut[1].autoPkgBitSize,unpackInt1.y,sample1.y,sample2.y,sample3.y,addBoolean.pkgIn.userPkgBitSize,addBoolean.pkgIn.autoPkgBitSize,addBoolean.pkgOut[1].userPkgBitSize,addBoolean.pkgOut[1].autoPkgBitSize,addBoolean.u[1],addBoolean.u_int[1],sample4.y,getBoolean.pkgIn.userPkgBitSize,getBoolean.pkgIn.autoPkgBitSize,getBoolean.y[1],getBoolean.y_int[1]) * 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 (81): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 1 * 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.0004887/0.1232, allocations: 257.5 kB / 492.8 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008198/0.124, allocations: 0.5185 MB / 493.4 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.124, allocations: 0 / 493.4 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.309e-05/0.1241, allocations: 32.05 kB / 493.4 MB, free: 7.352 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.1257, allocations: 1.267 MB / 494.7 MB, free: 6.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001427/0.1271, allocations: 0.8633 MB / 495.5 MB, free: 5.129 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/0.1276, allocations: 0.8481 MB / 496.4 MB, free: 4.254 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.42e-05/0.1277, allocations: 43.42 kB / 496.4 MB, free: 4.211 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1277, allocations: 0 / 496.4 MB, free: 4.211 MB / 366.1 MB Notification: Performance of Templates: time 0.009422/0.1371, allocations: 5.867 MB / 0.4905 GB, free: 14.36 MB / 382.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackager.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.TestSerialPackagerCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerFunctions.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.TestSerialPackagerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestSerialPackagerFunctions.cpp:297: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.TestSerialPackagerCalcHelperMain.o] Error 1