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.001179/0.001179, allocations: 108.4 kB / 17.08 MB, free: 5.773 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.00119/0.00119, allocations: 195 kB / 18.03 MB, free: 4.953 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.314/1.314, allocations: 222.9 MB / 241.7 MB, free: 15.17 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.05701/0.05701, allocations: 12.04 MB / 303.9 MB, free: 3.156 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 59.91 kB / 367.9 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2109, allocations: 52.32 MB / 420.2 MB, free: 20.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.003198/0.2141, allocations: 2.655 MB / 422.9 MB, free: 18.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004415/0.2146, allocations: 362.6 kB / 423.3 MB, free: 17.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.754e-05/0.2147, allocations: 11.88 kB / 423.3 MB, free: 17.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001783/0.2149, allocations: 47.62 kB / 423.3 MB, free: 17.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.215, allocations: 47.81 kB / 423.4 MB, free: 17.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001704/0.2152, allocations: 83.7 kB / 423.4 MB, free: 17.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.2153, allocations: 152 kB / 423.6 MB, free: 17.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.2155, allocations: 85.5 kB / 423.7 MB, free: 17.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.903e-05/0.2155, allocations: 55.78 kB / 423.7 MB, free: 17.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.975e-05/0.2156, allocations: 63.7 kB / 423.8 MB, free: 17.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.195e-05/0.2157, allocations: 15.94 kB / 423.8 MB, free: 17.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001408/0.2158, allocations: 143.9 kB / 423.9 MB, free: 17.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.949e-05/0.2159, allocations: 39.91 kB / 424 MB, free: 17.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.417e-05/0.2159, allocations: 67.61 kB / 424.1 MB, free: 17.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.2162, allocations: 228.9 kB / 424.3 MB, free: 16.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.2162, allocations: 0 / 424.3 MB, free: 16.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2162, allocations: 0 / 424.3 MB, free: 16.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.2162, allocations: 3.984 kB / 424.3 MB, free: 16.96 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.0004227/0.2166, allocations: 455 kB / 424.7 MB, free: 16.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.2166, allocations: 8.031 kB / 424.7 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.362e-05/0.2167, allocations: 16.75 kB / 424.7 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001836/0.2169, allocations: 232 kB / 425 MB, free: 16.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.2169, allocations: 8.609 kB / 425 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.2169, allocations: 16.38 kB / 425 MB, free: 16.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.2172, allocations: 156.8 kB / 425.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.2172, allocations: 4.188 kB / 425.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.2172, allocations: 7.938 kB / 425.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2172, allocations: 4 kB / 425.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.2173, allocations: 80.19 kB / 425.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004956/0.2178, allocations: 469.5 kB / 425.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.218, allocations: 77.08 kB / 425.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.622e-05/0.218, allocations: 41.84 kB / 425.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.218, allocations: 0 / 425.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001466/0.2182, allocations: 93.09 kB / 425.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.102e-06/0.2182, allocations: 0 / 425.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002343/0.2184, allocations: 141.3 kB / 426 MB, free: 14.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.375e-05/0.2185, allocations: 81.11 kB / 426.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.2186, allocations: 159.7 kB / 426.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/0.2186, allocations: 29.7 kB / 426.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.535e-05/0.2187, allocations: 128.1 kB / 426.4 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.2187, allocations: 31.59 kB / 426.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.103e-05/0.2187, allocations: 37.55 kB / 426.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.718e-05/0.2188, allocations: 326.8 kB / 426.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.768e-05/0.2188, allocations: 23.98 kB / 426.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.236e-05/0.2189, allocations: 58.38 kB / 426.9 MB, free: 14.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.969e-05/0.219, allocations: 83.36 kB / 427 MB, free: 13.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.219, allocations: 4 kB / 427 MB, free: 13.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001533/0.2191, allocations: 121.5 kB / 427.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.2192, allocations: 4 kB / 427.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.2192, allocations: 7.984 kB / 427.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.2192, allocations: 0 / 427.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.702e-05/0.2193, allocations: 8 kB / 427.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.87e-06/0.2193, allocations: 7.938 kB / 427.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.858e-05/0.2193, allocations: 19.84 kB / 427.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.2193, allocations: 0 / 427.2 MB, free: 13.79 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 7.408e-05/0.2194, allocations: 141.4 kB / 427.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.858e-05/0.2194, allocations: 11.91 kB / 427.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.615e-05/0.2195, allocations: 8.719 kB / 427.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.2195, allocations: 7.984 kB / 427.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2195, allocations: 0 / 427.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.2195, allocations: 0 / 427.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001277/0.2196, allocations: 233.5 kB / 427.5 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.2196, allocations: 4 kB / 427.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-05/0.2197, allocations: 7.984 kB / 427.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.2197, allocations: 320 / 427.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.2197, allocations: 4 kB / 427.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2197, allocations: 7.938 kB / 427.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2197, allocations: 0 / 427.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.2198, allocations: 129.7 kB / 427.7 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.441e-05/0.2199, allocations: 89.02 kB / 427.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.962e-05/0.2199, allocations: 8 kB / 427.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.265e-05/0.22, allocations: 3.984 kB / 427.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.307e-05/0.22, allocations: 7.938 kB / 427.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.22, allocations: 4 kB / 427.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.549e-05/0.2201, allocations: 115.2 kB / 427.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.2201, allocations: 0 / 427.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002373/0.2203, allocations: 43.78 kB / 428 MB, free: 12.88 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.0004106/0.2207, allocations: 250.9 kB / 428.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001668/0.2209, allocations: 105.5 kB / 428.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2209, allocations: 0 / 428.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.247e-05/0.221, allocations: 69.7 kB / 428.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/0.2212, allocations: 8 kB / 428.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003812/0.2215, allocations: 276 kB / 428.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001248/0.2217, allocations: 0.7275 MB / 429.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.016e-05/0.2217, allocations: 16.41 kB / 429.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.206e-05/0.2218, allocations: 11.44 kB / 429.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2218, allocations: 4 kB / 429.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of Templates: time 0.003421/0.2252, allocations: 1.389 MB / 430.8 MB, free: 10.01 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 -s gbode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)