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.001113/0.001113, allocations: 105 kB / 16.45 MB, free: 6.449 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.001297/0.001298, allocations: 189.5 kB / 17.39 MB, free: 5.668 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.357/1.357, allocations: 222.9 MB / 241.1 MB, free: 15.13 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.05535/0.05535, allocations: 12.05 MB / 303.3 MB, free: 3.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 63.89 kB / 420.1 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.113, allocations: 52.31 MB / 472.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.005724/0.1188, allocations: 2.675 MB / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000887/0.1197, allocations: 354.9 kB / 475.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002587/0.12, allocations: 3.938 kB / 475.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004089/0.1204, allocations: 47.64 kB / 475.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003494/0.1208, allocations: 51.73 kB / 475.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.1212, allocations: 87.72 kB / 475.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002722/0.1215, allocations: 152 kB / 475.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002121/0.1217, allocations: 85.39 kB / 475.8 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.1218, allocations: 59.77 kB / 475.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.1219, allocations: 59.7 kB / 475.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.149e-05/0.122, allocations: 12 kB / 475.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002421/0.1222, allocations: 143.9 kB / 476.1 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.944e-05/0.1223, allocations: 39.84 kB / 476.1 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.959e-05/0.1224, allocations: 71.59 kB / 476.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003787/0.1228, allocations: 231.2 kB / 476.4 MB, free: 8.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1228, allocations: 4 kB / 476.4 MB, free: 8.781 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.1228, allocations: 0 / 476.4 MB, free: 8.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.1228, allocations: 0 / 476.4 MB, free: 8.781 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.0006868/0.1235, allocations: 451 kB / 476.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.1236, allocations: 8.031 kB / 476.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.448e-05/0.1237, allocations: 16.75 kB / 476.9 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.124, allocations: 232 kB / 477.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.674e-05/0.124, allocations: 16.61 kB / 477.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.326e-05/0.124, allocations: 12.36 kB / 477.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000289/0.1243, allocations: 158.6 kB / 477.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1243, allocations: 4.125 kB / 477.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.1244, allocations: 7.938 kB / 477.3 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.1244, allocations: 4 kB / 477.3 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.1245, allocations: 76.19 kB / 477.4 MB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007362/0.1253, allocations: 473.5 kB / 477.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000142/0.1254, allocations: 69.14 kB / 477.9 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.091e-05/0.1255, allocations: 45.78 kB / 478 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.1256, allocations: 8 kB / 478 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002197/0.1258, allocations: 93.09 kB / 478.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1258, allocations: 0 / 478.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000333/0.1261, allocations: 125.4 kB / 478.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.1262, allocations: 81.11 kB / 478.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001494/0.1264, allocations: 158.2 kB / 478.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.1264, allocations: 29.7 kB / 478.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.1265, allocations: 132.1 kB / 478.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.781e-05/0.1265, allocations: 35.48 kB / 478.6 MB, free: 6.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.002e-05/0.1266, allocations: 33.7 kB / 478.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1267, allocations: 330.7 kB / 479 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.798e-05/0.1268, allocations: 27.98 kB / 479 MB, free: 5.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.764e-05/0.1269, allocations: 51.42 kB / 479 MB, free: 5.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/0.127, allocations: 95.53 kB / 479.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.127, allocations: 0 / 479.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001975/0.1272, allocations: 117.5 kB / 479.2 MB, free: 5.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.1273, allocations: 4 kB / 479.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.1273, allocations: 3.984 kB / 479.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.1273, allocations: 4 kB / 479.3 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.956e-05/0.1274, allocations: 8 kB / 479.3 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1274, allocations: 4 kB / 479.3 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.409e-05/0.1274, allocations: 15.91 kB / 479.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.1275, allocations: 4 kB / 479.3 MB, free: 5.617 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.0001238/0.1276, allocations: 139.4 kB / 479.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.239e-05/0.1276, allocations: 7.906 kB / 479.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.016e-05/0.1277, allocations: 16.7 kB / 479.4 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.1277, allocations: 0 / 479.4 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.1277, allocations: 4 kB / 479.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.1277, allocations: 240 / 479.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002075/0.1279, allocations: 233.4 kB / 479.7 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.1279, allocations: 4 kB / 479.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.692e-05/0.128, allocations: 11.92 kB / 479.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.031e-05/0.128, allocations: 3.984 kB / 479.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.128, allocations: 4 kB / 479.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.128, allocations: 0 / 479.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.128, allocations: 7.938 kB / 479.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001989/0.1282, allocations: 129.8 kB / 479.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.478e-05/0.1283, allocations: 92.95 kB / 479.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.974e-05/0.1283, allocations: 3.984 kB / 479.9 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.002e-05/0.1284, allocations: 4 kB / 479.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.211e-05/0.1284, allocations: 12.06 kB / 480 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.1284, allocations: 4 kB / 480 MB, free: 4.852 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.758e-05/0.1285, allocations: 116.1 kB / 480.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1285, allocations: 0 / 480.1 MB, free: 4.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002762/0.1288, allocations: 39.84 kB / 480.1 MB, free: 4.699 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.000582/0.1294, allocations: 238.1 kB / 480.3 MB, free: 4.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000227/0.1296, allocations: 109.5 kB / 480.4 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1296, allocations: 3.938 kB / 480.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.391e-05/0.1297, allocations: 61.62 kB / 480.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001866/0.1299, allocations: 8 kB / 480.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005376/0.1305, allocations: 287.9 kB / 480.8 MB, free: 4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.1308, allocations: 0.7273 MB / 481.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.37e-05/0.1309, allocations: 12.55 kB / 481.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.933e-05/0.1309, allocations: 19.44 kB / 481.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1309, allocations: 0 / 481.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of Templates: time 0.004774/0.1357, allocations: 1.404 MB / 483 MB, free: 1.82 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)