Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.001496/0.001496, allocations: 84.23 kB / 20.25 MB, free: 4.188 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.001658/0.001658, allocations: 157.7 kB / 23.56 MB, free: 0.8789 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 1.449/1.449, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.06229/0.06229, allocations: 9.16 MB / 269.5 MB, free: 4.273 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.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.315e-06/2.315e-06, allocations: 0 / 341.8 MB, free: 7.664 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.592e-05/2.823e-05, allocations: 6.312 kB / 341.8 MB, free: 7.656 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004667/0.004695, allocations: 2.735 MB / 344.5 MB, free: 4.906 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007802/0.005475, allocations: 346.9 kB / 344.9 MB, free: 4.566 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.005634, allocations: 11.88 kB / 344.9 MB, free: 4.555 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002702/0.005904, allocations: 43.64 kB / 344.9 MB, free: 4.512 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000461/0.006365, allocations: 63.75 kB / 345 MB, free: 4.449 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.006656, allocations: 91.64 kB / 345.1 MB, free: 4.359 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002001/0.006856, allocations: 156 kB / 345.2 MB, free: 4.207 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.00702, allocations: 53.75 kB / 345.3 MB, free: 4.148 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001231/0.007143, allocations: 71.88 kB / 345.3 MB, free: 4.078 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001055/0.007249, allocations: 63.8 kB / 345.4 MB, free: 4.016 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.007291, allocations: 12 kB / 345.4 MB, free: 4.004 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002208/0.007512, allocations: 139.9 kB / 345.6 MB, free: 3.867 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.867e-05/0.00758, allocations: 43.83 kB / 345.6 MB, free: 3.824 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.558e-05/0.007646, allocations: 39.84 kB / 345.6 MB, free: 3.785 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003683/0.008014, allocations: 243.3 kB / 345.9 MB, free: 3.547 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.008018, allocations: 7.984 kB / 345.9 MB, free: 3.539 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.008019, allocations: 0 / 345.9 MB, free: 3.539 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.008026, allocations: 0 / 345.9 MB, free: 3.539 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005651/0.008591, allocations: 373.7 kB / 346.3 MB, free: 3.137 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.00863, allocations: 16.03 kB / 346.3 MB, free: 3.121 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.791e-05/0.008718, allocations: 24.84 kB / 346.3 MB, free: 3.098 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002553/0.008973, allocations: 185.3 kB / 346.5 MB, free: 2.891 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.008997, allocations: 8.609 kB / 346.5 MB, free: 2.883 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.009023, allocations: 12.38 kB / 346.5 MB, free: 2.871 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.009355, allocations: 161.3 kB / 346.7 MB, free: 2.703 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.009367, allocations: 192 / 346.7 MB, free: 2.703 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.009388, allocations: 4.375 kB / 346.7 MB, free: 2.699 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.009396, allocations: 4.375 kB / 346.7 MB, free: 2.695 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000212/0.009608, allocations: 86.09 kB / 346.7 MB, free: 2.613 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006714/0.01028, allocations: 381.3 kB / 347.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001428/0.01042, allocations: 73.23 kB / 347.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.254e-05/0.01051, allocations: 41.73 kB / 347.2 MB, free: 2.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.01054, allocations: 7.984 kB / 347.2 MB, free: 2.062 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002157/0.01075, allocations: 89.05 kB / 347.3 MB, free: 1.957 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.01076, allocations: 0 / 347.3 MB, free: 1.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003789/0.01113, allocations: 125.5 kB / 347.4 MB, free: 1.828 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.01116, allocations: 81.11 kB / 347.5 MB, free: 1.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001582/0.01132, allocations: 166.9 kB / 347.7 MB, free: 1.559 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.01133, allocations: 25.7 kB / 347.7 MB, free: 1.527 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.803e-05/0.0114, allocations: 132.2 kB / 347.8 MB, free: 1.391 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.01143, allocations: 31.73 kB / 347.9 MB, free: 1.359 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.216e-05/0.01149, allocations: 29.72 kB / 347.9 MB, free: 1.324 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.738e-05/0.01154, allocations: 318.8 kB / 348.2 MB, free: 1.004 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.66e-05/0.01162, allocations: 27.98 kB / 348.2 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.304e-05/0.0117, allocations: 55.59 kB / 348.3 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.01185, allocations: 87.36 kB / 348.4 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.01185, allocations: 0 / 348.4 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002675/0.01212, allocations: 141.4 kB / 348.5 MB, free: 0.668 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.01213, allocations: 8 kB / 348.5 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/0.01215, allocations: 0 / 348.5 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.01217, allocations: 4 kB / 348.5 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.063e-05/0.01225, allocations: 11.94 kB / 348.5 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.01226, allocations: 3.984 kB / 348.5 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.585e-05/0.01232, allocations: 11.94 kB / 348.6 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.01234, allocations: 7.984 kB / 348.6 MB, free: 0.6211 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001013/0.01244, allocations: 130.5 kB / 348.7 MB, free: 496 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.744e-05/0.01248, allocations: 23.83 kB / 348.7 MB, free: 472 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.735e-05/0.01252, allocations: 12.84 kB / 348.7 MB, free: 456 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.01253, allocations: 4 kB / 348.7 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.01253, allocations: 0 / 348.7 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.01254, allocations: 0 / 348.7 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001556/0.01269, allocations: 153.3 kB / 348.9 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.0127, allocations: 3.984 kB / 348.9 MB, free: 264 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.163e-05/0.01273, allocations: 7.938 kB / 348.9 MB, free: 256 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.01273, allocations: 0 / 348.9 MB, free: 256 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.01275, allocations: 7.938 kB / 348.9 MB, free: 248 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.01275, allocations: 0 / 348.9 MB, free: 248 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.01275, allocations: 0 / 348.9 MB, free: 248 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002327/0.01298, allocations: 141.9 kB / 349 MB, free: 84 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.264e-05/0.013, allocations: 19.83 kB / 349.1 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.01303, allocations: 11.92 kB / 349.1 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.46e-05/0.01308, allocations: 0 / 349.1 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.765e-05/0.01313, allocations: 11.98 kB / 349.1 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.01314, allocations: 4 kB / 349.1 MB, free: 36 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001505/0.01329, allocations: 112.1 kB / 349.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01329, allocations: 0 / 349.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004652/0.01376, allocations: 43.88 kB / 349.2 MB, free: 15.88 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.001026/0.01479, allocations: 242.5 kB / 349.5 MB, free: 15.69 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003176/0.0151, allocations: 101.6 kB / 349.6 MB, free: 15.59 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.01511, allocations: 0 / 349.6 MB, free: 15.59 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.01524, allocations: 61.62 kB / 349.6 MB, free: 15.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002704/0.01552, allocations: 8.562 kB / 349.6 MB, free: 15.51 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007845/0.0163, allocations: 289.9 kB / 349.9 MB, free: 15.2 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001847/0.01648, allocations: 119 kB / 350 MB, free: 15.06 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.181e-05/0.01655, allocations: 12.48 kB / 350.1 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.747e-05/0.01659, allocations: 16.5 kB / 350.1 MB, free: 15.04 MB / 282.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01659, allocations: 0 / 350.1 MB, free: 15.04 MB / 282.7 MB Notification: Performance of Templates: time 0.00714/0.02373, allocations: 1.433 MB / 351.5 MB, free: 13.62 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.683330699102953]