Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory") Notification: Performance of loadModel(Modelica_DeviceDrivers): time 2.104/2.104, allocations: 237.8 MB / 250.4 MB, free: 8.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.156e-05/3.175e-05, allocations: 0 / 306.6 MB, free: 10.96 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09427/0.09433, allocations: 53.27 MB / 359.9 MB, free: 5.613 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3704/0.4648, allocations: 84.54 MB / 444.4 MB, free: 6.281 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.4651, allocations: 69.31 kB / 444.5 MB, free: 6.215 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03115/0.4963, allocations: 7.186 MB / 451.7 MB, free: 15.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.221e-06/0.4963, allocations: 4 kB / 451.7 MB, free: 15.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.997e-05/0.4964, allocations: 12 kB / 451.7 MB, free: 15.02 MB / 378.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getInteger.pkgIn.pkg = getReal.pkgOut[1].pkg getReal.pkgIn.pkg = sharedMemoryRead.pkgOut.pkg addInteger.pkgOut[1].pkg = sharedMemoryWrite.pkgIn.pkg addInteger.pkgIn.pkg = addReal.pkgOut[1].pkg addReal.pkgIn.pkg = packager.pkgOut.pkg getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001527/0.4979, allocations: 0.7912 MB / 452.5 MB, free: 14.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.498, allocations: 12.03 kB / 452.5 MB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.4981, allocations: 35.53 kB / 452.5 MB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005675/0.4987, allocations: 291.8 kB / 452.8 MB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.826e-05/0.4987, allocations: 24.77 kB / 452.8 MB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.572e-05/0.4988, allocations: 28 kB / 452.9 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007902/0.4996, allocations: 355.8 kB / 453.2 MB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.4996, allocations: 0 / 453.2 MB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.021e-05/0.4997, allocations: 19.97 kB / 453.2 MB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.4997, allocations: 8 kB / 453.2 MB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005025/0.5002, allocations: 172.5 kB / 453.4 MB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002045/0.5023, allocations: 1.158 MB / 454.6 MB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006005/0.503, allocations: 242.7 kB / 454.8 MB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002479/0.5032, allocations: 119.5 kB / 454.9 MB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.346e-05/0.5033, allocations: 11.98 kB / 454.9 MB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004119/0.5037, allocations: 199.8 kB / 455.1 MB, free: 11.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 6.521e-06/0.5038, allocations: 0 / 455.1 MB, free: 11.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009462/0.5047, allocations: 361.5 kB / 455.5 MB, free: 10.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.5049, allocations: 148.5 kB / 455.6 MB, free: 10.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003087/0.5052, allocations: 190.9 kB / 455.8 MB, free: 10.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.5052, allocations: 37.7 kB / 455.8 MB, free: 10.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.5054, allocations: 168.3 kB / 456 MB, free: 10.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.5055, allocations: 75.09 kB / 456.1 MB, free: 10.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.74e-05/0.5056, allocations: 7.984 kB / 456.1 MB, free: 10.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.5058, allocations: 334.8 kB / 456.4 MB, free: 9.953 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002262/0.506, allocations: 88.84 kB / 456.5 MB, free: 9.867 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003659/0.5064, allocations: 238.9 kB / 456.7 MB, free: 9.566 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003165/0.5067, allocations: 127.9 kB / 456.9 MB, free: 9.441 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.85e-06/0.5067, allocations: 0 / 456.9 MB, free: 9.441 MB / 378.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008689/0.5076, allocations: 356.9 kB / 457.2 MB, free: 9.086 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.5077, allocations: 4.594 kB / 457.2 MB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/0.5077, allocations: 8 kB / 457.2 MB, free: 9.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.056e-05/0.5077, allocations: 12 kB / 457.2 MB, free: 9.062 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003194/0.5081, allocations: 59.84 kB / 457.3 MB, free: 9.004 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.458e-05/0.5081, allocations: 11.95 kB / 457.3 MB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002664/0.5084, allocations: 35.62 kB / 457.3 MB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.96e-05/0.5084, allocations: 19.98 kB / 457.4 MB, free: 8.938 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 42 ($PRE.sharedMemoryWrite.dummy,sharedMemoryWrite.dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,addInteger.u[1],$whenCondition2,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,$PRE.sharedMemoryRead.pkgOut.dummy,sharedMemoryRead.pkgOut.dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.getReal.dummy,getReal.dummy,$PRE.getReal.y[3],getReal.y[3],$PRE.getReal.y[2],getReal.y[2],$PRE.getReal.y[1],getReal.y[1],$PRE.getReal.pkgOut[1].dummy,getReal.pkgOut[1].dummy,$whenCondition1,getReal.pkgOut[1].trigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,sharedMemoryWrite.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002207/0.5087, allocations: 158.2 kB / 457.5 MB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.836e-05/0.5088, allocations: 27.72 kB / 457.5 MB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005018/0.5093, allocations: 187.1 kB / 457.7 MB, free: 8.555 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.664e-06/0.5093, allocations: 4 kB / 457.7 MB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.063e-06/0.5093, allocations: 96 / 457.7 MB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.5094, allocations: 11.89 kB / 457.7 MB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.5109, allocations: 0.8058 MB / 458.5 MB, free: 7.676 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.5109, allocations: 4 kB / 458.5 MB, free: 7.672 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.751e-05/0.511, allocations: 11.94 kB / 458.6 MB, free: 7.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.151e-05/0.5111, allocations: 4.25 kB / 458.6 MB, free: 7.656 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.296e-05/0.5111, allocations: 15.94 kB / 458.6 MB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.356e-06/0.5111, allocations: 7.938 kB / 458.6 MB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.916e-06/0.5111, allocations: 4 kB / 458.6 MB, free: 7.629 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009665/0.5121, allocations: 0.5541 MB / 459.1 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.762e-05/0.5122, allocations: 96.77 kB / 459.2 MB, free: 6.922 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.286e-05/0.5123, allocations: 11.98 kB / 459.2 MB, free: 6.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.5125, allocations: 7.984 kB / 459.3 MB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.13e-05/0.5126, allocations: 19.92 kB / 459.3 MB, free: 6.883 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.638e-05/0.5127, allocations: 11.98 kB / 459.3 MB, free: 6.871 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001468/0.5128, allocations: 127.8 kB / 459.4 MB, free: 6.746 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.38e-07/0.5128, allocations: 0 / 459.4 MB, free: 6.746 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000793/0.5136, allocations: 123.8 kB / 459.5 MB, free: 6.625 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 28 (getReal.pkgOut[1].trigger,$whenCondition1,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,sharedMemoryRead.pkgOut.dummy,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],sharedMemoryWrite.bufferSize,sharedMemoryWrite.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009998/0.5147, allocations: 348.9 kB / 459.9 MB, free: 6.336 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007207/0.5154, allocations: 259.9 kB / 460.1 MB, free: 6.086 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.5154, allocations: 0 / 460.1 MB, free: 6.086 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002951/0.5157, allocations: 117.1 kB / 460.2 MB, free: 5.973 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005239/0.5163, allocations: 50.84 kB / 460.3 MB, free: 5.926 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.5177, allocations: 415 kB / 460.7 MB, free: 5.496 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005387/0.5182, allocations: 0.7906 MB / 461.5 MB, free: 4.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001906/0.5184, allocations: 34.05 kB / 461.5 MB, free: 4.645 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.472e-05/0.5185, allocations: 23.44 kB / 461.5 MB, free: 4.621 MB / 378.7 MB Notification: Performance of SimCode: time 1.853e-06/0.5185, allocations: 4 kB / 461.5 MB, free: 4.617 MB / 378.7 MB Notification: Performance of Templates: time 0.01201/0.5306, allocations: 3.679 MB / 465.2 MB, free: 0.9609 MB / 378.7 MB