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.001199/0.001199, allocations: 105 kB / 16.45 MB, free: 6.391 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.001205/0.001205, allocations: 189 kB / 17.39 MB, free: 5.648 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.335/1.335, 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.05736/0.05736, allocations: 12.05 MB / 303.3 MB, free: 3.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 63.89 kB / 419.6 MB, free: 17.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09403/0.09523, allocations: 52.33 MB / 471.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003916/0.09919, allocations: 2.639 MB / 474.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005403/0.09975, allocations: 319 kB / 474.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.09988, allocations: 11.94 kB / 474.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002147/0.1001, allocations: 43.64 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.428e-05/0.1002, allocations: 19.8 kB / 474.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002165/0.1004, allocations: 91.7 kB / 475 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001699/0.1006, allocations: 144.1 kB / 475.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.1008, allocations: 85.36 kB / 475.2 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.159e-05/0.1008, allocations: 55.78 kB / 475.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.368e-05/0.1009, allocations: 67.64 kB / 475.3 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.101, allocations: 12 kB / 475.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.256e-05/0.101, allocations: 23.98 kB / 475.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.608e-05/0.1011, allocations: 59.83 kB / 475.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.28e-05/0.1012, allocations: 71.55 kB / 475.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002209/0.1014, allocations: 202.1 kB / 475.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1014, allocations: 0 / 475.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1014, allocations: 4 kB / 475.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.1014, allocations: 3.984 kB / 475.7 MB, free: 9.504 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.102, allocations: 463.7 kB / 476.2 MB, free: 9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.102, allocations: 8.031 kB / 476.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.516e-05/0.102, allocations: 50.73 kB / 476.2 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.998e-05/0.1021, allocations: 20.66 kB / 476.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002115/0.1023, allocations: 228 kB / 476.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.1023, allocations: 12.38 kB / 476.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.5e-05/0.1024, allocations: 16.38 kB / 476.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.1026, allocations: 195.8 kB / 476.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1026, allocations: 3.938 kB / 476.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.1027, allocations: 4 kB / 476.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1027, allocations: 4 kB / 476.7 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.1029, allocations: 120.1 kB / 476.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006006/0.1035, allocations: 493.2 kB / 477.3 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.1036, allocations: 125.2 kB / 477.4 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.888e-05/0.1037, allocations: 73.7 kB / 477.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.1038, allocations: 3.984 kB / 477.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002193/0.104, allocations: 129.2 kB / 477.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.104, allocations: 0 / 477.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003792/0.1044, allocations: 247.4 kB / 477.9 MB, free: 7.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.1045, allocations: 89.09 kB / 478 MB, free: 7.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.1046, allocations: 148.7 kB / 478.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.1046, allocations: 41.69 kB / 478.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.086e-05/0.1047, allocations: 120.7 kB / 478.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.702e-05/0.1047, allocations: 59.28 kB / 478.3 MB, free: 6.656 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.999e-05/0.1048, allocations: 57.98 kB / 478.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1049, allocations: 334.7 kB / 478.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.1051, allocations: 68.23 kB / 478.8 MB, free: 6.188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.1052, allocations: 163.7 kB / 478.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002737/0.1055, allocations: 258.9 kB / 479.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1055, allocations: 0 / 479.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004133/0.1059, allocations: 273 kB / 479.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.106, allocations: 4 kB / 479.4 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.106, allocations: 4 kB / 479.5 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.106, allocations: 8 kB / 479.5 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.1061, allocations: 36.11 kB / 479.5 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.1062, allocations: 7.938 kB / 479.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.665e-05/0.1062, allocations: 23.78 kB / 479.5 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.1063, allocations: 11.94 kB / 479.5 MB, free: 5.328 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.0001678/0.1064, allocations: 169.8 kB / 479.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.969e-05/0.1065, allocations: 12.09 kB / 479.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.189e-05/0.1065, allocations: 13.19 kB / 479.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1065, allocations: 8.234 kB / 479.7 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1066, allocations: 0 / 479.7 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.1066, allocations: 11.98 kB / 479.7 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002059/0.1068, allocations: 241.4 kB / 480 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.1068, allocations: 0 / 480 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.898e-05/0.1068, allocations: 11.98 kB / 480 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1068, allocations: 0 / 480 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.626e-05/0.1069, allocations: 4 kB / 480 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.1069, allocations: 3.938 kB / 480 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1069, allocations: 0 / 480 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.1072, allocations: 241.5 kB / 480.2 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.391e-05/0.1072, allocations: 85.02 kB / 480.3 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.1072, allocations: 4 kB / 480.3 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.744e-05/0.1073, allocations: 4 kB / 480.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.1073, allocations: 7.984 kB / 480.3 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.1073, allocations: 11.94 kB / 480.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.042e-05/0.1074, allocations: 109.7 kB / 480.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1074, allocations: 4 kB / 480.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002681/0.1077, allocations: 43.84 kB / 480.5 MB, free: 4.266 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.0008753/0.1086, allocations: 0.8706 MB / 481.4 MB, free: 3.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003924/0.109, allocations: 209.9 kB / 481.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.109, allocations: 0 / 481.6 MB, free: 3.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.1091, allocations: 97.67 kB / 481.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001762/0.1093, allocations: 11.94 kB / 481.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.1115, allocations: 2.138 MB / 483.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.1118, allocations: 0.7439 MB / 484.6 MB, free: 16 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.165e-05/0.1119, allocations: 21.59 kB / 484.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.939e-05/0.112, allocations: 51.36 kB / 484.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.112, allocations: 0 / 484.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02043/0.1325, allocations: 3.328 MB / 488 MB, free: 12.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.766/7.899, allocations: 15.83 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)