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.001031/0.001031, allocations: 116.2 kB / 17.14 MB, free: 5.938 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.0009804/0.0009804, allocations: 194 kB / 18.07 MB, free: 5.016 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.295/1.295, allocations: 222.9 MB / 241.8 MB, free: 15.08 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.05702/0.05702, allocations: 12.05 MB / 304 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 59.91 kB / 420.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07903/0.08029, allocations: 52.32 MB / 473.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003724/0.08404, allocations: 2.651 MB / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004768/0.08454, allocations: 303 kB / 476 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.512e-05/0.08464, allocations: 3.938 kB / 476 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.08485, allocations: 55.56 kB / 476.1 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.658e-05/0.08494, allocations: 11.88 kB / 476.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.08515, allocations: 91.7 kB / 476.2 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.08535, allocations: 148 kB / 476.3 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.08553, allocations: 85.38 kB / 476.4 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.653e-05/0.0856, allocations: 63.77 kB / 476.5 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.394e-05/0.0857, allocations: 59.7 kB / 476.5 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.08573, allocations: 12 kB / 476.5 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.154e-05/0.08581, allocations: 28 kB / 476.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.607e-05/0.0859, allocations: 63.75 kB / 476.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.759e-05/0.08598, allocations: 75.55 kB / 476.7 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002389/0.08623, allocations: 195.2 kB / 476.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.08624, allocations: 8 kB / 476.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.08625, allocations: 0 / 476.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.08626, allocations: 0 / 476.9 MB, free: 8.98 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.0005484/0.08681, allocations: 458.8 kB / 477.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.08686, allocations: 12.03 kB / 477.4 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.936e-05/0.08692, allocations: 20.66 kB / 477.4 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000241/0.08717, allocations: 232 kB / 477.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.08719, allocations: 12.38 kB / 477.6 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.15e-05/0.08722, allocations: 12.38 kB / 477.6 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000275/0.0875, allocations: 183.9 kB / 477.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.08752, allocations: 192 / 477.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.08754, allocations: 7.938 kB / 477.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.08756, allocations: 4 kB / 477.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.08774, allocations: 124.1 kB / 477.9 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006409/0.08839, allocations: 485.4 kB / 478.4 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001554/0.08856, allocations: 121.1 kB / 478.5 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.12e-05/0.08866, allocations: 77.97 kB / 478.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.0887, allocations: 0 / 478.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002007/0.0889, allocations: 137.1 kB / 478.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.182e-06/0.08892, allocations: 0 / 478.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003626/0.08928, allocations: 251.5 kB / 479 MB, free: 6.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.08935, allocations: 85.11 kB / 479.1 MB, free: 6.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001193/0.08947, allocations: 156.5 kB / 479.2 MB, free: 6.422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.0895, allocations: 33.7 kB / 479.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.531e-05/0.08958, allocations: 128.4 kB / 479.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.753e-05/0.08964, allocations: 59.3 kB / 479.4 MB, free: 6.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.739e-05/0.08972, allocations: 49.98 kB / 479.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.08984, allocations: 338.8 kB / 479.8 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.08995, allocations: 72.23 kB / 479.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.09012, allocations: 166.5 kB / 480 MB, free: 5.527 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002851/0.09041, allocations: 247 kB / 480.3 MB, free: 5.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.09043, allocations: 4 kB / 480.3 MB, free: 5.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003843/0.09081, allocations: 277 kB / 480.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.09084, allocations: 8.188 kB / 480.6 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.09086, allocations: 4 kB / 480.6 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.09088, allocations: 4 kB / 480.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.091, allocations: 35.92 kB / 480.6 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.09101, allocations: 7.984 kB / 480.6 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.659e-05/0.0911, allocations: 23.78 kB / 480.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.09112, allocations: 8 kB / 480.7 MB, free: 4.875 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.000156/0.09128, allocations: 177.9 kB / 480.8 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.313e-05/0.09131, allocations: 15.81 kB / 480.8 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.063e-05/0.09136, allocations: 21.17 kB / 480.9 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.09137, allocations: 0 / 480.9 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.09139, allocations: 0 / 480.9 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.576e-05/0.09144, allocations: 96.8 kB / 481 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.09146, allocations: 7.938 kB / 481 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.888e-05/0.0915, allocations: 256 / 481 MB, free: 4.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/0.09155, allocations: 11.98 kB / 481 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002916/0.09185, allocations: 344.1 kB / 481.3 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003151/0.09217, allocations: 439.4 kB / 481.7 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.636e-05/0.09227, allocations: 67.97 kB / 481.8 MB, free: 3.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.468e-05/0.09235, allocations: 110 kB / 481.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of Backend: time 2.91e-07/0.09236, allocations: 0 / 481.9 MB, free: 3.562 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008901/0.09325, allocations: 346.6 kB / 482.3 MB, free: 3.258 MB / 350.1 MB Notification: Performance of SimCode: time 0.0006011/0.09387, allocations: 0.7594 MB / 483 MB, free: 2.441 MB / 350.1 MB Notification: Performance of Templates: time 0.003977/0.09786, allocations: 1.476 MB / 484.5 MB, free: 0.9648 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)