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.001354/0.001354, allocations: 84.22 kB / 20.98 MB, free: 3.57 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.001828/0.001828, allocations: 165.3 kB / 24.28 MB, free: 276 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 1.007/1.007, allocations: 177.1 MB / 204.6 MB, free: 5.621 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.06369/0.06369, allocations: 9.149 MB / 270.2 MB, free: 4.324 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 1.734e-06/1.734e-06, allocations: 0 / 342.5 MB, free: 7.637 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.116e-05/2.289e-05, allocations: 6.25 kB / 342.5 MB, free: 7.629 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.002654/0.002677, allocations: 2.802 MB / 345.3 MB, free: 4.812 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004359/0.003113, allocations: 366.8 kB / 345.7 MB, free: 4.453 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.881e-05/0.003212, allocations: 3.938 kB / 345.7 MB, free: 4.449 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001995/0.003411, allocations: 47.64 kB / 345.7 MB, free: 4.402 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002216/0.003633, allocations: 59.75 kB / 345.8 MB, free: 4.344 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.003817, allocations: 91.64 kB / 345.9 MB, free: 4.254 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.003953, allocations: 152 kB / 346 MB, free: 4.105 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.004092, allocations: 57.61 kB / 346.1 MB, free: 4.043 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.038e-05/0.004163, allocations: 83.86 kB / 346.2 MB, free: 3.961 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.161e-05/0.004234, allocations: 55.75 kB / 346.2 MB, free: 3.906 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.32e-05/0.004257, allocations: 12 kB / 346.2 MB, free: 3.895 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.004373, allocations: 139.9 kB / 346.4 MB, free: 3.758 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.131e-05/0.004424, allocations: 47.84 kB / 346.4 MB, free: 3.711 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.181e-05/0.004466, allocations: 43.84 kB / 346.5 MB, free: 3.668 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.004671, allocations: 183.5 kB / 346.7 MB, free: 3.488 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.004674, allocations: 3.938 kB / 346.7 MB, free: 3.484 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.004674, allocations: 0 / 346.7 MB, free: 3.484 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.004679, allocations: 0 / 346.7 MB, free: 3.484 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.0003974/0.005077, allocations: 491.6 kB / 347.1 MB, free: 2.961 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.00511, allocations: 12.03 kB / 347.1 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.667e-05/0.005167, allocations: 24.84 kB / 347.2 MB, free: 2.926 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.005313, allocations: 182.5 kB / 347.4 MB, free: 2.723 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.005333, allocations: 8.609 kB / 347.4 MB, free: 2.715 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.005347, allocations: 12.38 kB / 347.4 MB, free: 2.703 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.005506, allocations: 135.2 kB / 347.5 MB, free: 2.555 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.005514, allocations: 192 / 347.5 MB, free: 2.555 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.005527, allocations: 8.375 kB / 347.5 MB, free: 2.547 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.005535, allocations: 384 / 347.5 MB, free: 2.547 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.669e-05/0.005602, allocations: 48.08 kB / 347.6 MB, free: 2.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004072/0.006009, allocations: 431.4 kB / 348 MB, free: 2.039 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.068e-05/0.0061, allocations: 78.09 kB / 348.1 MB, free: 1.938 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.997e-05/0.00614, allocations: 31.52 kB / 348.1 MB, free: 1.898 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.006164, allocations: 4 kB / 348.1 MB, free: 1.895 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001032/0.006267, allocations: 100.3 kB / 348.2 MB, free: 1.773 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 9.32e-07/0.006268, allocations: 0 / 348.2 MB, free: 1.773 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002056/0.006474, allocations: 101.5 kB / 348.3 MB, free: 1.668 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.006507, allocations: 85.09 kB / 348.4 MB, free: 1.566 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.411e-05/0.006601, allocations: 212.5 kB / 348.6 MB, free: 1.344 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.154e-06/0.006608, allocations: 25.7 kB / 348.6 MB, free: 1.312 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.784e-05/0.006656, allocations: 179 kB / 348.8 MB, free: 1.129 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.006673, allocations: 31.73 kB / 348.8 MB, free: 1.098 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.006707, allocations: 39.36 kB / 348.8 MB, free: 1.051 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.974e-05/0.006747, allocations: 0.4962 MB / 349.3 MB, free: 0.543 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.592e-05/0.006773, allocations: 11.98 kB / 349.4 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.254e-05/0.006806, allocations: 54.73 kB / 349.4 MB, free: 472 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.989e-05/0.006866, allocations: 74.62 kB / 349.5 MB, free: 380 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.006868, allocations: 4 kB / 349.5 MB, free: 376 kB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001027/0.00697, allocations: 109.4 kB / 349.6 MB, free: 260 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.006982, allocations: 8 kB / 349.6 MB, free: 252 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.006992, allocations: 0 / 349.6 MB, free: 252 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.007005, allocations: 4 kB / 349.6 MB, free: 248 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.068e-05/0.007066, allocations: 11.98 kB / 349.6 MB, free: 236 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.007072, allocations: 7.984 kB / 349.6 MB, free: 228 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.472e-05/0.007097, allocations: 4 kB / 349.6 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.007103, allocations: 4 kB / 349.6 MB, free: 220 kB / 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 5.358e-05/0.007157, allocations: 168.6 kB / 349.8 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.496e-05/0.007172, allocations: 19.84 kB / 349.8 MB, free: 20 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.007206, allocations: 16.77 kB / 349.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.007208, allocations: 0 / 349.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.007212, allocations: 0 / 349.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.007216, allocations: 0 / 349.8 MB, free: 0 / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001187/0.007334, allocations: 164.6 kB / 350 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.007338, allocations: 320 / 350 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.553e-05/0.007364, allocations: 8 kB / 350 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.007365, allocations: 0 / 350 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.007374, allocations: 7.938 kB / 350 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.007375, allocations: 4 kB / 350 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.007377, allocations: 3.984 kB / 350 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.007505, allocations: 139.9 kB / 350.2 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.381e-05/0.007519, allocations: 15.88 kB / 350.2 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.007532, allocations: 3.938 kB / 350.2 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.555e-05/0.007547, allocations: 0 / 350.2 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.438e-05/0.007582, allocations: 7.984 kB / 350.2 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-06/0.007588, allocations: 4 kB / 350.2 MB, free: 15.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.005e-05/0.007648, allocations: 156 kB / 350.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007648, allocations: 0 / 350.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001752/0.007823, allocations: 39.89 kB / 350.4 MB, free: 15.39 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.0004813/0.008305, allocations: 261.7 kB / 350.6 MB, free: 15.19 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001531/0.008458, allocations: 85.3 kB / 350.7 MB, free: 15.09 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.008459, allocations: 4 kB / 350.7 MB, free: 15.09 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.664e-05/0.008506, allocations: 61.36 kB / 350.8 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001259/0.008632, allocations: 12.12 kB / 350.8 MB, free: 15.01 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003957/0.009028, allocations: 282.4 kB / 351.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.357e-05/0.009071, allocations: 71.33 kB / 351.1 MB, free: 14.61 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.52e-05/0.009106, allocations: 12.56 kB / 351.1 MB, free: 14.6 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.548e-05/0.009132, allocations: 16.5 kB / 351.2 MB, free: 14.58 MB / 282.7 MB Notification: Performance of SimCode: time 7.32e-07/0.009133, allocations: 0 / 351.2 MB, free: 14.58 MB / 282.7 MB Notification: Performance of Templates: time 0.003516/0.01265, allocations: 1.412 MB / 352.6 MB, free: 13.18 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=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.091397654963657]