Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger") Notification: Performance of loadModel(Modelica_DeviceDrivers): time 2.112/2.112, allocations: 237.8 MB / 250.4 MB, free: 8.484 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.256e-05/4.267e-05, allocations: 7.984 kB / 306.6 MB, free: 10.93 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09738/0.09745, allocations: 53.27 MB / 359.9 MB, free: 5.582 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3773/0.4748, allocations: 85.13 MB / 445 MB, free: 5.629 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.4751, allocations: 68.59 kB / 445.1 MB, free: 5.562 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03265/0.5078, allocations: 7.475 MB / 452.5 MB, free: 14.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.959e-06/0.5078, allocations: 0 / 452.5 MB, free: 14.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.894e-05/0.5079, allocations: 8 kB / 452.6 MB, free: 14.08 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001612/0.5095, allocations: 0.816 MB / 453.4 MB, free: 13.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.5096, allocations: 12.03 kB / 453.4 MB, free: 13.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.5097, allocations: 31.62 kB / 453.4 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005806/0.5103, allocations: 307.2 kB / 453.7 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.378e-05/0.5104, allocations: 24.77 kB / 453.7 MB, free: 12.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.048e-05/0.5105, allocations: 36 kB / 453.8 MB, free: 12.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000865/0.5114, allocations: 380.9 kB / 454.1 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.5114, allocations: 0 / 454.1 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.956e-05/0.5115, allocations: 16 kB / 454.2 MB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.5115, allocations: 8 kB / 454.2 MB, free: 12.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000533/0.512, allocations: 196.9 kB / 454.4 MB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.5143, allocations: 1.284 MB / 455.6 MB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005569/0.5149, allocations: 257.5 kB / 455.9 MB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002695/0.5152, allocations: 124.6 kB / 456 MB, free: 10.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.478e-05/0.5152, allocations: 15.92 kB / 456 MB, free: 10.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004517/0.5157, allocations: 220.5 kB / 456.2 MB, free: 10.08 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 4.117e-06/0.5157, allocations: 0 / 456.2 MB, free: 10.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.0009948/0.5167, allocations: 365.8 kB / 456.6 MB, free: 9.715 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.5169, allocations: 170.2 kB / 456.8 MB, free: 9.512 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003217/0.5172, allocations: 210.1 kB / 457 MB, free: 9.297 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.081e-05/0.5173, allocations: 41.7 kB / 457 MB, free: 9.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.5175, allocations: 172.6 kB / 457.2 MB, free: 9.078 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.5176, allocations: 86.98 kB / 457.3 MB, free: 8.992 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-05/0.5177, allocations: 8 kB / 457.3 MB, free: 8.984 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.5179, allocations: 346.8 kB / 457.6 MB, free: 8.637 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.5182, allocations: 93.11 kB / 457.7 MB, free: 8.547 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000409/0.5186, allocations: 261.1 kB / 458 MB, free: 8.223 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000348/0.519, allocations: 136.4 kB / 458.1 MB, free: 8.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.006e-05/0.519, allocations: 7.953 kB / 458.1 MB, free: 8.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009823/0.52, allocations: 397.5 kB / 458.5 MB, free: 7.688 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.52, allocations: 8 kB / 458.5 MB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.52, allocations: 4 kB / 458.5 MB, free: 7.676 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.787e-05/0.5201, allocations: 8 kB / 458.5 MB, free: 7.668 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.5204, allocations: 67.83 kB / 458.6 MB, free: 7.602 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.094e-05/0.5205, allocations: 11.94 kB / 458.6 MB, free: 7.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.5207, allocations: 36.22 kB / 458.6 MB, free: 7.555 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.349e-05/0.5208, allocations: 27.98 kB / 458.7 MB, free: 7.527 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 50 ($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,$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],sharedMemoryRead.internalTrigger,sharedMemoryWrite.internalTrigger,enable.y,$whenCondition2,$whenCondition1,addInteger.pkgOut[1].trigger,sharedMemoryRead.trigger,$PRE.zeroCrossing1.u_pos,zeroCrossing1.u_pos,$PRE.zeroCrossing1.disable,zeroCrossing1.disable,$PRE.zeroCrossing1.enable,zeroCrossing1.enable,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 (58): * Single equations (assignments): 58 * 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.0002319/0.521, allocations: 160.1 kB / 458.8 MB, free: 7.367 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.474e-05/0.5211, allocations: 27.67 kB / 458.8 MB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007202/0.5219, allocations: 281.9 kB / 459.1 MB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.359e-06/0.5219, allocations: 8 kB / 459.1 MB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.5219, allocations: 4 kB / 459.1 MB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.5219, allocations: 3.984 kB / 459.1 MB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001482/0.5234, allocations: 0.7363 MB / 459.9 MB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.616e-06/0.5235, allocations: 0 / 459.9 MB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.865e-05/0.5236, allocations: 12.03 kB / 459.9 MB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.077e-05/0.5236, allocations: 7.938 kB / 459.9 MB, free: 6.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.808e-05/0.5236, allocations: 11.98 kB / 459.9 MB, free: 6.219 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-05/0.5237, allocations: 16.06 kB / 459.9 MB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.621e-06/0.5237, allocations: 7.938 kB / 459.9 MB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009917/0.5247, allocations: 0.5205 MB / 460.4 MB, free: 5.625 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.06e-05/0.5248, allocations: 104.7 kB / 460.5 MB, free: 5.504 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.851e-05/0.5249, allocations: 11.98 kB / 460.6 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.5251, allocations: 7.984 kB / 460.6 MB, free: 5.484 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.795e-05/0.5252, allocations: 23.94 kB / 460.6 MB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-05/0.5252, allocations: 15.98 kB / 460.6 MB, free: 5.445 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001496/0.5254, allocations: 124 kB / 460.7 MB, free: 5.324 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.58e-07/0.5254, allocations: 4 kB / 460.7 MB, free: 5.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007851/0.5262, allocations: 135.8 kB / 460.9 MB, free: 5.188 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 30 (sharedMemoryWrite.internalTrigger,sharedMemoryRead.internalTrigger,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,sharedMemoryRead.trigger,addInteger.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],sharedMemoryWrite.bufferSize,sharedMemoryWrite.dummy,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,sharedMemoryRead.pkgOut.dummy,zeroCrossing1.u_pos,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (zeroCrossing1.u_pos) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 12 * 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.0009266/0.5271, allocations: 342.1 kB / 461.2 MB, free: 4.902 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007891/0.528, allocations: 283.5 kB / 461.5 MB, free: 4.625 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.809e-06/0.528, allocations: 0 / 461.5 MB, free: 4.625 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003203/0.5283, allocations: 131.6 kB / 461.6 MB, free: 4.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004559/0.5288, allocations: 47.39 kB / 461.6 MB, free: 4.457 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.5299, allocations: 426.2 kB / 462.1 MB, free: 4.008 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005523/0.5305, allocations: 0.7837 MB / 462.8 MB, free: 3.199 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001931/0.5307, allocations: 34.97 kB / 462.9 MB, free: 3.164 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.306e-05/0.5308, allocations: 31.42 kB / 462.9 MB, free: 3.133 MB / 378.7 MB Notification: Performance of SimCode: time 2.086e-06/0.5308, allocations: 4 kB / 462.9 MB, free: 3.129 MB / 378.7 MB Notification: Performance of Templates: time 0.01248/0.5433, allocations: 3.889 MB / 466.8 MB, free: 15.27 MB / 394.7 MB