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.004162/0.004162, allocations: 88.56 kB / 15.91 MB, free: 6.312 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.00104/0.00104, allocations: 195.9 kB / 16.83 MB, free: 6.242 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.256/1.256, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1464/0.1464, allocations: 12.02 MB / 302.7 MB, free: 1.016 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 67.91 kB / 365.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08574/0.08695, allocations: 52.32 MB / 418.2 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003722/0.09071, allocations: 2.672 MB / 420.9 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004274/0.09115, allocations: 303 kB / 421.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.22e-05/0.09123, allocations: 7.938 kB / 421.2 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002123/0.09145, allocations: 43.77 kB / 421.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.019e-05/0.09153, allocations: 7.875 kB / 421.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001831/0.09172, allocations: 79.78 kB / 421.3 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001519/0.09188, allocations: 144 kB / 421.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.09203, allocations: 85.5 kB / 421.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.374e-05/0.09209, allocations: 55.77 kB / 421.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.633e-05/0.09217, allocations: 55.7 kB / 421.6 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.146e-05/0.0922, allocations: 4 kB / 421.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.554e-05/0.09227, allocations: 20 kB / 421.7 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.874e-05/0.09235, allocations: 47.84 kB / 421.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.716e-05/0.09242, allocations: 71.55 kB / 421.8 MB, free: 2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.09263, allocations: 183.6 kB / 422 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.09264, allocations: 0 / 422 MB, free: 1.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.09264, allocations: 0 / 422 MB, free: 1.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.09265, allocations: 0 / 422 MB, free: 1.82 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.0005179/0.09318, allocations: 474.8 kB / 422.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.09322, allocations: 12.03 kB / 422.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.561e-05/0.09327, allocations: 46.73 kB / 422.5 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.17e-05/0.09332, allocations: 20.66 kB / 422.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.09353, allocations: 228.1 kB / 422.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.09355, allocations: 8.375 kB / 422.7 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.694e-05/0.09358, allocations: 12.38 kB / 422.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000264/0.09385, allocations: 183.9 kB / 422.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.09387, allocations: 3.938 kB / 422.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.756e-05/0.09389, allocations: 15.92 kB / 422.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.0939, allocations: 4 kB / 422.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.09409, allocations: 124 kB / 423.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006277/0.09473, allocations: 481.4 kB / 423.5 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1448/0.2396, allocations: 121.3 kB / 423.7 MB, free: 41.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.213e-05/0.2397, allocations: 73.77 kB / 423.7 MB, free: 41.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.298e-05/0.2397, allocations: 2.562 kB / 423.7 MB, free: 41.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.2399, allocations: 128 kB / 423.9 MB, free: 41.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.774e-06/0.2399, allocations: 0.6562 kB / 423.9 MB, free: 41.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003189/0.2402, allocations: 247 kB / 424.1 MB, free: 41.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.2403, allocations: 91.69 kB / 424.2 MB, free: 41.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.431e-05/0.2404, allocations: 157.1 kB / 424.3 MB, free: 41.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.2404, allocations: 36.12 kB / 424.4 MB, free: 41.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.953e-05/0.2405, allocations: 124.9 kB / 424.5 MB, free: 41.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.296e-05/0.2405, allocations: 66.59 kB / 424.6 MB, free: 41.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.041e-05/0.2406, allocations: 56.25 kB / 424.6 MB, free: 41.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.048e-05/0.2406, allocations: 332.6 kB / 424.9 MB, free: 41.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.875e-05/0.2407, allocations: 75.53 kB / 425 MB, free: 41.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.2408, allocations: 163.1 kB / 425.2 MB, free: 40.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.241, allocations: 249.1 kB / 425.4 MB, free: 40.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.241, allocations: 0.7188 kB / 425.4 MB, free: 40.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002858/0.2413, allocations: 270.9 kB / 425.7 MB, free: 40.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.2414, allocations: 8.719 kB / 425.7 MB, free: 40.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.2414, allocations: 3.406 kB / 425.7 MB, free: 40.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.2414, allocations: 10.34 kB / 425.7 MB, free: 40.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.2415, allocations: 32.16 kB / 425.7 MB, free: 40.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.2415, allocations: 5.969 kB / 425.7 MB, free: 40.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.712e-05/0.2416, allocations: 26.17 kB / 425.8 MB, free: 40.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.2416, allocations: 9.734 kB / 425.8 MB, free: 40.81 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 9.887e-05/0.2417, allocations: 167 kB / 425.9 MB, free: 40.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.857e-05/0.2417, allocations: 16.06 kB / 426 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.712e-05/0.2418, allocations: 18.22 kB / 426 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.2418, allocations: 6.891 kB / 426 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2418, allocations: 0 / 426 MB, free: 40.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2418, allocations: 7.875 kB / 426 MB, free: 40.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001419/0.2419, allocations: 239.2 kB / 426.2 MB, free: 40.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.242, allocations: 3.641 kB / 426.2 MB, free: 40.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.316e-05/0.242, allocations: 6.531 kB / 426.2 MB, free: 40.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.634e-06/0.242, allocations: 0.6562 kB / 426.2 MB, free: 40.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.242, allocations: 6.469 kB / 426.2 MB, free: 40.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.242, allocations: 5.75 kB / 426.2 MB, free: 40.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.242, allocations: 2.844 kB / 426.2 MB, free: 40.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001836/0.2422, allocations: 227.9 kB / 426.5 MB, free: 40.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.224e-05/0.2422, allocations: 94.12 kB / 426.6 MB, free: 40.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.2423, allocations: 7.922 kB / 426.6 MB, free: 40.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.519e-05/0.2423, allocations: 2.766 kB / 426.6 MB, free: 40.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.335e-05/0.2423, allocations: 20.72 kB / 426.6 MB, free: 40.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-06/0.2423, allocations: 3.609 kB / 426.6 MB, free: 40.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.32e-05/0.2424, allocations: 106.1 kB / 426.7 MB, free: 40.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.2424, allocations: 0 / 426.7 MB, free: 40.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002403/0.2426, allocations: 52.47 kB / 426.7 MB, free: 40.22 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.0005959/0.2432, allocations: 0.8743 MB / 427.6 MB, free: 39.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002336/0.2435, allocations: 216.6 kB / 427.8 MB, free: 39.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2435, allocations: 2.906 kB / 427.8 MB, free: 39.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.288e-05/0.2436, allocations: 96.5 kB / 427.9 MB, free: 39.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001492/0.2437, allocations: 15.06 kB / 427.9 MB, free: 39.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.2452, allocations: 2.181 MB / 430.1 MB, free: 38.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.2453, allocations: 0.7314 MB / 430.9 MB, free: 37.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.872e-05/0.2454, allocations: 26.16 kB / 430.9 MB, free: 37.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.095e-05/0.2454, allocations: 55.91 kB / 430.9 MB, free: 37.37 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2454, allocations: 3.5 kB / 430.9 MB, free: 37.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2951/0.5405, allocations: 3.086 MB / 434 MB, free: 36.94 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001661/0.5407, allocations: 279.2 kB / 434.3 MB, free: 36.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.031/2.571, allocations: 0 / 434.3 MB, free: 36.58 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboard.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)