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.0007977/0.0007977, allocations: 102.8 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 183.4 kB / 16.97 MB, free: 6.879 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.314/1.314, allocations: 223.3 MB / 241 MB, free: 5.348 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.1635/0.1635, allocations: 12.04 MB / 304.2 MB, free: 1.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002921, allocations: 12 kB / 368.4 MB, free: 8.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09579/0.0961, allocations: 53.35 MB / 421.7 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.00294/0.09909, allocations: 2.318 MB / 424 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004333/0.09954, allocations: 303 kB / 424.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.992e-05/0.09962, allocations: 7.938 kB / 424.3 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001934/0.09982, allocations: 35.78 kB / 424.4 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.732e-05/0.0999, allocations: 15.91 kB / 424.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001916/0.1001, allocations: 75.81 kB / 424.5 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001511/0.1003, allocations: 140 kB / 424.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.1004, allocations: 77.5 kB / 424.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.215e-05/0.1005, allocations: 47.78 kB / 424.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.265e-05/0.1006, allocations: 47.72 kB / 424.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.238e-05/0.1006, allocations: 4 kB / 424.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.774e-05/0.1007, allocations: 23.97 kB / 424.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.778e-05/0.1008, allocations: 39.84 kB / 424.8 MB, free: 476 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.825e-05/0.1009, allocations: 85.2 kB / 424.9 MB, free: 384 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002064/0.1011, allocations: 175.6 kB / 425.1 MB, free: 208 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1011, allocations: 4 kB / 425.1 MB, free: 204 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1011, allocations: 3.938 kB / 425.1 MB, free: 200 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.1011, allocations: 0 / 425.1 MB, free: 200 kB / 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.1752/0.2763, allocations: 433.6 kB / 425.5 MB, free: 39.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.2763, allocations: 12.38 kB / 425.5 MB, free: 39.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.563e-05/0.2764, allocations: 49.94 kB / 425.6 MB, free: 39.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.2765, allocations: 21.39 kB / 425.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.2767, allocations: 225.6 kB / 425.8 MB, free: 39.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.2767, allocations: 9.219 kB / 425.8 MB, free: 39.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.2767, allocations: 16.19 kB / 425.9 MB, free: 39.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.277, allocations: 191.3 kB / 426 MB, free: 39.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.277, allocations: 3.938 kB / 426 MB, free: 39.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/0.2771, allocations: 4.703 kB / 426.1 MB, free: 39.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2771, allocations: 4.562 kB / 426.1 MB, free: 39.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.2772, allocations: 117.2 kB / 426.2 MB, free: 39.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006245/0.2779, allocations: 493.7 kB / 426.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00014/0.278, allocations: 120.6 kB / 426.8 MB, free: 38.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.324e-05/0.2781, allocations: 75.27 kB / 426.8 MB, free: 38.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.2782, allocations: 4.766 kB / 426.9 MB, free: 38.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002083/0.2784, allocations: 133.8 kB / 427 MB, free: 38.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.733e-06/0.2784, allocations: 2.875 kB / 427 MB, free: 38.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003791/0.2788, allocations: 244.7 kB / 427.2 MB, free: 38.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.2788, allocations: 92.36 kB / 427.3 MB, free: 38.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.2789, allocations: 145.8 kB / 427.5 MB, free: 38.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.279, allocations: 42.39 kB / 427.5 MB, free: 38.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.733e-05/0.2791, allocations: 126.1 kB / 427.6 MB, free: 38.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.926e-05/0.2791, allocations: 64.25 kB / 427.7 MB, free: 38.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.675e-05/0.2791, allocations: 32.44 kB / 427.7 MB, free: 38.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.903e-05/0.2792, allocations: 330.8 kB / 428 MB, free: 37.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.965e-05/0.2793, allocations: 75.75 kB / 428.1 MB, free: 37.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001628/0.2795, allocations: 157.5 kB / 428.3 MB, free: 37.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002418/0.2797, allocations: 254 kB / 428.5 MB, free: 37.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.2797, allocations: 2.875 kB / 428.5 MB, free: 37.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003266/0.2801, allocations: 276.5 kB / 428.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.2801, allocations: 6.812 kB / 428.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.2801, allocations: 2.969 kB / 428.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.2801, allocations: 5.844 kB / 428.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.2803, allocations: 31.3 kB / 428.8 MB, free: 37.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.2803, allocations: 9.875 kB / 428.8 MB, free: 37.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.834e-05/0.2803, allocations: 17 kB / 428.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.2804, allocations: 18.8 kB / 428.9 MB, free: 37.68 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.0001335/0.2805, allocations: 172.6 kB / 429 MB, free: 37.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.2805, allocations: 14.7 kB / 429.1 MB, free: 37.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.89e-05/0.2806, allocations: 23.86 kB / 429.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2806, allocations: 0 / 429.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.311e-06/0.2806, allocations: 3.438 kB / 429.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.2806, allocations: 0 / 429.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001853/0.2808, allocations: 242 kB / 429.3 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.2808, allocations: 6.219 kB / 429.3 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.3e-05/0.2809, allocations: 3.75 kB / 429.3 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2809, allocations: 0 / 429.3 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.2809, allocations: 2.438 kB / 429.3 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2809, allocations: 0 / 429.3 MB, free: 37.35 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.2809, allocations: 7.719 kB / 429.3 MB, free: 37.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.2811, allocations: 234.6 kB / 429.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.726e-05/0.2812, allocations: 93.41 kB / 429.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.2812, allocations: 2.906 kB / 429.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.68e-05/0.2812, allocations: 7.891 kB / 429.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.798e-05/0.2813, allocations: 9.219 kB / 429.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.2813, allocations: 6.688 kB / 429.7 MB, free: 37.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.49e-05/0.2813, allocations: 113.7 kB / 429.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2813, allocations: 0 / 429.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002571/0.2816, allocations: 46.62 kB / 429.8 MB, free: 37.06 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.0009141/0.2825, allocations: 0.8737 MB / 430.7 MB, free: 36.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.2828, allocations: 210.2 kB / 430.9 MB, free: 36.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2829, allocations: 0 / 430.9 MB, free: 36.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.283, allocations: 98.11 kB / 431 MB, free: 36.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001793/0.2831, allocations: 27.58 kB / 431 MB, free: 36.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.285, allocations: 2.168 MB / 433.2 MB, free: 34.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001789/0.2852, allocations: 0.7415 MB / 434 MB, free: 34.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.885e-05/0.2853, allocations: 25.95 kB / 434 MB, free: 34.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.378e-05/0.2854, allocations: 51.88 kB / 434 MB, free: 34.18 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2854, allocations: 0 / 434 MB, free: 34.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.3119, allocations: 2.902 MB / 436.9 MB, free: 33.93 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002077/0.3122, allocations: 269.6 kB / 437.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.161, allocations: 0 / 437.2 MB, free: 33.57 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)