Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.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.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 186.9 kB / 16.68 MB, free: 5.078 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.5/1.5, allocations: 222.9 MB / 240.4 MB, free: 10.99 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.00103/0.00103, allocations: 94.41 kB / 290.6 MB, free: 10.95 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.05491/0.05491, allocations: 12.03 MB / 352.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 51.45 kB / 415.8 MB, free: 53.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1131, allocations: 52.33 MB / 468.2 MB, free: 1.566 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004088/0.1173, allocations: 2.689 MB / 470.9 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006313/0.1179, allocations: 374.8 kB / 471.2 MB, free: 14.49 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.076e-05/0.118, allocations: 7.938 kB / 471.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002709/0.1183, allocations: 31.78 kB / 471.3 MB, free: 14.45 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.1185, allocations: 39.81 kB / 471.3 MB, free: 14.41 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.1187, allocations: 83.78 kB / 471.4 MB, free: 14.33 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001757/0.1189, allocations: 132.1 kB / 471.5 MB, free: 14.2 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.1191, allocations: 77.52 kB / 471.6 MB, free: 14.13 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.042e-05/0.1192, allocations: 59.7 kB / 471.6 MB, free: 14.07 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.1193, allocations: 59.7 kB / 471.7 MB, free: 14.01 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.566e-05/0.1193, allocations: 4 kB / 471.7 MB, free: 14.01 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.1195, allocations: 127.9 kB / 471.8 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.692e-05/0.1196, allocations: 39.83 kB / 471.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.314e-05/0.1197, allocations: 59.61 kB / 471.9 MB, free: 13.79 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002912/0.12, allocations: 219.6 kB / 472.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.12, allocations: 4 kB / 472.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.12, allocations: 0 / 472.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.12, allocations: 4 kB / 472.1 MB, free: 13.56 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006734/0.1207, allocations: 451 kB / 472.6 MB, free: 13.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.1208, allocations: 15.97 kB / 472.6 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.093e-05/0.1208, allocations: 20.75 kB / 472.6 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.1211, allocations: 224 kB / 472.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.1211, allocations: 8.609 kB / 472.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.009e-05/0.1212, allocations: 16.38 kB / 472.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.1215, allocations: 156.8 kB / 473 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1215, allocations: 192 / 473 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.171e-05/0.1215, allocations: 11.92 kB / 473 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1215, allocations: 4 kB / 473 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.1217, allocations: 80.19 kB / 473.1 MB, free: 12.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006845/0.1224, allocations: 469.6 kB / 473.6 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001327/0.1225, allocations: 73.14 kB / 473.6 MB, free: 11.89 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.11e-05/0.1226, allocations: 45.78 kB / 473.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.1226, allocations: 4 kB / 473.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000221/0.1229, allocations: 93.03 kB / 473.8 MB, free: 11.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.432e-06/0.1229, allocations: 0 / 473.8 MB, free: 11.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003016/0.1232, allocations: 133.3 kB / 473.9 MB, free: 11.59 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.548e-05/0.1233, allocations: 81.11 kB / 474 MB, free: 11.49 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.1234, allocations: 159.8 kB / 474.2 MB, free: 11.33 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.1235, allocations: 29.7 kB / 474.2 MB, free: 11.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.892e-05/0.1236, allocations: 132.1 kB / 474.3 MB, free: 11.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.391e-05/0.1236, allocations: 23.7 kB / 474.3 MB, free: 11.13 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.112e-05/0.1236, allocations: 33.61 kB / 474.4 MB, free: 11.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1238, allocations: 326.8 kB / 474.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.672e-05/0.1238, allocations: 27.92 kB / 474.7 MB, free: 10.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.613e-05/0.1239, allocations: 63.36 kB / 474.8 MB, free: 10.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001161/0.124, allocations: 83.55 kB / 474.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.124, allocations: 4 kB / 474.9 MB, free: 10.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001826/0.1242, allocations: 117.5 kB / 475 MB, free: 10.45 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.1242, allocations: 4 kB / 475 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.1243, allocations: 4.062 kB / 475 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.1243, allocations: 7.984 kB / 475 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.581e-05/0.1244, allocations: 8 kB / 475 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.1244, allocations: 7.938 kB / 475 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.754e-05/0.1244, allocations: 7.844 kB / 475 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.1244, allocations: 4 kB / 475 MB, free: 10.4 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001152/0.1246, allocations: 139.5 kB / 475.2 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.127e-05/0.1246, allocations: 11.91 kB / 475.2 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.9e-05/0.1246, allocations: 8.719 kB / 475.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1247, allocations: 8 kB / 475.2 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.1247, allocations: 3.984 kB / 475.2 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1247, allocations: 240 / 475.2 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001998/0.1249, allocations: 237.4 kB / 475.4 MB, free: 9.941 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.1249, allocations: 0 / 475.4 MB, free: 9.941 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.166e-05/0.1249, allocations: 4 kB / 475.4 MB, free: 9.938 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.1249, allocations: 3.984 kB / 475.4 MB, free: 9.934 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.1249, allocations: 3.984 kB / 475.4 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.125, allocations: 4 kB / 475.4 MB, free: 9.926 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.125, allocations: 3.938 kB / 475.4 MB, free: 9.922 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/0.1255, allocations: 0.7261 MB / 476.2 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.693e-05/0.1255, allocations: 84.95 kB / 476.2 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.1255, allocations: 4 kB / 476.2 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.587e-05/0.1256, allocations: 4.109 kB / 476.3 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.1256, allocations: 7.938 kB / 476.3 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.1256, allocations: 16 kB / 476.3 MB, free: 9 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.918e-05/0.1257, allocations: 115.2 kB / 476.4 MB, free: 8.887 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1257, allocations: 0 / 476.4 MB, free: 8.887 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003444/0.1261, allocations: 43.84 kB / 476.4 MB, free: 8.844 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0005537/0.1266, allocations: 237.9 kB / 476.7 MB, free: 8.648 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002212/0.1269, allocations: 105.6 kB / 476.8 MB, free: 8.539 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1269, allocations: 3.938 kB / 476.8 MB, free: 8.535 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.424e-05/0.127, allocations: 61.69 kB / 476.8 MB, free: 8.469 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001619/0.1271, allocations: 8 kB / 476.8 MB, free: 8.461 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000665/0.1278, allocations: 462.8 kB / 477.3 MB, free: 7.965 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.1281, allocations: 0.7355 MB / 478 MB, free: 7.203 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.547e-05/0.1282, allocations: 16.48 kB / 478 MB, free: 7.188 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.026e-05/0.1282, allocations: 15.44 kB / 478.1 MB, free: 7.172 MB / 314.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1282, allocations: 0 / 478.1 MB, free: 7.172 MB / 314.7 MB Notification: Performance of Templates: time 0.004263/0.1325, allocations: 1.413 MB / 479.5 MB, free: 5.766 MB / 314.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)