Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.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.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey",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.00131/0.001309, allocations: 106.6 kB / 16.45 MB, free: 6.441 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.001297/0.001297, allocations: 194 kB / 17.38 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.353/1.353, allocations: 222.9 MB / 241.1 MB, free: 15.15 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.05749/0.05749, allocations: 12.04 MB / 303.3 MB, free: 3.117 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 64.86 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08104/0.0823, allocations: 52.32 MB / 471.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004237/0.08658, allocations: 2.663 MB / 474.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007118/0.08732, allocations: 350.9 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.0875, allocations: 11.88 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002658/0.08781, allocations: 55.62 kB / 475 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.08801, allocations: 39.81 kB / 475 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002745/0.0883, allocations: 91.7 kB / 475.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002045/0.08851, allocations: 152 kB / 475.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.08869, allocations: 85.36 kB / 475.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001281/0.08883, allocations: 55.78 kB / 475.4 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.08893, allocations: 67.69 kB / 475.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.664e-05/0.08896, allocations: 12 kB / 475.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001942/0.08917, allocations: 135.9 kB / 475.6 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.405e-05/0.08924, allocations: 43.84 kB / 475.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.116e-05/0.08931, allocations: 63.61 kB / 475.7 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003069/0.08963, allocations: 234.1 kB / 475.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.08964, allocations: 7.938 kB / 475.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.08965, allocations: 0 / 475.9 MB, free: 9.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.08966, allocations: 0 / 475.9 MB, free: 9.297 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005554/0.09022, allocations: 451.9 kB / 476.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.09026, allocations: 8.031 kB / 476.4 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.661e-05/0.09032, allocations: 46.73 kB / 476.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.685e-05/0.09038, allocations: 20.75 kB / 476.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002456/0.09063, allocations: 239.9 kB / 476.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.09066, allocations: 8.609 kB / 476.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.09069, allocations: 16.38 kB / 476.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.09097, allocations: 152.8 kB / 476.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.09099, allocations: 3.938 kB / 476.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.09102, allocations: 8 kB / 476.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.09103, allocations: 0 / 476.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001565/0.09119, allocations: 84.19 kB / 476.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007088/0.09191, allocations: 473.4 kB / 477.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001431/0.09206, allocations: 81.12 kB / 477.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.123e-05/0.09214, allocations: 41.84 kB / 477.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.09218, allocations: 0 / 477.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001923/0.09238, allocations: 93.09 kB / 477.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.09239, allocations: 0 / 477.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002815/0.09267, allocations: 129.4 kB / 477.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.09273, allocations: 81.11 kB / 477.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.09287, allocations: 154.2 kB / 478 MB, free: 7.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.09289, allocations: 41.58 kB / 478 MB, free: 6.961 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.358e-05/0.09297, allocations: 128.1 kB / 478.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.445e-05/0.093, allocations: 31.56 kB / 478.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.786e-05/0.09306, allocations: 29.7 kB / 478.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.6e-05/0.09316, allocations: 330.8 kB / 478.5 MB, free: 6.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.769e-05/0.09322, allocations: 23.98 kB / 478.5 MB, free: 6.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.605e-05/0.09329, allocations: 55.42 kB / 478.6 MB, free: 6.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001099/0.09341, allocations: 83.36 kB / 478.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.09342, allocations: 0 / 478.7 MB, free: 6.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001859/0.09361, allocations: 121.8 kB / 478.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.09363, allocations: 4 kB / 478.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.09365, allocations: 4.062 kB / 478.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.09367, allocations: 7.984 kB / 478.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.287e-05/0.09374, allocations: 11.94 kB / 478.8 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.09375, allocations: 7.938 kB / 478.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.311e-05/0.0938, allocations: 11.97 kB / 478.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.447e-06/0.09381, allocations: 4 kB / 478.8 MB, free: 6.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001012/0.09392, allocations: 137.8 kB / 479 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.205e-05/0.09395, allocations: 7.906 kB / 479 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.394e-05/0.094, allocations: 12.72 kB / 479 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.09401, allocations: 7.938 kB / 479 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.09402, allocations: 3.984 kB / 479 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.09403, allocations: 0 / 479 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.09422, allocations: 233.4 kB / 479.2 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.09423, allocations: 4 kB / 479.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.393e-05/0.09426, allocations: 8 kB / 479.3 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.09427, allocations: 0 / 479.3 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.071e-05/0.09429, allocations: 7.922 kB / 479.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.09429, allocations: 4 kB / 479.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.0943, allocations: 0 / 479.3 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001748/0.09448, allocations: 125.8 kB / 479.4 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.901e-05/0.09453, allocations: 85.02 kB / 479.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.09456, allocations: 8 kB / 479.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.875e-05/0.09459, allocations: 7.938 kB / 479.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.078e-05/0.09464, allocations: 7.984 kB / 479.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.09465, allocations: 0 / 479.5 MB, free: 5.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.511e-05/0.09473, allocations: 120.1 kB / 479.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.09473, allocations: 0 / 479.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002554/0.09499, allocations: 35.84 kB / 479.6 MB, free: 5.168 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0008029/0.0958, allocations: 0.8248 MB / 480.5 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001926/0.09601, allocations: 97.61 kB / 480.6 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.09602, allocations: 4.125 kB / 480.6 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.512e-05/0.0961, allocations: 61.69 kB / 480.6 MB, free: 4.188 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001672/0.09628, allocations: 8 kB / 480.6 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.09785, allocations: 1.64 MB / 482.3 MB, free: 2.434 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.09811, allocations: 0.7275 MB / 483 MB, free: 1.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.641e-05/0.09817, allocations: 8.547 kB / 483 MB, free: 1.672 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.288e-05/0.09824, allocations: 47.36 kB / 483.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.09824, allocations: 0 / 483.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/0.1176, allocations: 3.442 MB / 486.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.696/7.813, allocations: 11.7 kB / 486.5 MB, free: 14.33 MB / 366.1 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Blocks_Examples_TestInputKeyboardKey.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)