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.004962/0.004962, allocations: 89 kB / 15.91 MB, free: 6.305 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.001235/0.001235, allocations: 197.2 kB / 16.83 MB, free: 6.238 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.242/1.242, allocations: 222.9 MB / 240.5 MB, free: 4.457 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.1629/0.1629, allocations: 12.02 MB / 302.7 MB, free: 1.062 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.91 kB / 365.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09455/0.09585, allocations: 52.31 MB / 418.1 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003522/0.09941, allocations: 2.291 MB / 420.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003319/0.09976, allocations: 183.5 kB / 420.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.405e-05/0.09984, allocations: 4 kB / 420.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.09998, allocations: 23.8 kB / 420.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001153/0.1001, allocations: 31.89 kB / 420.6 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001501/0.1003, allocations: 35.91 kB / 420.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.805e-05/0.1004, allocations: 79.77 kB / 420.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.391e-05/0.1005, allocations: 16.22 kB / 420.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.426e-05/0.1005, allocations: 31.86 kB / 420.8 MB, free: 2.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.045e-05/0.1006, allocations: 35.77 kB / 420.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.913e-05/0.1006, allocations: 4 kB / 420.8 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.1008, allocations: 127.9 kB / 420.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.059e-05/0.1008, allocations: 7.984 kB / 420.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.364e-05/0.1009, allocations: 35.73 kB / 421 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.1011, allocations: 131.7 kB / 421.1 MB, free: 2.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1011, allocations: 3.984 kB / 421.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.1011, allocations: 4 kB / 421.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.1011, allocations: 0 / 421.1 MB, free: 2.617 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.0004427/0.1015, allocations: 442.9 kB / 421.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.164e-05/0.1016, allocations: 8.031 kB / 421.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.413e-05/0.1016, allocations: 8.844 kB / 421.6 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.1018, allocations: 204.1 kB / 421.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.1019, allocations: 4.375 kB / 421.8 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.1019, allocations: 12.31 kB / 421.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.1022, allocations: 153.5 kB / 421.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.1022, allocations: 192 / 421.9 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.1022, allocations: 3.938 kB / 421.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-06/0.1022, allocations: 0 / 421.9 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.66e-05/0.1023, allocations: 27.98 kB / 422 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000367/0.1027, allocations: 313.6 kB / 422.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001955/0.1029, allocations: 150.3 kB / 422.4 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.125e-05/0.103, allocations: 41.72 kB / 422.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.103, allocations: 4 kB / 422.5 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.103, allocations: 34.56 kB / 422.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.103, allocations: 3.938 kB / 422.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003253/0.1034, allocations: 164.9 kB / 422.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.703e-05/0.1034, allocations: 136.5 kB / 422.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.1036, allocations: 134 kB / 422.9 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.1036, allocations: 25.7 kB / 422.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.831e-05/0.1037, allocations: 96.03 kB / 423 MB, free: 404 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.1037, allocations: 15.94 kB / 423.1 MB, free: 388 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.385e-05/0.1037, allocations: 25.7 kB / 423.1 MB, free: 356 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.521e-05/0.1038, allocations: 318.8 kB / 423.4 MB, free: 28 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.928e-05/0.1039, allocations: 11.98 kB / 423.4 MB, free: 16 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1557/0.2596, allocations: 54.33 kB / 423.5 MB, free: 42.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001431/0.2598, allocations: 184.9 kB / 423.6 MB, free: 42.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.2598, allocations: 0 / 423.6 MB, free: 42.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002117/0.26, allocations: 155.4 kB / 423.8 MB, free: 42.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.491e-05/0.26, allocations: 60.7 kB / 423.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.26, allocations: 4.188 kB / 423.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.2601, allocations: 2.375 kB / 423.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.821e-05/0.2601, allocations: 7.312 kB / 423.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.2601, allocations: 4.609 kB / 423.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.229e-05/0.2602, allocations: 12.48 kB / 423.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.2602, allocations: 8.406 kB / 423.9 MB, free: 42.12 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 9.303e-05/0.2603, allocations: 179.2 kB / 424.1 MB, free: 41.94 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.2604, allocations: 61.06 kB / 424.1 MB, free: 41.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.727e-05/0.2605, allocations: 11.88 kB / 424.1 MB, free: 41.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2605, allocations: 3.031 kB / 424.1 MB, free: 41.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.2605, allocations: 0.9688 kB / 424.1 MB, free: 41.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2605, allocations: 0 / 424.1 MB, free: 41.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.2607, allocations: 189.3 kB / 424.3 MB, free: 41.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2607, allocations: 0.9688 kB / 424.3 MB, free: 41.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.292e-05/0.2607, allocations: 8.047 kB / 424.3 MB, free: 41.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.2607, allocations: 3.844 kB / 424.3 MB, free: 41.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.2607, allocations: 1.344 kB / 424.3 MB, free: 41.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2607, allocations: 3.656 kB / 424.3 MB, free: 41.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2607, allocations: 1.188 kB / 424.3 MB, free: 41.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001951/0.2609, allocations: 260.7 kB / 424.6 MB, free: 41.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.217e-05/0.261, allocations: 85.27 kB / 424.7 MB, free: 41.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.196e-05/0.261, allocations: 6.031 kB / 424.7 MB, free: 41.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.951e-05/0.2611, allocations: 3.969 kB / 424.7 MB, free: 41.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.271e-05/0.2611, allocations: 3.094 kB / 424.7 MB, free: 41.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.2611, allocations: 12.59 kB / 424.7 MB, free: 41.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.414e-05/0.2611, allocations: 106.3 kB / 424.8 MB, free: 41.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2611, allocations: 0 / 424.8 MB, free: 41.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.2615, allocations: 31.61 kB / 424.8 MB, free: 41.34 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.0005364/0.262, allocations: 296.6 kB / 425.1 MB, free: 41.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001755/0.2622, allocations: 160.1 kB / 425.3 MB, free: 41.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2622, allocations: 0 / 425.3 MB, free: 41.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.017e-05/0.2623, allocations: 127.2 kB / 425.4 MB, free: 41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.2626, allocations: 33.62 kB / 425.4 MB, free: 41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003514/0.2629, allocations: 216.6 kB / 425.7 MB, free: 40.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.983e-05/0.263, allocations: 0.6928 MB / 426.3 MB, free: 40.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.2631, allocations: 20.38 kB / 426.4 MB, free: 40.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.051e-05/0.2632, allocations: 15.25 kB / 426.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of SimCode: time 1.322e-06/0.2632, allocations: 0.5625 kB / 426.4 MB, free: 40.14 MB / 350.1 MB Notification: Performance of Templates: time 0.003492/0.2667, allocations: 1.638 MB / 428 MB, free: 39.99 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)