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: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.00133, allocations: 105.4 kB / 16.56 MB, free: 6.723 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.0015/0.0015, allocations: 193.9 kB / 17.48 MB, free: 6.027 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.359/1.359, allocations: 222.9 MB / 241.2 MB, free: 13.64 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.05458/0.05459, allocations: 12.04 MB / 303.3 MB, free: 3.195 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 63.91 kB / 366.4 MB, free: 4.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2263, allocations: 52.33 MB / 418.8 MB, free: 21.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003862/0.2302, allocations: 2.671 MB / 421.4 MB, free: 18.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004825/0.2307, allocations: 307.7 kB / 421.7 MB, free: 18.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.2308, allocations: 7.75 kB / 421.7 MB, free: 18.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.2311, allocations: 35.78 kB / 421.8 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.068e-05/0.2312, allocations: 15.84 kB / 421.8 MB, free: 18.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.2315, allocations: 79.81 kB / 421.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001438/0.2316, allocations: 140 kB / 422 MB, free: 18.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.2318, allocations: 88.23 kB / 422.1 MB, free: 17.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.896e-05/0.2319, allocations: 51.78 kB / 422.1 MB, free: 17.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.588e-05/0.232, allocations: 55.64 kB / 422.2 MB, free: 17.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.744e-05/0.232, allocations: 8 kB / 422.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.527e-05/0.2321, allocations: 22.48 kB / 422.2 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.675e-05/0.2322, allocations: 47.83 kB / 422.3 MB, free: 17.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.509e-05/0.2323, allocations: 67.55 kB / 422.3 MB, free: 17.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002037/0.2325, allocations: 145.6 kB / 422.5 MB, free: 17.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.406e-06/0.2325, allocations: 8 kB / 422.5 MB, free: 17.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2325, allocations: 0 / 422.5 MB, free: 17.58 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.2325, allocations: 0 / 422.5 MB, free: 17.58 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.0005112/0.233, allocations: 461.1 kB / 422.9 MB, free: 17.08 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.2331, allocations: 15.97 kB / 422.9 MB, free: 17.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.766e-05/0.2331, allocations: 20.66 kB / 423 MB, free: 17.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.2333, allocations: 232 kB / 423.2 MB, free: 16.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.2333, allocations: 12.38 kB / 423.2 MB, free: 16.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.371e-05/0.2334, allocations: 12.38 kB / 423.2 MB, free: 16.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.2336, allocations: 187.8 kB / 423.4 MB, free: 16.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.2336, allocations: 8.125 kB / 423.4 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.611e-05/0.2336, allocations: 7.938 kB / 423.4 MB, free: 16.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.2337, allocations: 4 kB / 423.4 MB, free: 16.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.2338, allocations: 114.6 kB / 423.5 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005318/0.2343, allocations: 481.4 kB / 424 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.2345, allocations: 125.1 kB / 424.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.15e-05/0.2346, allocations: 73.69 kB / 424.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.129e-05/0.2346, allocations: 7.984 kB / 424.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/0.2348, allocations: 129.1 kB / 424.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.222e-06/0.2348, allocations: 4 kB / 424.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.000322/0.2351, allocations: 248 kB / 424.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.2352, allocations: 89.09 kB / 424.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.183e-05/0.2353, allocations: 147.6 kB / 424.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.2353, allocations: 37.69 kB / 424.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.937e-05/0.2354, allocations: 124.7 kB / 425 MB, free: 14.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.403e-05/0.2354, allocations: 63.34 kB / 425 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.876e-05/0.2355, allocations: 53.92 kB / 425.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.341e-05/0.2355, allocations: 330.8 kB / 425.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.417e-05/0.2356, allocations: 80.23 kB / 425.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.2358, allocations: 159.7 kB / 425.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.236, allocations: 250.9 kB / 425.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.236, allocations: 3.938 kB / 425.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002993/0.2363, allocations: 273.2 kB / 426.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.2363, allocations: 8 kB / 426.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.2363, allocations: 4 kB / 426.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.2363, allocations: 8.188 kB / 426.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001379/0.2365, allocations: 35.92 kB / 426.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.2365, allocations: 7.938 kB / 426.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.794e-05/0.2366, allocations: 15.81 kB / 426.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.2366, allocations: 12 kB / 426.2 MB, free: 13.47 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.0001301/0.2367, allocations: 174.3 kB / 426.4 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.323e-05/0.2368, allocations: 15.81 kB / 426.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.456e-05/0.2368, allocations: 17.19 kB / 426.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.2368, allocations: 4 kB / 426.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2368, allocations: 0 / 426.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.2368, allocations: 7.922 kB / 426.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.237, allocations: 241.4 kB / 426.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.237, allocations: 4 kB / 426.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.138e-05/0.2371, allocations: 7.984 kB / 426.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.2371, allocations: 0 / 426.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.2371, allocations: 0 / 426.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2371, allocations: 0 / 426.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2371, allocations: 11.94 kB / 426.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002534/0.2374, allocations: 227 kB / 426.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.538e-05/0.2374, allocations: 97.03 kB / 427 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.121e-05/0.2375, allocations: 4 kB / 427 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.663e-05/0.2375, allocations: 0 / 427 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.775e-05/0.2375, allocations: 19.97 kB / 427.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.842e-06/0.2376, allocations: 0 / 427.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.505e-05/0.2376, allocations: 121.2 kB / 427.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2376, allocations: 0 / 427.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002568/0.2379, allocations: 39.84 kB / 427.2 MB, free: 12.41 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.0004482/0.2384, allocations: 215 kB / 427.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002628/0.2386, allocations: 205.5 kB / 427.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2386, allocations: 0 / 427.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.628e-05/0.2387, allocations: 101.6 kB / 427.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001766/0.2389, allocations: 8 kB / 427.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005606/0.2395, allocations: 448.3 kB / 428.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001672/0.2397, allocations: 0.7403 MB / 428.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.255e-05/0.2397, allocations: 19.44 kB / 428.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2397, allocations: 0 / 428.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of Templates: time 0.003502/0.2432, allocations: 2.28 MB / 431.2 MB, free: 8.383 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile (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 & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)