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.001568/0.001568, allocations: 120.4 kB / 17.13 MB, free: 5.961 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.002051/0.002051, allocations: 193.2 kB / 18.06 MB, free: 5.039 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.301/1.301, allocations: 222.9 MB / 241.7 MB, free: 15.16 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.0563/0.0563, allocations: 12.04 MB / 304 MB, free: 3.109 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.89 kB / 420.7 MB, free: 17.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0936/0.09482, allocations: 52.32 MB / 473.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004583/0.09946, allocations: 2.655 MB / 475.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009091/0.1004, allocations: 362.9 kB / 476.1 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.1006, allocations: 7.938 kB / 476.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003039/0.1009, allocations: 39.66 kB / 476.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.1011, allocations: 55.67 kB / 476.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.1015, allocations: 91.72 kB / 476.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000288/0.1018, allocations: 148 kB / 476.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002542/0.102, allocations: 89.38 kB / 476.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.1021, allocations: 63.77 kB / 476.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.1023, allocations: 63.69 kB / 476.6 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.571e-05/0.1023, allocations: 12 kB / 476.6 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000276/0.1026, allocations: 139.9 kB / 476.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.497e-05/0.1027, allocations: 47.78 kB / 476.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.223e-05/0.1028, allocations: 63.61 kB / 476.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004023/0.1032, allocations: 227.3 kB / 477.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.1032, allocations: 0 / 477.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1033, allocations: 7.938 kB / 477.1 MB, free: 8.898 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.1033, allocations: 0 / 477.1 MB, free: 8.898 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.0007848/0.1041, allocations: 463 kB / 477.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.1041, allocations: 8.031 kB / 477.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.529e-05/0.1042, allocations: 20.75 kB / 477.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003496/0.1046, allocations: 220.6 kB / 477.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.1046, allocations: 12.61 kB / 477.8 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.1046, allocations: 12.38 kB / 477.8 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003762/0.105, allocations: 158.6 kB / 478 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1051, allocations: 192 / 478 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.628e-05/0.1051, allocations: 7.938 kB / 478 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.031e-05/0.1051, allocations: 4 kB / 478 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002234/0.1053, allocations: 76.19 kB / 478.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009013/0.1063, allocations: 469.5 kB / 478.5 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001702/0.1064, allocations: 81.11 kB / 478.6 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.1066, allocations: 41.8 kB / 478.6 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.1066, allocations: 4 kB / 478.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.1069, allocations: 93.05 kB / 478.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.1069, allocations: 0 / 478.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004317/0.1073, allocations: 125.5 kB / 478.9 MB, free: 6.938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.2e-05/0.1074, allocations: 81.05 kB / 478.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/0.1076, allocations: 166.2 kB / 479.1 MB, free: 6.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.1077, allocations: 29.7 kB / 479.1 MB, free: 6.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.1078, allocations: 128.1 kB / 479.3 MB, free: 6.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.32e-05/0.1078, allocations: 39.47 kB / 479.3 MB, free: 6.461 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.638e-05/0.1079, allocations: 29.72 kB / 479.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1081, allocations: 326.8 kB / 479.6 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.596e-05/0.1082, allocations: 24 kB / 479.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.1083, allocations: 58.78 kB / 479.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.1084, allocations: 87.36 kB / 479.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1085, allocations: 192 / 479.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002587/0.1087, allocations: 121.5 kB / 479.9 MB, free: 5.785 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.1088, allocations: 8 kB / 479.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.1088, allocations: 0 / 479.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.1088, allocations: 4 kB / 479.9 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.371e-05/0.1089, allocations: 16 kB / 480 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.1089, allocations: 0 / 480 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.749e-05/0.109, allocations: 11.89 kB / 480 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.109, allocations: 11.94 kB / 480 MB, free: 5.734 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.0001483/0.1092, allocations: 131.4 kB / 480.1 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.225e-05/0.1092, allocations: 16.12 kB / 480.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.882e-05/0.1093, allocations: 12.72 kB / 480.1 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.1093, allocations: 3.984 kB / 480.1 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.1093, allocations: 8 kB / 480.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.1093, allocations: 0 / 480.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.1096, allocations: 233.4 kB / 480.4 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.1096, allocations: 4 kB / 480.4 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.878e-05/0.1096, allocations: 3.938 kB / 480.4 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.1096, allocations: 4 kB / 480.4 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.1097, allocations: 0 / 480.4 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.1097, allocations: 0 / 480.4 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.1097, allocations: 0 / 480.4 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002618/0.1099, allocations: 145.7 kB / 480.5 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.605e-05/0.11, allocations: 88.95 kB / 480.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.11, allocations: 0 / 480.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.896e-05/0.1101, allocations: 0 / 480.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/0.1102, allocations: 11.98 kB / 480.6 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.1102, allocations: 4 kB / 480.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001198/0.1103, allocations: 116.1 kB / 480.7 MB, free: 4.867 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1103, allocations: 0 / 480.7 MB, free: 4.867 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004061/0.1107, allocations: 39.84 kB / 480.8 MB, free: 4.828 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.0006965/0.1115, allocations: 244.2 kB / 481 MB, free: 4.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002711/0.1117, allocations: 101.5 kB / 481.1 MB, free: 4.523 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1118, allocations: 0 / 481.1 MB, free: 4.523 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.1119, allocations: 65.62 kB / 481.2 MB, free: 4.453 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/0.1121, allocations: 12.12 kB / 481.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007129/0.1129, allocations: 325.4 kB / 481.5 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.1133, allocations: 0.7312 MB / 482.2 MB, free: 3.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.176e-05/0.1133, allocations: 15.44 kB / 482.3 MB, free: 3.316 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1133, allocations: 4 kB / 482.3 MB, free: 3.312 MB / 350.1 MB Notification: Performance of Templates: time 0.006783/0.1201, allocations: 2.635 MB / 484.9 MB, free: 0.6836 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)