Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.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.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 117.2 kB / 17.14 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.00105/0.00105, allocations: 194.8 kB / 18.07 MB, free: 4.996 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.299/1.299, allocations: 222.9 MB / 241.8 MB, free: 15.07 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.05587/0.05587, allocations: 12.05 MB / 304 MB, free: 3.082 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 67.91 kB / 420.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07837/0.0796, allocations: 52.31 MB / 473.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.003704/0.08333, allocations: 2.667 MB / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005469/0.0839, allocations: 354.9 kB / 476.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.435e-05/0.08399, allocations: 7.938 kB / 476.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001902/0.0842, allocations: 47.59 kB / 476.1 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001581/0.08437, allocations: 55.72 kB / 476.2 MB, free: 9.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002097/0.08459, allocations: 83.73 kB / 476.3 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001874/0.08478, allocations: 152 kB / 476.4 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001563/0.08495, allocations: 81.39 kB / 476.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.146e-05/0.08503, allocations: 59.78 kB / 476.6 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.567e-05/0.08512, allocations: 63.69 kB / 476.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.755e-05/0.08515, allocations: 12 kB / 476.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000188/0.08535, allocations: 139.9 kB / 476.8 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.273e-05/0.08542, allocations: 47.78 kB / 476.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.758e-05/0.08549, allocations: 67.61 kB / 476.9 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002856/0.08578, allocations: 227.2 kB / 477.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.08579, allocations: 0 / 477.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.0858, allocations: 4 kB / 477.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.08581, allocations: 0 / 477.1 MB, free: 8.781 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005287/0.08634, allocations: 459 kB / 477.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.08639, allocations: 8.031 kB / 477.6 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.848e-05/0.08644, allocations: 16.75 kB / 477.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002342/0.08668, allocations: 232.6 kB / 477.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.08671, allocations: 8.609 kB / 477.8 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.174e-05/0.08674, allocations: 16.36 kB / 477.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002492/0.08699, allocations: 158.7 kB / 478 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.08701, allocations: 192 / 478 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.08704, allocations: 11.94 kB / 478 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.08705, allocations: 7.938 kB / 478 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001553/0.08721, allocations: 80.12 kB / 478.1 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006452/0.08786, allocations: 461.6 kB / 478.5 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001238/0.088, allocations: 81.12 kB / 478.6 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.302e-05/0.08808, allocations: 41.8 kB / 478.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.08812, allocations: 0 / 478.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001652/0.08829, allocations: 93.03 kB / 478.7 MB, free: 6.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.0883, allocations: 4 kB / 478.7 MB, free: 6.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002948/0.0886, allocations: 129.4 kB / 478.9 MB, free: 6.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.08865, allocations: 81.11 kB / 479 MB, free: 6.711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.0888, allocations: 158.2 kB / 479.1 MB, free: 6.547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.08883, allocations: 29.7 kB / 479.1 MB, free: 6.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.804e-05/0.08891, allocations: 132.1 kB / 479.3 MB, free: 6.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.019e-05/0.08897, allocations: 31.5 kB / 479.3 MB, free: 6.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.938e-05/0.08902, allocations: 29.7 kB / 479.3 MB, free: 6.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.819e-05/0.08913, allocations: 326.8 kB / 479.6 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.488e-05/0.08919, allocations: 23.98 kB / 479.7 MB, free: 5.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.854e-05/0.08926, allocations: 55.42 kB / 479.7 MB, free: 5.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001348/0.08941, allocations: 87.47 kB / 479.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.08942, allocations: 4 kB / 479.8 MB, free: 5.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001876/0.08961, allocations: 125.5 kB / 479.9 MB, free: 5.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.08963, allocations: 4 kB / 479.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.981e-05/0.08967, allocations: 4 kB / 479.9 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.08968, allocations: 0 / 479.9 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.471e-05/0.08975, allocations: 15.92 kB / 480 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.08977, allocations: 4 kB / 480 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.877e-05/0.08981, allocations: 3.906 kB / 480 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.08983, allocations: 8 kB / 480 MB, free: 5.621 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001027/0.08994, allocations: 139.5 kB / 480.1 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.191e-05/0.08997, allocations: 11.91 kB / 480.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.318e-05/0.09001, allocations: 12.72 kB / 480.1 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.09002, allocations: 4 kB / 480.1 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.09004, allocations: 3.984 kB / 480.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.374e-05/0.09009, allocations: 93.09 kB / 480.2 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.09011, allocations: 3.938 kB / 480.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.784e-05/0.09014, allocations: 0 / 480.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.107e-05/0.09019, allocations: 19.91 kB / 480.3 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002072/0.0904, allocations: 248.2 kB / 480.5 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002283/0.09064, allocations: 353.8 kB / 480.8 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.904e-05/0.09071, allocations: 31.98 kB / 480.9 MB, free: 4.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.52e-05/0.09079, allocations: 120.1 kB / 481 MB, free: 4.547 MB / 350.1 MB Notification: Performance of Backend: time 2e-07/0.0908, allocations: 0 / 481 MB, free: 4.547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008708/0.09168, allocations: 291.9 kB / 481.3 MB, free: 4.301 MB / 350.1 MB Notification: Performance of SimCode: time 0.0005943/0.09228, allocations: 0.7325 MB / 482 MB, free: 3.512 MB / 350.1 MB Notification: Performance of Templates: time 0.004191/0.09648, allocations: 1.521 MB / 483.5 MB, free: 1.996 MB / 350.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)