Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.001265/0.001265, allocations: 108.6 kB / 20.38 MB, free: 1.547 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.001291/0.001291, allocations: 183.2 kB / 23.63 MB, free: 4.969 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.336/1.336, allocations: 225.6 MB / 252.3 MB, free: 13.02 MB / 206.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.05986/0.05986, allocations: 12.18 MB / 319.7 MB, free: 12.87 MB / 254.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.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 71.83 kB / 445.6 MB, free: 4.238 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1049, allocations: 55.2 MB / 0.4891 GB, free: 12.94 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.004228/0.1091, allocations: 2.349 MB / 0.4914 GB, free: 10.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002868/0.1094, allocations: 139.5 kB / 0.4915 GB, free: 10.45 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.653e-05/0.1095, allocations: 0 / 0.4915 GB, free: 10.45 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.1096, allocations: 27.8 kB / 0.4916 GB, free: 10.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.446e-05/0.1097, allocations: 3.938 kB / 0.4916 GB, free: 10.42 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.1099, allocations: 51.89 kB / 0.4916 GB, free: 10.37 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001635/0.1101, allocations: 91.75 kB / 0.4917 GB, free: 10.28 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.479e-05/0.1102, allocations: 8.234 kB / 0.4917 GB, free: 10.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.047e-05/0.1102, allocations: 27.92 kB / 0.4917 GB, free: 10.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.884e-05/0.1103, allocations: 43.78 kB / 0.4918 GB, free: 10.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.023e-05/0.1103, allocations: 4 kB / 0.4918 GB, free: 10.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.863e-05/0.1103, allocations: 23.98 kB / 0.4918 GB, free: 10.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.204e-05/0.1104, allocations: 19.92 kB / 0.4918 GB, free: 10.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.952e-05/0.1105, allocations: 43.73 kB / 0.4919 GB, free: 10.11 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001995/0.1107, allocations: 115.4 kB / 0.492 GB, free: 9.992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1107, allocations: 4 kB / 0.492 GB, free: 9.988 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1107, allocations: 4 kB / 0.492 GB, free: 9.984 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1107, allocations: 0 / 0.492 GB, free: 9.984 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000459/0.1111, allocations: 377.2 kB / 0.4923 GB, free: 9.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.974e-05/0.1112, allocations: 8.031 kB / 0.4923 GB, free: 9.562 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.687e-05/0.1112, allocations: 16.84 kB / 0.4924 GB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.1114, allocations: 134.5 kB / 0.4925 GB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.1114, allocations: 8.312 kB / 0.4925 GB, free: 9.383 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.1115, allocations: 8.375 kB / 0.4925 GB, free: 9.375 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004155/0.1119, allocations: 274.4 kB / 0.4928 GB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.1119, allocations: 0 / 0.4928 GB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.1119, allocations: 0 / 0.4928 GB, free: 9.094 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.857e-05/0.1119, allocations: 16 kB / 0.4928 GB, free: 9.078 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.112, allocations: 63.95 kB / 0.4928 GB, free: 9.016 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000361/0.1124, allocations: 276.6 kB / 0.4931 GB, free: 8.699 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001823/0.1126, allocations: 117.4 kB / 0.4932 GB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.499e-05/0.1127, allocations: 65.81 kB / 0.4933 GB, free: 8.496 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.1127, allocations: 3.984 kB / 0.4933 GB, free: 8.492 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.1127, allocations: 30.56 kB / 0.4933 GB, free: 8.453 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.222e-06/0.1127, allocations: 4 kB / 0.4933 GB, free: 8.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004248/0.1131, allocations: 254.7 kB / 0.4936 GB, free: 8.184 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.1132, allocations: 140.5 kB / 0.4937 GB, free: 8.016 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.1133, allocations: 129.8 kB / 0.4938 GB, free: 7.879 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.1133, allocations: 25.7 kB / 0.4938 GB, free: 7.848 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.603e-05/0.1134, allocations: 92.47 kB / 0.4939 GB, free: 7.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.027e-05/0.1134, allocations: 15.94 kB / 0.4939 GB, free: 7.734 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.281e-05/0.1135, allocations: 41.7 kB / 0.494 GB, free: 7.688 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1136, allocations: 330.8 kB / 0.4943 GB, free: 7.355 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.799e-05/0.1137, allocations: 23.98 kB / 0.4943 GB, free: 7.332 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.1138, allocations: 160.3 kB / 0.4945 GB, free: 7.117 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002714/0.1141, allocations: 307.7 kB / 0.4948 GB, free: 6.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1141, allocations: 0 / 0.4948 GB, free: 6.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003273/0.1144, allocations: 252.6 kB / 0.495 GB, free: 6.465 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.076e-05/0.1145, allocations: 67.39 kB / 0.4951 GB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1145, allocations: 4 kB / 0.4951 GB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.1145, allocations: 8 kB / 0.4951 GB, free: 6.375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.218e-05/0.1146, allocations: 32.48 kB / 0.4951 GB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.1146, allocations: 7.938 kB / 0.4951 GB, free: 6.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.695e-05/0.1147, allocations: 27.83 kB / 0.4952 GB, free: 6.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.1147, allocations: 12 kB / 0.4952 GB, free: 6.297 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 19 (synchronizeRealtime.initialized,keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],keyboardInput.KeyCode[6],keyboardInput.KeyCode[5],keyboardInput.KeyCode[4],keyboardInput.KeyCode[3],keyboardInput.KeyCode[2],keyboardInput.KeyCode[1],keyboardInput.keySpace,keyboardInput.keyReturn,keyboardInput.keyLeft,keyboardInput.keyRight,keyboardInput.keyDown,keyboardInput.keyUp,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * 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 0.0001597/0.1149, allocations: 203 kB / 0.4954 GB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.115, allocations: 120.4 kB / 0.4955 GB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.087e-05/0.115, allocations: 8.781 kB / 0.4955 GB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.1151, allocations: 15.92 kB / 0.4955 GB, free: 5.922 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1151, allocations: 0 / 0.4955 GB, free: 5.922 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.1151, allocations: 4.125 kB / 0.4955 GB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.1152, allocations: 168.6 kB / 0.4957 GB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1153, allocations: 3.938 kB / 0.4957 GB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.01e-05/0.1153, allocations: 0 / 0.4957 GB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.1153, allocations: 8 kB / 0.4957 GB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.1153, allocations: 4 kB / 0.4957 GB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.1153, allocations: 7.938 kB / 0.4957 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1153, allocations: 0 / 0.4957 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003295/0.1156, allocations: 324 kB / 0.496 GB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.997e-05/0.1156, allocations: 15.84 kB / 0.496 GB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.04e-05/0.1157, allocations: 4 kB / 0.496 GB, free: 5.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.464e-05/0.1157, allocations: 4.141 kB / 0.496 GB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.427e-05/0.1157, allocations: 7.984 kB / 0.496 GB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.1157, allocations: 7.984 kB / 0.496 GB, free: 5.301 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.852e-05/0.1158, allocations: 95.33 kB / 0.4961 GB, free: 5.207 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1158, allocations: 0 / 0.4961 GB, free: 5.207 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002962/0.1161, allocations: 35.92 kB / 0.4962 GB, free: 5.172 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: 19 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,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: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 1 * 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.0006658/0.1168, allocations: 264.1 kB / 0.4964 GB, free: 4.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003119/0.1171, allocations: 235.4 kB / 0.4966 GB, free: 4.727 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1171, allocations: 384 / 0.4966 GB, free: 4.727 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.455e-05/0.1172, allocations: 130.8 kB / 0.4968 GB, free: 4.574 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.1175, allocations: 75.91 kB / 0.4968 GB, free: 4.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004141/0.1179, allocations: 231.7 kB / 0.497 GB, free: 4.246 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.1182, allocations: 0.7121 MB / 0.4977 GB, free: 3.508 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.422e-05/0.1183, allocations: 24.95 kB / 0.4978 GB, free: 3.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.392e-05/0.1183, allocations: 15.44 kB / 0.4978 GB, free: 3.465 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1183, allocations: 0 / 0.4978 GB, free: 3.465 MB / 366.1 MB Notification: Performance of Templates: time 0.004417/0.1227, allocations: 1.606 MB / 0.4994 GB, free: 1.863 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.217724173002352] Failed to read output from testmodel.py, exit status != 0: 0.12988587000290863 0.144129676 0.030626645 Calling exit ...