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.0009599/0.0009599, allocations: 84.19 kB / 15.75 MB, free: 416 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.001063/0.001063, allocations: 176.5 kB / 16.63 MB, free: 6.887 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.327/1.327, allocations: 223.3 MB / 240.7 MB, free: 5.418 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.1719/0.1719, allocations: 12.03 MB / 303.8 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003041/0.0003041, allocations: 12 kB / 367.7 MB, free: 9.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08764/0.08796, allocations: 53.35 MB / 421 MB, free: 4.094 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.002792/0.09079, allocations: 2.252 MB / 423.3 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004912/0.0913, allocations: 295.1 kB / 423.6 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.09142, allocations: 7.938 kB / 423.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001909/0.09162, allocations: 39.72 kB / 423.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.284e-05/0.09171, allocations: 11.86 kB / 423.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.09193, allocations: 75.78 kB / 423.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00015/0.09209, allocations: 124.1 kB / 423.8 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.09224, allocations: 61.7 kB / 423.9 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.757e-05/0.0923, allocations: 43.78 kB / 423.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.9e-05/0.09239, allocations: 43.77 kB / 424 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.09241, allocations: 7.938 kB / 424 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.417e-05/0.09248, allocations: 19.98 kB / 424 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.114e-05/0.09254, allocations: 31.84 kB / 424 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.581e-05/0.09259, allocations: 57.58 kB / 424.1 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001789/0.09278, allocations: 136 kB / 424.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.09279, allocations: 7.922 kB / 424.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.0928, allocations: 0 / 424.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.92e-06/0.09281, allocations: 0 / 424.2 MB, free: 0.8711 MB / 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.0004826/0.0933, allocations: 434.8 kB / 424.6 MB, free: 408 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.09334, allocations: 8.031 kB / 424.6 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.93e-05/0.09339, allocations: 19.72 kB / 424.7 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.09363, allocations: 228.7 kB / 424.9 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.09366, allocations: 12 kB / 424.9 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.101e-05/0.09369, allocations: 15.95 kB / 424.9 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1507/0.2444, allocations: 179.2 kB / 425.1 MB, free: 39.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.2444, allocations: 1.062 kB / 425.1 MB, free: 39.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.2444, allocations: 6.312 kB / 425.1 MB, free: 39.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.2445, allocations: 5.156 kB / 425.1 MB, free: 39.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001768/0.2446, allocations: 117.2 kB / 425.2 MB, free: 39.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005679/0.2452, allocations: 476.7 kB / 425.7 MB, free: 39.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/0.2454, allocations: 123.4 kB / 425.8 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.021e-05/0.2455, allocations: 75.14 kB / 425.9 MB, free: 39.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.2455, allocations: 8.719 kB / 425.9 MB, free: 39.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001764/0.2457, allocations: 126.5 kB / 426 MB, free: 39.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.553e-06/0.2457, allocations: 0 / 426 MB, free: 39.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003245/0.246, allocations: 248.2 kB / 426.2 MB, free: 39.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.2461, allocations: 94.31 kB / 426.3 MB, free: 39.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.401e-05/0.2462, allocations: 144.9 kB / 426.5 MB, free: 39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.2462, allocations: 37.64 kB / 426.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.423e-05/0.2462, allocations: 123.8 kB / 426.6 MB, free: 38.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.406e-05/0.2463, allocations: 65.19 kB / 426.7 MB, free: 38.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.919e-06/0.2463, allocations: 4.531 kB / 426.7 MB, free: 38.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.57e-05/0.2463, allocations: 336.8 kB / 427 MB, free: 38.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.26e-05/0.2464, allocations: 67.36 kB / 427.1 MB, free: 38.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.2466, allocations: 165.3 kB / 427.3 MB, free: 38.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.2467, allocations: 96.14 kB / 427.4 MB, free: 38.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.2467, allocations: 2.969 kB / 427.4 MB, free: 38.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003171/0.247, allocations: 275.5 kB / 427.6 MB, free: 38.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.247, allocations: 9.359 kB / 427.6 MB, free: 38.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.2471, allocations: 3.375 kB / 427.6 MB, free: 38.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.2471, allocations: 6.469 kB / 427.6 MB, free: 38.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.2472, allocations: 29.03 kB / 427.7 MB, free: 38.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.2472, allocations: 11.22 kB / 427.7 MB, free: 38.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.847e-05/0.2473, allocations: 22.08 kB / 427.7 MB, free: 38.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.487e-05/0.2473, allocations: 12.59 kB / 427.7 MB, free: 38.35 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 ($PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[7],keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.keySpace,$PRE.keyboardInput.KeyCode[6],keyboardInput.KeyCode[6],keyboardInput.keyReturn,$PRE.keyboardInput.KeyCode[5],keyboardInput.KeyCode[5],keyboardInput.keyLeft,$PRE.keyboardInput.KeyCode[4],keyboardInput.KeyCode[4],keyboardInput.keyRight,$PRE.keyboardInput.KeyCode[3],keyboardInput.KeyCode[3],keyboardInput.keyDown,$PRE.keyboardInput.KeyCode[2],keyboardInput.KeyCode[2],keyboardInput.keyUp,$PRE.keyboardInput.KeyCode[1],keyboardInput.KeyCode[1]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.2474, allocations: 178 kB / 427.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.737e-05/0.2474, allocations: 14.53 kB / 427.9 MB, free: 38.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.201e-05/0.2475, allocations: 13.91 kB / 427.9 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.2475, allocations: 6.875 kB / 427.9 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2475, allocations: 0 / 427.9 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.2475, allocations: 2.812 kB / 427.9 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001379/0.2477, allocations: 244.8 kB / 428.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.2477, allocations: 3.469 kB / 428.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.529e-05/0.2477, allocations: 6.312 kB / 428.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.2477, allocations: 7.125 kB / 428.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.2477, allocations: 0 / 428.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.2477, allocations: 7.625 kB / 428.2 MB, free: 38.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2477, allocations: 1.031 kB / 428.2 MB, free: 38.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001941/0.2479, allocations: 228.5 kB / 428.4 MB, free: 37.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.191e-05/0.248, allocations: 93.7 kB / 428.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.248, allocations: 6 kB / 428.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.706e-05/0.248, allocations: 4.688 kB / 428.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.543e-05/0.2481, allocations: 13.64 kB / 428.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-06/0.2481, allocations: 2.625 kB / 428.5 MB, free: 37.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.334e-05/0.2481, allocations: 107.8 kB / 428.6 MB, free: 37.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2481, allocations: 0 / 428.6 MB, free: 37.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002577/0.2484, allocations: 44.41 kB / 428.7 MB, free: 37.74 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003941/0.2488, allocations: 219.8 kB / 428.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002487/0.249, allocations: 212 kB / 429.1 MB, free: 37.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2491, allocations: 0 / 429.1 MB, free: 37.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.958e-05/0.2491, allocations: 101.6 kB / 429.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001608/0.2493, allocations: 13.41 kB / 429.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004451/0.2498, allocations: 393.7 kB / 429.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001402/0.2499, allocations: 0.74 MB / 430.3 MB, free: 36.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.531e-05/0.25, allocations: 27.59 kB / 430.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.468e-05/0.25, allocations: 13.69 kB / 430.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.25, allocations: 0 / 430.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of Templates: time 0.003206/0.2532, allocations: 1.253 MB / 431.6 MB, free: 36.51 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)