Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.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.0008065/0.0008065, allocations: 83.34 kB / 20.46 MB, free: 4.109 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.0008156/0.0008156, allocations: 169 kB / 23.84 MB, free: 0.7344 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.9123/0.9123, allocations: 177.1 MB / 204.2 MB, free: 5.262 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.03965/0.03965, allocations: 9.153 MB / 269.9 MB, free: 4.09 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.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 342.5 MB, free: 7.316 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.604e-05/2.746e-05, allocations: 5.125 kB / 342.5 MB, free: 7.312 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.006032/0.006059, allocations: 2.44 MB / 345 MB, free: 4.855 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002947/0.006354, allocations: 175.4 kB / 345.1 MB, free: 4.684 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.939e-05/0.006424, allocations: 4 kB / 345.1 MB, free: 4.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.006565, allocations: 23.73 kB / 345.2 MB, free: 4.656 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002783/0.006844, allocations: 59.81 kB / 345.2 MB, free: 4.598 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001462/0.00699, allocations: 39.89 kB / 345.3 MB, free: 4.559 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001257/0.007116, allocations: 79.72 kB / 345.3 MB, free: 4.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.899e-05/0.007215, allocations: 20.2 kB / 345.4 MB, free: 4.457 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.344e-05/0.007278, allocations: 39.91 kB / 345.4 MB, free: 4.418 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.039e-05/0.007318, allocations: 23.91 kB / 345.4 MB, free: 4.395 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.007341, allocations: 8 kB / 345.4 MB, free: 4.387 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.007472, allocations: 131.9 kB / 345.6 MB, free: 4.258 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.254e-05/0.007494, allocations: 15.92 kB / 345.6 MB, free: 4.242 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.3e-05/0.007527, allocations: 23.91 kB / 345.6 MB, free: 4.219 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002299/0.009826, allocations: 143.7 kB / 345.7 MB, free: 4.078 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.009831, allocations: 0 / 345.7 MB, free: 4.078 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.009833, allocations: 0 / 345.7 MB, free: 4.078 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.009838, allocations: 0 / 345.7 MB, free: 4.078 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003733/0.01021, allocations: 475.5 kB / 346.2 MB, free: 3.562 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.01025, allocations: 12.03 kB / 346.2 MB, free: 3.551 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.046e-05/0.0103, allocations: 16.84 kB / 346.2 MB, free: 3.535 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.01045, allocations: 144.4 kB / 346.4 MB, free: 3.367 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.01047, allocations: 4.375 kB / 346.4 MB, free: 3.363 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.01048, allocations: 8.375 kB / 346.4 MB, free: 3.355 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002402/0.01072, allocations: 216.9 kB / 346.6 MB, free: 3.105 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.01073, allocations: 192 / 346.6 MB, free: 3.105 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.01074, allocations: 4.375 kB / 346.6 MB, free: 3.102 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.01074, allocations: 384 / 346.6 MB, free: 3.102 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.655e-05/0.01079, allocations: 75.33 kB / 346.7 MB, free: 3.016 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002515/0.01104, allocations: 291.4 kB / 347 MB, free: 2.691 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.01118, allocations: 137.6 kB / 347.1 MB, free: 2.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.595e-05/0.01123, allocations: 90.78 kB / 347.2 MB, free: 2.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.01125, allocations: 7.984 kB / 347.2 MB, free: 2.402 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.728e-05/0.01127, allocations: 41.31 kB / 347.2 MB, free: 2.352 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 1.863e-06/0.01127, allocations: 3.938 kB / 347.2 MB, free: 2.348 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002265/0.0115, allocations: 255.8 kB / 347.5 MB, free: 2.055 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.01153, allocations: 132.5 kB / 347.6 MB, free: 1.895 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.843e-05/0.0116, allocations: 192.3 kB / 347.8 MB, free: 1.691 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.714e-06/0.01161, allocations: 29.7 kB / 347.8 MB, free: 1.656 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.422e-05/0.01164, allocations: 142.8 kB / 348 MB, free: 1.512 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.937e-06/0.01165, allocations: 11.95 kB / 348 MB, free: 1.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.01168, allocations: 31.41 kB / 348 MB, free: 1.461 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.466e-05/0.01172, allocations: 496.1 kB / 348.5 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.649e-05/0.01175, allocations: 63.39 kB / 348.6 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.348e-05/0.01177, allocations: 74.78 kB / 348.6 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.648e-05/0.01182, allocations: 142.1 kB / 348.8 MB, free: 0.625 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.01182, allocations: 4 kB / 348.8 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.46e-05/0.01192, allocations: 168.4 kB / 348.9 MB, free: 436 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.01194, allocations: 63.34 kB / 349 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.01195, allocations: 0 / 349 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.01196, allocations: 8.047 kB / 349 MB, free: 352 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.613e-05/0.012, allocations: 0 / 349 MB, free: 352 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.012, allocations: 4 kB / 349 MB, free: 348 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.192e-05/0.01202, allocations: 4 kB / 349 MB, free: 344 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.01203, allocations: 4 kB / 349 MB, free: 340 kB / 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.519e-05/0.01209, allocations: 208 kB / 349.2 MB, free: 108 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.715e-05/0.01214, allocations: 69.53 kB / 349.3 MB, free: 32 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.168e-05/0.01217, allocations: 12.47 kB / 349.3 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.01218, allocations: 3.938 kB / 349.3 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.01218, allocations: 0 / 349.3 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.01218, allocations: 11.98 kB / 349.3 MB, free: 0 / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.01231, allocations: 128.6 kB / 349.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.01231, allocations: 0 / 349.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.309e-05/0.01234, allocations: 8.297 kB / 349.5 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.01234, allocations: 4 kB / 349.5 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.01235, allocations: 7.938 kB / 349.5 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.01235, allocations: 0 / 349.5 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.01235, allocations: 4 kB / 349.5 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002088/0.01256, allocations: 350.3 kB / 349.8 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.382e-05/0.01258, allocations: 15.83 kB / 349.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.645e-05/0.01259, allocations: 7.938 kB / 349.8 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.148e-05/0.01262, allocations: 8 kB / 349.8 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.057e-05/0.01265, allocations: 3.984 kB / 349.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.01265, allocations: 4 kB / 349.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.072e-05/0.0127, allocations: 139.2 kB / 350 MB, free: 15.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.0127, allocations: 0 / 350 MB, free: 15.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001833/0.01288, allocations: 24 kB / 350 MB, free: 15.23 MB / 282.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: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0006618/0.01355, allocations: 322.3 kB / 350.3 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002233/0.01377, allocations: 261.2 kB / 350.6 MB, free: 14.68 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.01377, allocations: 4 kB / 350.6 MB, free: 14.68 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001035/0.01388, allocations: 177.9 kB / 350.8 MB, free: 14.46 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002199/0.0141, allocations: 29.42 kB / 350.8 MB, free: 14.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003299/0.01443, allocations: 244.2 kB / 351 MB, free: 14.15 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.205e-05/0.01447, allocations: 67.84 kB / 351.1 MB, free: 14.06 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.195e-05/0.01451, allocations: 11.98 kB / 351.1 MB, free: 14.05 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.267e-05/0.01453, allocations: 16.69 kB / 351.1 MB, free: 14.04 MB / 282.7 MB Notification: Performance of SimCode: time 1.483e-06/0.01453, allocations: 4 kB / 351.1 MB, free: 14.03 MB / 282.7 MB Notification: Performance of Templates: time 0.003906/0.01844, allocations: 1.77 MB / 352.9 MB, free: 12.28 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.548557666130364]