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.001093/0.001093, allocations: 104.6 kB / 16.45 MB, free: 6.398 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.001187/0.001188, allocations: 192.2 kB / 17.39 MB, free: 5.645 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.369/1.369, allocations: 222.9 MB / 241.1 MB, free: 15.05 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.06021/0.06021, allocations: 12.04 MB / 303.3 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 55.91 kB / 420 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1089, allocations: 52.34 MB / 472.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004418/0.1134, allocations: 2.64 MB / 475 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006169/0.1141, allocations: 311 kB / 475.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.1142, allocations: 3.938 kB / 475.3 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002719/0.1145, allocations: 43.7 kB / 475.4 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.647e-05/0.1146, allocations: 19.73 kB / 475.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.1148, allocations: 91.7 kB / 475.5 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002284/0.1151, allocations: 148.1 kB / 475.6 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.1153, allocations: 85.36 kB / 475.7 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.919e-05/0.1154, allocations: 59.78 kB / 475.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.1155, allocations: 67.64 kB / 475.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.523e-05/0.1155, allocations: 12 kB / 475.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.68e-05/0.1156, allocations: 27.98 kB / 475.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.849e-05/0.1157, allocations: 63.77 kB / 475.9 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.1158, allocations: 71.55 kB / 476 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002742/0.1161, allocations: 207.2 kB / 476.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1161, allocations: 0 / 476.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1161, allocations: 0 / 476.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.1162, allocations: 0 / 476.2 MB, free: 8.98 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.0007185/0.1169, allocations: 466.8 kB / 476.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.1169, allocations: 8.031 kB / 476.7 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.671e-05/0.117, allocations: 20.66 kB / 476.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.1173, allocations: 234.8 kB / 476.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.1173, allocations: 8.375 kB / 476.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.675e-05/0.1173, allocations: 12.38 kB / 476.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003059/0.1176, allocations: 187.8 kB / 477.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.1177, allocations: 192 / 477.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.535e-05/0.1177, allocations: 11.94 kB / 477.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.1177, allocations: 8 kB / 477.1 MB, free: 7.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.1179, allocations: 108.2 kB / 477.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006469/0.1186, allocations: 477.4 kB / 477.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001637/0.1187, allocations: 129.1 kB / 477.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001134/0.1189, allocations: 77.92 kB / 477.9 MB, free: 7.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.951e-05/0.1189, allocations: 7.984 kB / 477.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.1191, allocations: 125.1 kB / 478 MB, free: 6.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 3.306e-06/0.1191, allocations: 3.984 kB / 478.1 MB, free: 6.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003766/0.1195, allocations: 251.1 kB / 478.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.1196, allocations: 89.09 kB / 478.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001333/0.1198, allocations: 156.7 kB / 478.5 MB, free: 6.422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.1198, allocations: 37.69 kB / 478.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.288e-05/0.1199, allocations: 120.4 kB / 478.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.617e-05/0.1199, allocations: 59.28 kB / 478.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.052e-05/0.12, allocations: 53.98 kB / 478.8 MB, free: 6.137 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1202, allocations: 330.8 kB / 479.1 MB, free: 5.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.1203, allocations: 76.23 kB / 479.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.1204, allocations: 163.6 kB / 479.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002976/0.1207, allocations: 255 kB / 479.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.1207, allocations: 0 / 479.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004444/0.1212, allocations: 285.2 kB / 479.9 MB, free: 4.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.1212, allocations: 8 kB / 479.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.1212, allocations: 4 kB / 479.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.1213, allocations: 4 kB / 479.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.1214, allocations: 27.92 kB / 479.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.1214, allocations: 11.94 kB / 479.9 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.499e-05/0.1215, allocations: 19.78 kB / 480 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.1215, allocations: 19.94 kB / 480 MB, free: 4.863 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.000208/0.1217, allocations: 173.8 kB / 480.2 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.261e-05/0.1218, allocations: 11.81 kB / 480.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.66e-05/0.1219, allocations: 17.19 kB / 480.2 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1219, allocations: 4 kB / 480.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.1219, allocations: 0 / 480.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1219, allocations: 3.984 kB / 480.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002575/0.1222, allocations: 241.4 kB / 480.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.1222, allocations: 0 / 480.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.713e-05/0.1222, allocations: 11.98 kB / 480.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.1222, allocations: 4 kB / 480.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.1222, allocations: 0 / 480.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1222, allocations: 0 / 480.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1222, allocations: 0 / 480.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000401/0.1226, allocations: 237.6 kB / 480.7 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.484e-05/0.1227, allocations: 88.92 kB / 480.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.1227, allocations: 8 kB / 480.8 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.585e-05/0.1228, allocations: 0 / 480.8 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.822e-05/0.1228, allocations: 12.12 kB / 480.8 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-06/0.1228, allocations: 4.25 kB / 480.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001575/0.123, allocations: 111.2 kB / 480.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.123, allocations: 0 / 480.9 MB, free: 3.855 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002727/0.1233, allocations: 47.84 kB / 480.9 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.0005578/0.1238, allocations: 218.1 kB / 481.1 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003064/0.1242, allocations: 209.3 kB / 481.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1242, allocations: 0 / 481.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.1243, allocations: 105.6 kB / 481.5 MB, free: 3.312 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001726/0.1245, allocations: 8.375 kB / 481.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006369/0.1251, allocations: 356.3 kB / 481.8 MB, free: 2.922 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.1255, allocations: 0.74 MB / 482.6 MB, free: 2.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.724e-05/0.1255, allocations: 25.53 kB / 482.6 MB, free: 2.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.158e-05/0.1256, allocations: 15.44 kB / 482.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1256, allocations: 0 / 482.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of Templates: time 0.00438/0.13, allocations: 1.33 MB / 483.9 MB, free: 0.793 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 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)