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.001382/0.001382, allocations: 109.3 kB / 16.03 MB, free: 6.363 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.001296/0.001296, allocations: 186.2 kB / 16.95 MB, free: 6.176 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.372/1.372, allocations: 222.9 MB / 240.6 MB, free: 15.43 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.05897/0.05897, allocations: 12.03 MB / 302.8 MB, free: 3.301 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 63.91 kB / 366 MB, free: 4.102 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2653, allocations: 52.32 MB / 418.3 MB, free: 21.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003672/0.269, allocations: 2.675 MB / 420.9 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003987/0.2695, allocations: 303 kB / 421.2 MB, free: 18.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.225e-05/0.2696, allocations: 3.938 kB / 421.2 MB, free: 18.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000259/0.2699, allocations: 47.75 kB / 421.3 MB, free: 18.26 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.599e-05/0.2699, allocations: 11.88 kB / 421.3 MB, free: 18.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002225/0.2702, allocations: 87.72 kB / 421.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.2703, allocations: 144.1 kB / 421.5 MB, free: 18.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.2705, allocations: 85.52 kB / 421.6 MB, free: 17.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.341e-05/0.2706, allocations: 63.72 kB / 421.7 MB, free: 17.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.826e-05/0.2707, allocations: 59.7 kB / 421.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.45e-05/0.2707, allocations: 12 kB / 421.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.519e-05/0.2708, allocations: 27.98 kB / 421.8 MB, free: 17.78 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.392e-05/0.2708, allocations: 47.84 kB / 421.8 MB, free: 17.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.228e-05/0.2709, allocations: 79.53 kB / 421.9 MB, free: 17.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.2711, allocations: 193.3 kB / 422.1 MB, free: 17.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2711, allocations: 0 / 422.1 MB, free: 17.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2711, allocations: 0 / 422.1 MB, free: 17.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.2711, allocations: 4 kB / 422.1 MB, free: 17.46 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004639/0.2716, allocations: 462.9 kB / 422.5 MB, free: 16.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.2716, allocations: 8.031 kB / 422.6 MB, free: 16.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.1e-05/0.2717, allocations: 20.75 kB / 422.6 MB, free: 16.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001782/0.2719, allocations: 231.9 kB / 422.8 MB, free: 16.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.2719, allocations: 8.375 kB / 422.8 MB, free: 16.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.94e-05/0.2719, allocations: 12.38 kB / 422.8 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002365/0.2722, allocations: 191.8 kB / 423 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.2722, allocations: 4.188 kB / 423 MB, free: 16.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.2722, allocations: 7.938 kB / 423 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.2722, allocations: 4 kB / 423 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001497/0.2724, allocations: 114.6 kB / 423.1 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005282/0.2729, allocations: 489.4 kB / 423.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.2731, allocations: 133 kB / 423.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.171e-05/0.2731, allocations: 80.64 kB / 423.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.2732, allocations: 0 / 423.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001978/0.2734, allocations: 129.1 kB / 423.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.934e-06/0.2734, allocations: 0 / 423.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003175/0.2737, allocations: 248 kB / 424.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.2738, allocations: 97.03 kB / 424.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.2739, allocations: 143.1 kB / 424.4 MB, free: 14.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.2739, allocations: 37.69 kB / 424.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.422e-05/0.274, allocations: 128.7 kB / 424.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.438e-05/0.274, allocations: 59.19 kB / 424.6 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-05/0.2741, allocations: 57.98 kB / 424.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.054e-05/0.2741, allocations: 330.8 kB / 425 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.48e-05/0.2742, allocations: 68.23 kB / 425.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.2743, allocations: 171.6 kB / 425.3 MB, free: 14 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001957/0.2745, allocations: 250.9 kB / 425.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2746, allocations: 0 / 425.5 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002831/0.2748, allocations: 273.1 kB / 425.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.2749, allocations: 11.94 kB / 425.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.2749, allocations: 8.188 kB / 425.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.2749, allocations: 4 kB / 425.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.275, allocations: 35.86 kB / 425.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.275, allocations: 4 kB / 425.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.436e-05/0.2751, allocations: 23.75 kB / 425.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.2751, allocations: 8 kB / 425.9 MB, free: 13.34 MB / 302.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.0001137/0.2752, allocations: 178.6 kB / 426 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.822e-05/0.2753, allocations: 19.8 kB / 426.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.342e-05/0.2753, allocations: 13.19 kB / 426.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.2753, allocations: 0 / 426.1 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.2753, allocations: 4 kB / 426.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.2753, allocations: 4.234 kB / 426.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.2755, allocations: 237.5 kB / 426.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.2755, allocations: 4 kB / 426.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.247e-05/0.2755, allocations: 7.984 kB / 426.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.2755, allocations: 0 / 426.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.2755, allocations: 11.94 kB / 426.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.2756, allocations: 4 kB / 426.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2756, allocations: 0 / 426.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001932/0.2758, allocations: 225.6 kB / 426.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.632e-05/0.2758, allocations: 92.86 kB / 426.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.2758, allocations: 8 kB / 426.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.44e-05/0.2758, allocations: 0 / 426.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.741e-05/0.2759, allocations: 7.984 kB / 426.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.2759, allocations: 8 kB / 426.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.895e-05/0.2759, allocations: 118.3 kB / 426.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.276, allocations: 0 / 426.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002437/0.2762, allocations: 43.84 kB / 426.8 MB, free: 12.28 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: 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.0004086/0.2766, allocations: 216.9 kB / 427 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002731/0.2769, allocations: 213.9 kB / 427.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2769, allocations: 0 / 427.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.724e-05/0.277, allocations: 101.8 kB / 427.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000155/0.2772, allocations: 7.938 kB / 427.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004689/0.2776, allocations: 424.9 kB / 427.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001453/0.2778, allocations: 0.7439 MB / 428.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.177e-05/0.2778, allocations: 21.53 kB / 428.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.617e-05/0.2779, allocations: 15.44 kB / 428.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2779, allocations: 4 kB / 428.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of Templates: time 0.003506/0.2814, allocations: 1.325 MB / 429.9 MB, free: 9.195 MB / 302.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)