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.001348/0.001348, allocations: 102.2 kB / 16.31 MB, free: 5.883 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.001455/0.001455, allocations: 190.5 kB / 17.24 MB, free: 5.543 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.516/1.516, allocations: 222.9 MB / 240.9 MB, free: 15.16 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.05978/0.05978, allocations: 12.04 MB / 303.1 MB, free: 3.152 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 71.88 kB / 366.5 MB, free: 3.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3346, allocations: 52.31 MB / 418.8 MB, free: 21.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004301/0.339, allocations: 2.645 MB / 421.4 MB, free: 18.58 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004976/0.3395, allocations: 311 kB / 421.7 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.3397, allocations: 7.938 kB / 421.7 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002525/0.3399, allocations: 39.66 kB / 421.8 MB, free: 18.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.008e-05/0.34, allocations: 23.84 kB / 421.8 MB, free: 18.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/0.3403, allocations: 91.7 kB / 421.9 MB, free: 18.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001771/0.3405, allocations: 152 kB / 422 MB, free: 17.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000191/0.3407, allocations: 81.52 kB / 422.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.013e-05/0.3407, allocations: 63.77 kB / 422.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.993e-05/0.3409, allocations: 63.69 kB / 422.2 MB, free: 17.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.079e-05/0.3409, allocations: 12 kB / 422.3 MB, free: 17.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.337e-05/0.341, allocations: 24 kB / 422.3 MB, free: 17.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.911e-05/0.341, allocations: 55.78 kB / 422.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.607e-05/0.3411, allocations: 75.55 kB / 422.4 MB, free: 17.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002495/0.3414, allocations: 193.4 kB / 422.6 MB, free: 17.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3414, allocations: 0 / 422.6 MB, free: 17.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3414, allocations: 0 / 422.6 MB, free: 17.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.3414, allocations: 0 / 422.6 MB, free: 17.41 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.0005668/0.342, allocations: 466.9 kB / 423.1 MB, free: 16.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.342, allocations: 8.031 kB / 423.1 MB, free: 16.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.101e-05/0.3421, allocations: 24.64 kB / 423.1 MB, free: 16.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002214/0.3423, allocations: 226.1 kB / 423.3 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.3424, allocations: 8.375 kB / 423.3 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.164e-05/0.3424, allocations: 12.38 kB / 423.3 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002536/0.3426, allocations: 183.9 kB / 423.5 MB, free: 16.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.3427, allocations: 8.125 kB / 423.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.3427, allocations: 11.94 kB / 423.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.3427, allocations: 4 kB / 423.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001601/0.3429, allocations: 116.1 kB / 423.6 MB, free: 16.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005796/0.3434, allocations: 481.4 kB / 424.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001445/0.3436, allocations: 121.2 kB / 424.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.96e-05/0.3437, allocations: 89.55 kB / 424.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.704e-05/0.3437, allocations: 3.938 kB / 424.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002413/0.344, allocations: 132.7 kB / 424.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.232e-06/0.344, allocations: 0 / 424.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.00037/0.3444, allocations: 243.7 kB / 424.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.559e-05/0.3444, allocations: 93.09 kB / 424.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.3446, allocations: 151.8 kB / 424.9 MB, free: 14.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.3446, allocations: 37.7 kB / 425 MB, free: 14.81 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.77e-05/0.3447, allocations: 132.7 kB / 425.1 MB, free: 14.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.229e-05/0.3448, allocations: 55.3 kB / 425.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-05/0.3449, allocations: 57.98 kB / 425.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.833e-05/0.3449, allocations: 330.8 kB / 425.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001454/0.3451, allocations: 72.23 kB / 425.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001394/0.3452, allocations: 167.5 kB / 425.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002442/0.3455, allocations: 254.9 kB / 426 MB, free: 13.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3455, allocations: 0 / 426 MB, free: 13.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002969/0.3458, allocations: 273.2 kB / 426.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3458, allocations: 4 kB / 426.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/0.3459, allocations: 4 kB / 426.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.3459, allocations: 12.19 kB / 426.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.346, allocations: 27.92 kB / 426.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.346, allocations: 4 kB / 426.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.723e-05/0.3461, allocations: 27.75 kB / 426.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.3461, allocations: 8.25 kB / 426.4 MB, free: 13.3 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.0001345/0.3462, allocations: 178.2 kB / 426.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.3463, allocations: 11.81 kB / 426.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.629e-05/0.3463, allocations: 21.19 kB / 426.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3463, allocations: 4 kB / 426.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.3463, allocations: 3.984 kB / 426.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3464, allocations: 4 kB / 426.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.3465, allocations: 241.4 kB / 426.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3465, allocations: 0 / 426.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.257e-05/0.3466, allocations: 7.984 kB / 426.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3466, allocations: 0 / 426.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.3466, allocations: 8 kB / 426.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3466, allocations: 0 / 426.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3466, allocations: 0 / 426.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002074/0.3468, allocations: 233.8 kB / 427.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.126e-05/0.3469, allocations: 92.86 kB / 427.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.3469, allocations: 0 / 427.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.763e-05/0.3469, allocations: 11.98 kB / 427.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.707e-05/0.347, allocations: 7.984 kB / 427.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.251e-06/0.347, allocations: 7.938 kB / 427.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.56e-05/0.347, allocations: 119.2 kB / 427.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.347, allocations: 0 / 427.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002476/0.3473, allocations: 43.84 kB / 427.3 MB, free: 12.22 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.0009004/0.3482, allocations: 212.8 kB / 427.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003241/0.3485, allocations: 221.4 kB / 427.8 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3485, allocations: 0 / 427.8 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.638e-05/0.3486, allocations: 97.62 kB / 427.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.3488, allocations: 8 kB / 427.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005952/0.3494, allocations: 352.8 kB / 428.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001817/0.3496, allocations: 0.7439 MB / 429 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.504e-05/0.3497, allocations: 21.53 kB / 429 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.977e-05/0.3497, allocations: 15.44 kB / 429 MB, free: 10.54 MB / 302.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3497, allocations: 0 / 429 MB, free: 10.54 MB / 302.1 MB Notification: Performance of Templates: time 0.003931/0.3537, allocations: 1.323 MB / 430.3 MB, free: 9.223 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)