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.001269/0.001269, 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.00127/0.00127, 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.9828/0.9828, allocations: 177.2 MB / 204.6 MB, free: 5.477 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.03739/0.03739, allocations: 9.177 MB / 270.3 MB, free: 4.121 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.192e-06/1.192e-06, allocations: 0 / 289.8 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.128e-05/1.247e-05, allocations: 6.25 kB / 289.8 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.1581/0.1582, allocations: 2.851 MB / 292.6 MB, free: 18.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004796/0.1586, allocations: 365.1 kB / 293 MB, free: 17.79 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.552e-05/0.1587, allocations: 10.59 kB / 293 MB, free: 17.78 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002099/0.1589, allocations: 46.42 kB / 293.1 MB, free: 17.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.1591, allocations: 62.22 kB / 293.1 MB, free: 17.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001975/0.1593, allocations: 89.3 kB / 293.2 MB, free: 17.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001678/0.1595, allocations: 152.6 kB / 293.4 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.1596, allocations: 53.62 kB / 293.4 MB, free: 17.58 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.611e-05/0.1597, allocations: 79.34 kB / 293.5 MB, free: 17.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.341e-05/0.1598, allocations: 52.06 kB / 293.5 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.1598, allocations: 12.88 kB / 293.5 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001895/0.16, allocations: 144 kB / 293.7 MB, free: 17.49 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.33e-05/0.1601, allocations: 39.92 kB / 293.7 MB, free: 17.47 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.298e-05/0.1601, allocations: 43.27 kB / 293.8 MB, free: 17.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002424/0.1604, allocations: 199.8 kB / 294 MB, free: 17.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1604, allocations: 0.9375 kB / 294 MB, free: 17.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1604, allocations: 1.188 kB / 294 MB, free: 17.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1604, allocations: 0 / 294 MB, free: 17.34 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.000391/0.1608, allocations: 351.8 kB / 294.3 MB, free: 17.03 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.1608, allocations: 10 kB / 294.3 MB, free: 17.03 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.397e-05/0.1609, allocations: 16.64 kB / 294.3 MB, free: 17.03 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.161, allocations: 171.7 kB / 294.5 MB, free: 16.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.161, allocations: 6.766 kB / 294.5 MB, free: 16.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.606e-05/0.161, allocations: 12.56 kB / 294.5 MB, free: 16.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001524/0.1612, allocations: 129.4 kB / 294.7 MB, free: 16.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.1612, allocations: 192 / 294.7 MB, free: 16.78 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.1612, allocations: 6.469 kB / 294.7 MB, free: 16.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.1612, allocations: 4.156 kB / 294.7 MB, free: 16.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.385e-05/0.1613, allocations: 29.78 kB / 294.7 MB, free: 16.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003697/0.1616, allocations: 300.5 kB / 295 MB, free: 16.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.018e-05/0.1617, allocations: 51.23 kB / 295 MB, free: 16.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.834e-05/0.1617, allocations: 25.89 kB / 295.1 MB, free: 16.47 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.1618, allocations: 2.891 kB / 295.1 MB, free: 16.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001097/0.1619, allocations: 83.19 kB / 295.1 MB, free: 16.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 9.91e-07/0.1619, allocations: 3.281 kB / 295.1 MB, free: 16.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.000156/0.162, allocations: 78.34 kB / 295.2 MB, free: 16.35 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.1621, allocations: 84.61 kB / 295.3 MB, free: 16.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.1622, allocations: 147.9 kB / 295.4 MB, free: 16.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.516e-06/0.1622, allocations: 30.73 kB / 295.5 MB, free: 16.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.112e-05/0.1622, allocations: 116.2 kB / 295.6 MB, free: 16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.1622, allocations: 34.33 kB / 295.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.006e-05/0.1623, allocations: 24.25 kB / 295.7 MB, free: 15.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.474e-05/0.1623, allocations: 328.5 kB / 296 MB, free: 15.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.883e-05/0.1623, allocations: 8.578 kB / 296 MB, free: 15.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.175e-05/0.1624, allocations: 44.55 kB / 296 MB, free: 15.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.998e-05/0.1624, allocations: 60.17 kB / 296.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1624, allocations: 0 / 296.1 MB, free: 15.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 8.985e-05/0.1625, allocations: 88.97 kB / 296.2 MB, free: 15.51 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.1625, allocations: 5.344 kB / 296.2 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/0.1625, allocations: 6.703 kB / 296.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.1626, allocations: 2.562 kB / 296.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.481e-05/0.1626, allocations: 18.73 kB / 296.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.1626, allocations: 2.469 kB / 296.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.795e-05/0.1627, allocations: 10.42 kB / 296.2 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.1627, allocations: 7.172 kB / 296.2 MB, free: 15.49 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 5.179e-05/0.1627, allocations: 113.6 kB / 296.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.1627, allocations: 12.23 kB / 296.3 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.14e-05/0.1628, allocations: 23.72 kB / 296.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1628, allocations: 0.9375 kB / 296.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.033e-06/0.1628, allocations: 1.188 kB / 296.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1628, allocations: 1.781 kB / 296.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.113e-05/0.1629, allocations: 95.22 kB / 296.5 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1629, allocations: 1.578 kB / 296.5 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.236e-05/0.1629, allocations: 10.52 kB / 296.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1629, allocations: 1.188 kB / 296.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-06/0.1629, allocations: 1.984 kB / 296.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1629, allocations: 1.422 kB / 296.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1629, allocations: 5.938 kB / 296.5 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.875e-05/0.163, allocations: 94.88 kB / 296.6 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.376e-05/0.163, allocations: 18.2 kB / 296.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.081e-05/0.163, allocations: 1.75 kB / 296.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.32e-05/0.163, allocations: 6.062 kB / 296.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.906e-05/0.163, allocations: 10.34 kB / 296.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.163, allocations: 1.812 kB / 296.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.371e-05/0.1631, allocations: 38.45 kB / 296.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1631, allocations: 0 / 296.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001492/0.1632, allocations: 40.73 kB / 296.7 MB, free: 15.13 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: 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.0005499/0.1638, allocations: 272.1 kB / 297 MB, free: 15.04 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001159/0.1639, allocations: 71.73 kB / 297 MB, free: 15 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.1639, allocations: 3.719 kB / 297 MB, free: 15 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.109e-05/0.1639, allocations: 54.53 kB / 297.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.012e-05/0.164, allocations: 13.47 kB / 297.1 MB, free: 14.94 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003328/0.1644, allocations: 276.5 kB / 297.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.564e-05/0.1644, allocations: 74.94 kB / 297.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.704e-05/0.1644, allocations: 10.22 kB / 297.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.746e-05/0.1645, allocations: 62.94 kB / 297.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of SimCode: time 6.82e-07/0.1645, allocations: 1.094 kB / 297.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of Templates: time 0.003692/0.1682, allocations: 1.496 MB / 299 MB, free: 14.46 MB / 266.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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.882385711185634]