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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 104.2 kB / 16.45 MB, free: 6.441 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.001671/0.001671, allocations: 189.4 kB / 17.39 MB, free: 5.688 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.384/1.384, allocations: 222.9 MB / 241.1 MB, free: 15.09 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.05804/0.05804, allocations: 12.05 MB / 303.3 MB, free: 3.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 68.03 kB / 420.1 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.102, allocations: 52.32 MB / 472.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004053/0.1061, allocations: 2.658 MB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005671/0.1067, allocations: 358.8 kB / 475.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.395e-05/0.1068, allocations: 7.938 kB / 475.4 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002305/0.107, allocations: 51.58 kB / 475.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001645/0.1072, allocations: 47.8 kB / 475.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.1074, allocations: 83.72 kB / 475.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000202/0.1076, allocations: 156 kB / 475.7 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001651/0.1078, allocations: 85.38 kB / 475.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.796e-05/0.1079, allocations: 59.77 kB / 475.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.174e-05/0.108, allocations: 63.69 kB / 475.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/0.108, allocations: 12 kB / 475.9 MB, free: 9.277 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001899/0.1082, allocations: 143.9 kB / 476.1 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.868e-05/0.1083, allocations: 39.84 kB / 476.1 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.2e-05/0.1084, allocations: 67.61 kB / 476.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000284/0.1086, allocations: 231.2 kB / 476.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1087, allocations: 0 / 476.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1087, allocations: 0 / 476.4 MB, free: 8.805 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.1087, allocations: 3.938 kB / 476.4 MB, free: 8.801 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005957/0.1093, allocations: 455 kB / 476.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.1093, allocations: 8.031 kB / 476.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.128e-05/0.1094, allocations: 20.73 kB / 476.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002295/0.1096, allocations: 236 kB / 477.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.1096, allocations: 8.609 kB / 477.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.1097, allocations: 8.375 kB / 477.1 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002694/0.1099, allocations: 154.7 kB / 477.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.11, allocations: 4.125 kB / 477.3 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.11, allocations: 11.94 kB / 477.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.11, allocations: 4 kB / 477.3 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001435/0.1101, allocations: 76.19 kB / 477.4 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006019/0.1108, allocations: 473.5 kB / 477.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.1109, allocations: 69.28 kB / 477.9 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.835e-05/0.111, allocations: 41.7 kB / 478 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/0.111, allocations: 11.92 kB / 478 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000174/0.1112, allocations: 89.11 kB / 478.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.955e-06/0.1112, allocations: 3.984 kB / 478.1 MB, free: 6.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000285/0.1115, allocations: 125.4 kB / 478.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.1116, allocations: 85.11 kB / 478.3 MB, free: 6.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.1117, allocations: 154.2 kB / 478.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.1117, allocations: 37.7 kB / 478.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.1118, allocations: 128.1 kB / 478.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.856e-05/0.1119, allocations: 35.48 kB / 478.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.122e-05/0.1119, allocations: 25.72 kB / 478.6 MB, free: 6.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1121, allocations: 326.8 kB / 479 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.134e-05/0.1121, allocations: 27.98 kB / 479 MB, free: 5.977 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.163e-05/0.1122, allocations: 63.34 kB / 479 MB, free: 5.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001229/0.1124, allocations: 91.33 kB / 479.1 MB, free: 5.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1124, allocations: 4 kB / 479.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001951/0.1126, allocations: 117.7 kB / 479.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1126, allocations: 4 kB / 479.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.1126, allocations: 4 kB / 479.3 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.1126, allocations: 64 / 479.3 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.247e-05/0.1127, allocations: 12 kB / 479.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.1127, allocations: 4 kB / 479.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.933e-05/0.1128, allocations: 7.906 kB / 479.3 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.1128, allocations: 7.938 kB / 479.3 MB, free: 5.637 MB / 350.1 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.0001165/0.1129, allocations: 141.7 kB / 479.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.1129, allocations: 11.91 kB / 479.4 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.181e-05/0.113, allocations: 12.7 kB / 479.5 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.113, allocations: 4 kB / 479.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.113, allocations: 4 kB / 479.5 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.113, allocations: 3.938 kB / 479.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001978/0.1132, allocations: 233.4 kB / 479.7 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.1132, allocations: 0 / 479.7 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.305e-05/0.1133, allocations: 4 kB / 479.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1133, allocations: 0 / 479.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.1133, allocations: 8 kB / 479.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1133, allocations: 0 / 479.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1133, allocations: 0 / 479.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001924/0.1135, allocations: 133.8 kB / 479.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.501e-05/0.1135, allocations: 92.94 kB / 479.9 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.1136, allocations: 4 kB / 479.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.833e-05/0.1136, allocations: 4 kB / 479.9 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.043e-05/0.1136, allocations: 7.984 kB / 479.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.435e-06/0.1137, allocations: 4 kB / 479.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.852e-05/0.1138, allocations: 116.1 kB / 480.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1138, allocations: 3.938 kB / 480.1 MB, free: 4.762 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.114, allocations: 39.84 kB / 480.1 MB, free: 4.723 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: 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.0005019/0.1145, allocations: 243.1 kB / 480.3 MB, free: 4.523 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002088/0.1147, allocations: 113.5 kB / 480.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1148, allocations: 0 / 480.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.669e-05/0.1148, allocations: 57.81 kB / 480.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001555/0.115, allocations: 16.94 kB / 480.5 MB, free: 4.332 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004779/0.1155, allocations: 283.8 kB / 480.8 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003278/0.1158, allocations: 0.7273 MB / 481.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.248e-05/0.1159, allocations: 16.55 kB / 481.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.571e-05/0.1159, allocations: 15.44 kB / 481.6 MB, free: 3.242 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1159, allocations: 0 / 481.6 MB, free: 3.242 MB / 350.1 MB Notification: Performance of Templates: time 0.004012/0.1199, allocations: 1.402 MB / 483 MB, free: 1.84 MB / 350.1 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)