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.001251/0.001251, allocations: 103.2 kB / 16.31 MB, free: 6.391 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.001344/0.001344, allocations: 188.5 kB / 17.24 MB, free: 5.922 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.379/1.379, allocations: 222.9 MB / 240.9 MB, free: 15.29 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.06203/0.06203, allocations: 12.04 MB / 303.1 MB, free: 3.152 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001425, allocations: 72.11 kB / 366.5 MB, free: 3.766 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2639, allocations: 52.32 MB / 418.8 MB, free: 21.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004545/0.2685, allocations: 2.666 MB / 421.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006983/0.2692, allocations: 354.9 kB / 421.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002149/0.2695, allocations: 7.938 kB / 421.8 MB, free: 18.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003101/0.2698, allocations: 47.64 kB / 421.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000209/0.2701, allocations: 55.75 kB / 421.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002486/0.2703, allocations: 87.64 kB / 422 MB, free: 17.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001995/0.2705, allocations: 152 kB / 422.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.2707, allocations: 81.5 kB / 422.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.884e-05/0.2708, allocations: 55.78 kB / 422.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.522e-05/0.2709, allocations: 63.7 kB / 422.3 MB, free: 17.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.03e-05/0.2709, allocations: 12 kB / 422.3 MB, free: 17.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000193/0.2711, allocations: 143.9 kB / 422.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.172e-05/0.2712, allocations: 43.84 kB / 422.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.564e-05/0.2713, allocations: 63.55 kB / 422.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002844/0.2716, allocations: 221.3 kB / 422.8 MB, free: 17.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2716, allocations: 0 / 422.8 MB, free: 17.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2716, allocations: 0 / 422.8 MB, free: 17.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.2716, allocations: 4 kB / 422.8 MB, free: 17.1 MB / 302.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.0005413/0.2722, allocations: 451.1 kB / 423.3 MB, free: 16.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.2722, allocations: 12.03 kB / 423.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.246e-05/0.2723, allocations: 16.75 kB / 423.3 MB, free: 16.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000219/0.2725, allocations: 232 kB / 423.5 MB, free: 16.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/0.2725, allocations: 12.59 kB / 423.5 MB, free: 16.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.2725, allocations: 12.38 kB / 423.5 MB, free: 16.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002622/0.2728, allocations: 160.8 kB / 423.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.2728, allocations: 4.188 kB / 423.7 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/0.2729, allocations: 7.938 kB / 423.7 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.2729, allocations: 4 kB / 423.7 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001494/0.273, allocations: 84.12 kB / 423.8 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006384/0.2737, allocations: 465.6 kB / 424.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.2738, allocations: 81.12 kB / 424.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.126e-05/0.2739, allocations: 41.8 kB / 424.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.2739, allocations: 3.938 kB / 424.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.2742, allocations: 97.03 kB / 424.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.2742, allocations: 0 / 424.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.000317/0.2745, allocations: 137.3 kB / 424.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/0.2745, allocations: 81.11 kB / 424.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.2747, allocations: 155.7 kB / 424.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.2747, allocations: 33.7 kB / 424.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.707e-05/0.2748, allocations: 124.2 kB / 425 MB, free: 14.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.197e-05/0.2748, allocations: 27.64 kB / 425 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/0.2748, allocations: 33.61 kB / 425 MB, free: 14.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.629e-05/0.2749, allocations: 330.8 kB / 425.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.047e-05/0.2749, allocations: 23.98 kB / 425.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.459e-05/0.275, allocations: 55.42 kB / 425.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.751e-05/0.2751, allocations: 87.34 kB / 425.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2751, allocations: 192 / 425.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001674/0.2753, allocations: 125.5 kB / 425.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2753, allocations: 6.188 kB / 425.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.2753, allocations: 4 kB / 425.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.2754, allocations: 0 / 425.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.508e-05/0.2754, allocations: 11.98 kB / 425.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.2755, allocations: 8.062 kB / 425.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.165e-05/0.2755, allocations: 11.84 kB / 425.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.2755, allocations: 4 kB / 425.7 MB, free: 13.93 MB / 302.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 9.222e-05/0.2756, allocations: 145.6 kB / 425.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.966e-05/0.2756, allocations: 7.906 kB / 425.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.415e-05/0.2757, allocations: 12.72 kB / 425.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2757, allocations: 4 kB / 425.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.2757, allocations: 0 / 425.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2757, allocations: 0 / 425.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001537/0.2759, allocations: 241.5 kB / 426.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.2759, allocations: 0 / 426.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.176e-05/0.2759, allocations: 4 kB / 426.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2759, allocations: 0 / 426.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.2759, allocations: 0 / 426.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.2759, allocations: 4 kB / 426.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2759, allocations: 3.984 kB / 426.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000157/0.2761, allocations: 141.6 kB / 426.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.474e-05/0.2761, allocations: 85.02 kB / 426.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.2762, allocations: 0 / 426.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.7e-05/0.2762, allocations: 8 kB / 426.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.211e-05/0.2762, allocations: 7.984 kB / 426.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.423e-06/0.2763, allocations: 0 / 426.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.545e-05/0.2763, allocations: 119.2 kB / 426.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2763, allocations: 0 / 426.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002573/0.2766, allocations: 35.84 kB / 426.5 MB, free: 13.02 MB / 302.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.000471/0.2771, allocations: 243.4 kB / 426.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002194/0.2773, allocations: 113.5 kB / 426.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2773, allocations: 0 / 426.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.512e-05/0.2774, allocations: 65.66 kB / 426.9 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001916/0.2776, allocations: 8 kB / 426.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006202/0.2782, allocations: 280 kB / 427.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.2785, allocations: 0.7275 MB / 427.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.306e-05/0.2785, allocations: 16.41 kB / 427.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.389e-05/0.2786, allocations: 19.36 kB / 428 MB, free: 11.53 MB / 302.1 MB Notification: Performance of SimCode: time 1.91e-07/0.2786, allocations: 0 / 428 MB, free: 11.53 MB / 302.1 MB Notification: Performance of Templates: time 0.004891/0.2835, allocations: 1.403 MB / 429.4 MB, free: 10.13 MB / 302.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)