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: "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001525/0.001525, allocations: 103.7 kB / 16.31 MB, free: 6.359 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.001751/0.001751, allocations: 189.8 kB / 17.24 MB, free: 5.875 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.354/1.354, allocations: 222.9 MB / 240.9 MB, free: 15.18 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.05769/0.05769, allocations: 12.04 MB / 303.1 MB, free: 3.172 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 59.89 kB / 366.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1868, allocations: 52.34 MB / 418.9 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.003178/0.19, allocations: 2.651 MB / 421.6 MB, free: 18.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004525/0.1905, allocations: 354.1 kB / 421.9 MB, free: 18.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.989e-05/0.1906, allocations: 7.938 kB / 421.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.1908, allocations: 55.62 kB / 422 MB, free: 18.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001382/0.191, allocations: 47.75 kB / 422 MB, free: 17.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001747/0.1911, allocations: 83.7 kB / 422.1 MB, free: 17.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001278/0.1913, allocations: 156 kB / 422.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.1914, allocations: 88.61 kB / 422.3 MB, free: 17.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.941e-05/0.1915, allocations: 55.78 kB / 422.4 MB, free: 17.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.233e-05/0.1916, allocations: 63.7 kB / 422.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.428e-05/0.1916, allocations: 15.98 kB / 422.5 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.1917, allocations: 143.9 kB / 422.6 MB, free: 17.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.957e-05/0.1918, allocations: 43.78 kB / 422.6 MB, free: 17.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.235e-05/0.1919, allocations: 63.61 kB / 422.7 MB, free: 17.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002197/0.1921, allocations: 221.6 kB / 422.9 MB, free: 17.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1921, allocations: 0 / 422.9 MB, free: 17.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1921, allocations: 0 / 422.9 MB, free: 17.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.1921, allocations: 0 / 422.9 MB, free: 17.06 MB / 302.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.0004201/0.1925, allocations: 451.1 kB / 423.4 MB, free: 16.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.1926, allocations: 16.03 kB / 423.4 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.196e-05/0.1926, allocations: 42.75 kB / 423.4 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.831e-05/0.1927, allocations: 20.73 kB / 423.4 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.1928, allocations: 229.6 kB / 423.7 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.1929, allocations: 12.61 kB / 423.7 MB, free: 16.2 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.1929, allocations: 12.38 kB / 423.7 MB, free: 16.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002121/0.1931, allocations: 156.8 kB / 423.8 MB, free: 16.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.1931, allocations: 3.938 kB / 423.8 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.1931, allocations: 8 kB / 423.9 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.1931, allocations: 4 kB / 423.9 MB, free: 16.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001277/0.1933, allocations: 80.12 kB / 423.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004697/0.1938, allocations: 481.4 kB / 424.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.873e-05/0.1939, allocations: 81.16 kB / 424.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.537e-05/0.1939, allocations: 41.8 kB / 424.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.194, allocations: 0 / 424.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/0.1941, allocations: 93.05 kB / 424.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.233e-06/0.1941, allocations: 0 / 424.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002513/0.1944, allocations: 133.3 kB / 424.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.1944, allocations: 81.11 kB / 424.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.1945, allocations: 159.7 kB / 425 MB, free: 14.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.027e-05/0.1945, allocations: 29.7 kB / 425 MB, free: 14.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.696e-05/0.1946, allocations: 128.1 kB / 425.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.1946, allocations: 27.64 kB / 425.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.231e-05/0.1947, allocations: 33.62 kB / 425.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.979e-05/0.1947, allocations: 326.8 kB / 425.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.968e-05/0.1948, allocations: 27.98 kB / 425.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.293e-05/0.1948, allocations: 59.41 kB / 425.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.133e-05/0.1949, allocations: 83.36 kB / 425.7 MB, free: 14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1949, allocations: 4 kB / 425.7 MB, free: 14 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001582/0.1951, allocations: 121.4 kB / 425.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.1951, allocations: 4 kB / 425.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.1951, allocations: 4 kB / 425.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.1951, allocations: 0 / 425.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.981e-05/0.1952, allocations: 12 kB / 425.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.97e-06/0.1952, allocations: 0 / 425.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.742e-05/0.1953, allocations: 12.16 kB / 425.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.1953, allocations: 12.05 kB / 425.8 MB, free: 13.83 MB / 302.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 7.228e-05/0.1954, allocations: 141.7 kB / 426 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.035e-05/0.1954, allocations: 15.91 kB / 426 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.802e-05/0.1954, allocations: 12.7 kB / 426 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1954, allocations: 4 kB / 426 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1954, allocations: 0 / 426 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1954, allocations: 0 / 426 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.1956, allocations: 233.4 kB / 426.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.1956, allocations: 0 / 426.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.135e-05/0.1956, allocations: 8 kB / 426.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.1956, allocations: 0 / 426.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.1956, allocations: 4 kB / 426.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1956, allocations: 0 / 426.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1957, allocations: 0 / 426.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001475/0.1958, allocations: 141.7 kB / 426.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.129e-05/0.1958, allocations: 85 kB / 426.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.1959, allocations: 4 kB / 426.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.689e-05/0.1959, allocations: 4 kB / 426.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.76e-05/0.1959, allocations: 11.98 kB / 426.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.1959, allocations: 4 kB / 426.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.618e-05/0.196, allocations: 115.2 kB / 426.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.196, allocations: 0 / 426.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002391/0.1963, allocations: 35.84 kB / 426.6 MB, free: 12.93 MB / 302.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.0006267/0.1969, allocations: 0.8124 MB / 427.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001769/0.1971, allocations: 117.5 kB / 427.6 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1971, allocations: 0 / 427.6 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.177e-05/0.1972, allocations: 65.81 kB / 427.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001537/0.1973, allocations: 6.656 kB / 427.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.1985, allocations: 1.632 MB / 429.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001187/0.1986, allocations: 0.7314 MB / 430 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.212e-05/0.1987, allocations: 12.55 kB / 430 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.133e-05/0.1987, allocations: 39.42 kB / 430.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1988, allocations: 4 kB / 430.1 MB, free: 9.375 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03615/0.2349, allocations: 3.336 MB / 433.4 MB, free: 6.176 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.533/7.768, allocations: 10.39 kB / 433.4 MB, free: 6.168 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)