Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 108.2 kB / 16.45 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 185 kB / 17.38 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.23/1.23, allocations: 222.9 MB / 241.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.0526/0.0526, allocations: 12.05 MB / 303.3 MB, free: 3.07 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 63.89 kB / 420.1 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08893/0.09004, allocations: 52.3 MB / 472.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003263/0.09335, allocations: 2.262 MB / 474.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003028/0.09367, allocations: 167.5 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.235e-05/0.09375, allocations: 0 / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.09392, allocations: 19.86 kB / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.09411, allocations: 43.81 kB / 474.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001842/0.0943, allocations: 50.95 kB / 474.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000146/0.09445, allocations: 87.75 kB / 475 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.09457, allocations: 20.2 kB / 475 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.025e-05/0.09463, allocations: 31.86 kB / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.442e-05/0.09469, allocations: 35.78 kB / 475.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.204e-05/0.09472, allocations: 8 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001821/0.0949, allocations: 135.9 kB / 475.2 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.72e-05/0.09494, allocations: 15.92 kB / 475.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.494e-05/0.095, allocations: 31.8 kB / 475.3 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002497/0.09525, allocations: 147.4 kB / 475.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.09527, allocations: 0 / 475.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.09528, allocations: 4 kB / 475.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.09528, allocations: 0 / 475.4 MB, free: 9.793 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004925/0.09578, allocations: 446.4 kB / 475.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.09582, allocations: 8.031 kB / 475.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.623e-05/0.09587, allocations: 12.89 kB / 475.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000237/0.09611, allocations: 200.2 kB / 476.1 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.09614, allocations: 8.375 kB / 476.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.09616, allocations: 8.375 kB / 476.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003059/0.09648, allocations: 153.5 kB / 476.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.09649, allocations: 192 / 476.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.712e-05/0.09652, allocations: 11.94 kB / 476.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.09653, allocations: 0 / 476.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.562e-05/0.09661, allocations: 27.98 kB / 476.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003741/0.09699, allocations: 301.6 kB / 476.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001869/0.09718, allocations: 150.3 kB / 476.7 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.637e-05/0.09726, allocations: 37.78 kB / 476.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.09729, allocations: 11.92 kB / 476.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.09733, allocations: 42.5 kB / 476.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.09733, allocations: 0 / 476.8 MB, free: 8.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003219/0.09766, allocations: 165 kB / 477 MB, free: 8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/0.09781, allocations: 128.5 kB / 477.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.09793, allocations: 134.1 kB / 477.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.09795, allocations: 25.7 kB / 477.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.253e-05/0.09801, allocations: 104.1 kB / 477.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.471e-05/0.09803, allocations: 15.89 kB / 477.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.262e-05/0.09807, allocations: 25.7 kB / 477.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.656e-05/0.09818, allocations: 318.8 kB / 477.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.743e-05/0.09822, allocations: 15.98 kB / 477.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.466e-05/0.09828, allocations: 57.95 kB / 477.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.09841, allocations: 188.6 kB / 477.9 MB, free: 6.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.09842, allocations: 0 / 477.9 MB, free: 6.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000181/0.09861, allocations: 156.9 kB / 478.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/0.09865, allocations: 59.41 kB / 478.2 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.09867, allocations: 7.984 kB / 478.2 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.09869, allocations: 0 / 478.2 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.64e-05/0.09874, allocations: 11.94 kB / 478.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.09875, allocations: 0 / 478.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.731e-05/0.09879, allocations: 7.953 kB / 478.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.19e-05/0.09881, allocations: 4 kB / 478.2 MB, free: 6.598 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 (synchronizeRealtime.initialized,keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001155/0.09893, allocations: 189.4 kB / 478.4 MB, free: 6.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.09903, allocations: 57.59 kB / 478.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.533e-05/0.09908, allocations: 16.3 kB / 478.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.09908, allocations: 0 / 478.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.09909, allocations: 320 / 478.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.0991, allocations: 4 kB / 478.4 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001552/0.09926, allocations: 185.6 kB / 478.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.09927, allocations: 0 / 478.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.38e-05/0.09929, allocations: 8 kB / 478.6 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.0993, allocations: 4 kB / 478.6 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.09932, allocations: 7.938 kB / 478.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.09933, allocations: 0 / 478.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.09933, allocations: 0 / 478.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002281/0.09956, allocations: 255.6 kB / 478.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.752e-05/0.09961, allocations: 89 kB / 479 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.09964, allocations: 8 kB / 479 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.154e-05/0.09969, allocations: 7.984 kB / 479 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.558e-05/0.09972, allocations: 4 kB / 479 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.09974, allocations: 4 kB / 479 MB, free: 5.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.168e-05/0.0998, allocations: 101.9 kB / 479.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09981, allocations: 0 / 479.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002572/0.1001, allocations: 24 kB / 479.1 MB, free: 5.527 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006477/0.1007, allocations: 299.9 kB / 479.4 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002519/0.101, allocations: 170.7 kB / 479.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.101, allocations: 0 / 479.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.738e-05/0.1011, allocations: 122.8 kB / 479.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.1014, allocations: 30.59 kB / 479.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000418/0.1018, allocations: 189.9 kB / 479.9 MB, free: 4.727 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.1021, allocations: 0.7083 MB / 480.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.094e-05/0.1022, allocations: 8.656 kB / 480.6 MB, free: 3.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.193e-05/0.1022, allocations: 19.38 kB / 480.7 MB, free: 3.965 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1022, allocations: 0 / 480.7 MB, free: 3.965 MB / 350.1 MB Notification: Performance of Templates: time 0.004207/0.1064, allocations: 1.652 MB / 482.3 MB, free: 2.324 MB / 350.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1)