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.001677/0.001677, allocations: 116.5 kB / 17.13 MB, free: 5.91 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.001882/0.001882, allocations: 196.2 kB / 18.07 MB, free: 4.992 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.493/1.493, allocations: 222.9 MB / 241.8 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.0631/0.0631, allocations: 12.05 MB / 304 MB, free: 3.07 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 68.14 kB / 420.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1093, allocations: 52.32 MB / 473.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004451/0.1137, allocations: 2.658 MB / 475.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005656/0.1143, allocations: 303 kB / 476 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.713e-05/0.1144, allocations: 11.88 kB / 476 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.1146, allocations: 43.7 kB / 476.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.435e-05/0.1147, allocations: 23.8 kB / 476.1 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002595/0.115, allocations: 83.7 kB / 476.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.1152, allocations: 148.1 kB / 476.3 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.1154, allocations: 61.38 kB / 476.4 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.773e-05/0.1154, allocations: 59.72 kB / 476.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.1155, allocations: 63.7 kB / 476.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.98e-05/0.1156, allocations: 12 kB / 476.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.121e-05/0.1156, allocations: 31.97 kB / 476.5 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.313e-05/0.1157, allocations: 55.84 kB / 476.6 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.64e-05/0.1158, allocations: 83.48 kB / 476.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002872/0.1161, allocations: 203 kB / 476.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1161, allocations: 0 / 476.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1161, allocations: 0 / 476.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1161, allocations: 0 / 476.9 MB, free: 8.992 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.0006226/0.1167, allocations: 470.5 kB / 477.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.1168, allocations: 8.031 kB / 477.3 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.344e-05/0.1168, allocations: 20.8 kB / 477.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.1171, allocations: 236 kB / 477.6 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.1171, allocations: 12.38 kB / 477.6 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.392e-05/0.1171, allocations: 12.38 kB / 477.6 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003037/0.1174, allocations: 187.8 kB / 477.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1175, allocations: 4.172 kB / 477.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.1175, allocations: 11.94 kB / 477.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.1175, allocations: 4 kB / 477.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.1177, allocations: 108.2 kB / 477.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007371/0.1184, allocations: 481.5 kB / 478.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002173/0.1186, allocations: 121.1 kB / 478.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.1187, allocations: 65.69 kB / 478.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/0.1188, allocations: 0 / 478.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002484/0.119, allocations: 129.1 kB / 478.7 MB, free: 6.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.273e-06/0.119, allocations: 0 / 478.7 MB, free: 6.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.000419/0.1194, allocations: 245.4 kB / 478.9 MB, free: 6.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.047e-05/0.1195, allocations: 89.09 kB / 479 MB, free: 6.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.1196, allocations: 144.8 kB / 479.2 MB, free: 6.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.1197, allocations: 41.69 kB / 479.2 MB, free: 6.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.976e-05/0.1198, allocations: 124.8 kB / 479.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.414e-05/0.1198, allocations: 71.58 kB / 479.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.515e-05/0.1199, allocations: 57.94 kB / 479.5 MB, free: 6.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1201, allocations: 330.8 kB / 479.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.1202, allocations: 76.17 kB / 479.9 MB, free: 5.746 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.1204, allocations: 159.9 kB / 480 MB, free: 5.551 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003159/0.1207, allocations: 254.9 kB / 480.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.1207, allocations: 4 kB / 480.3 MB, free: 5.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003997/0.1211, allocations: 269.2 kB / 480.5 MB, free: 4.988 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.1211, allocations: 4 kB / 480.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.1211, allocations: 8.188 kB / 480.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.1211, allocations: 8 kB / 480.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001162/0.1213, allocations: 31.92 kB / 480.6 MB, free: 4.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.1213, allocations: 7.938 kB / 480.6 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.101e-05/0.1214, allocations: 27.78 kB / 480.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.1214, allocations: 8 kB / 480.6 MB, free: 4.895 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.0001841/0.1216, allocations: 185.8 kB / 480.8 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.205e-05/0.1216, allocations: 11.95 kB / 480.8 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.371e-05/0.1216, allocations: 17.19 kB / 480.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1216, allocations: 0 / 480.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1216, allocations: 0 / 480.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.1216, allocations: 7.984 kB / 480.8 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000321/0.122, allocations: 249.4 kB / 481.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.122, allocations: 0 / 481.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.767e-05/0.122, allocations: 7.984 kB / 481.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.122, allocations: 0 / 481.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.122, allocations: 4 kB / 481.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.122, allocations: 0 / 481.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.122, allocations: 4 kB / 481.1 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/0.1223, allocations: 229.7 kB / 481.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/0.1224, allocations: 93.02 kB / 481.4 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.1224, allocations: 0 / 481.4 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.876e-05/0.1224, allocations: 4 kB / 481.4 MB, free: 4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.476e-05/0.1225, allocations: 11.98 kB / 481.4 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.1225, allocations: 8 kB / 481.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.29e-05/0.1226, allocations: 113.6 kB / 481.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1226, allocations: 0 / 481.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002777/0.1229, allocations: 47.83 kB / 481.6 MB, free: 3.824 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.0005887/0.1235, allocations: 219.2 kB / 481.8 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003744/0.1238, allocations: 209.3 kB / 482 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1238, allocations: 0 / 482 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.1239, allocations: 89.61 kB / 482.1 MB, free: 3.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001621/0.1241, allocations: 12 kB / 482.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006341/0.1247, allocations: 348.5 kB / 482.5 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.1251, allocations: 0.7322 MB / 483.2 MB, free: 2.195 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.132e-05/0.1252, allocations: 21.53 kB / 483.2 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.076e-05/0.1252, allocations: 15.44 kB / 483.2 MB, free: 2.16 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1252, allocations: 4 kB / 483.2 MB, free: 2.156 MB / 350.1 MB Notification: Performance of Templates: time 0.004475/0.1297, allocations: 1.33 MB / 484.6 MB, free: 0.832 MB / 350.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 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)