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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 240.3 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 100.5 kB / 290.6 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05503/0.05503, allocations: 12.02 MB / 352.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 50.45 kB / 415.8 MB, free: 53.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1121, allocations: 52.33 MB / 468.2 MB, free: 1.547 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004248/0.1164, allocations: 2.677 MB / 470.8 MB, free: 14.85 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005258/0.117, allocations: 311 kB / 471.1 MB, free: 14.55 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.146e-05/0.1171, allocations: 3.938 kB / 471.1 MB, free: 14.54 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002713/0.1174, allocations: 43.7 kB / 471.2 MB, free: 14.5 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.384e-05/0.1175, allocations: 15.92 kB / 471.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002286/0.1177, allocations: 75.8 kB / 471.3 MB, free: 14.41 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001831/0.1179, allocations: 144 kB / 471.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.1181, allocations: 81.52 kB / 471.5 MB, free: 14.19 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.174e-05/0.1182, allocations: 51.78 kB / 471.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.1183, allocations: 55.7 kB / 471.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.198e-05/0.1183, allocations: 8 kB / 471.6 MB, free: 14.08 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.63e-05/0.1184, allocations: 27.97 kB / 471.6 MB, free: 14.05 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.141e-05/0.1185, allocations: 39.84 kB / 471.7 MB, free: 14.01 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.856e-05/0.1186, allocations: 63.55 kB / 471.7 MB, free: 13.95 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.1188, allocations: 187.6 kB / 471.9 MB, free: 13.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1188, allocations: 3.984 kB / 471.9 MB, free: 13.76 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1188, allocations: 0 / 471.9 MB, free: 13.76 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.1188, allocations: 4 kB / 471.9 MB, free: 13.76 MB / 314.7 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.0006129/0.1195, allocations: 462.8 kB / 472.4 MB, free: 13.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.1195, allocations: 11.97 kB / 472.4 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.842e-05/0.1196, allocations: 28.59 kB / 472.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/0.1198, allocations: 224 kB / 472.6 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.796e-05/0.1199, allocations: 12.36 kB / 472.7 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.014e-05/0.1199, allocations: 12.38 kB / 472.7 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.1202, allocations: 187.9 kB / 472.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1202, allocations: 192 / 472.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.1202, allocations: 11.94 kB / 472.9 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1203, allocations: 4 kB / 472.9 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.1205, allocations: 116.1 kB / 473 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000709/0.1212, allocations: 477.4 kB / 473.4 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.1214, allocations: 129.1 kB / 473.6 MB, free: 11.94 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.251e-05/0.1215, allocations: 73.7 kB / 473.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.1215, allocations: 3.984 kB / 473.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002621/0.1218, allocations: 136.9 kB / 473.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.362e-06/0.1218, allocations: 0 / 473.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003899/0.1222, allocations: 241.4 kB / 474 MB, free: 11.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.1222, allocations: 93.09 kB / 474.1 MB, free: 11.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001684/0.1224, allocations: 147.8 kB / 474.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.1224, allocations: 41.62 kB / 474.3 MB, free: 11.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.002e-05/0.1225, allocations: 124.7 kB / 474.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.891e-05/0.1226, allocations: 63.34 kB / 474.5 MB, free: 10.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/0.1227, allocations: 57.98 kB / 474.5 MB, free: 10.9 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.1228, allocations: 330.8 kB / 474.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.1229, allocations: 68.42 kB / 474.9 MB, free: 10.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.1231, allocations: 167.7 kB / 475.1 MB, free: 10.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.1234, allocations: 254.9 kB / 475.3 MB, free: 10.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1234, allocations: 0 / 475.3 MB, free: 10.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003534/0.1237, allocations: 277 kB / 475.6 MB, free: 9.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1237, allocations: 4 kB / 475.6 MB, free: 9.727 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.1238, allocations: 4.188 kB / 475.6 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.1238, allocations: 12.28 kB / 475.6 MB, free: 9.711 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.1239, allocations: 31.92 kB / 475.7 MB, free: 9.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.1239, allocations: 4.078 kB / 475.7 MB, free: 9.676 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.088e-05/0.124, allocations: 23.78 kB / 475.7 MB, free: 9.652 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.124, allocations: 11.98 kB / 475.7 MB, free: 9.641 MB / 314.7 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.000157/0.1242, allocations: 177.7 kB / 475.9 MB, free: 9.461 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.032e-05/0.1242, allocations: 15.81 kB / 475.9 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.723e-05/0.1243, allocations: 13.19 kB / 475.9 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1243, allocations: 0 / 475.9 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1243, allocations: 0 / 475.9 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.1243, allocations: 7.984 kB / 475.9 MB, free: 9.422 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/0.1245, allocations: 245.4 kB / 476.1 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1245, allocations: 0 / 476.1 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.858e-05/0.1246, allocations: 15.92 kB / 476.2 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1246, allocations: 0 / 476.2 MB, free: 9.117 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.1246, allocations: 4 kB / 476.2 MB, free: 9.113 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1246, allocations: 0 / 476.2 MB, free: 9.113 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1246, allocations: 4 kB / 476.2 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005692/0.1252, allocations: 0.8401 MB / 477 MB, free: 8.207 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.977e-05/0.1252, allocations: 88.92 kB / 477.1 MB, free: 8.102 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.108e-05/0.1253, allocations: 11.94 kB / 477.1 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.483e-05/0.1253, allocations: 0 / 477.1 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.1253, allocations: 11.98 kB / 477.1 MB, free: 8.078 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-06/0.1254, allocations: 4 kB / 477.1 MB, free: 8.074 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.678e-05/0.1254, allocations: 113.3 kB / 477.2 MB, free: 7.965 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1254, allocations: 0 / 477.2 MB, free: 7.965 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003585/0.1258, allocations: 43.84 kB / 477.3 MB, free: 7.922 MB / 314.7 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.0005995/0.1264, allocations: 225.5 kB / 477.5 MB, free: 7.738 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003681/0.1268, allocations: 208.3 kB / 477.7 MB, free: 7.531 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1268, allocations: 0 / 477.7 MB, free: 7.531 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.1269, allocations: 101.6 kB / 477.8 MB, free: 7.426 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001807/0.1271, allocations: 8 kB / 477.8 MB, free: 7.418 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009543/0.1281, allocations: 0.5911 MB / 478.4 MB, free: 6.785 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.1285, allocations: 0.7403 MB / 479.1 MB, free: 6.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.789e-05/0.1286, allocations: 25.55 kB / 479.2 MB, free: 5.996 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.118e-05/0.1286, allocations: 15.44 kB / 479.2 MB, free: 5.98 MB / 314.7 MB Notification: Performance of SimCode: time 8.52e-07/0.1286, allocations: 0 / 479.2 MB, free: 5.98 MB / 314.7 MB Notification: Performance of Templates: time 0.004399/0.1331, allocations: 1.345 MB / 480.5 MB, free: 4.645 MB / 314.7 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)