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.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.001017/0.001017, allocations: 80.06 kB / 20.76 MB, free: 3.727 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.001211/0.001211, allocations: 173 kB / 24.19 MB, free: 312 kB / 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.9635/0.9635, allocations: 177.1 MB / 204.6 MB, free: 5.5 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.03829/0.03829, allocations: 9.16 MB / 270.2 MB, free: 4.148 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.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 1.202e-06/1.202e-06, allocations: 0 / 289.8 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.075e-05/1.195e-05, allocations: 2.312 kB / 289.8 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.1089/0.1089, allocations: 2.493 MB / 292.3 MB, free: 18.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002125/0.1091, allocations: 132.9 kB / 292.4 MB, free: 18.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.93e-05/0.1092, allocations: 6.594 kB / 292.4 MB, free: 18.2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.1093, allocations: 21.67 kB / 292.4 MB, free: 18.19 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.42e-05/0.1094, allocations: 13.41 kB / 292.4 MB, free: 18.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001875/0.1096, allocations: 45.47 kB / 292.5 MB, free: 18.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001204/0.1097, allocations: 86.25 kB / 292.6 MB, free: 18.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.093e-05/0.1098, allocations: 13.62 kB / 292.6 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.378e-05/0.1098, allocations: 44.84 kB / 292.6 MB, free: 18.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.232e-05/0.1099, allocations: 23.25 kB / 292.6 MB, free: 18.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.093e-05/0.1099, allocations: 7.062 kB / 292.6 MB, free: 18.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.202e-05/0.1099, allocations: 24.83 kB / 292.7 MB, free: 18.08 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.701e-05/0.11, allocations: 23.62 kB / 292.7 MB, free: 18.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.603e-05/0.11, allocations: 23.92 kB / 292.7 MB, free: 18.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001516/0.1102, allocations: 94.81 kB / 292.8 MB, free: 18.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.624e-06/0.1102, allocations: 2.016 kB / 292.8 MB, free: 18.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1102, allocations: 4.875 kB / 292.8 MB, free: 18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.1102, allocations: 0 / 292.8 MB, free: 18 MB / 266.7 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.0002548/0.1104, allocations: 346.1 kB / 293.2 MB, free: 17.67 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.852e-05/0.1105, allocations: 10.56 kB / 293.2 MB, free: 17.67 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.081e-05/0.1105, allocations: 16.98 kB / 293.2 MB, free: 17.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.1106, allocations: 135.1 kB / 293.3 MB, free: 17.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.786e-06/0.1106, allocations: 11.25 kB / 293.3 MB, free: 17.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.1106, allocations: 10.28 kB / 293.3 MB, free: 17.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002209/0.1109, allocations: 249.8 kB / 293.6 MB, free: 17.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.1109, allocations: 1.25 kB / 293.6 MB, free: 17.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.1109, allocations: 13.16 kB / 293.6 MB, free: 17.33 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.875e-05/0.1109, allocations: 9 kB / 293.6 MB, free: 17.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.575e-05/0.1109, allocations: 76.78 kB / 293.7 MB, free: 17.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001684/0.1111, allocations: 176.2 kB / 293.8 MB, free: 17.1 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.353e-05/0.1112, allocations: 131.7 kB / 294 MB, free: 16.98 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.519e-05/0.1112, allocations: 92.61 kB / 294.1 MB, free: 16.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.212e-06/0.1112, allocations: 2.5 kB / 294.1 MB, free: 16.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.45e-05/0.1113, allocations: 43.83 kB / 294.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.132e-06/0.1113, allocations: 0 / 294.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0001773/0.1114, allocations: 273.4 kB / 294.4 MB, free: 16.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.1115, allocations: 137.6 kB / 294.5 MB, free: 16.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.972e-05/0.1115, allocations: 125.3 kB / 294.6 MB, free: 16.34 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.702e-06/0.1115, allocations: 31.7 kB / 294.7 MB, free: 16.3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.309e-05/0.1115, allocations: 94.36 kB / 294.8 MB, free: 16.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.367e-06/0.1116, allocations: 11.52 kB / 294.8 MB, free: 16.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-05/0.1116, allocations: 19.09 kB / 294.8 MB, free: 16.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.823e-05/0.1116, allocations: 320.4 kB / 295.1 MB, free: 15.87 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.706e-05/0.1116, allocations: 61.52 kB / 295.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.013e-05/0.1116, allocations: 68.22 kB / 295.2 MB, free: 15.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.151e-05/0.1117, allocations: 134.4 kB / 295.4 MB, free: 15.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1117, allocations: 0 / 295.4 MB, free: 15.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.494e-05/0.1118, allocations: 156.1 kB / 295.5 MB, free: 15.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.1118, allocations: 64.75 kB / 295.6 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.1118, allocations: 3.938 kB / 295.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.1118, allocations: 4.812 kB / 295.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.699e-05/0.1118, allocations: 2.625 kB / 295.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.725e-06/0.1118, allocations: 0 / 295.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.89e-05/0.1118, allocations: 6.594 kB / 295.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.1119, allocations: 2.312 kB / 295.6 MB, free: 15.35 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (synchronizeRealtime.initialized) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * 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 5.459e-05/0.1119, allocations: 174.9 kB / 295.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.822e-05/0.112, allocations: 78.61 kB / 295.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.997e-05/0.112, allocations: 11.84 kB / 295.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.112, allocations: 8.391 kB / 295.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.112, allocations: 1.188 kB / 295.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.112, allocations: 0.6094 kB / 295.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.199e-05/0.1121, allocations: 85.23 kB / 295.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.1121, allocations: 1.953 kB / 295.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.985e-06/0.1121, allocations: 7.094 kB / 296 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1121, allocations: 2.672 kB / 296 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.1121, allocations: 3.188 kB / 296 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1121, allocations: 5.922 kB / 296 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1121, allocations: 1.125 kB / 296 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.625e-05/0.1122, allocations: 271.1 kB / 296.2 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.014e-05/0.1122, allocations: 15.75 kB / 296.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.253e-05/0.1122, allocations: 5.734 kB / 296.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.348e-05/0.1122, allocations: 10.22 kB / 296.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.879e-05/0.1123, allocations: 3.688 kB / 296.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.1123, allocations: 2.375 kB / 296.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.704e-05/0.1123, allocations: 15.92 kB / 296.3 MB, free: 14.71 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1123, allocations: 0.5938 kB / 296.3 MB, free: 14.71 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001398/0.1124, allocations: 25.41 kB / 296.3 MB, free: 14.71 MB / 266.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: 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.0006015/0.113, allocations: 341.9 kB / 296.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001166/0.1131, allocations: 257 kB / 296.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1131, allocations: 1.156 kB / 296.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.065e-05/0.1132, allocations: 173 kB / 297.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001706/0.1133, allocations: 58.77 kB / 297.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002656/0.1136, allocations: 274.9 kB / 297.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.39e-05/0.1137, allocations: 82.67 kB / 297.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.268e-05/0.1137, allocations: 13.23 kB / 297.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.286e-05/0.1137, allocations: 70.77 kB / 297.6 MB, free: 13.78 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.1137, allocations: 0.9688 kB / 297.6 MB, free: 13.78 MB / 266.7 MB Notification: Performance of Templates: time 0.003218/0.117, allocations: 1.493 MB / 299 MB, free: 13.58 MB / 266.7 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=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.4910425171256065]