Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 105.6 kB / 17.11 MB, free: 5.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 192.6 kB / 20.07 MB, free: 2.984 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 245.8 MB, free: 4.223 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1568/0.1568, allocations: 12.02 MB / 310 MB, free: 1.934 MB / 238.1 MB " [Timeout remaining time 180] 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.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_ClockedBlocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 67.89 kB / 428.3 MB, free: 1.898 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2216, allocations: 52.32 MB / 480.6 MB, free: 17.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.00285/0.2245, allocations: 2.243 MB / 482.9 MB, free: 16.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002788/0.2248, allocations: 167.3 kB / 483 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.632e-05/0.2249, allocations: 5.25 kB / 483 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.225, allocations: 22.17 kB / 483 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.2252, allocations: 34.8 kB / 483.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.2253, allocations: 66.56 kB / 483.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001111/0.2254, allocations: 73.53 kB / 483.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.895e-05/0.2255, allocations: 22.88 kB / 483.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.303e-05/0.2256, allocations: 27.14 kB / 483.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.036e-05/0.2256, allocations: 36.48 kB / 483.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.915e-05/0.2257, allocations: 5.562 kB / 483.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001511/0.2258, allocations: 134.5 kB / 483.4 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.982e-05/0.2258, allocations: 10.28 kB / 483.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.916e-05/0.2259, allocations: 42.5 kB / 483.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.2261, allocations: 142.9 kB / 483.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.165e-06/0.2261, allocations: 4 kB / 483.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2261, allocations: 1.156 kB / 483.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.2261, allocations: 0 / 483.6 MB, free: 15.55 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000336/0.2265, allocations: 443 kB / 484.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.2265, allocations: 13.78 kB / 484.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.697e-05/0.2265, allocations: 36.91 kB / 484.1 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.284e-05/0.2266, allocations: 10.39 kB / 484.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.2267, allocations: 207.8 kB / 484.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.2268, allocations: 7.688 kB / 484.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.2268, allocations: 8.75 kB / 484.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.227, allocations: 152.6 kB / 484.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.2271, allocations: 3.938 kB / 484.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.2271, allocations: 1.312 kB / 484.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2271, allocations: 5.219 kB / 484.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.972e-05/0.2272, allocations: 27.08 kB / 484.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002396/0.2274, allocations: 295.9 kB / 484.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001469/0.2276, allocations: 154.6 kB / 485 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.888e-05/0.2276, allocations: 45.14 kB / 485 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.2277, allocations: 5.188 kB / 485 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.227e-05/0.2277, allocations: 35.56 kB / 485 MB, free: 14.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.2277, allocations: 0 / 485 MB, free: 14.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002746/0.228, allocations: 165.5 kB / 485.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.988e-05/0.228, allocations: 135.4 kB / 485.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.568e-05/0.2281, allocations: 135.2 kB / 485.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/0.2281, allocations: 31.23 kB / 485.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.981e-05/0.2281, allocations: 91 kB / 485.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.212e-05/0.2282, allocations: 14.62 kB / 485.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.681e-05/0.2282, allocations: 26.19 kB / 485.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.684e-05/0.2282, allocations: 324.1 kB / 486 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.627e-05/0.2283, allocations: 11.66 kB / 486 MB, free: 13.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.261e-05/0.2283, allocations: 61.72 kB / 486 MB, free: 13.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.927e-05/0.2284, allocations: 186.9 kB / 486.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2284, allocations: 0.7812 kB / 486.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001595/0.2286, allocations: 151.8 kB / 486.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.2286, allocations: 62.12 kB / 486.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.2286, allocations: 6.125 kB / 486.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2287, allocations: 2.188 kB / 486.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.007e-05/0.2287, allocations: 14.83 kB / 486.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.2287, allocations: 5.5 kB / 486.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.904e-05/0.2288, allocations: 12.11 kB / 486.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.2288, allocations: 4.438 kB / 486.5 MB, free: 12.68 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 (synchronizeRealtime.initialized,keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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 6.736e-05/0.2289, allocations: 177.2 kB / 486.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.255e-05/0.2289, allocations: 64.67 kB / 486.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.971e-05/0.229, allocations: 10.91 kB / 486.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.229, allocations: 1 kB / 486.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.229, allocations: 0.9688 kB / 486.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.229, allocations: 5.047 kB / 486.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.2291, allocations: 185.9 kB / 486.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2291, allocations: 3.984 kB / 486.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.296e-05/0.2292, allocations: 4.25 kB / 486.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.2292, allocations: 1 kB / 486.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.2292, allocations: 2.125 kB / 486.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.2292, allocations: 0.7812 kB / 486.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2292, allocations: 1.156 kB / 486.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000192/0.2294, allocations: 269.5 kB / 487.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.832e-05/0.2294, allocations: 83.66 kB / 487.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.2295, allocations: 2.406 kB / 487.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.202e-05/0.2295, allocations: 9.312 kB / 487.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.123e-05/0.2295, allocations: 6.672 kB / 487.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.2295, allocations: 7.312 kB / 487.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.071e-05/0.2296, allocations: 98.47 kB / 487.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2296, allocations: 0 / 487.4 MB, free: 11.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002635/0.2299, allocations: 28.84 kB / 487.4 MB, free: 11.75 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: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0009183/0.2308, allocations: 1.005 MB / 488.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001733/0.231, allocations: 167 kB / 488.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.231, allocations: 4.125 kB / 488.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.887e-05/0.231, allocations: 118.2 kB / 488.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/0.2313, allocations: 31.38 kB / 488.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.2323, allocations: 1.561 MB / 490.3 MB, free: 9.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.143e-05/0.2324, allocations: 0.6957 MB / 491 MB, free: 8.371 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.936e-05/0.2325, allocations: 15.19 kB / 491 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.314e-05/0.2325, allocations: 25.8 kB / 491 MB, free: 8.344 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2325, allocations: 0 / 491 MB, free: 8.344 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.2556, allocations: 3.163 MB / 494.2 MB, free: 6.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.81/8.066, allocations: 7.922 kB / 494.2 MB, free: 6.629 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.sim & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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_ClockedBlocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.605073953047395] Failed to read output from testmodel.py, exit status != 0: 8.22274826397188 8.240077552 8.009805934 Calling exit ...