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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 105 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.0016/0.0016, allocations: 186.4 kB / 17.24 MB, free: 5.879 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.397/1.397, allocations: 222.9 MB / 240.9 MB, free: 15.14 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.05628/0.05628, allocations: 12.04 MB / 303.1 MB, free: 3.164 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.001581, allocations: 67.89 kB / 366.6 MB, free: 3.676 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2241, allocations: 52.32 MB / 418.9 MB, free: 21.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003991/0.2281, allocations: 2.651 MB / 421.5 MB, free: 18.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004312/0.2286, allocations: 307 kB / 421.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.596e-05/0.2287, allocations: 7.938 kB / 421.9 MB, free: 18.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002197/0.2289, allocations: 43.64 kB / 421.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.072e-05/0.229, allocations: 17.17 kB / 421.9 MB, free: 18.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002245/0.2292, allocations: 91.7 kB / 422 MB, free: 17.95 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.2294, allocations: 152 kB / 422.1 MB, free: 17.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.2296, allocations: 76.94 kB / 422.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.592e-05/0.2296, allocations: 63.77 kB / 422.3 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.4e-05/0.2297, allocations: 61.39 kB / 422.3 MB, free: 17.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.342e-05/0.2298, allocations: 16 kB / 422.4 MB, free: 17.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.457e-05/0.2299, allocations: 27.98 kB / 422.4 MB, free: 17.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.154e-05/0.2299, allocations: 47.84 kB / 422.4 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.249e-05/0.23, allocations: 83.48 kB / 422.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002206/0.2302, allocations: 193.6 kB / 422.7 MB, free: 17.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2302, allocations: 0 / 422.7 MB, free: 17.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.2303, allocations: 0 / 422.7 MB, free: 17.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.2303, allocations: 0 / 422.7 MB, free: 17.25 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005371/0.2309, allocations: 466.8 kB / 423.2 MB, free: 16.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.2309, allocations: 8.031 kB / 423.2 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.649e-05/0.231, allocations: 50.73 kB / 423.2 MB, free: 16.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.324e-05/0.231, allocations: 20.66 kB / 423.2 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001921/0.2312, allocations: 232 kB / 423.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.2312, allocations: 20.36 kB / 423.5 MB, free: 16.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.174e-05/0.2313, allocations: 12.38 kB / 423.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002493/0.2315, allocations: 187.8 kB / 423.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.2315, allocations: 3.938 kB / 423.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.2316, allocations: 4 kB / 423.7 MB, free: 16.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.2316, allocations: 4 kB / 423.7 MB, free: 16.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001526/0.2317, allocations: 112.8 kB / 423.8 MB, free: 16.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005743/0.2323, allocations: 485.4 kB / 424.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.2325, allocations: 121.2 kB / 424.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.794e-05/0.2326, allocations: 81.58 kB / 424.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.299e-05/0.2326, allocations: 7.984 kB / 424.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.2329, allocations: 121.1 kB / 424.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/0.2329, allocations: 0 / 424.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003807/0.2333, allocations: 247.6 kB / 424.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.2333, allocations: 97.16 kB / 424.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.2335, allocations: 148 kB / 425.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.2335, allocations: 37.69 kB / 425.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.769e-05/0.2336, allocations: 124.7 kB / 425.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.97e-05/0.2336, allocations: 63.28 kB / 425.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.489e-05/0.2337, allocations: 49.98 kB / 425.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.241e-05/0.2338, allocations: 330.8 kB / 425.7 MB, free: 14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.221e-05/0.2339, allocations: 80.42 kB / 425.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.234, allocations: 167.5 kB / 425.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002226/0.2342, allocations: 259 kB / 426.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2342, allocations: 0 / 426.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000328/0.2345, allocations: 277 kB / 426.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.2346, allocations: 8 kB / 426.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.2346, allocations: 4 kB / 426.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.2346, allocations: 4 kB / 426.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.2347, allocations: 35.92 kB / 426.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.2347, allocations: 7.938 kB / 426.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.051e-05/0.2348, allocations: 15.84 kB / 426.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.2348, allocations: 15.94 kB / 426.5 MB, free: 13.06 MB / 302.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.0001303/0.235, allocations: 178.1 kB / 426.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.001e-05/0.235, allocations: 15.81 kB / 426.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.287e-05/0.235, allocations: 13.19 kB / 426.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.2351, allocations: 4 kB / 426.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.2351, allocations: 0 / 426.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2351, allocations: 3.984 kB / 426.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.2352, allocations: 241.4 kB / 427 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.2353, allocations: 4 kB / 427 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.349e-05/0.2353, allocations: 7.984 kB / 427 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2353, allocations: 4 kB / 427 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.2353, allocations: 0 / 427 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.2353, allocations: 0 / 427 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2353, allocations: 4 kB / 427 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002108/0.2355, allocations: 225.5 kB / 427.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.212e-05/0.2356, allocations: 96.86 kB / 427.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.2356, allocations: 8 kB / 427.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.512e-05/0.2356, allocations: 0 / 427.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.481e-05/0.2357, allocations: 15.98 kB / 427.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.2357, allocations: 7.875 kB / 427.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.41e-05/0.2357, allocations: 109 kB / 427.4 MB, free: 12.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2358, allocations: 4 kB / 427.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002564/0.236, allocations: 43.84 kB / 427.5 MB, free: 12 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: 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.0007583/0.2368, allocations: 0.8826 MB / 428.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002902/0.2371, allocations: 221.4 kB / 428.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2371, allocations: 0 / 428.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.07e-05/0.2372, allocations: 101.6 kB / 428.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001633/0.2374, allocations: 11.94 kB / 428.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00163/0.239, allocations: 2.116 MB / 430.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.2391, allocations: 0.7361 MB / 431.6 MB, free: 7.758 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.553e-05/0.2392, allocations: 25.53 kB / 431.6 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.878e-05/0.2393, allocations: 51.42 kB / 431.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2393, allocations: 0 / 431.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.2588, allocations: 3.217 MB / 434.8 MB, free: 4.598 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.744/8.002, allocations: 12.31 kB / 434.9 MB, free: 4.59 MB / 302.1 MB (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)