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.001798/0.001798, allocations: 73.08 kB / 19.97 MB, free: 1.746 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.001871/0.001871, allocations: 166.2 kB / 23.26 MB, free: 4.871 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.454/1.454, allocations: 177.1 MB / 203.6 MB, free: 9.191 MB / 190.1 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.06088/0.06088, allocations: 9.169 MB / 269.1 MB, free: 7.914 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.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.262e-06/1.262e-06, allocations: 0 / 397.5 MB, free: 5.305 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.328e-05/2.455e-05, allocations: 2.281 kB / 397.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004444/0.004469, allocations: 2.723 MB / 400.3 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007109/0.005179, allocations: 342.8 kB / 400.6 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001475/0.005327, allocations: 15.88 kB / 400.6 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.005589, allocations: 47.62 kB / 400.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003357/0.005925, allocations: 63.7 kB / 400.7 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002706/0.006196, allocations: 91.64 kB / 400.8 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000246/0.006442, allocations: 156 kB / 401 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.006615, allocations: 41.78 kB / 401 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.006756, allocations: 87.78 kB / 401.1 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.00687, allocations: 51.88 kB / 401.2 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.006905, allocations: 12 kB / 401.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002517/0.007157, allocations: 135.9 kB / 401.3 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.957e-05/0.007236, allocations: 51.83 kB / 401.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.165e-05/0.007308, allocations: 39.8 kB / 401.4 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000414/0.007722, allocations: 247.3 kB / 401.6 MB, free: 1.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.007726, allocations: 4 kB / 401.6 MB, free: 1.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.007727, allocations: 0 / 401.6 MB, free: 1.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.007732, allocations: 0 / 401.6 MB, free: 1.199 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006604/0.008392, allocations: 381.7 kB / 402 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.00843, allocations: 12.03 kB / 402 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.687e-05/0.008497, allocations: 16.84 kB / 402 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002754/0.008772, allocations: 176.2 kB / 402.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.008799, allocations: 16.61 kB / 402.2 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.327e-05/0.008822, allocations: 8.375 kB / 402.2 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000342/0.009164, allocations: 168.7 kB / 402.4 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.009176, allocations: 192 / 402.4 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.009194, allocations: 384 / 402.4 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.009203, allocations: 4.375 kB / 402.4 MB, free: 372 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.00939, allocations: 84.78 kB / 402.5 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007348/0.01012, allocations: 377.4 kB / 402.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.01029, allocations: 65.14 kB / 402.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.342e-05/0.01037, allocations: 41.84 kB / 403 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.01041, allocations: 4 kB / 403 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.01066, allocations: 97.03 kB / 403.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.693e-06/0.01066, allocations: 0 / 403.1 MB, free: 15.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003897/0.01105, allocations: 125.5 kB / 403.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.395e-05/0.01113, allocations: 77.11 kB / 403.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/0.01133, allocations: 162.9 kB / 403.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.01135, allocations: 25.7 kB / 403.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.01146, allocations: 140.1 kB / 403.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.761e-05/0.0115, allocations: 27.75 kB / 403.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.255e-05/0.01157, allocations: 37.64 kB / 403.6 MB, free: 15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.01173, allocations: 326.8 kB / 404 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.61e-05/0.01179, allocations: 23.98 kB / 404 MB, free: 14.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.74e-05/0.01188, allocations: 55.42 kB / 404 MB, free: 14.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.01204, allocations: 83.36 kB / 404.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.01204, allocations: 0 / 404.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002268/0.01227, allocations: 121.5 kB / 404.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.01229, allocations: 4 kB / 404.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.01231, allocations: 7.984 kB / 404.2 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.01232, allocations: 4.062 kB / 404.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.994e-05/0.0124, allocations: 15.94 kB / 404.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.01241, allocations: 0 / 404.3 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.439e-05/0.01246, allocations: 11.89 kB / 404.3 MB, free: 14.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.01248, allocations: 4 kB / 404.3 MB, free: 14.31 MB / 334.1 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.0001312/0.01261, allocations: 134.1 kB / 404.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.01264, allocations: 19.84 kB / 404.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.257e-05/0.01269, allocations: 20.77 kB / 404.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.01269, allocations: 0 / 404.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.0127, allocations: 4 kB / 404.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.0127, allocations: 4 kB / 404.5 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.01289, allocations: 157.2 kB / 404.6 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.0129, allocations: 4 kB / 404.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.629e-05/0.01293, allocations: 240 / 404.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.521e-06/0.01293, allocations: 4 kB / 404.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.01295, allocations: 7.938 kB / 404.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.01295, allocations: 7.922 kB / 404.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.01295, allocations: 0 / 404.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002297/0.01318, allocations: 133.9 kB / 404.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.342e-05/0.01321, allocations: 11.89 kB / 404.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.648e-05/0.01323, allocations: 11.94 kB / 404.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.835e-05/0.01326, allocations: 0 / 404.8 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.01331, allocations: 15.92 kB / 404.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.01332, allocations: 0 / 404.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001033/0.01343, allocations: 119.2 kB / 404.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.01343, allocations: 0 / 404.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002884/0.01371, allocations: 31.89 kB / 405 MB, free: 13.58 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: 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.0007129/0.01443, allocations: 259 kB / 405.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002375/0.01466, allocations: 97.61 kB / 405.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.01467, allocations: 0 / 405.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.351e-05/0.01476, allocations: 61.62 kB / 405.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001691/0.01493, allocations: 7.938 kB / 405.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000552/0.01548, allocations: 278.9 kB / 405.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/0.01561, allocations: 119 kB / 405.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.77e-05/0.01565, allocations: 8.484 kB / 405.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.577e-05/0.01569, allocations: 20.44 kB / 405.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.01569, allocations: 0 / 405.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of Templates: time 0.005019/0.02071, allocations: 1.388 MB / 407.2 MB, free: 11.35 MB / 334.1 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.587321422994137] Failed to read output from testmodel.py, exit status != 0: 0.02919313684105873 0.044042739000000004 0.033229497000000004 Calling exit ...