Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 117.3 kB / 17.85 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 189.2 kB / 20.79 MB, free: 2.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 225.6 MB / 249.2 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.06041/0.06041, allocations: 12.16 MB / 316.2 MB, free: 280 kB / 238.1 MB " [Timeout remaining time 180] 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.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002211/0.002211, allocations: 71.88 kB / 440.7 MB, free: 6.176 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2815, allocations: 55.16 MB / 495.9 MB, free: 24.03 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.00382/0.2853, allocations: 2.66 MB / 498.5 MB, free: 21.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004705/0.2858, allocations: 314.8 kB / 498.8 MB, free: 21.7 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.039e-05/0.2859, allocations: 6.438 kB / 498.8 MB, free: 21.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002211/0.2861, allocations: 44.52 kB / 498.9 MB, free: 21.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.351e-05/0.2862, allocations: 22.73 kB / 498.9 MB, free: 21.64 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002173/0.2864, allocations: 89.42 kB / 499 MB, free: 21.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001827/0.2866, allocations: 151.3 kB / 499.1 MB, free: 21.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001622/0.2867, allocations: 61.41 kB / 499.2 MB, free: 21.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.043e-05/0.2868, allocations: 60.05 kB / 499.2 MB, free: 21.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.871e-05/0.2869, allocations: 64.95 kB / 499.3 MB, free: 21.37 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.2869, allocations: 15.53 kB / 499.3 MB, free: 21.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.882e-05/0.287, allocations: 30.06 kB / 499.4 MB, free: 21.36 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.816e-05/0.287, allocations: 48.81 kB / 499.4 MB, free: 21.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.36e-05/0.2871, allocations: 84.36 kB / 499.5 MB, free: 21.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.2874, allocations: 196 kB / 499.7 MB, free: 21.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2874, allocations: 3.938 kB / 499.7 MB, free: 21.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2874, allocations: 1.219 kB / 499.7 MB, free: 21.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.2874, allocations: 7.875 kB / 499.7 MB, free: 21.12 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005038/0.2879, allocations: 470.4 kB / 0.4884 GB, free: 20.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.2879, allocations: 9.781 kB / 0.4884 GB, free: 20.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.162e-05/0.288, allocations: 24.33 kB / 0.4885 GB, free: 20.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.2882, allocations: 230.8 kB / 0.4887 GB, free: 20.4 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.2882, allocations: 11.16 kB / 0.4887 GB, free: 20.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.238e-05/0.2882, allocations: 15.84 kB / 0.4887 GB, free: 20.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002661/0.2885, allocations: 184.7 kB / 0.4889 GB, free: 20.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2885, allocations: 192 / 0.4889 GB, free: 20.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.2885, allocations: 9.25 kB / 0.4889 GB, free: 20.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.2885, allocations: 3.094 kB / 0.4889 GB, free: 20.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.2887, allocations: 118.3 kB / 0.489 GB, free: 20.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005921/0.2893, allocations: 488.2 kB / 0.4895 GB, free: 19.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.2894, allocations: 116 kB / 0.4896 GB, free: 19.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.418e-05/0.2895, allocations: 59.45 kB / 0.4896 GB, free: 19.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.2895, allocations: 10.11 kB / 0.4896 GB, free: 19.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001947/0.2897, allocations: 132.6 kB / 0.4898 GB, free: 19.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.352e-06/0.2897, allocations: 0 / 0.4898 GB, free: 19.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003724/0.2901, allocations: 245.5 kB / 0.49 GB, free: 19.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.031e-05/0.2902, allocations: 92.56 kB / 0.4901 GB, free: 19.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.2903, allocations: 141.4 kB / 0.4902 GB, free: 19.18 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.2903, allocations: 43.31 kB / 0.4903 GB, free: 19.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.378e-05/0.2904, allocations: 120.9 kB / 0.4904 GB, free: 19.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.206e-05/0.2904, allocations: 69.83 kB / 0.4905 GB, free: 18.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-05/0.2905, allocations: 55.22 kB / 0.4905 GB, free: 18.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.498e-05/0.2905, allocations: 331.3 kB / 0.4908 GB, free: 18.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.2906, allocations: 73.8 kB / 0.4909 GB, free: 18.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.2908, allocations: 165.5 kB / 0.4911 GB, free: 18.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.291, allocations: 246.7 kB / 0.4913 GB, free: 18.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.291, allocations: 1.125 kB / 0.4913 GB, free: 18.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000355/0.2914, allocations: 278.2 kB / 0.4916 GB, free: 18.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2914, allocations: 9.875 kB / 0.4916 GB, free: 18.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.2914, allocations: 3.281 kB / 0.4916 GB, free: 18.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.2914, allocations: 4.531 kB / 0.4916 GB, free: 18.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.2916, allocations: 34.77 kB / 0.4916 GB, free: 18.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.2916, allocations: 4.688 kB / 0.4916 GB, free: 18.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.042e-05/0.2916, allocations: 21.47 kB / 0.4916 GB, free: 18.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.2917, allocations: 10.5 kB / 0.4916 GB, free: 18.02 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 (keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],$PRE.keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.KeyCode[6],$PRE.keyboardInput.KeyCode[6],keyboardInput.keySpace,keyboardInput.KeyCode[5],$PRE.keyboardInput.KeyCode[5],keyboardInput.keyReturn,keyboardInput.KeyCode[4],$PRE.keyboardInput.KeyCode[4],keyboardInput.keyLeft,keyboardInput.KeyCode[3],$PRE.keyboardInput.KeyCode[3],keyboardInput.keyRight,keyboardInput.KeyCode[2],$PRE.keyboardInput.KeyCode[2],keyboardInput.keyDown,keyboardInput.KeyCode[1],$PRE.keyboardInput.KeyCode[1],keyboardInput.keyUp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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.0001227/0.2918, allocations: 178.7 kB / 0.4918 GB, free: 17.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.248e-05/0.2918, allocations: 10.83 kB / 0.4918 GB, free: 17.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.724e-05/0.2918, allocations: 19.53 kB / 0.4918 GB, free: 17.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2919, allocations: 5.797 kB / 0.4918 GB, free: 17.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.2919, allocations: 1.062 kB / 0.4918 GB, free: 17.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.2919, allocations: 5.109 kB / 0.4918 GB, free: 17.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.292, allocations: 248.5 kB / 0.4921 GB, free: 17.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.292, allocations: 1.25 kB / 0.4921 GB, free: 17.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.488e-05/0.2921, allocations: 8.578 kB / 0.4921 GB, free: 17.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.2921, allocations: 5.125 kB / 0.4921 GB, free: 17.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.2921, allocations: 1.156 kB / 0.4921 GB, free: 17.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2921, allocations: 1.156 kB / 0.4921 GB, free: 17.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.2921, allocations: 1.125 kB / 0.4921 GB, free: 17.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002523/0.2924, allocations: 224.2 kB / 0.4923 GB, free: 17.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.57e-05/0.2924, allocations: 100.8 kB / 0.4924 GB, free: 17.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.2924, allocations: 2.219 kB / 0.4924 GB, free: 17.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.662e-05/0.2924, allocations: 5.188 kB / 0.4924 GB, free: 17.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.775e-05/0.2925, allocations: 13.48 kB / 0.4924 GB, free: 17.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.2925, allocations: 3.188 kB / 0.4924 GB, free: 17.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.649e-05/0.2925, allocations: 113.7 kB / 0.4925 GB, free: 17.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2925, allocations: 0 / 0.4925 GB, free: 17.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000462/0.293, allocations: 47.64 kB / 0.4926 GB, free: 17.2 MB / 366.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: 17 ($whenCondition1,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: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.0005917/0.2936, allocations: 214.5 kB / 0.4928 GB, free: 17.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003199/0.2939, allocations: 209.5 kB / 0.493 GB, free: 16.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.2939, allocations: 3.938 kB / 0.493 GB, free: 16.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.509e-05/0.294, allocations: 87.58 kB / 0.4931 GB, free: 16.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002495/0.2943, allocations: 12.38 kB / 0.4931 GB, free: 16.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000582/0.2948, allocations: 380.5 kB / 0.4935 GB, free: 16.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001908/0.295, allocations: 0.7425 MB / 0.4942 GB, free: 15.87 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.362e-05/0.2951, allocations: 16.53 kB / 0.4942 GB, free: 15.86 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2951, allocations: 0 / 0.4942 GB, free: 15.86 MB / 366.1 MB Notification: Performance of Templates: time 0.004385/0.2994, allocations: 2.301 MB / 0.4964 GB, free: 14.66 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.322098729084246] Failed to read output from testmodel.py, exit status != 0: 0.3076007799245417 0.31658052400000003 0.027298140000000002 Calling exit ...