Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.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.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007197/0.0007197, allocations: 102.9 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007582/0.0007581, allocations: 183 kB / 16.97 MB, free: 6.879 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.252/1.252, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1482/0.1482, allocations: 12.03 MB / 304.2 MB, free: 1.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002769/0.0002769, allocations: 11.98 kB / 368.3 MB, free: 9.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07969/0.07999, allocations: 53.35 MB / 421.6 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.002607/0.08261, allocations: 2.314 MB / 424 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004619/0.08308, allocations: 303 kB / 424.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.044e-05/0.08318, allocations: 7.938 kB / 424.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001865/0.08337, allocations: 39.77 kB / 424.3 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.88e-05/0.08345, allocations: 11.92 kB / 424.3 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.08365, allocations: 79.78 kB / 424.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001484/0.08381, allocations: 140 kB / 424.5 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.08397, allocations: 77.52 kB / 424.6 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.575e-05/0.08404, allocations: 47.77 kB / 424.6 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.313e-05/0.08411, allocations: 47.7 kB / 424.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.794e-05/0.08414, allocations: 4 kB / 424.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.885e-05/0.0842, allocations: 16 kB / 424.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.691e-05/0.08427, allocations: 39.84 kB / 424.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.386e-05/0.08435, allocations: 89.25 kB / 424.8 MB, free: 500 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001961/0.08455, allocations: 183.6 kB / 425 MB, free: 316 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.08456, allocations: 3.938 kB / 425 MB, free: 312 kB / 350.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.08457, allocations: 0 / 425 MB, free: 312 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.349e-06/0.08458, allocations: 0 / 425 MB, free: 312 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.1357/0.2203, allocations: 432.1 kB / 425.4 MB, free: 39.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2203, allocations: 10.06 kB / 425.4 MB, free: 39.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.38e-05/0.2204, allocations: 17.91 kB / 425.5 MB, free: 39.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001872/0.2206, allocations: 228.5 kB / 425.7 MB, free: 39.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.2206, allocations: 10.28 kB / 425.7 MB, free: 39.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.992e-05/0.2207, allocations: 13.27 kB / 425.7 MB, free: 39.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002539/0.2209, allocations: 185.4 kB / 425.9 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.2209, allocations: 8.906 kB / 425.9 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.221, allocations: 7 kB / 425.9 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.221, allocations: 3.188 kB / 425.9 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001578/0.2211, allocations: 117.2 kB / 426 MB, free: 39.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005387/0.2217, allocations: 483.2 kB / 426.5 MB, free: 38.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.2218, allocations: 126.2 kB / 426.6 MB, free: 38.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.28e-05/0.2219, allocations: 74.28 kB / 426.7 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.764e-05/0.2219, allocations: 6.125 kB / 426.7 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001703/0.2221, allocations: 132.7 kB / 426.8 MB, free: 38.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.442e-06/0.2221, allocations: 0 / 426.8 MB, free: 38.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003158/0.2224, allocations: 254.4 kB / 427.1 MB, free: 38.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.2225, allocations: 90.19 kB / 427.2 MB, free: 38.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.802e-05/0.2226, allocations: 146.2 kB / 427.3 MB, free: 38.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.882e-05/0.2226, allocations: 36.62 kB / 427.3 MB, free: 38.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.353e-05/0.2227, allocations: 128.6 kB / 427.5 MB, free: 38.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.6e-05/0.2227, allocations: 68.2 kB / 427.5 MB, free: 38.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.511e-05/0.2228, allocations: 31 kB / 427.6 MB, free: 38.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.01e-05/0.2228, allocations: 337.2 kB / 427.9 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.28e-05/0.2229, allocations: 70.36 kB / 428 MB, free: 38.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.223, allocations: 157.8 kB / 428.1 MB, free: 37.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002174/0.2232, allocations: 252.6 kB / 428.4 MB, free: 37.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.2233, allocations: 3.875 kB / 428.4 MB, free: 37.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003093/0.2236, allocations: 274.6 kB / 428.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.2236, allocations: 5.438 kB / 428.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.2236, allocations: 7.578 kB / 428.7 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.2236, allocations: 2.812 kB / 428.7 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.2237, allocations: 33.17 kB / 428.7 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.2238, allocations: 6.844 kB / 428.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.905e-05/0.2238, allocations: 21.44 kB / 428.7 MB, free: 37.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.2238, allocations: 14.02 kB / 428.7 MB, free: 37.76 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 (keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],$PRE.keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.KeyCode[6],$PRE.keyboardInput.KeyCode[6],keyboardInput.keySpace,keyboardInput.KeyCode[5],$PRE.keyboardInput.KeyCode[5],keyboardInput.keyReturn,keyboardInput.KeyCode[4],$PRE.keyboardInput.KeyCode[4],keyboardInput.keyLeft,keyboardInput.KeyCode[3],$PRE.keyboardInput.KeyCode[3],keyboardInput.keyRight,keyboardInput.KeyCode[2],$PRE.keyboardInput.KeyCode[2],keyboardInput.keyDown,keyboardInput.KeyCode[1],$PRE.keyboardInput.KeyCode[1],keyboardInput.keyUp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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.0001025/0.224, allocations: 174.2 kB / 428.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.71e-05/0.224, allocations: 12.19 kB / 428.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.178e-05/0.224, allocations: 20.44 kB / 428.9 MB, free: 37.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.224, allocations: 6.922 kB / 428.9 MB, free: 37.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.224, allocations: 192 / 428.9 MB, free: 37.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.2241, allocations: 4 kB / 428.9 MB, free: 37.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001382/0.2242, allocations: 248.4 kB / 429.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.2242, allocations: 0.75 kB / 429.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.366e-05/0.2242, allocations: 2.906 kB / 429.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.2242, allocations: 6.219 kB / 429.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.2243, allocations: 0 / 429.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.2243, allocations: 6.938 kB / 429.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2243, allocations: 0.6875 kB / 429.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001928/0.2245, allocations: 234.1 kB / 429.4 MB, free: 37.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.256e-05/0.2245, allocations: 94.95 kB / 429.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.2245, allocations: 0 / 429.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.75e-05/0.2246, allocations: 0.9375 kB / 429.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.496e-05/0.2246, allocations: 12.98 kB / 429.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-06/0.2246, allocations: 2.75 kB / 429.5 MB, free: 37.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.515e-05/0.2247, allocations: 114.8 kB / 429.6 MB, free: 37.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2247, allocations: 0 / 429.6 MB, free: 37.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002582/0.2249, allocations: 46.16 kB / 429.7 MB, free: 37.15 MB / 350.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: 17 ($whenCondition1,keyboardInput.keyUp,keyboardInput.keyDown,keyboardInput.keyRight,keyboardInput.keyLeft,keyboardInput.keyReturn,keyboardInput.keySpace,keyboardInput.KeyCode[1],keyboardInput.KeyCode[2],keyboardInput.KeyCode[3],keyboardInput.KeyCode[4],keyboardInput.KeyCode[5],keyboardInput.KeyCode[6],keyboardInput.KeyCode[7],keyboardInput.KeyCode[8],keyboardInput.KeyCode[9],keyboardInput.KeyCode[10]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.0003816/0.2253, allocations: 218.7 kB / 429.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002451/0.2256, allocations: 204.2 kB / 430.1 MB, free: 37 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.2256, allocations: 4.062 kB / 430.1 MB, free: 37 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.807e-05/0.2257, allocations: 101.6 kB / 430.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001637/0.2258, allocations: 13.72 kB / 430.2 MB, free: 36.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000439/0.2263, allocations: 409 kB / 430.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.2264, allocations: 0.7428 MB / 431.4 MB, free: 36.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.277e-05/0.2265, allocations: 23.39 kB / 431.4 MB, free: 36.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.028e-05/0.2265, allocations: 18.31 kB / 431.4 MB, free: 36 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2265, allocations: 2.906 kB / 431.4 MB, free: 36 MB / 350.1 MB Notification: Performance of Templates: time 0.003258/0.2298, allocations: 1.275 MB / 432.7 MB, free: 35.89 MB / 350.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)