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.00112/0.00112, allocations: 108.8 kB / 16.45 MB, free: 6.438 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.001234/0.001233, allocations: 186.9 kB / 17.39 MB, free: 5.691 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.356/1.356, allocations: 222.9 MB / 241.1 MB, free: 15.08 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.05822/0.05822, allocations: 12.06 MB / 303.3 MB, free: 3.121 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 68.12 kB / 419.6 MB, free: 17.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08285/0.08403, allocations: 52.32 MB / 471.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003627/0.08769, allocations: 2.655 MB / 474.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004654/0.08818, allocations: 303 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.542e-05/0.08827, allocations: 7.938 kB / 474.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.0885, allocations: 51.56 kB / 474.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.978e-05/0.08858, allocations: 15.88 kB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002107/0.0888, allocations: 91.7 kB / 475 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001712/0.08898, allocations: 152 kB / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.08914, allocations: 81.38 kB / 475.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.067e-05/0.08921, allocations: 59.77 kB / 475.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.034e-05/0.08931, allocations: 63.7 kB / 475.3 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.08934, allocations: 12 kB / 475.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.862e-05/0.08942, allocations: 24 kB / 475.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.94e-05/0.08949, allocations: 59.77 kB / 475.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.166e-05/0.08957, allocations: 75.55 kB / 475.5 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.08981, allocations: 202.1 kB / 475.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.08982, allocations: 0 / 475.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.08983, allocations: 0 / 475.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.08984, allocations: 0 / 475.7 MB, free: 9.535 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.0005056/0.09035, allocations: 467.7 kB / 476.2 MB, free: 9.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.09039, allocations: 8.031 kB / 476.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.494e-05/0.09045, allocations: 54.72 kB / 476.2 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.144e-05/0.0905, allocations: 20.66 kB / 476.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002117/0.09071, allocations: 224 kB / 476.5 MB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.09074, allocations: 16.31 kB / 476.5 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.109e-05/0.09076, allocations: 16.38 kB / 476.5 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002631/0.09103, allocations: 187.9 kB / 476.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.09105, allocations: 3.938 kB / 476.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.778e-05/0.09107, allocations: 7.984 kB / 476.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.09108, allocations: 7.938 kB / 476.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.09126, allocations: 124.1 kB / 476.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006069/0.09188, allocations: 485.2 kB / 477.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.09204, allocations: 121.2 kB / 477.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.468e-05/0.09214, allocations: 77.69 kB / 477.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.09218, allocations: 4.062 kB / 477.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001888/0.09238, allocations: 130.6 kB / 477.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.142e-06/0.09239, allocations: 0 / 477.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003595/0.09275, allocations: 255.7 kB / 477.9 MB, free: 7.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.256e-05/0.09281, allocations: 85.11 kB / 478 MB, free: 7.059 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.09294, allocations: 152.7 kB / 478.1 MB, free: 6.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.09297, allocations: 33.7 kB / 478.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.882e-05/0.09305, allocations: 124.7 kB / 478.3 MB, free: 6.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.553e-05/0.0931, allocations: 59.28 kB / 478.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.626e-05/0.09318, allocations: 53.98 kB / 478.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.09329, allocations: 334.8 kB / 478.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.0934, allocations: 76.23 kB / 478.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.09356, allocations: 163.6 kB / 478.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/0.09384, allocations: 247 kB / 479.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.09385, allocations: 4 kB / 479.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000363/0.09422, allocations: 273 kB / 479.4 MB, free: 5.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.09424, allocations: 8 kB / 479.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.09426, allocations: 4 kB / 479.5 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.09428, allocations: 4 kB / 479.5 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.09439, allocations: 31.92 kB / 479.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.09441, allocations: 4 kB / 479.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.281e-05/0.09448, allocations: 23.97 kB / 479.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.756e-05/0.09451, allocations: 15.94 kB / 479.5 MB, free: 5.359 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.0001389/0.09465, allocations: 178 kB / 479.7 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.142e-05/0.09468, allocations: 11.81 kB / 479.7 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.667e-05/0.09473, allocations: 21.17 kB / 479.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.09474, allocations: 0 / 479.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.09475, allocations: 4 kB / 479.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.09476, allocations: 4 kB / 479.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.09496, allocations: 249.4 kB / 480 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.09497, allocations: 0 / 480 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.532e-05/0.095, allocations: 4.25 kB / 480 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.09501, allocations: 3.938 kB / 480 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/0.09503, allocations: 8 kB / 480 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.09503, allocations: 0 / 480 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.09504, allocations: 0 / 480 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000252/0.0953, allocations: 237.6 kB / 480.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.842e-05/0.09534, allocations: 85.02 kB / 480.3 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.163e-05/0.09537, allocations: 8 kB / 480.3 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.724e-05/0.0954, allocations: 0 / 480.3 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.09545, allocations: 11.98 kB / 480.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.09547, allocations: 11.92 kB / 480.3 MB, free: 4.441 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.819e-05/0.09554, allocations: 106 kB / 480.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09555, allocations: 0 / 480.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002634/0.09582, allocations: 43.84 kB / 480.5 MB, free: 4.297 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.0008006/0.09662, allocations: 0.8804 MB / 481.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003018/0.09694, allocations: 217.9 kB / 481.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.09695, allocations: 0 / 481.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.09706, allocations: 93.62 kB / 481.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001639/0.09723, allocations: 15.92 kB / 481.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.09921, allocations: 2.133 MB / 483.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.09949, allocations: 0.7322 MB / 484.6 MB, free: 48 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.909e-05/0.09956, allocations: 25.53 kB / 484.6 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.581e-05/0.09965, allocations: 55.5 kB / 484.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09966, allocations: 0 / 484.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01871/0.1184, allocations: 3.36 MB / 488 MB, free: 12.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.675/7.793, allocations: 3.781 kB / 488 MB, free: 12.76 MB / 366.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)