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.001045/0.00105, allocations: 118.9 kB / 17.13 MB, free: 5.918 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.001028/0.001028, allocations: 192.2 kB / 18.06 MB, free: 5 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.316/1.316, allocations: 222.9 MB / 241.7 MB, free: 15.06 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.0587/0.0587, allocations: 12.06 MB / 304 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 63.91 kB / 420.7 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09068/0.09184, allocations: 52.31 MB / 473 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004359/0.09624, allocations: 2.651 MB / 475.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006096/0.09687, allocations: 311 kB / 476 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.09705, allocations: 7.938 kB / 476 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002935/0.09738, allocations: 35.72 kB / 476 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001255/0.09752, allocations: 23.78 kB / 476.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002818/0.09781, allocations: 91.72 kB / 476.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002258/0.09805, allocations: 152 kB / 476.3 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.09824, allocations: 81.36 kB / 476.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.137e-05/0.09833, allocations: 59.78 kB / 476.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.933e-05/0.09843, allocations: 67.69 kB / 476.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.747e-05/0.09848, allocations: 12 kB / 476.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.68e-05/0.09857, allocations: 35.92 kB / 476.6 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.773e-05/0.09865, allocations: 47.84 kB / 476.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.514e-05/0.09875, allocations: 75.55 kB / 476.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002814/0.09903, allocations: 203.2 kB / 476.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.09905, allocations: 0 / 476.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09906, allocations: 0 / 476.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.09907, allocations: 0 / 476.9 MB, free: 8.992 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.0006194/0.09969, allocations: 466.8 kB / 477.3 MB, free: 8.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.09974, allocations: 8.031 kB / 477.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.939e-05/0.0998, allocations: 24.66 kB / 477.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.1001, allocations: 236 kB / 477.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.1001, allocations: 8.375 kB / 477.6 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.1001, allocations: 12.38 kB / 477.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.1004, allocations: 183.9 kB / 477.8 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.1005, allocations: 192 / 477.8 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.666e-05/0.1005, allocations: 15.88 kB / 477.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.1005, allocations: 11.94 kB / 477.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.1007, allocations: 108.2 kB / 477.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006899/0.1014, allocations: 481.4 kB / 478.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.1016, allocations: 125.1 kB / 478.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.357e-05/0.1017, allocations: 81.34 kB / 478.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.1017, allocations: 7.938 kB / 478.6 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.1019, allocations: 123.3 kB / 478.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.373e-06/0.1019, allocations: 0 / 478.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003872/0.1023, allocations: 246.8 kB / 479 MB, free: 6.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.1024, allocations: 93.09 kB / 479.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.1025, allocations: 156.7 kB / 479.2 MB, free: 6.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.1026, allocations: 37.69 kB / 479.3 MB, free: 6.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.845e-05/0.1027, allocations: 120.4 kB / 479.4 MB, free: 6.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.969e-05/0.1027, allocations: 63.34 kB / 479.4 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.472e-05/0.1028, allocations: 53.98 kB / 479.5 MB, free: 6.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1029, allocations: 330.8 kB / 479.8 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.103, allocations: 72.23 kB / 479.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.1032, allocations: 166.6 kB / 480 MB, free: 5.539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.1035, allocations: 254.9 kB / 480.3 MB, free: 5.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1035, allocations: 0 / 480.3 MB, free: 5.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004033/0.1039, allocations: 277 kB / 480.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.1039, allocations: 8 kB / 480.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.104, allocations: 4 kB / 480.6 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.104, allocations: 4 kB / 480.6 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.1041, allocations: 31.92 kB / 480.6 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.1041, allocations: 4 kB / 480.6 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.893e-05/0.1042, allocations: 20.03 kB / 480.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.896e-05/0.1042, allocations: 16 kB / 480.6 MB, free: 4.887 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.0001604/0.1044, allocations: 182 kB / 480.8 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.1044, allocations: 15.81 kB / 480.8 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.63e-05/0.1045, allocations: 17.19 kB / 480.9 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.1045, allocations: 4 kB / 480.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.1045, allocations: 0 / 480.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.1045, allocations: 3.984 kB / 480.9 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.1047, allocations: 245.4 kB / 481.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.1048, allocations: 0 / 481.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.737e-05/0.1048, allocations: 11.98 kB / 481.1 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.1048, allocations: 4 kB / 481.1 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.1048, allocations: 4 kB / 481.1 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.1048, allocations: 0 / 481.1 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1048, allocations: 4 kB / 481.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002626/0.1051, allocations: 225.7 kB / 481.3 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.289e-05/0.1052, allocations: 92.86 kB / 481.4 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.1052, allocations: 8 kB / 481.4 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.086e-05/0.1052, allocations: 4 kB / 481.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.69e-05/0.1053, allocations: 11.98 kB / 481.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.1053, allocations: 0 / 481.5 MB, free: 3.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.084e-05/0.1054, allocations: 115.2 kB / 481.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1054, allocations: 0 / 481.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002761/0.1057, allocations: 43.84 kB / 481.6 MB, free: 3.816 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 (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.0004869/0.1061, allocations: 220.1 kB / 481.8 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003171/0.1065, allocations: 209.3 kB / 482 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1065, allocations: 0 / 482 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.1066, allocations: 101.6 kB / 482.1 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001818/0.1068, allocations: 19.12 kB / 482.2 MB, free: 3.301 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005657/0.1074, allocations: 378 kB / 482.5 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.1077, allocations: 0.7439 MB / 483.3 MB, free: 2.121 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.631e-05/0.1078, allocations: 15.44 kB / 483.3 MB, free: 2.105 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1078, allocations: 4 kB / 483.3 MB, free: 2.102 MB / 350.1 MB Notification: Performance of Templates: time 0.004251/0.112, allocations: 2.291 MB / 485.6 MB, free: 15.82 MB / 366.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)