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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007426/0.0007426, allocations: 84.44 kB / 20.73 MB, free: 3.836 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007372/0.0007372, allocations: 165.9 kB / 24 MB, free: 0.5586 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8297/0.8297, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo): time 0.0335/0.0335, allocations: 9.142 MB / 269.9 MB, free: 4.453 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 2.053e-06/2.053e-06, allocations: 0 / 398.3 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.73e-05/2.936e-05, allocations: 6.219 kB / 398.3 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004354/0.004383, allocations: 2.692 MB / 401 MB, free: 14.03 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007326/0.005116, allocations: 322.8 kB / 401.3 MB, free: 13.71 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001626/0.005278, allocations: 7.875 kB / 401.3 MB, free: 13.7 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002968/0.005575, allocations: 47.64 kB / 401.4 MB, free: 13.66 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001126/0.005688, allocations: 11.86 kB / 401.4 MB, free: 13.64 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.006038, allocations: 91.7 kB / 401.5 MB, free: 13.55 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002568/0.006295, allocations: 148 kB / 401.6 MB, free: 13.41 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002038/0.006499, allocations: 57.62 kB / 401.7 MB, free: 13.35 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.006638, allocations: 83.8 kB / 401.8 MB, free: 13.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001189/0.006757, allocations: 43.89 kB / 401.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.512e-05/0.006802, allocations: 12 kB / 401.8 MB, free: 13.21 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.163e-05/0.006894, allocations: 35.92 kB / 401.9 MB, free: 13.18 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.513e-05/0.006989, allocations: 59.77 kB / 401.9 MB, free: 13.12 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.919e-05/0.007058, allocations: 43.84 kB / 402 MB, free: 13.08 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003357/0.007394, allocations: 191.3 kB / 402.1 MB, free: 12.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.007399, allocations: 0 / 402.1 MB, free: 12.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.0074, allocations: 3.938 kB / 402.1 MB, free: 12.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.007408, allocations: 0 / 402.1 MB, free: 12.89 MB / 378.7 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.0006727/0.008081, allocations: 397.4 kB / 402.5 MB, free: 12.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.857e-05/0.008129, allocations: 12.03 kB / 402.5 MB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.308e-05/0.008202, allocations: 20.8 kB / 402.6 MB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.008475, allocations: 161.5 kB / 402.7 MB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.008495, allocations: 16.38 kB / 402.7 MB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.398e-05/0.008519, allocations: 12.38 kB / 402.7 MB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.008848, allocations: 195.8 kB / 402.9 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.00886, allocations: 192 / 402.9 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.008878, allocations: 4.375 kB / 402.9 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.008885, allocations: 4.375 kB / 402.9 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002032/0.009088, allocations: 120 kB / 403.1 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006774/0.009766, allocations: 369.5 kB / 403.4 MB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.009966, allocations: 121 kB / 403.5 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.514e-05/0.01006, allocations: 57.7 kB / 403.6 MB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.817e-05/0.01011, allocations: 11.98 kB / 403.6 MB, free: 11.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003252/0.01043, allocations: 133 kB / 403.7 MB, free: 11.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.923e-06/0.01044, allocations: 0 / 403.7 MB, free: 11.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004713/0.01091, allocations: 235.9 kB / 404 MB, free: 10.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.515e-05/0.01098, allocations: 97.08 kB / 404.1 MB, free: 10.79 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.01116, allocations: 149.2 kB / 404.2 MB, free: 10.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/0.01119, allocations: 37.69 kB / 404.3 MB, free: 10.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.757e-05/0.01129, allocations: 116.7 kB / 404.4 MB, free: 10.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.197e-05/0.01135, allocations: 67.52 kB / 404.4 MB, free: 10.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.641e-05/0.01145, allocations: 53.98 kB / 404.5 MB, free: 10.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.01158, allocations: 334.8 kB / 404.8 MB, free: 10.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.01171, allocations: 76.17 kB / 404.9 MB, free: 9.938 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001934/0.01191, allocations: 165.1 kB / 405 MB, free: 9.738 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003287/0.01223, allocations: 247.1 kB / 405.3 MB, free: 9.457 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.807e-06/0.01224, allocations: 4 kB / 405.3 MB, free: 9.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004514/0.0127, allocations: 293 kB / 405.6 MB, free: 9.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.01272, allocations: 4 kB / 405.6 MB, free: 9.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-05/0.01274, allocations: 4.25 kB / 405.6 MB, free: 9.152 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.431e-05/0.01277, allocations: 4 kB / 405.6 MB, free: 9.148 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.01291, allocations: 35.92 kB / 405.6 MB, free: 9.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.01292, allocations: 4 kB / 405.6 MB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.01302, allocations: 23.83 kB / 405.7 MB, free: 9.086 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.244e-05/0.01304, allocations: 12 kB / 405.7 MB, free: 9.074 MB / 378.7 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.0002025/0.01324, allocations: 178.1 kB / 405.8 MB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.83e-05/0.01327, allocations: 15.84 kB / 405.9 MB, free: 8.879 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.848e-05/0.01334, allocations: 17.12 kB / 405.9 MB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.01335, allocations: 0 / 405.9 MB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.01335, allocations: 0 / 405.9 MB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.01336, allocations: 7.984 kB / 405.9 MB, free: 8.852 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002581/0.01362, allocations: 165.1 kB / 406 MB, free: 8.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.01363, allocations: 4 kB / 406 MB, free: 8.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.054e-05/0.01367, allocations: 11.94 kB / 406.1 MB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.01367, allocations: 0 / 406.1 MB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.01369, allocations: 0 / 406.1 MB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.01369, allocations: 4 kB / 406.1 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.01369, allocations: 0 / 406.1 MB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003078/0.014, allocations: 217.8 kB / 406.3 MB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.94e-05/0.01404, allocations: 27.78 kB / 406.3 MB, free: 8.379 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.01406, allocations: 0 / 406.3 MB, free: 8.379 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.532e-05/0.01409, allocations: 3.984 kB / 406.3 MB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.38e-05/0.01415, allocations: 15.98 kB / 406.3 MB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/0.01416, allocations: 0 / 406.3 MB, free: 8.359 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.513e-05/0.01424, allocations: 113.2 kB / 406.4 MB, free: 8.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01424, allocations: 0 / 406.4 MB, free: 8.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003523/0.01459, allocations: 47.81 kB / 406.5 MB, free: 8.203 MB / 378.7 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.0006651/0.01526, allocations: 217.1 kB / 406.7 MB, free: 8.035 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000488/0.01575, allocations: 225.1 kB / 406.9 MB, free: 7.809 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.01575, allocations: 0 / 406.9 MB, free: 7.809 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.01587, allocations: 85.61 kB / 407 MB, free: 7.719 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.0161, allocations: 18.59 kB / 407 MB, free: 7.703 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008272/0.01693, allocations: 373.3 kB / 407.4 MB, free: 7.297 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001485/0.01708, allocations: 132 kB / 407.5 MB, free: 7.148 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.652e-05/0.01712, allocations: 20.5 kB / 407.5 MB, free: 7.129 MB / 378.7 MB Notification: Performance of SimCode: time 2.325e-06/0.01712, allocations: 0 / 407.5 MB, free: 7.129 MB / 378.7 MB Notification: Performance of Templates: time 0.003431/0.02055, allocations: 2.347 MB / 409.9 MB, free: 4.789 MB / 378.7 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: 9.319666365161538] Failed to read output from testmodel.py, exit status != 0: 0.02721962332725525 0.034061364000000004 0.024516981 Calling exit ...