Running command: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") Notification: Performance of loadModel(Modelica_DeviceDrivers): time 2.149/2.149, allocations: 237.8 MB / 250.4 MB, free: 8.621 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.256e-05/3.269e-05, allocations: 4 kB / 306.6 MB, free: 10.96 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09539/0.09544, allocations: 53.27 MB / 359.9 MB, free: 5.605 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3519/0.4474, allocations: 81.41 MB / 441.3 MB, free: 9.387 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/0.4477, allocations: 76.55 kB / 441.4 MB, free: 9.312 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006532/0.4542, allocations: 1.718 MB / 443.1 MB, free: 7.625 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4543, allocations: 0 / 443.1 MB, free: 7.625 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.4543, allocations: 4 kB / 443.1 MB, free: 7.621 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004395/0.4547, allocations: 421.7 kB / 443.5 MB, free: 7.152 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.4548, allocations: 8.031 kB / 443.5 MB, free: 7.145 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.347e-05/0.4549, allocations: 11.81 kB / 443.5 MB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.4551, allocations: 194.9 kB / 443.7 MB, free: 6.902 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.4552, allocations: 8 kB / 443.7 MB, free: 6.895 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.176e-05/0.4552, allocations: 12 kB / 443.7 MB, free: 6.883 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005203/0.4557, allocations: 255 kB / 444 MB, free: 6.609 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.4558, allocations: 0 / 444 MB, free: 6.609 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.845e-05/0.4558, allocations: 8 kB / 444 MB, free: 6.602 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.598e-05/0.4558, allocations: 8 kB / 444 MB, free: 6.594 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.456, allocations: 67.81 kB / 444 MB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004458/0.4565, allocations: 289.8 kB / 444.3 MB, free: 6.191 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002505/0.4567, allocations: 131 kB / 444.5 MB, free: 6.047 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/0.4569, allocations: 73.81 kB / 444.5 MB, free: 5.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.143e-05/0.4569, allocations: 0 / 444.5 MB, free: 5.969 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.457, allocations: 42.59 kB / 444.6 MB, free: 5.918 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 2.4e-06/0.457, allocations: 0 / 444.6 MB, free: 5.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004236/0.4574, allocations: 193 kB / 444.8 MB, free: 5.711 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.4575, allocations: 140.5 kB / 444.9 MB, free: 5.543 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001257/0.4577, allocations: 120.8 kB / 445 MB, free: 5.418 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.4577, allocations: 25.7 kB / 445 MB, free: 5.387 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.909e-05/0.4578, allocations: 92.42 kB / 445.1 MB, free: 5.289 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.4578, allocations: 19.83 kB / 445.1 MB, free: 5.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.233e-05/0.4579, allocations: 4 kB / 445.2 MB, free: 5.266 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.458, allocations: 322.8 kB / 445.5 MB, free: 4.941 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-05/0.4581, allocations: 28.41 kB / 445.5 MB, free: 4.914 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001784/0.4583, allocations: 155.9 kB / 445.6 MB, free: 4.703 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.4585, allocations: 103.3 kB / 445.7 MB, free: 4.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.815e-06/0.4585, allocations: 0 / 445.7 MB, free: 4.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004607/0.4589, allocations: 244.6 kB / 446 MB, free: 4.332 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.578e-05/0.459, allocations: 59.5 kB / 446 MB, free: 4.262 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.459, allocations: 8.562 kB / 446.1 MB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.4591, allocations: 12 kB / 446.1 MB, free: 4.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.4592, allocations: 27.92 kB / 446.1 MB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.4592, allocations: 8 kB / 446.1 MB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.4593, allocations: 11.91 kB / 446.1 MB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.4594, allocations: 12 kB / 446.1 MB, free: 4.184 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 19 (synchronizeRealtime.initialized,keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],keyboardInput.KeyCode[6],keyboardInput.KeyCode[5],keyboardInput.KeyCode[4],keyboardInput.KeyCode[3],keyboardInput.KeyCode[2],keyboardInput.KeyCode[1],keyboardInput.keySpace,keyboardInput.keyReturn,keyboardInput.keyLeft,keyboardInput.keyRight,keyboardInput.keyDown,keyboardInput.keyUp,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 2 * 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.0001798/0.4596, allocations: 195.3 kB / 446.3 MB, free: 3.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002294/0.4598, allocations: 117.5 kB / 446.4 MB, free: 3.859 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.537e-05/0.4599, allocations: 12.75 kB / 446.4 MB, free: 3.848 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/0.4599, allocations: 15.98 kB / 446.5 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.602e-06/0.4599, allocations: 0 / 446.5 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.536e-06/0.4599, allocations: 0 / 446.5 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002508/0.4602, allocations: 197.4 kB / 446.6 MB, free: 3.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.064e-06/0.4602, allocations: 4 kB / 446.7 MB, free: 3.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.333e-05/0.4603, allocations: 0 / 446.7 MB, free: 3.586 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.361e-06/0.4603, allocations: 4 kB / 446.7 MB, free: 3.582 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.4603, allocations: 3.984 kB / 446.7 MB, free: 3.578 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.4603, allocations: 0 / 446.7 MB, free: 3.578 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.231e-06/0.4603, allocations: 7.984 kB / 446.7 MB, free: 3.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004499/0.4608, allocations: 343 kB / 447 MB, free: 3.203 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.536e-05/0.4609, allocations: 88.92 kB / 447.1 MB, free: 3.098 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.59e-05/0.4609, allocations: 0 / 447.1 MB, free: 3.098 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.688e-05/0.461, allocations: 8 kB / 447.1 MB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.4611, allocations: 11.97 kB / 447.1 MB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.4611, allocations: 0 / 447.1 MB, free: 3.078 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.544e-05/0.4612, allocations: 100.4 kB / 447.2 MB, free: 2.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.19e-07/0.4612, allocations: 0 / 447.2 MB, free: 2.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004306/0.4616, allocations: 35.94 kB / 447.2 MB, free: 2.945 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 19 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardInput.keyUp,keyboardInput.keyDown,keyboardInput.keyRight,keyboardInput.keyLeft,keyboardInput.keyReturn,keyboardInput.keySpace,keyboardInput.KeyCode[1],keyboardInput.KeyCode[2],keyboardInput.KeyCode[3],keyboardInput.KeyCode[4],keyboardInput.KeyCode[5],keyboardInput.KeyCode[6],keyboardInput.KeyCode[7],keyboardInput.KeyCode[8],keyboardInput.KeyCode[9],keyboardInput.KeyCode[10]) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0007314/0.4624, allocations: 279 kB / 447.5 MB, free: 2.738 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000374/0.4628, allocations: 234.5 kB / 447.7 MB, free: 2.484 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.792e-06/0.4628, allocations: 0 / 447.7 MB, free: 2.484 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.4629, allocations: 122.8 kB / 447.9 MB, free: 2.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003406/0.4633, allocations: 78.69 kB / 447.9 MB, free: 2.266 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.4647, allocations: 391.3 kB / 448.3 MB, free: 1.855 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.4651, allocations: 0.7197 MB / 449 MB, free: 1.109 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.856e-05/0.4652, allocations: 16.88 kB / 449.1 MB, free: 1.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.791e-05/0.4653, allocations: 15.62 kB / 449.1 MB, free: 1.074 MB / 362.7 MB Notification: Performance of SimCode: time 1.492e-06/0.4653, allocations: 0 / 449.1 MB, free: 1.074 MB / 362.7 MB Notification: Performance of Templates: time 0.00523/0.4705, allocations: 1.446 MB / 450.5 MB, free: 15.62 MB / 378.7 MB