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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 105.1 kB / 16.68 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 193.8 kB / 17.61 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 241.3 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05654/0.05654, allocations: 12.04 MB / 303.5 MB, free: 3.363 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 55.91 kB / 366.6 MB, free: 4.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2272, allocations: 52.32 MB / 418.9 MB, free: 21.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.00353/0.2308, allocations: 2.692 MB / 421.6 MB, free: 18.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004624/0.2313, allocations: 354.9 kB / 422 MB, free: 18.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.26e-05/0.2314, allocations: 7.938 kB / 422 MB, free: 18.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002494/0.2317, allocations: 35.77 kB / 422 MB, free: 18.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001508/0.2318, allocations: 39.83 kB / 422.1 MB, free: 18.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001949/0.232, allocations: 83.78 kB / 422.1 MB, free: 18.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001435/0.2322, allocations: 148 kB / 422.3 MB, free: 17.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.2323, allocations: 85.5 kB / 422.4 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.867e-05/0.2324, allocations: 63.77 kB / 422.4 MB, free: 17.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.713e-05/0.2325, allocations: 63.64 kB / 422.5 MB, free: 17.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.159e-05/0.2325, allocations: 15.98 kB / 422.5 MB, free: 17.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.2327, allocations: 131.9 kB / 422.6 MB, free: 17.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.436e-05/0.2327, allocations: 47.84 kB / 422.7 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.356e-05/0.2328, allocations: 67.61 kB / 422.7 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.233, allocations: 169.6 kB / 422.9 MB, free: 17.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.233, allocations: 0 / 422.9 MB, free: 17.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.233, allocations: 0 / 422.9 MB, free: 17.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.233, allocations: 0 / 422.9 MB, free: 17.29 MB / 302.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.0005228/0.2335, allocations: 447.1 kB / 423.3 MB, free: 16.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.2336, allocations: 12.03 kB / 423.4 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.837e-05/0.2336, allocations: 16.75 kB / 423.4 MB, free: 16.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001897/0.2338, allocations: 236 kB / 423.6 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.2339, allocations: 8.609 kB / 423.6 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.2339, allocations: 12.38 kB / 423.6 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.2341, allocations: 152.8 kB / 423.8 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.2341, allocations: 8.062 kB / 423.8 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.2342, allocations: 7.938 kB / 423.8 MB, free: 16.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.2342, allocations: 4 kB / 423.8 MB, free: 16.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.2343, allocations: 82.59 kB / 423.9 MB, free: 16.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005202/0.2348, allocations: 469.5 kB / 424.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000111/0.235, allocations: 85.12 kB / 424.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.044e-05/0.235, allocations: 41.8 kB / 424.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.2351, allocations: 7.922 kB / 424.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001697/0.2352, allocations: 89.09 kB / 424.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.943e-06/0.2353, allocations: 3.984 kB / 424.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002643/0.2355, allocations: 129.4 kB / 424.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.934e-05/0.2356, allocations: 85.11 kB / 424.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.2357, allocations: 159.7 kB / 424.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.2357, allocations: 29.7 kB / 425 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.986e-05/0.2358, allocations: 128.1 kB / 425.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.2358, allocations: 23.66 kB / 425.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.202e-05/0.2358, allocations: 29.61 kB / 425.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.001e-05/0.2359, allocations: 330.8 kB / 425.5 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.022e-05/0.2359, allocations: 27.98 kB / 425.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.4e-05/0.236, allocations: 59.36 kB / 425.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.038e-05/0.2361, allocations: 83.34 kB / 425.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2361, allocations: 0 / 425.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001533/0.2363, allocations: 121.5 kB / 425.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.2363, allocations: 7.938 kB / 425.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.2363, allocations: 4 kB / 425.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.2363, allocations: 0 / 425.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.474e-05/0.2364, allocations: 15.98 kB / 425.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.2364, allocations: 4 kB / 425.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.704e-05/0.2364, allocations: 8.156 kB / 425.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.2365, allocations: 4 kB / 425.8 MB, free: 14.13 MB / 302.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 8.51e-05/0.2365, allocations: 146.3 kB / 425.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.914e-05/0.2366, allocations: 15.97 kB / 425.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.152e-05/0.2366, allocations: 8.719 kB / 425.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.2366, allocations: 4 kB / 426 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2366, allocations: 0 / 426 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2366, allocations: 3.984 kB / 426 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.2368, allocations: 233.5 kB / 426.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2368, allocations: 0 / 426.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.085e-05/0.2368, allocations: 7.938 kB / 426.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2368, allocations: 0 / 426.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.2368, allocations: 3.984 kB / 426.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.2369, allocations: 4 kB / 426.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2369, allocations: 4 kB / 426.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00015/0.237, allocations: 133.7 kB / 426.3 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.586e-05/0.237, allocations: 85.02 kB / 426.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.2371, allocations: 11.94 kB / 426.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.656e-05/0.2371, allocations: 0 / 426.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.2372, allocations: 7.984 kB / 426.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.2372, allocations: 4 kB / 426.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.912e-05/0.2372, allocations: 119.2 kB / 426.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.112e-06/0.2372, allocations: 0 / 426.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00026/0.2375, allocations: 43.78 kB / 426.6 MB, free: 13.21 MB / 302.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.0004888/0.238, allocations: 236 kB / 426.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001963/0.2382, allocations: 125.5 kB / 427 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2382, allocations: 3.938 kB / 427 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.49e-05/0.2383, allocations: 65.62 kB / 427 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001739/0.2385, allocations: 10.06 kB / 427 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004645/0.239, allocations: 357.7 kB / 427.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001397/0.2391, allocations: 0.7275 MB / 428.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.971e-05/0.2391, allocations: 15.44 kB / 428.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2391, allocations: 0 / 428.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of Templates: time 0.003777/0.2429, allocations: 2.622 MB / 430.7 MB, free: 9.039 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile (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)