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.001129/0.001129, allocations: 108.7 kB / 16.03 MB, free: 6.262 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.001149/0.001149, allocations: 193.8 kB / 16.95 MB, free: 6.098 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.294/1.294, allocations: 222.9 MB / 240.6 MB, free: 15.42 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.0574/0.0574, allocations: 12.04 MB / 302.8 MB, free: 3.297 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001439, allocations: 59.91 kB / 366.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1998, allocations: 52.32 MB / 418.4 MB, free: 21.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003232/0.203, allocations: 2.68 MB / 421.1 MB, free: 18.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004207/0.2035, allocations: 301.7 kB / 421.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.2036, allocations: 3.938 kB / 421.4 MB, free: 18.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002185/0.2038, allocations: 47.75 kB / 421.4 MB, free: 18.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.187e-05/0.2039, allocations: 11.81 kB / 421.4 MB, free: 18.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002065/0.2041, allocations: 83.78 kB / 421.5 MB, free: 18.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001733/0.2043, allocations: 144.1 kB / 421.6 MB, free: 17.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.2045, allocations: 81.45 kB / 421.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.987e-05/0.2045, allocations: 59.78 kB / 421.8 MB, free: 17.74 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.167e-05/0.2046, allocations: 59.7 kB / 421.8 MB, free: 17.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.2046, allocations: 16 kB / 421.8 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.429e-05/0.2047, allocations: 31.98 kB / 421.9 MB, free: 17.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.823e-05/0.2048, allocations: 51.83 kB / 421.9 MB, free: 17.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.966e-05/0.2049, allocations: 71.55 kB / 422 MB, free: 17.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.2051, allocations: 197.6 kB / 422.2 MB, free: 17.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2051, allocations: 0 / 422.2 MB, free: 17.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2051, allocations: 0 / 422.2 MB, free: 17.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.2051, allocations: 0 / 422.2 MB, free: 17.32 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.0004607/0.2056, allocations: 462.9 kB / 422.6 MB, free: 16.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2056, allocations: 8.031 kB / 422.7 MB, free: 16.81 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.043e-05/0.2057, allocations: 58.73 kB / 422.7 MB, free: 16.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.14e-05/0.2057, allocations: 24.64 kB / 422.7 MB, free: 16.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.2059, allocations: 229 kB / 423 MB, free: 16.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.2059, allocations: 12.38 kB / 423 MB, free: 16.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.032e-05/0.2059, allocations: 16.36 kB / 423 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000248/0.2062, allocations: 183.9 kB / 423.2 MB, free: 16.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.2062, allocations: 3.938 kB / 423.2 MB, free: 16.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.397e-05/0.2062, allocations: 4 kB / 423.2 MB, free: 16.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.2062, allocations: 8 kB / 423.2 MB, free: 16.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001492/0.2064, allocations: 116.8 kB / 423.3 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000537/0.2069, allocations: 489.3 kB / 423.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001329/0.2071, allocations: 125.2 kB / 423.9 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.167e-05/0.2072, allocations: 73.69 kB / 424 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.2072, allocations: 7.938 kB / 424 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001897/0.2074, allocations: 129.1 kB / 424.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.2074, allocations: 4 kB / 424.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.000399/0.2078, allocations: 247.9 kB / 424.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.2079, allocations: 89.09 kB / 424.4 MB, free: 14.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.208, allocations: 154.5 kB / 424.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.208, allocations: 29.7 kB / 424.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.231e-05/0.2081, allocations: 128.6 kB / 424.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.783e-05/0.2081, allocations: 59.3 kB / 424.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.993e-05/0.2082, allocations: 53.98 kB / 424.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.591e-05/0.2083, allocations: 334.8 kB / 425.2 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.692e-05/0.2084, allocations: 72.25 kB / 425.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001126/0.2085, allocations: 163.6 kB / 425.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.2087, allocations: 254.9 kB / 425.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.2087, allocations: 0 / 425.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003061/0.2091, allocations: 281 kB / 425.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.2091, allocations: 8 kB / 425.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.2091, allocations: 4 kB / 425.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/0.2091, allocations: 4 kB / 425.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.2092, allocations: 27.92 kB / 426 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.2093, allocations: 12.19 kB / 426 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.711e-05/0.2093, allocations: 15.84 kB / 426 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.637e-05/0.2094, allocations: 19.94 kB / 426 MB, free: 13.13 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.0001335/0.2095, allocations: 170 kB / 426.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.138e-05/0.2095, allocations: 11.81 kB / 426.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.514e-05/0.2096, allocations: 17.44 kB / 426.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2096, allocations: 7.984 kB / 426.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.2096, allocations: 8 kB / 426.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.2096, allocations: 0 / 426.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.2098, allocations: 241.4 kB / 426.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.2098, allocations: 3.984 kB / 426.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.673e-05/0.2098, allocations: 7.938 kB / 426.5 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.2098, allocations: 4 kB / 426.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.2098, allocations: 0 / 426.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2098, allocations: 0 / 426.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2098, allocations: 0 / 426.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.2101, allocations: 236 kB / 426.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.16e-05/0.2101, allocations: 92.86 kB / 426.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.98e-05/0.2101, allocations: 4 kB / 426.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.682e-05/0.2102, allocations: 0 / 426.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.271e-05/0.2102, allocations: 15.98 kB / 426.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-06/0.2102, allocations: 7.875 kB / 426.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.221e-05/0.2103, allocations: 113.2 kB / 426.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2103, allocations: 0 / 426.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002744/0.2106, allocations: 51.84 kB / 427 MB, free: 12.07 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.0006995/0.2113, allocations: 0.8742 MB / 427.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002886/0.2116, allocations: 217.4 kB / 428.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2116, allocations: 0 / 428.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.604e-05/0.2117, allocations: 97.62 kB / 428.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001775/0.2119, allocations: 15.92 kB / 428.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.2136, allocations: 2.176 MB / 430.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.2138, allocations: 0.7439 MB / 431.1 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.733e-05/0.2138, allocations: 17.55 kB / 431.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.223e-05/0.2139, allocations: 51.42 kB / 431.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2139, allocations: 0 / 431.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01277/0.2267, allocations: 3.175 MB / 434.4 MB, free: 4.688 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/0.2269, allocations: 266.2 kB / 434.6 MB, free: 4.332 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/1.946, allocations: 0 / 434.6 MB, free: 4.332 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 & /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)