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.001086/0.001086, allocations: 104.7 kB / 16.57 MB, free: 6.723 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.001053/0.001053, allocations: 193.9 kB / 17.48 MB, free: 6.027 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.367/1.367, allocations: 222.9 MB / 241.2 MB, free: 15.51 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.05799/0.05799, allocations: 12.04 MB / 303.3 MB, free: 3.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 56.14 kB / 366.4 MB, free: 4.336 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2241, allocations: 52.34 MB / 418.7 MB, free: 21.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.003642/0.2278, allocations: 2.685 MB / 421.4 MB, free: 18.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004858/0.2283, allocations: 365.7 kB / 421.8 MB, free: 18.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.174e-05/0.2284, allocations: 7.938 kB / 421.8 MB, free: 18.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002635/0.2287, allocations: 47.7 kB / 421.8 MB, free: 18.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.2288, allocations: 35.88 kB / 421.9 MB, free: 18.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002193/0.2291, allocations: 79.73 kB / 422 MB, free: 18.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001428/0.2292, allocations: 144 kB / 422.1 MB, free: 18.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.2294, allocations: 89.48 kB / 422.2 MB, free: 17.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.544e-05/0.2294, allocations: 51.78 kB / 422.2 MB, free: 17.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.692e-05/0.2295, allocations: 55.7 kB / 422.3 MB, free: 17.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.314e-05/0.2295, allocations: 4 kB / 422.3 MB, free: 17.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001499/0.2297, allocations: 131.9 kB / 422.4 MB, free: 17.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.613e-05/0.2298, allocations: 39.84 kB / 422.5 MB, free: 17.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.687e-05/0.2298, allocations: 59.61 kB / 422.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001932/0.23, allocations: 169.6 kB / 422.7 MB, free: 17.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.23, allocations: 0 / 422.7 MB, free: 17.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.23, allocations: 0 / 422.7 MB, free: 17.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.2301, allocations: 4 kB / 422.7 MB, free: 17.42 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.0005312/0.2306, allocations: 443.1 kB / 423.1 MB, free: 16.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.2306, allocations: 15.97 kB / 423.1 MB, free: 16.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.805e-05/0.2307, allocations: 16.75 kB / 423.2 MB, free: 16.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.2309, allocations: 232 kB / 423.4 MB, free: 16.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.2309, allocations: 8.609 kB / 423.4 MB, free: 16.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.2309, allocations: 12.38 kB / 423.4 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002466/0.2312, allocations: 160.8 kB / 423.6 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.2312, allocations: 192 / 423.6 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.2312, allocations: 7.938 kB / 423.6 MB, free: 16.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2313, allocations: 4 kB / 423.6 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001372/0.2314, allocations: 82.59 kB / 423.7 MB, free: 16.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005436/0.2319, allocations: 481.4 kB / 424.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.2321, allocations: 81.08 kB / 424.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.725e-05/0.2321, allocations: 41.84 kB / 424.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.2322, allocations: 0 / 424.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.2324, allocations: 97.08 kB / 424.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.012e-06/0.2324, allocations: 0 / 424.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002595/0.2326, allocations: 129.4 kB / 424.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.2327, allocations: 81.11 kB / 424.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.2328, allocations: 163.7 kB / 424.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.2328, allocations: 25.7 kB / 424.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.266e-05/0.2329, allocations: 132.1 kB / 424.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.2329, allocations: 31.64 kB / 424.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.143e-05/0.2329, allocations: 25.62 kB / 424.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.166e-05/0.233, allocations: 330.8 kB / 425.2 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.072e-05/0.2331, allocations: 23.98 kB / 425.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.458e-05/0.2331, allocations: 51.42 kB / 425.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.55e-05/0.2332, allocations: 91.34 kB / 425.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2332, allocations: 0 / 425.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001554/0.2334, allocations: 121.5 kB / 425.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.2334, allocations: 4 kB / 425.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.2334, allocations: 4 kB / 425.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.2334, allocations: 0 / 425.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.218e-05/0.2335, allocations: 15.94 kB / 425.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.2335, allocations: 8.062 kB / 425.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.787e-05/0.2336, allocations: 8.156 kB / 425.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.968e-06/0.2336, allocations: 4 kB / 425.6 MB, free: 14.26 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.456e-05/0.2337, allocations: 145.2 kB / 425.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.2337, allocations: 7.906 kB / 425.7 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.166e-05/0.2337, allocations: 16.7 kB / 425.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2338, allocations: 4 kB / 425.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2338, allocations: 0 / 425.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2338, allocations: 0 / 425.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001347/0.2339, allocations: 233.5 kB / 426 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.2339, allocations: 7.984 kB / 426 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.078e-05/0.2339, allocations: 7.938 kB / 426 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.234, allocations: 0 / 426 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.234, allocations: 0 / 426 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.234, allocations: 4 kB / 426 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.234, allocations: 3.938 kB / 426 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001503/0.2341, allocations: 133.7 kB / 426.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.693e-05/0.2342, allocations: 96.88 kB / 426.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.2342, allocations: 4 kB / 426.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.693e-05/0.2342, allocations: 4 kB / 426.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.232e-05/0.2343, allocations: 4 kB / 426.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.2343, allocations: 3.984 kB / 426.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.816e-05/0.2344, allocations: 115.3 kB / 426.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2344, allocations: 0 / 426.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002448/0.2346, allocations: 43.83 kB / 426.4 MB, free: 13.34 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.0004875/0.2351, allocations: 248.1 kB / 426.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001885/0.2353, allocations: 105.5 kB / 426.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2353, allocations: 0 / 426.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.793e-05/0.2354, allocations: 61.62 kB / 426.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001651/0.2356, allocations: 8 kB / 426.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004606/0.236, allocations: 371.6 kB / 427.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.2362, allocations: 0.7278 MB / 427.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.044e-05/0.2362, allocations: 15.44 kB / 427.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2362, allocations: 3.938 kB / 427.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of Templates: time 0.003977/0.2402, allocations: 2.611 MB / 430.5 MB, free: 9.172 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)