Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") 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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006006/0.006006, allocations: 94.11 kB / 15.92 MB, free: 6.289 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.001355/0.001355, allocations: 192.1 kB / 16.83 MB, free: 6.207 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.436/1.436, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1841/0.1841, allocations: 12.01 MB / 302.7 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 63.84 kB / 365.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1151, allocations: 52.32 MB / 418.1 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004855/0.12, allocations: 2.683 MB / 420.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006406/0.1207, allocations: 370.9 kB / 421.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.316e-05/0.1208, allocations: 3.938 kB / 421.1 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002717/0.1211, allocations: 39.77 kB / 421.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.1213, allocations: 35.81 kB / 421.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002155/0.1215, allocations: 79.8 kB / 421.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001604/0.1217, allocations: 140 kB / 421.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.1219, allocations: 89.48 kB / 421.5 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.148e-05/0.1219, allocations: 51.78 kB / 421.6 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.902e-05/0.122, allocations: 63.64 kB / 421.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.449e-05/0.1221, allocations: 7.984 kB / 421.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001827/0.1223, allocations: 127.9 kB / 421.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.378e-05/0.1223, allocations: 35.84 kB / 421.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.963e-05/0.1224, allocations: 67.55 kB / 421.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.1227, allocations: 215.6 kB / 422.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.1227, allocations: 0 / 422.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1227, allocations: 4 kB / 422.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.1227, allocations: 0 / 422.1 MB, free: 1.676 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006034/0.1233, allocations: 455.1 kB / 422.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.1234, allocations: 8.031 kB / 422.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.628e-05/0.1234, allocations: 16.75 kB / 422.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002449/0.1237, allocations: 228 kB / 422.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.1237, allocations: 12.61 kB / 422.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.1238, allocations: 20.31 kB / 422.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002798/0.124, allocations: 160.8 kB / 423 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.1241, allocations: 192 / 423 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.1241, allocations: 11.92 kB / 423 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.1241, allocations: 4 kB / 423 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001527/0.1243, allocations: 80.14 kB / 423.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006517/0.1249, allocations: 477.5 kB / 423.5 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2209/0.3458, allocations: 71.78 kB / 423.6 MB, free: 41.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001556/0.346, allocations: 42.62 kB / 423.6 MB, free: 41.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.528e-05/0.3461, allocations: 2.375 kB / 423.6 MB, free: 41.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003466/0.3464, allocations: 91.39 kB / 423.7 MB, free: 41.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.765e-06/0.3465, allocations: 0 / 423.7 MB, free: 41.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004403/0.3469, allocations: 127.8 kB / 423.8 MB, free: 41.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.347, allocations: 81.59 kB / 423.9 MB, free: 41.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.3472, allocations: 164.4 kB / 424.1 MB, free: 41.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.639e-05/0.3472, allocations: 25.7 kB / 424.1 MB, free: 41.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.36e-05/0.3473, allocations: 132.5 kB / 424.2 MB, free: 41.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.3473, allocations: 25.09 kB / 424.3 MB, free: 41.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.466e-05/0.3474, allocations: 31.53 kB / 424.3 MB, free: 41.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.935e-05/0.3475, allocations: 325.5 kB / 424.6 MB, free: 41.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.799e-05/0.3476, allocations: 29.52 kB / 424.6 MB, free: 41.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.637e-05/0.3477, allocations: 60.3 kB / 424.7 MB, free: 41.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.3479, allocations: 81.28 kB / 424.8 MB, free: 41.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3479, allocations: 0.9688 kB / 424.8 MB, free: 41.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002682/0.3482, allocations: 121.5 kB / 424.9 MB, free: 41.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.3482, allocations: 7.219 kB / 424.9 MB, free: 41.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.3482, allocations: 1.969 kB / 424.9 MB, free: 41.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.3483, allocations: 1.281 kB / 424.9 MB, free: 41.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.3484, allocations: 21.03 kB / 424.9 MB, free: 41.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.3484, allocations: 6.375 kB / 424.9 MB, free: 41.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.724e-05/0.3485, allocations: 4.406 kB / 424.9 MB, free: 41.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.845e-05/0.3485, allocations: 5.375 kB / 425 MB, free: 41.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001379/0.3487, allocations: 139.6 kB / 425.1 MB, free: 41.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.3487, allocations: 13.52 kB / 425.1 MB, free: 41.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.643e-05/0.3488, allocations: 12.66 kB / 425.1 MB, free: 41.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.3488, allocations: 1.172 kB / 425.1 MB, free: 41.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.3488, allocations: 4.781 kB / 425.1 MB, free: 41.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3488, allocations: 0 / 425.1 MB, free: 41.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/0.3491, allocations: 243.6 kB / 425.4 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.3491, allocations: 0 / 425.4 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.897e-05/0.3491, allocations: 3.547 kB / 425.4 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3492, allocations: 3.594 kB / 425.4 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.282e-05/0.3492, allocations: 0.625 kB / 425.4 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.3492, allocations: 0 / 425.4 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3492, allocations: 5.516 kB / 425.4 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/0.3494, allocations: 138.7 kB / 425.5 MB, free: 40.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.923e-05/0.3495, allocations: 92.97 kB / 425.6 MB, free: 40.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.582e-05/0.3495, allocations: 0 / 425.6 MB, free: 40.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.215e-05/0.3496, allocations: 6.969 kB / 425.6 MB, free: 40.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.058e-05/0.3497, allocations: 8.844 kB / 425.6 MB, free: 40.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.3497, allocations: 4.375 kB / 425.6 MB, free: 40.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.449e-05/0.3498, allocations: 115.8 kB / 425.7 MB, free: 40.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3498, allocations: 0 / 425.7 MB, free: 40.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004244/0.3502, allocations: 44.06 kB / 425.8 MB, free: 40.55 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0007449/0.351, allocations: 239.6 kB / 426 MB, free: 40.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002684/0.3513, allocations: 98.69 kB / 426.1 MB, free: 40.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3513, allocations: 0 / 426.1 MB, free: 40.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.3514, allocations: 62.2 kB / 426.2 MB, free: 40.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.3517, allocations: 7.641 kB / 426.2 MB, free: 40.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006555/0.3523, allocations: 335.8 kB / 426.5 MB, free: 40.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001832/0.3525, allocations: 0.7319 MB / 427.2 MB, free: 39.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.191e-05/0.3526, allocations: 12.56 kB / 427.2 MB, free: 39.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.3527, allocations: 16.03 kB / 427.3 MB, free: 39.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3527, allocations: 2.75 kB / 427.3 MB, free: 39.48 MB / 350.1 MB Notification: Performance of Templates: time 0.005786/0.3585, allocations: 1.377 MB / 428.6 MB, free: 39.38 MB / 350.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)