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.001068/0.001068, allocations: 104.1 kB / 16.31 MB, free: 5.879 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.001047/0.001047, allocations: 186.5 kB / 17.24 MB, free: 5.539 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.285/1.285, allocations: 222.9 MB / 240.9 MB, free: 15.17 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.05567/0.05567, allocations: 12.04 MB / 303.1 MB, free: 3.168 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 59.91 kB / 366.6 MB, free: 3.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.221/0.2225, allocations: 52.33 MB / 418.9 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003628/0.2262, allocations: 2.645 MB / 421.5 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004061/0.2266, allocations: 307 kB / 421.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.528e-05/0.2267, allocations: 3.938 kB / 421.8 MB, free: 18.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002111/0.227, allocations: 51.64 kB / 421.9 MB, free: 18.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.744e-05/0.227, allocations: 7.875 kB / 421.9 MB, free: 18.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.2272, allocations: 91.64 kB / 422 MB, free: 17.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.2274, allocations: 152 kB / 422.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.2276, allocations: 77.52 kB / 422.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.245e-05/0.2276, allocations: 59.78 kB / 422.3 MB, free: 17.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.04e-05/0.2277, allocations: 59.7 kB / 422.3 MB, free: 17.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.2277, allocations: 16 kB / 422.4 MB, free: 17.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.171e-05/0.2278, allocations: 39.91 kB / 422.4 MB, free: 17.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.069e-05/0.2279, allocations: 51.84 kB / 422.4 MB, free: 17.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.878e-05/0.228, allocations: 71.55 kB / 422.5 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001887/0.2282, allocations: 193.6 kB / 422.7 MB, free: 17.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2282, allocations: 0 / 422.7 MB, free: 17.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2282, allocations: 0 / 422.7 MB, free: 17.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.2282, allocations: 0 / 422.7 MB, free: 17.27 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.0005197/0.2287, allocations: 466.8 kB / 423.2 MB, free: 16.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.2288, allocations: 12.03 kB / 423.2 MB, free: 16.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.079e-05/0.2288, allocations: 54.73 kB / 423.2 MB, free: 16.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.259e-05/0.2289, allocations: 20.66 kB / 423.2 MB, free: 16.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000183/0.2291, allocations: 232 kB / 423.5 MB, free: 16.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.2291, allocations: 8.375 kB / 423.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.2291, allocations: 16.38 kB / 423.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.2293, allocations: 183.9 kB / 423.7 MB, free: 16.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.2294, allocations: 3.938 kB / 423.7 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.2294, allocations: 7.984 kB / 423.7 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.2294, allocations: 12 kB / 423.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.2296, allocations: 116.8 kB / 423.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005442/0.2301, allocations: 477.3 kB / 424.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.2303, allocations: 129.2 kB / 424.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.491e-05/0.2303, allocations: 72.8 kB / 424.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.2304, allocations: 7.984 kB / 424.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.2306, allocations: 132.7 kB / 424.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.333e-06/0.2306, allocations: 0 / 424.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.000314/0.2309, allocations: 245.4 kB / 424.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.2309, allocations: 89.09 kB / 424.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.705e-05/0.231, allocations: 147.8 kB / 425.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.2311, allocations: 37.69 kB / 425.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.675e-05/0.2311, allocations: 124.7 kB / 425.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.471e-05/0.2312, allocations: 67.34 kB / 425.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.039e-05/0.2312, allocations: 53.98 kB / 425.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.404e-05/0.2313, allocations: 330.8 kB / 425.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.153e-05/0.2314, allocations: 80.23 kB / 425.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.2315, allocations: 163.5 kB / 425.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002086/0.2317, allocations: 255.1 kB / 426.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.2317, allocations: 0 / 426.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000321/0.2321, allocations: 281 kB / 426.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.2321, allocations: 8 kB / 426.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.2321, allocations: 4 kB / 426.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.2321, allocations: 4 kB / 426.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.2322, allocations: 28.36 kB / 426.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2322, allocations: 15.94 kB / 426.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.68e-05/0.2323, allocations: 19.84 kB / 426.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.2323, allocations: 19.94 kB / 426.5 MB, free: 13.07 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.0001105/0.2325, allocations: 170 kB / 426.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.966e-05/0.2325, allocations: 11.81 kB / 426.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.383e-05/0.2325, allocations: 17.19 kB / 426.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.2325, allocations: 11.94 kB / 426.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2325, allocations: 0 / 426.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2326, allocations: 3.984 kB / 426.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.2327, allocations: 241.4 kB / 427 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.2327, allocations: 0 / 427 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.463e-05/0.2328, allocations: 7.984 kB / 427 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2328, allocations: 4 kB / 427 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.445e-06/0.2328, allocations: 0 / 427 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.2328, allocations: 0 / 427 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2328, allocations: 0 / 427 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001987/0.233, allocations: 237.5 kB / 427.2 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.565e-05/0.233, allocations: 92.86 kB / 427.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.233, allocations: 4 kB / 427.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.668e-05/0.2331, allocations: 0 / 427.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.786e-05/0.2331, allocations: 11.98 kB / 427.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.2331, allocations: 7.938 kB / 427.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.475e-05/0.2332, allocations: 109.1 kB / 427.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2332, allocations: 4 kB / 427.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002564/0.2334, allocations: 51.84 kB / 427.5 MB, free: 12.01 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.0006805/0.2341, allocations: 0.8755 MB / 428.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002724/0.2344, allocations: 213.5 kB / 428.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.2344, allocations: 3.938 kB / 428.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.283e-05/0.2345, allocations: 97.67 kB / 428.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001655/0.2347, allocations: 14.28 kB / 428.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.2363, allocations: 2.114 MB / 430.8 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00015/0.2365, allocations: 0.74 MB / 431.6 MB, free: 7.773 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.231e-05/0.2365, allocations: 21.53 kB / 431.6 MB, free: 7.754 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.799e-05/0.2366, allocations: 51.42 kB / 431.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2366, allocations: 0 / 431.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02315/0.2597, allocations: 3.227 MB / 434.9 MB, free: 4.613 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.488/7.748, allocations: 5.031 kB / 434.9 MB, free: 4.609 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)