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.001219/0.001219, allocations: 70.98 kB / 19.97 MB, free: 1.73 MB / 14.72 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.001282/0.001282, allocations: 174 kB / 23.26 MB, free: 4.855 MB / 14.72 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 1.346/1.346, allocations: 177.1 MB / 203.6 MB, free: 9.164 MB / 190.1 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.05492/0.05492, allocations: 9.166 MB / 269.1 MB, free: 7.898 MB / 254.1 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.382e-06/1.382e-06, allocations: 0 / 397.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.246e-05/2.384e-05, allocations: 14.16 kB / 397.5 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003462/0.003486, allocations: 2.346 MB / 399.9 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002989/0.003785, allocations: 135.5 kB / 400 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.273e-05/0.003858, allocations: 3.938 kB / 400 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.004014, allocations: 23.8 kB / 400.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.953e-05/0.004083, allocations: 7.922 kB / 400.1 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.004279, allocations: 51.81 kB / 400.1 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001523/0.004431, allocations: 75.78 kB / 400.2 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.991e-05/0.004521, allocations: 16.2 kB / 400.2 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.143e-05/0.004602, allocations: 43.91 kB / 400.2 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.725e-05/0.004659, allocations: 23.91 kB / 400.3 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.988e-05/0.004689, allocations: 8 kB / 400.3 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.927e-05/0.004759, allocations: 31.92 kB / 400.3 MB, free: 2.496 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.665e-05/0.004815, allocations: 19.94 kB / 400.3 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.265e-05/0.004878, allocations: 23.91 kB / 400.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002233/0.005101, allocations: 119.6 kB / 400.5 MB, free: 2.336 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.005104, allocations: 0 / 400.5 MB, free: 2.336 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.41e-07/0.005104, allocations: 0 / 400.5 MB, free: 2.336 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.005108, allocations: 3.938 kB / 400.5 MB, free: 2.332 MB / 318.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.0004943/0.005602, allocations: 369.3 kB / 400.8 MB, free: 1.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.005636, allocations: 8.031 kB / 400.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.203e-05/0.005688, allocations: 12.89 kB / 400.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.00592, allocations: 149.5 kB / 401 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.005944, allocations: 8.375 kB / 401 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.005962, allocations: 4.375 kB / 401 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004715/0.006433, allocations: 326.5 kB / 401.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.517e-06/0.006443, allocations: 192 / 401.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.006458, allocations: 4.125 kB / 401.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.101e-05/0.006479, allocations: 12 kB / 401.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001576/0.006637, allocations: 119.3 kB / 401.5 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003357/0.006973, allocations: 225.4 kB / 401.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002417/0.007214, allocations: 176.8 kB / 401.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.007345, allocations: 129 kB / 402 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.007357, allocations: 0 / 402 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.007388, allocations: 38.56 kB / 402 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.152e-06/0.00739, allocations: 0 / 402 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005111/0.007901, allocations: 369.5 kB / 402.4 MB, free: 188 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.337e-05/0.007994, allocations: 140.5 kB / 402.5 MB, free: 16 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.008121, allocations: 137.5 kB / 402.6 MB, free: 15.87 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.008144, allocations: 25.7 kB / 402.7 MB, free: 15.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.731e-05/0.008201, allocations: 88.52 kB / 402.8 MB, free: 15.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.00822, allocations: 15.89 kB / 402.8 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.145e-05/0.008261, allocations: 17.72 kB / 402.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.008388, allocations: 318.8 kB / 403.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.516e-05/0.008453, allocations: 63.41 kB / 403.2 MB, free: 15.31 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.094e-05/0.008524, allocations: 85.05 kB / 403.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.008641, allocations: 132.5 kB / 403.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.008642, allocations: 4 kB / 403.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001965/0.008839, allocations: 184.4 kB / 403.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.737e-05/0.008886, allocations: 59.41 kB / 403.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.00889, allocations: 0 / 403.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.008904, allocations: 0 / 403.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.423e-05/0.008938, allocations: 0 / 403.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.008944, allocations: 4 kB / 403.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.813e-05/0.008972, allocations: 3.953 kB / 403.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.008982, allocations: 4 kB / 403.6 MB, free: 14.75 MB / 334.1 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 0.0001312/0.009113, allocations: 181.8 kB / 403.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001679/0.009281, allocations: 129.6 kB / 403.9 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.779e-05/0.009308, allocations: 8.781 kB / 403.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.009324, allocations: 11.98 kB / 404 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.902e-06/0.009329, allocations: 0 / 404 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.009333, allocations: 0 / 404 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001476/0.00948, allocations: 129.2 kB / 404.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.009485, allocations: 3.984 kB / 404.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.468e-05/0.0095, allocations: 3.938 kB / 404.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.009505, allocations: 7.938 kB / 404.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.009516, allocations: 0 / 404.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.009519, allocations: 4 kB / 404.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.00952, allocations: 4 kB / 404.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003781/0.009898, allocations: 385.3 kB / 404.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.649e-05/0.009915, allocations: 11.91 kB / 404.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.009935, allocations: 0 / 404.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.96e-05/0.009994, allocations: 12 kB / 404.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.633e-05/0.01002, allocations: 7.938 kB / 404.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.01003, allocations: 4.234 kB / 404.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.133e-05/0.01009, allocations: 91.27 kB / 404.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.01009, allocations: 192 / 404.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002508/0.01034, allocations: 23.94 kB / 404.6 MB, free: 13.66 MB / 334.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.0007264/0.01107, allocations: 291.2 kB / 404.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003199/0.01139, allocations: 301.4 kB / 405.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01139, allocations: 0 / 405.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.01152, allocations: 174.2 kB / 405.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003396/0.01186, allocations: 75.86 kB / 405.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004632/0.01232, allocations: 293.7 kB / 405.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.881e-05/0.01242, allocations: 101.1 kB / 405.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.904e-05/0.01246, allocations: 7.984 kB / 405.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.134e-05/0.01248, allocations: 12.5 kB / 405.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.01248, allocations: 0 / 405.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of Templates: time 0.004281/0.01676, allocations: 1.394 MB / 407.3 MB, free: 10.96 MB / 334.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 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.929596614092588] Failed to read output from testmodel.py, exit status != 0: 0.024165555834770203 0.037552445000000004 0.029682053000000003 Calling exit ...