Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.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.001771/0.001771, allocations: 106.5 kB / 17.12 MB, free: 5.938 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.002105/0.002105, allocations: 196.5 kB / 20.07 MB, free: 3.008 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.485/1.485, allocations: 222.9 MB / 245.8 MB, free: 4.223 MB / 190.1 MB " [Timeout remaining time 178] 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.1745/0.1745, allocations: 12.01 MB / 310 MB, free: 1.52 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.Blocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003021/0.003021, allocations: 71.88 kB / 428.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3124, allocations: 52.33 MB / 480.6 MB, free: 17.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003646/0.3161, allocations: 2.642 MB / 483.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005107/0.3167, allocations: 321.9 kB / 483.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.631e-05/0.3168, allocations: 5.781 kB / 483.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002226/0.317, allocations: 41.09 kB / 483.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.266e-05/0.3171, allocations: 16.97 kB / 483.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000229/0.3173, allocations: 88.88 kB / 483.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.3175, allocations: 156.3 kB / 483.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.3177, allocations: 83.3 kB / 484 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.825e-05/0.3177, allocations: 55.28 kB / 484 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.945e-05/0.3178, allocations: 67.44 kB / 484.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.3179, allocations: 12.78 kB / 484.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.39e-05/0.3179, allocations: 29.52 kB / 484.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.318e-05/0.318, allocations: 49.28 kB / 484.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.074e-05/0.3181, allocations: 72.77 kB / 484.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002201/0.3183, allocations: 204.4 kB / 484.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3183, allocations: 3.984 kB / 484.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3183, allocations: 1.219 kB / 484.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.3183, allocations: 0 / 484.4 MB, free: 14.95 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004591/0.3188, allocations: 473.1 kB / 484.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3188, allocations: 9.781 kB / 484.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.289e-05/0.3189, allocations: 53.27 kB / 485 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.243e-05/0.3189, allocations: 21.45 kB / 485 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.3191, allocations: 234.2 kB / 485.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.3192, allocations: 8.594 kB / 485.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.993e-05/0.3192, allocations: 13.31 kB / 485.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000253/0.3194, allocations: 184.4 kB / 485.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.3195, allocations: 3.938 kB / 485.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.3195, allocations: 10.06 kB / 485.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.3195, allocations: 2.844 kB / 485.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.3197, allocations: 118.8 kB / 485.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005989/0.3203, allocations: 482.7 kB / 486 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001731/0.3205, allocations: 121.8 kB / 486.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.211e-05/0.3206, allocations: 84.31 kB / 486.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.3206, allocations: 1.125 kB / 486.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002603/0.3209, allocations: 127.3 kB / 486.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.322e-06/0.3209, allocations: 1.188 kB / 486.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004451/0.3213, allocations: 247.3 kB / 486.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.3214, allocations: 96.44 kB / 486.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.3215, allocations: 145 kB / 486.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.3216, allocations: 38.28 kB / 486.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.575e-05/0.3216, allocations: 125.1 kB / 487 MB, free: 12.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.879e-05/0.3217, allocations: 65.86 kB / 487 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.649e-05/0.3218, allocations: 59.81 kB / 487.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.828e-05/0.3219, allocations: 331.7 kB / 487.4 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.322, allocations: 69.11 kB / 487.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.3221, allocations: 165.2 kB / 487.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002787/0.3224, allocations: 255.7 kB / 487.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3224, allocations: 0 / 487.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004042/0.3229, allocations: 278 kB / 488.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.3229, allocations: 11.62 kB / 488.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/0.3229, allocations: 8.547 kB / 488.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.3229, allocations: 4.656 kB / 488.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.3231, allocations: 30.11 kB / 488.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.3231, allocations: 4.5 kB / 488.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.171e-05/0.3232, allocations: 21.47 kB / 488.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.303e-05/0.3232, allocations: 18.62 kB / 488.3 MB, free: 11.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 (keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],$PRE.keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.KeyCode[6],$PRE.keyboardInput.KeyCode[6],keyboardInput.keySpace,keyboardInput.KeyCode[5],$PRE.keyboardInput.KeyCode[5],keyboardInput.keyReturn,keyboardInput.KeyCode[4],$PRE.keyboardInput.KeyCode[4],keyboardInput.keyLeft,keyboardInput.KeyCode[3],$PRE.keyboardInput.KeyCode[3],keyboardInput.keyRight,keyboardInput.KeyCode[2],$PRE.keyboardInput.KeyCode[2],keyboardInput.keyDown,keyboardInput.KeyCode[1],$PRE.keyboardInput.KeyCode[1],keyboardInput.keyUp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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.0001522/0.3234, allocations: 171.3 kB / 488.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.547e-05/0.3234, allocations: 9.859 kB / 488.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.529e-05/0.3235, allocations: 19.92 kB / 488.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3235, allocations: 2.219 kB / 488.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3235, allocations: 0 / 488.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.3235, allocations: 5.109 kB / 488.5 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002053/0.3237, allocations: 244.8 kB / 488.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.3237, allocations: 5.344 kB / 488.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.863e-05/0.3237, allocations: 12.98 kB / 488.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3238, allocations: 1.125 kB / 488.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.3238, allocations: 5.281 kB / 488.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.3238, allocations: 1.531 kB / 488.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3238, allocations: 0 / 488.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002717/0.3241, allocations: 221.7 kB / 489 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.3241, allocations: 98.52 kB / 489.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.914e-05/0.3241, allocations: 2.031 kB / 489.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.878e-05/0.3242, allocations: 4 kB / 489.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.873e-05/0.3242, allocations: 14.3 kB / 489.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.3243, allocations: 7.188 kB / 489.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.547e-05/0.3243, allocations: 113.2 kB / 489.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3243, allocations: 0 / 489.2 MB, free: 10.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002826/0.3246, allocations: 43.42 kB / 489.2 MB, free: 10.96 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: 17 ($whenCondition1,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: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.0009371/0.3256, allocations: 0.8756 MB / 490.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003241/0.3259, allocations: 208 kB / 490.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3259, allocations: 0 / 490.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.639e-05/0.326, allocations: 102.8 kB / 490.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001695/0.3262, allocations: 13.91 kB / 490.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001773/0.328, allocations: 2.144 MB / 492.6 MB, free: 8.246 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.3282, allocations: 0.7343 MB / 493.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.848e-05/0.3283, allocations: 31.12 kB / 493.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.149e-05/0.3283, allocations: 51.52 kB / 493.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3284, allocations: 0 / 493.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.3515, allocations: 3.321 MB / 496.7 MB, free: 5.715 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.346/8.697, allocations: 8.547 kB / 496.7 MB, free: 5.711 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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_Blocks_Examples_TestInputKeyboard.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.556590790045448] Failed to read output from testmodel.py, exit status != 0: 8.860605719964951 8.879218094 8.556922728 Calling exit ...