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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 117.3 kB / 17.85 MB, free: 5.074 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.001364/0.001364, allocations: 190.1 kB / 20.79 MB, free: 2.141 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.453/1.453, allocations: 225.6 MB / 249.2 MB, free: 3.613 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.08966/0.08966, allocations: 12.17 MB / 316.2 MB, free: 244 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.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 67.89 kB / 440.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2473, allocations: 55.16 MB / 495.9 MB, free: 23.99 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.003529/0.2508, allocations: 2.678 MB / 498.5 MB, free: 21.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005204/0.2513, allocations: 356.3 kB / 498.9 MB, free: 21.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.339e-05/0.2514, allocations: 7.125 kB / 498.9 MB, free: 21.61 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.2516, allocations: 48.45 kB / 498.9 MB, free: 21.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.2517, allocations: 51.77 kB / 499 MB, free: 21.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001904/0.2519, allocations: 91.52 kB / 499.1 MB, free: 21.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001732/0.2521, allocations: 151.1 kB / 499.2 MB, free: 21.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.2522, allocations: 61.73 kB / 499.3 MB, free: 21.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.793e-05/0.2523, allocations: 63.34 kB / 499.3 MB, free: 21.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.713e-05/0.2524, allocations: 65.16 kB / 499.4 MB, free: 21.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.2524, allocations: 12.28 kB / 499.4 MB, free: 21.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001788/0.2526, allocations: 146.7 kB / 499.6 MB, free: 21.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.779e-05/0.2527, allocations: 44.06 kB / 499.6 MB, free: 21.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.765e-05/0.2527, allocations: 73.92 kB / 499.7 MB, free: 21.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002682/0.253, allocations: 230.9 kB / 499.9 MB, free: 20.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.253, allocations: 0 / 499.9 MB, free: 20.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.253, allocations: 0 / 499.9 MB, free: 20.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.253, allocations: 0 / 499.9 MB, free: 20.93 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004872/0.2535, allocations: 458.8 kB / 0.4886 GB, free: 20.47 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.2535, allocations: 9.938 kB / 0.4886 GB, free: 20.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.586e-05/0.2536, allocations: 16.31 kB / 0.4887 GB, free: 20.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00019/0.2538, allocations: 234.1 kB / 0.4889 GB, free: 20.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.2538, allocations: 10.48 kB / 0.4889 GB, free: 20.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.316e-05/0.2538, allocations: 11.38 kB / 0.4889 GB, free: 20.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002424/0.2541, allocations: 158.7 kB / 0.489 GB, free: 20.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.649e-06/0.2541, allocations: 192 / 0.489 GB, free: 20.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.2541, allocations: 9.438 kB / 0.4891 GB, free: 20.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.2541, allocations: 6.953 kB / 0.4891 GB, free: 20.08 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/0.2542, allocations: 74.45 kB / 0.4891 GB, free: 20.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005026/0.2547, allocations: 479 kB / 0.4896 GB, free: 19.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.2549, allocations: 76.41 kB / 0.4897 GB, free: 19.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.97e-05/0.2549, allocations: 35.67 kB / 0.4897 GB, free: 19.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.2549, allocations: 1.406 kB / 0.4897 GB, free: 19.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001558/0.2551, allocations: 96.19 kB / 0.4898 GB, free: 19.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.2551, allocations: 1.094 kB / 0.4898 GB, free: 19.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002688/0.2554, allocations: 125.3 kB / 0.4899 GB, free: 19.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.677e-05/0.2554, allocations: 87 kB / 0.49 GB, free: 19.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.2555, allocations: 162.7 kB / 0.4902 GB, free: 19.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.2555, allocations: 29.7 kB / 0.4902 GB, free: 19.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.342e-05/0.2556, allocations: 125.3 kB / 0.4903 GB, free: 18.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.494e-05/0.2556, allocations: 31.52 kB / 0.4903 GB, free: 18.92 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.682e-05/0.2557, allocations: 31.95 kB / 0.4904 GB, free: 18.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.506e-05/0.2557, allocations: 325.7 kB / 0.4907 GB, free: 18.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.545e-05/0.2558, allocations: 25.16 kB / 0.4907 GB, free: 18.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.844e-05/0.2558, allocations: 58.02 kB / 0.4907 GB, free: 18.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.2559, allocations: 87.05 kB / 0.4908 GB, free: 18.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2559, allocations: 3.938 kB / 0.4908 GB, free: 18.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000173/0.2561, allocations: 123.8 kB / 0.491 GB, free: 18.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.2561, allocations: 5.062 kB / 0.491 GB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.2561, allocations: 1.469 kB / 0.491 GB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.2561, allocations: 2.25 kB / 0.491 GB, free: 18.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.627e-05/0.2562, allocations: 16.56 kB / 0.491 GB, free: 18.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.2562, allocations: 5.391 kB / 0.491 GB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.79e-05/0.2562, allocations: 10.69 kB / 0.491 GB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.2563, allocations: 4.188 kB / 0.491 GB, free: 18.34 MB / 366.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 7.901e-05/0.2563, allocations: 136.5 kB / 0.4911 GB, free: 18.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.2564, allocations: 16.42 kB / 0.4911 GB, free: 18.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/0.2564, allocations: 12.19 kB / 0.4912 GB, free: 18.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2564, allocations: 2.25 kB / 0.4912 GB, free: 18.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2564, allocations: 4 kB / 0.4912 GB, free: 18.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.2564, allocations: 1.125 kB / 0.4912 GB, free: 18.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.2566, allocations: 231.3 kB / 0.4914 GB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.2566, allocations: 2.094 kB / 0.4914 GB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.34e-05/0.2566, allocations: 7.656 kB / 0.4914 GB, free: 17.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2566, allocations: 1 kB / 0.4914 GB, free: 17.93 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.2566, allocations: 1.188 kB / 0.4914 GB, free: 17.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.2566, allocations: 5.188 kB / 0.4914 GB, free: 17.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2566, allocations: 3.984 kB / 0.4914 GB, free: 17.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001661/0.2568, allocations: 148.4 kB / 0.4915 GB, free: 17.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.283e-05/0.2568, allocations: 88.34 kB / 0.4916 GB, free: 17.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.2568, allocations: 1.25 kB / 0.4916 GB, free: 17.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.728e-05/0.2568, allocations: 0.9688 kB / 0.4916 GB, free: 17.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.314e-05/0.2569, allocations: 12.33 kB / 0.4916 GB, free: 17.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.2569, allocations: 2.25 kB / 0.4916 GB, free: 17.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.458e-05/0.257, allocations: 118.3 kB / 0.4918 GB, free: 17.6 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.257, allocations: 0 / 0.4918 GB, free: 17.6 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.2572, allocations: 42.45 kB / 0.4918 GB, free: 17.58 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: 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.0005743/0.2578, allocations: 242.4 kB / 0.492 GB, free: 17.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000205/0.258, allocations: 100.6 kB / 0.4921 GB, free: 17.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.258, allocations: 0 / 0.4921 GB, free: 17.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.695e-05/0.2581, allocations: 63.75 kB / 0.4922 GB, free: 17.32 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.2582, allocations: 7.938 kB / 0.4922 GB, free: 17.31 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004512/0.2587, allocations: 310.1 kB / 0.4925 GB, free: 17.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001464/0.2588, allocations: 0.7263 MB / 0.4932 GB, free: 16.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.102e-05/0.2589, allocations: 18.28 kB / 0.4932 GB, free: 16.33 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2589, allocations: 1.156 kB / 0.4932 GB, free: 16.33 MB / 366.1 MB Notification: Performance of Templates: time 0.00429/0.2631, allocations: 2.636 MB / 0.4958 GB, free: 14.96 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.614282168913633] Failed to read output from testmodel.py, exit status != 0: 0.2710100649856031 0.280297348 0.02529011 Calling exit ...