Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") Notification: Performance of loadModel(Modelica_DeviceDrivers): time 2.094/2.094, allocations: 237.8 MB / 250.4 MB, free: 8.641 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.732e-05/3.782e-05, allocations: 6.188 kB / 306.6 MB, free: 10.97 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09573, allocations: 53.27 MB / 359.9 MB, free: 5.621 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3797/0.4755, allocations: 81.2 MB / 441.1 MB, free: 9.625 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004017/0.476, allocations: 68.47 kB / 441.1 MB, free: 9.559 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01493/0.4909, allocations: 1.875 MB / 443 MB, free: 7.707 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.316e-06/0.491, allocations: 0 / 443 MB, free: 7.707 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.4911, allocations: 4.766 kB / 443 MB, free: 7.703 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008001/0.4919, allocations: 358.4 kB / 443.4 MB, free: 7.309 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.11e-05/0.492, allocations: 8.031 kB / 443.4 MB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.82e-05/0.4921, allocations: 7.906 kB / 443.4 MB, free: 7.293 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004831/0.4926, allocations: 187.6 kB / 443.6 MB, free: 7.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.135e-05/0.4927, allocations: 7.984 kB / 443.6 MB, free: 7.062 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4e-05/0.4927, allocations: 4 kB / 443.6 MB, free: 7.059 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003427/0.4931, allocations: 80.2 kB / 443.7 MB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.4931, allocations: 0 / 443.7 MB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.4932, allocations: 0 / 443.7 MB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.563e-05/0.4932, allocations: 4 kB / 443.7 MB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001478/0.4934, allocations: 19.94 kB / 443.7 MB, free: 6.941 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008546/0.4943, allocations: 289.8 kB / 444 MB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/0.4946, allocations: 65.28 kB / 444 MB, free: 6.523 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001173/0.4948, allocations: 26.36 kB / 444.1 MB, free: 6.492 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.312e-05/0.4948, allocations: 0 / 444.1 MB, free: 6.492 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003483/0.4952, allocations: 89.11 kB / 444.1 MB, free: 6.387 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 4.359e-06/0.4952, allocations: 0 / 444.1 MB, free: 6.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004626/0.4957, allocations: 69.62 kB / 444.2 MB, free: 6.312 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.4959, allocations: 81.09 kB / 444.3 MB, free: 6.215 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002594/0.4962, allocations: 119.2 kB / 444.4 MB, free: 6.094 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.995e-05/0.4962, allocations: 33.62 kB / 444.4 MB, free: 6.055 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.4964, allocations: 96.12 kB / 444.5 MB, free: 5.957 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.686e-05/0.4965, allocations: 15.72 kB / 444.5 MB, free: 5.941 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.642e-05/0.4965, allocations: 4 kB / 444.6 MB, free: 5.938 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002783/0.4968, allocations: 322.9 kB / 444.9 MB, free: 5.613 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.4969, allocations: 16 kB / 444.9 MB, free: 5.598 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.4972, allocations: 57.73 kB / 444.9 MB, free: 5.523 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001373/0.4973, allocations: 24.84 kB / 445 MB, free: 5.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.28e-06/0.4974, allocations: 3.953 kB / 445 MB, free: 5.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004772/0.4979, allocations: 93.58 kB / 445.1 MB, free: 5.398 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.4979, allocations: 4 kB / 445.1 MB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.883e-05/0.498, allocations: 8 kB / 445.1 MB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.498, allocations: 0 / 445.1 MB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.4982, allocations: 11.94 kB / 445.1 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.4982, allocations: 4 kB / 445.1 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.4984, allocations: 3.938 kB / 445.1 MB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.4984, allocations: 8.125 kB / 445.1 MB, free: 5.359 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.keyState,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001945/0.4986, allocations: 113 kB / 445.2 MB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.726e-05/0.4987, allocations: 11.86 kB / 445.2 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.542e-05/0.4988, allocations: 12.03 kB / 445.2 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.98e-06/0.4989, allocations: 0 / 445.2 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.213e-06/0.4989, allocations: 48 / 445.2 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.296e-05/0.4989, allocations: 3.984 kB / 445.2 MB, free: 5.215 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000412/0.4993, allocations: 181.6 kB / 445.4 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.4994, allocations: 0 / 445.4 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.935e-05/0.4995, allocations: 7.953 kB / 445.4 MB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.328e-05/0.4995, allocations: 8 kB / 445.4 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.4996, allocations: 0 / 445.4 MB, free: 4.973 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.389e-05/0.4996, allocations: 3.938 kB / 445.4 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.756e-06/0.4996, allocations: 0 / 445.4 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005832/0.5003, allocations: 140.5 kB / 445.6 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.5004, allocations: 89.03 kB / 445.7 MB, free: 4.699 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.391e-05/0.5005, allocations: 4.062 kB / 445.7 MB, free: 4.695 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.829e-05/0.5006, allocations: 4 kB / 445.7 MB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.625e-05/0.5007, allocations: 7.984 kB / 445.7 MB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.5008, allocations: 4 kB / 445.7 MB, free: 4.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001765/0.501, allocations: 99.77 kB / 445.8 MB, free: 4.582 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.362e-06/0.501, allocations: 0 / 445.8 MB, free: 4.582 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008694/0.5019, allocations: 31.98 kB / 445.8 MB, free: 4.551 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (synchronizeRealtime.dummyState) * Number of discrete variables: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.001733/0.5036, allocations: 317.1 kB / 446.1 MB, free: 4.293 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000395/0.5041, allocations: 77.61 kB / 446.2 MB, free: 4.211 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.645e-06/0.5041, allocations: 0 / 446.2 MB, free: 4.211 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000173/0.5043, allocations: 41.7 kB / 446.2 MB, free: 4.164 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.5046, allocations: 12.27 kB / 446.2 MB, free: 4.152 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.5068, allocations: 334.5 kB / 446.6 MB, free: 3.801 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005028/0.5073, allocations: 0.6927 MB / 447.3 MB, free: 3.082 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001153/0.5074, allocations: 20.58 kB / 447.3 MB, free: 3.059 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.035e-05/0.5075, allocations: 11.44 kB / 447.3 MB, free: 3.047 MB / 362.7 MB Notification: Performance of SimCode: time 2.29e-06/0.5075, allocations: 4 kB / 447.3 MB, free: 3.043 MB / 362.7 MB Notification: Performance of Templates: time 0.01006/0.5176, allocations: 1.409 MB / 448.7 MB, free: 1.648 MB / 362.7 MB