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.001518/0.001518, allocations: 111.7 kB / 17.14 MB, free: 5.914 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.001709/0.001709, 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.3/1.3, allocations: 222.9 MB / 241.8 MB, free: 15.09 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.05902/0.05902, allocations: 12.06 MB / 304 MB, free: 3.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.91 kB / 420.8 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08037/0.08159, allocations: 52.31 MB / 473.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004149/0.08576, allocations: 2.666 MB / 475.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006598/0.08645, allocations: 350.9 kB / 476.1 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.08663, allocations: 11.88 kB / 476.1 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002336/0.08687, allocations: 43.7 kB / 476.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002006/0.0871, allocations: 59.67 kB / 476.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.08734, allocations: 83.7 kB / 476.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001998/0.08755, allocations: 152 kB / 476.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.08772, allocations: 81.36 kB / 476.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.606e-05/0.08779, allocations: 55.78 kB / 476.5 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.556e-05/0.08789, allocations: 67.64 kB / 476.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.761e-05/0.08792, allocations: 12 kB / 476.6 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000195/0.08812, allocations: 143.9 kB / 476.8 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.193e-05/0.08819, allocations: 43.83 kB / 476.8 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.309e-05/0.08827, allocations: 67.61 kB / 476.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.08859, allocations: 231 kB / 477.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.08861, allocations: 0 / 477.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.08862, allocations: 0 / 477.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.08863, allocations: 0 / 477.1 MB, free: 8.797 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.0005343/0.08917, allocations: 462.8 kB / 477.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.08921, allocations: 8.031 kB / 477.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.374e-05/0.08927, allocations: 16.84 kB / 477.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002452/0.08952, allocations: 240 kB / 477.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.08955, allocations: 8.609 kB / 477.8 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.816e-05/0.08958, allocations: 8.375 kB / 477.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000271/0.08986, allocations: 154.7 kB / 478 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.08988, allocations: 192 / 478 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.08991, allocations: 11.94 kB / 478 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.08992, allocations: 4 kB / 478 MB, free: 7.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.0901, allocations: 84.12 kB / 478.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006654/0.09077, allocations: 465.7 kB / 478.5 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001301/0.09091, allocations: 81.02 kB / 478.6 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.112e-05/0.091, allocations: 49.83 kB / 478.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.09104, allocations: 0 / 478.7 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001839/0.09123, allocations: 101 kB / 478.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.874e-06/0.09124, allocations: 0 / 478.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002946/0.09154, allocations: 121.5 kB / 478.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.09159, allocations: 85.11 kB / 479 MB, free: 6.715 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.09175, allocations: 162.1 kB / 479.1 MB, free: 6.547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.09177, allocations: 29.7 kB / 479.1 MB, free: 6.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.638e-05/0.09185, allocations: 128.2 kB / 479.3 MB, free: 6.379 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.57e-05/0.0919, allocations: 35.69 kB / 479.3 MB, free: 6.344 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-05/0.09195, allocations: 29.7 kB / 479.3 MB, free: 6.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.09207, allocations: 322.8 kB / 479.7 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.877e-05/0.09214, allocations: 27.98 kB / 479.7 MB, free: 5.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.115e-05/0.09221, allocations: 55.42 kB / 479.7 MB, free: 5.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001281/0.09235, allocations: 87.3 kB / 479.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.09236, allocations: 0 / 479.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002115/0.09258, allocations: 121.5 kB / 479.9 MB, free: 5.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.0926, allocations: 10.12 kB / 479.9 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.09263, allocations: 8.062 kB / 480 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.09265, allocations: 3.984 kB / 480 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.52e-05/0.09272, allocations: 8 kB / 480 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.09273, allocations: 4 kB / 480 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.035e-05/0.09278, allocations: 4.312 kB / 480 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.0928, allocations: 4 kB / 480 MB, free: 5.629 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.000115/0.09292, allocations: 143.4 kB / 480.1 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.09295, allocations: 15.84 kB / 480.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.788e-05/0.093, allocations: 16.72 kB / 480.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.09301, allocations: 3.984 kB / 480.2 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.09302, allocations: 4 kB / 480.2 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.037e-05/0.09309, allocations: 92.94 kB / 480.3 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.09311, allocations: 0 / 480.3 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.94e-05/0.09314, allocations: 4 kB / 480.3 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.077e-05/0.09319, allocations: 11.92 kB / 480.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002299/0.09342, allocations: 252.2 kB / 480.5 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002773/0.09371, allocations: 361.9 kB / 480.9 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 6.184e-05/0.09378, allocations: 35.92 kB / 480.9 MB, free: 4.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.346e-05/0.09387, allocations: 112.1 kB / 481 MB, free: 4.543 MB / 350.1 MB Notification: Performance of Backend: time 3.81e-07/0.09388, allocations: 0 / 481 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009427/0.09483, allocations: 295.9 kB / 481.3 MB, free: 4.289 MB / 350.1 MB Notification: Performance of SimCode: time 0.00066/0.0955, allocations: 0.74 MB / 482 MB, free: 3.492 MB / 350.1 MB Notification: Performance of Templates: time 0.004463/0.09998, allocations: 1.516 MB / 483.6 MB, free: 1.984 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)