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.001706/0.001706, allocations: 100.9 kB / 16.31 MB, free: 5.879 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.002509/0.002509, allocations: 190.9 kB / 17.24 MB, free: 5.539 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.375/1.375, allocations: 222.9 MB / 240.9 MB, free: 15.17 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.05951/0.05951, allocations: 12.04 MB / 303.1 MB, free: 3.172 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001238, allocations: 67.88 kB / 366.6 MB, free: 3.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2305, allocations: 52.33 MB / 418.9 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004895/0.2355, allocations: 2.661 MB / 421.6 MB, free: 18.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006835/0.2362, allocations: 354.1 kB / 421.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001324/0.2364, allocations: 3.938 kB / 421.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003381/0.2367, allocations: 51.66 kB / 422 MB, free: 18.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000242/0.237, allocations: 51.78 kB / 422 MB, free: 17.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.2373, allocations: 87.7 kB / 422.1 MB, free: 17.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002254/0.2375, allocations: 151.9 kB / 422.2 MB, free: 17.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.2378, allocations: 81.52 kB / 422.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.499e-05/0.2379, allocations: 55.77 kB / 422.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.238, allocations: 67.7 kB / 422.4 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.782e-05/0.2381, allocations: 12 kB / 422.5 MB, free: 17.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002332/0.2383, allocations: 139.9 kB / 422.6 MB, free: 17.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.404e-05/0.2384, allocations: 51.77 kB / 422.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.808e-05/0.2385, allocations: 63.61 kB / 422.7 MB, free: 17.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003256/0.2388, allocations: 221.6 kB / 422.9 MB, free: 17.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.2389, allocations: 0 / 422.9 MB, free: 17.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2389, allocations: 3.938 kB / 422.9 MB, free: 17.04 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.2389, allocations: 3.984 kB / 422.9 MB, free: 17.04 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.0005404/0.2394, allocations: 451.1 kB / 423.4 MB, free: 16.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.2395, allocations: 8.031 kB / 423.4 MB, free: 16.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.108e-05/0.2395, allocations: 46.73 kB / 423.4 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.574e-05/0.2396, allocations: 16.75 kB / 423.4 MB, free: 16.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.2398, allocations: 236 kB / 423.7 MB, free: 16.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.2398, allocations: 8.609 kB / 423.7 MB, free: 16.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.769e-05/0.2398, allocations: 8.375 kB / 423.7 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.2401, allocations: 156.8 kB / 423.8 MB, free: 16.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.2401, allocations: 7.938 kB / 423.8 MB, free: 16.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.2401, allocations: 8 kB / 423.9 MB, free: 16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.802e-06/0.2401, allocations: 4 kB / 423.9 MB, free: 16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.2403, allocations: 80.12 kB / 423.9 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005315/0.2408, allocations: 477.5 kB / 424.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001222/0.2409, allocations: 69.19 kB / 424.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.483e-05/0.241, allocations: 45.8 kB / 424.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.124e-05/0.2411, allocations: 4 kB / 424.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002551/0.2413, allocations: 101 kB / 424.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.2413, allocations: 0 / 424.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.000319/0.2417, allocations: 133.3 kB / 424.7 MB, free: 15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/0.2417, allocations: 81.11 kB / 424.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.2419, allocations: 159.7 kB / 425 MB, free: 14.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.2419, allocations: 29.7 kB / 425 MB, free: 14.71 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.027e-05/0.242, allocations: 128.1 kB / 425.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.312e-05/0.242, allocations: 27.66 kB / 425.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-05/0.2421, allocations: 37.61 kB / 425.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2422, allocations: 326.8 kB / 425.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.404e-05/0.2422, allocations: 27.98 kB / 425.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.019e-05/0.2423, allocations: 51.42 kB / 425.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001051/0.2424, allocations: 87.36 kB / 425.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2424, allocations: 0 / 425.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000171/0.2426, allocations: 117.5 kB / 425.8 MB, free: 13.87 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.2426, allocations: 4 kB / 425.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/0.2427, allocations: 7.875 kB / 425.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.542e-05/0.2427, allocations: 4 kB / 425.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.286e-05/0.2428, allocations: 11.98 kB / 425.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.2428, allocations: 0 / 425.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.936e-05/0.2428, allocations: 19.91 kB / 425.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.2429, allocations: 4.312 kB / 425.8 MB, free: 13.82 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 0.0001171/0.243, allocations: 142.3 kB / 426 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.243, allocations: 11.91 kB / 426 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.615e-05/0.2431, allocations: 16.66 kB / 426 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2431, allocations: 0 / 426 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.2431, allocations: 4 kB / 426 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.2431, allocations: 3.984 kB / 426 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002076/0.2433, allocations: 229.4 kB / 426.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.2433, allocations: 8 kB / 426.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.128e-05/0.2434, allocations: 4 kB / 426.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.2434, allocations: 0 / 426.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.2434, allocations: 7.984 kB / 426.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2434, allocations: 0 / 426.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.2434, allocations: 4 kB / 426.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001898/0.2436, allocations: 129.8 kB / 426.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.42e-05/0.2436, allocations: 85.02 kB / 426.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.2437, allocations: 4 kB / 426.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.635e-05/0.2437, allocations: 4 kB / 426.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.2438, allocations: 11.98 kB / 426.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.2438, allocations: 0 / 426.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.009e-05/0.2438, allocations: 115.2 kB / 426.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2439, allocations: 0 / 426.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002714/0.2441, allocations: 39.84 kB / 426.7 MB, free: 12.91 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.0008498/0.245, allocations: 0.8201 MB / 427.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002087/0.2452, allocations: 101.6 kB / 427.6 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2452, allocations: 4.125 kB / 427.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-05/0.2453, allocations: 65.62 kB / 427.6 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000174/0.2455, allocations: 10.03 kB / 427.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.2469, allocations: 1.64 MB / 429.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001612/0.2471, allocations: 0.7236 MB / 430 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.755e-05/0.2472, allocations: 12.88 kB / 430 MB, free: 9.402 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.585e-05/0.2472, allocations: 43.42 kB / 430.1 MB, free: 9.359 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2472, allocations: 0 / 430.1 MB, free: 9.359 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0198/0.267, allocations: 3.331 MB / 433.4 MB, free: 6.168 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.705/7.972, allocations: 7.641 kB / 433.4 MB, free: 6.16 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 & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey_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_Blocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)