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.001361/0.001361, allocations: 118 kB / 17.13 MB, free: 5.926 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.001357/0.001357, allocations: 193.2 kB / 18.06 MB, free: 5.012 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.332/1.332, allocations: 222.9 MB / 241.8 MB, free: 15.18 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.0557/0.0557, allocations: 12.04 MB / 304 MB, free: 3.105 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.91 kB / 420.7 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09021/0.09142, allocations: 52.31 MB / 473.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003844/0.09529, allocations: 2.659 MB / 475.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005084/0.09583, allocations: 307 kB / 476 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.09595, allocations: 7.938 kB / 476 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001919/0.09615, allocations: 43.66 kB / 476.1 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.86e-05/0.09624, allocations: 23.78 kB / 476.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00022/0.09646, allocations: 83.72 kB / 476.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001854/0.09666, allocations: 152 kB / 476.3 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.09682, allocations: 81.38 kB / 476.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.565e-05/0.0969, allocations: 59.78 kB / 476.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.555e-05/0.09699, allocations: 67.69 kB / 476.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.09702, allocations: 12 kB / 476.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.17e-05/0.0971, allocations: 27.98 kB / 476.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.48e-05/0.09717, allocations: 55.84 kB / 476.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.608e-05/0.09725, allocations: 75.55 kB / 476.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.0975, allocations: 195.2 kB / 476.9 MB, free: 9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.09751, allocations: 0 / 476.9 MB, free: 9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09752, allocations: 0 / 476.9 MB, free: 9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.09753, allocations: 4 kB / 476.9 MB, free: 8.996 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.0005265/0.09807, allocations: 462.8 kB / 477.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.0981, allocations: 12.03 kB / 477.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.727e-05/0.09816, allocations: 20.66 kB / 477.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.09838, allocations: 232 kB / 477.6 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.0984, allocations: 16.31 kB / 477.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.09843, allocations: 16.36 kB / 477.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.09872, allocations: 179.9 kB / 477.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.09874, allocations: 192 / 477.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.09876, allocations: 11.92 kB / 477.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.09877, allocations: 4 kB / 477.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001844/0.09896, allocations: 120.1 kB / 477.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005967/0.09956, allocations: 477.4 kB / 478.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001659/0.09974, allocations: 133 kB / 478.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.214e-05/0.09983, allocations: 77.92 kB / 478.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.09986, allocations: 0 / 478.6 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002014/0.1001, allocations: 133.6 kB / 478.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.222e-06/0.1001, allocations: 0 / 478.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003439/0.1004, allocations: 239 kB / 479 MB, free: 6.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.1005, allocations: 97.03 kB / 479.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.1006, allocations: 149.7 kB / 479.2 MB, free: 6.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.1007, allocations: 41.69 kB / 479.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.642e-05/0.1007, allocations: 124.4 kB / 479.4 MB, free: 6.262 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.302e-05/0.1008, allocations: 59.34 kB / 479.4 MB, free: 6.203 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.253e-05/0.1009, allocations: 57.98 kB / 479.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.101, allocations: 330.8 kB / 479.8 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.1011, allocations: 68.23 kB / 479.9 MB, free: 5.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.1013, allocations: 163.7 kB / 480 MB, free: 5.539 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002687/0.1015, allocations: 250.9 kB / 480.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1015, allocations: 4 kB / 480.3 MB, free: 5.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003781/0.1019, allocations: 273 kB / 480.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.102, allocations: 4.188 kB / 480.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.102, allocations: 12.22 kB / 480.6 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.102, allocations: 4 kB / 480.6 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.1021, allocations: 35.92 kB / 480.6 MB, free: 4.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.1021, allocations: 8.062 kB / 480.6 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.412e-05/0.1022, allocations: 23.78 kB / 480.6 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.1022, allocations: 8 kB / 480.6 MB, free: 4.883 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.0001452/0.1024, allocations: 177.6 kB / 480.8 MB, free: 4.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.1024, allocations: 19.81 kB / 480.8 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.389e-05/0.1025, allocations: 13.19 kB / 480.8 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.1025, allocations: 0 / 480.8 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1025, allocations: 0 / 480.8 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.1025, allocations: 4 kB / 480.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002083/0.1027, allocations: 249.4 kB / 481.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.1027, allocations: 256 / 481.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.041e-05/0.1027, allocations: 15.94 kB / 481.1 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.1028, allocations: 3.984 kB / 481.1 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.1028, allocations: 4 kB / 481.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1028, allocations: 4 kB / 481.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1028, allocations: 0 / 481.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002531/0.103, allocations: 227.3 kB / 481.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.432e-05/0.1031, allocations: 88.92 kB / 481.4 MB, free: 3.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.1031, allocations: 4 kB / 481.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.873e-05/0.1031, allocations: 4 kB / 481.4 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.027e-05/0.1032, allocations: 7.984 kB / 481.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.1032, allocations: 15.94 kB / 481.5 MB, free: 3.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.462e-05/0.1033, allocations: 111.2 kB / 481.6 MB, free: 3.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1033, allocations: 3.938 kB / 481.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002636/0.1036, allocations: 43.84 kB / 481.6 MB, free: 3.809 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.0004147/0.104, allocations: 217.3 kB / 481.8 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003102/0.1043, allocations: 209.4 kB / 482 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.1043, allocations: 0 / 482 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001049/0.1044, allocations: 101.6 kB / 482.1 MB, free: 3.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000162/0.1046, allocations: 14.22 kB / 482.1 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005835/0.1052, allocations: 386.4 kB / 482.5 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.1055, allocations: 0.7361 MB / 483.3 MB, free: 2.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.396e-05/0.1055, allocations: 19.42 kB / 483.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1055, allocations: 0 / 483.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of Templates: time 0.00399/0.1095, allocations: 2.298 MB / 485.6 MB, free: 15.82 MB / 366.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)