Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.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.ClockedBlocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard",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.001664/0.001664, allocations: 103.4 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.001824/0.001824, 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.352/1.352, allocations: 222.9 MB / 240.9 MB, free: 15.19 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.05668/0.05668, allocations: 12.05 MB / 303.1 MB, free: 3.172 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 63.91 kB / 366.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1889/0.1901, allocations: 52.32 MB / 418.9 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003227/0.1934, allocations: 2.238 MB / 421.1 MB, free: 18.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002138/0.1936, allocations: 123.6 kB / 421.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.82e-05/0.1937, allocations: 0 / 421.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.1939, allocations: 34.97 kB / 421.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.305e-05/0.1939, allocations: 3.938 kB / 421.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001698/0.1941, allocations: 47.39 kB / 421.3 MB, free: 18.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.1942, allocations: 75.78 kB / 421.4 MB, free: 18.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.1943, allocations: 32.19 kB / 421.4 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.661e-05/0.1944, allocations: 31.86 kB / 421.5 MB, free: 18.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.235e-05/0.1944, allocations: 31.84 kB / 421.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.1945, allocations: 8 kB / 421.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.884e-05/0.1945, allocations: 23.03 kB / 421.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.84e-05/0.1946, allocations: 23.91 kB / 421.6 MB, free: 18.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.087e-05/0.1946, allocations: 43.73 kB / 421.6 MB, free: 18.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.1948, allocations: 107.6 kB / 421.7 MB, free: 18.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1948, allocations: 0 / 421.7 MB, free: 18.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1948, allocations: 0 / 421.7 MB, free: 18.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.1948, allocations: 0 / 421.7 MB, free: 18.26 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003874/0.1952, allocations: 453 kB / 422.1 MB, free: 17.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.1953, allocations: 8.031 kB / 422.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.75e-05/0.1953, allocations: 42.73 kB / 422.2 MB, free: 17.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.882e-05/0.1953, allocations: 20.69 kB / 422.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.1955, allocations: 196.1 kB / 422.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.1955, allocations: 4.375 kB / 422.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.584e-05/0.1956, allocations: 12.38 kB / 422.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003674/0.1959, allocations: 267 kB / 422.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.196, allocations: 0 / 422.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.196, allocations: 4 kB / 422.7 MB, free: 17.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/0.196, allocations: 11.98 kB / 422.7 MB, free: 17.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.249e-05/0.1961, allocations: 63.84 kB / 422.8 MB, free: 17.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003079/0.1964, allocations: 301.7 kB / 423.1 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.1966, allocations: 129.4 kB / 423.2 MB, free: 16.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.572e-05/0.1967, allocations: 77.7 kB / 423.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.355e-06/0.1967, allocations: 4 kB / 423.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.728e-05/0.1967, allocations: 34.56 kB / 423.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.1967, allocations: 3.938 kB / 423.3 MB, free: 16.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003402/0.197, allocations: 255 kB / 423.5 MB, free: 16.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.1971, allocations: 140.5 kB / 423.7 MB, free: 16.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.789e-05/0.1972, allocations: 125.7 kB / 423.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.122e-05/0.1972, allocations: 33.73 kB / 423.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.366e-05/0.1972, allocations: 92.5 kB / 423.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.1973, allocations: 19.75 kB / 424 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.577e-05/0.1973, allocations: 41.7 kB / 424 MB, free: 15.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.766e-05/0.1974, allocations: 326.8 kB / 424.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.172e-05/0.1974, allocations: 27.98 kB / 424.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.03e-05/0.1975, allocations: 157.7 kB / 424.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.1977, allocations: 307.7 kB / 424.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1977, allocations: 0 / 424.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002475/0.1979, allocations: 256.8 kB / 425 MB, free: 14.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.198, allocations: 59.41 kB / 425.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.198, allocations: 4 kB / 425.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.198, allocations: 11.94 kB / 425.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.85e-05/0.1981, allocations: 27.92 kB / 425.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.1981, allocations: 11.92 kB / 425.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.508e-05/0.1982, allocations: 15.91 kB / 425.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.1982, allocations: 15.98 kB / 425.2 MB, free: 14.3 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 19 (synchronizeRealtime.initialized,keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],keyboardInput.KeyCode[6],keyboardInput.KeyCode[5],keyboardInput.KeyCode[4],keyboardInput.KeyCode[3],keyboardInput.KeyCode[2],keyboardInput.KeyCode[1],keyboardInput.keySpace,keyboardInput.keyReturn,keyboardInput.keyLeft,keyboardInput.keyRight,keyboardInput.keyDown,keyboardInput.keyUp,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.0001391/0.1983, allocations: 203.6 kB / 425.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.1985, allocations: 124.1 kB / 425.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.501e-05/0.1985, allocations: 12.78 kB / 425.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.1985, allocations: 15.94 kB / 425.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1985, allocations: 0 / 425.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1985, allocations: 0 / 425.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.1986, allocations: 189.5 kB / 425.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1987, allocations: 0 / 425.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.1e-05/0.1987, allocations: 3.984 kB / 425.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1987, allocations: 7.938 kB / 425.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.1987, allocations: 4 kB / 425.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1987, allocations: 4.125 kB / 425.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1987, allocations: 0 / 425.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002153/0.1989, allocations: 320.9 kB / 426.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.077e-05/0.199, allocations: 96.88 kB / 426.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.199, allocations: 8.141 kB / 426.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.305e-05/0.199, allocations: 8 kB / 426.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.096e-05/0.1991, allocations: 3.984 kB / 426.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-06/0.1991, allocations: 8 kB / 426.2 MB, free: 13.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.98e-05/0.1991, allocations: 95.27 kB / 426.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1991, allocations: 0 / 426.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002886/0.1994, allocations: 24 kB / 426.3 MB, free: 13.07 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: 19 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardInput.keyUp,keyboardInput.keyDown,keyboardInput.keyRight,keyboardInput.keyLeft,keyboardInput.keyReturn,keyboardInput.keySpace,keyboardInput.KeyCode[1],keyboardInput.KeyCode[2],keyboardInput.KeyCode[3],keyboardInput.KeyCode[4],keyboardInput.KeyCode[5],keyboardInput.KeyCode[6],keyboardInput.KeyCode[7],keyboardInput.KeyCode[8],keyboardInput.KeyCode[9],keyboardInput.KeyCode[10]) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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.0007498/0.2002, allocations: 1.023 MB / 427.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002539/0.2004, allocations: 251.6 kB / 427.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2004, allocations: 0 / 427.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.051e-05/0.2005, allocations: 122.8 kB / 427.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.2008, allocations: 79.14 kB / 427.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.2021, allocations: 1.905 MB / 429.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001065/0.2022, allocations: 0.7156 MB / 430.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.546e-05/0.2023, allocations: 16.88 kB / 430.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.866e-05/0.2023, allocations: 35.42 kB / 430.4 MB, free: 8.676 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2023, allocations: 0 / 430.4 MB, free: 8.676 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01589/0.2182, allocations: 2.951 MB / 433.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.292/7.51, allocations: 17.98 kB / 433.4 MB, free: 5.832 MB / 302.1 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.sim & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboard.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)