Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_ExternalTrigger") Notification: Performance of loadModel(Modelica_DeviceDrivers): time 2.086/2.086, allocations: 237.8 MB / 250.4 MB, free: 8.656 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.241e-05/3.249e-05, allocations: 4 kB / 306.6 MB, free: 10.94 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1246, allocations: 53.27 MB / 359.9 MB, free: 5.586 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3953/0.52, allocations: 83.47 MB / 443.3 MB, free: 7.309 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/0.5202, allocations: 72.48 kB / 443.4 MB, free: 7.238 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02944/0.5497, allocations: 7.312 MB / 450.7 MB, free: 15.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.153e-06/0.5497, allocations: 4 kB / 450.7 MB, free: 15.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.486e-05/0.5498, allocations: 8 kB / 450.7 MB, free: 15.91 MB / 378.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getInteger.pkgIn.pkg = unpackInt1.pkgOut[1].pkg unpackInt.pkgOut[1].pkg = unpackInt1.pkgIn.pkg resetPointer.pkgOut[1].pkg = unpackInt.pkgIn.pkg addInteger.pkgOut[1].pkg = resetPointer.pkgIn.pkg addInteger.pkgIn.pkg = packInt1.pkgOut[1].pkg packInt.pkgOut[1].pkg = packInt1.pkgIn.pkg packInt.pkgIn.pkg = packager.pkgOut.pkg unpackInt1.pkgOut[1].pkg = unpackInt1.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 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.0016/0.5514, allocations: 0.9376 MB / 451.7 MB, free: 14.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.5514, allocations: 8.031 kB / 451.7 MB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.5515, allocations: 47.47 kB / 451.7 MB, free: 14.83 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000548/0.5521, allocations: 299.3 kB / 452 MB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.86e-05/0.5522, allocations: 20.78 kB / 452 MB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.701e-05/0.5523, allocations: 35.98 kB / 452.1 MB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008725/0.5532, allocations: 397.4 kB / 452.5 MB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.5532, allocations: 0 / 452.5 MB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.871e-05/0.5532, allocations: 12 kB / 452.5 MB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.5533, allocations: 8 kB / 452.5 MB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005311/0.5538, allocations: 219.6 kB / 452.7 MB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.5556, allocations: 1.062 MB / 453.8 MB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005524/0.5562, allocations: 246.5 kB / 454 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002371/0.5564, allocations: 103.7 kB / 454.1 MB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.5565, allocations: 4 kB / 454.1 MB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003677/0.5569, allocations: 199.4 kB / 454.3 MB, free: 12.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 3.233e-06/0.5569, allocations: 0 / 454.3 MB, free: 12.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008578/0.5577, allocations: 338.1 kB / 454.6 MB, free: 11.72 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.5579, allocations: 152.4 kB / 454.8 MB, free: 11.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/0.5581, allocations: 174 kB / 455 MB, free: 11.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.955e-05/0.5582, allocations: 41.69 kB / 455 MB, free: 11.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.5584, allocations: 196.3 kB / 455.2 MB, free: 11.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.5585, allocations: 67.23 kB / 455.3 MB, free: 11.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.5585, allocations: 8 kB / 455.3 MB, free: 11.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.5588, allocations: 334.8 kB / 455.6 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.559, allocations: 76.86 kB / 455.7 MB, free: 10.63 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003175/0.5593, allocations: 218.9 kB / 455.9 MB, free: 10.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002899/0.5596, allocations: 123.9 kB / 456 MB, free: 10.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.145e-06/0.5596, allocations: 0 / 456 MB, free: 10.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001007/0.5607, allocations: 333.2 kB / 456.3 MB, free: 9.898 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.5607, allocations: 11.94 kB / 456.3 MB, free: 9.887 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.212e-05/0.5608, allocations: 11.94 kB / 456.3 MB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.476e-05/0.5608, allocations: 8 kB / 456.4 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004603/0.5613, allocations: 51.86 kB / 456.4 MB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.772e-05/0.5613, allocations: 15.92 kB / 456.4 MB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003768/0.5617, allocations: 23.81 kB / 456.4 MB, free: 9.777 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.37e-05/0.5618, allocations: 24.31 kB / 456.5 MB, free: 9.754 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: 46 ($PRE.unpackInt1.dummy,unpackInt1.dummy,$PRE.unpackInt1.y,unpackInt1.y,$PRE.unpackInt1.pkgOut[1].dummy,unpackInt1.pkgOut[1].dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.unpackInt.dummy,unpackInt.dummy,$PRE.unpackInt.y,unpackInt.y,$PRE.unpackInt.pkgOut[1].dummy,unpackInt.pkgOut[1].dummy,$PRE.resetPointer.dummy,resetPointer.dummy,$PRE.resetPointer.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,$PRE.packInt1.pkgOut[1].dummy,packInt1.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.packInt.pkgOut[1].dummy,packInt.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,addInteger.u[1],iExp2.y,$whenCondition1,$PRE.iExp.y,iExp.y,packager.trigger,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,packager.internalTrigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0002959/0.5621, allocations: 158.2 kB / 456.6 MB, free: 9.594 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.172e-05/0.5623, allocations: 15.88 kB / 456.6 MB, free: 9.578 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.392e-05/0.5624, allocations: 24.69 kB / 456.7 MB, free: 9.555 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.5624, allocations: 4 kB / 456.7 MB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/0.5624, allocations: 4 kB / 456.7 MB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.986e-06/0.5625, allocations: 4 kB / 456.7 MB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.5642, allocations: 0.7465 MB / 457.4 MB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.073e-06/0.5642, allocations: 0 / 457.4 MB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.165e-05/0.5643, allocations: 4 kB / 457.4 MB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.364e-06/0.5643, allocations: 4 kB / 457.4 MB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.988e-05/0.5644, allocations: 7.984 kB / 457.4 MB, free: 8.727 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.249e-06/0.5644, allocations: 4 kB / 457.4 MB, free: 8.723 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-05/0.5644, allocations: 3.938 kB / 457.4 MB, free: 8.719 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008809/0.5653, allocations: 496.8 kB / 457.9 MB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.539e-05/0.5654, allocations: 92.86 kB / 458 MB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.944e-05/0.5654, allocations: 11.98 kB / 458 MB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.5656, allocations: 8 kB / 458 MB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.542e-05/0.5657, allocations: 19.97 kB / 458.1 MB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.175e-05/0.5657, allocations: 11.98 kB / 458.1 MB, free: 8.031 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001145/0.5659, allocations: 113.7 kB / 458.2 MB, free: 7.922 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.73e-07/0.5659, allocations: 0 / 458.2 MB, free: 7.922 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006745/0.5666, allocations: 123.5 kB / 458.3 MB, free: 7.801 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: 29 (packager.internalTrigger,unpackInt.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,unpackInt1.pkgIn.autoPkgBitSize,packager.trigger,$whenCondition1,iExp.y,packager.pkgOut.dummy,packInt.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],iExp2.y,packInt1.pkgOut[1].dummy,resetPointer.pkgOut[1].dummy,resetPointer.dummy,unpackInt.pkgOut[1].dummy,unpackInt.y,unpackInt.dummy,getInteger.y[1],getInteger.dummy,unpackInt1.pkgOut[1].dummy,unpackInt1.y,unpackInt1.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,packInt.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,packInt1.pkgIn.autoPkgBitSize,resetPointer.pkgIn.autoPkgBitSize) * Number of discrete states: 1 (iExp.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 20 * 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.0004944/0.5671, allocations: 234.3 kB / 458.5 MB, free: 7.578 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005825/0.5677, allocations: 231.7 kB / 458.8 MB, free: 7.352 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.018e-06/0.5677, allocations: 0 / 458.8 MB, free: 7.352 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002632/0.568, allocations: 111.9 kB / 458.9 MB, free: 7.242 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004308/0.5684, allocations: 55.33 kB / 458.9 MB, free: 7.191 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.5695, allocations: 373.5 kB / 459.3 MB, free: 6.801 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005144/0.57, allocations: 0.7872 MB / 460.1 MB, free: 5.988 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001261/0.5702, allocations: 26.34 kB / 460.1 MB, free: 5.961 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.082e-05/0.5702, allocations: 27.42 kB / 460.1 MB, free: 5.934 MB / 378.7 MB Notification: Performance of SimCode: time 1.51e-06/0.5702, allocations: 0 / 460.1 MB, free: 5.934 MB / 378.7 MB Notification: Performance of Templates: time 0.01206/0.5823, allocations: 3.491 MB / 463.6 MB, free: 2.469 MB / 378.7 MB