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.001547/0.001547, allocations: 113.7 kB / 17.13 MB, free: 5.965 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.001723/0.001723, allocations: 190.3 kB / 18.06 MB, free: 5.043 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.373/1.373, 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.05709/0.05709, allocations: 12.04 MB / 304 MB, free: 3.102 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 63.91 kB / 420.7 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08797/0.08919, allocations: 52.32 MB / 473.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004116/0.09334, allocations: 2.651 MB / 475.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006329/0.09401, allocations: 354.9 kB / 476.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.712e-05/0.09412, allocations: 7.938 kB / 476.1 MB, free: 9.828 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002345/0.09436, allocations: 43.64 kB / 476.1 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.09456, allocations: 55.67 kB / 476.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.09482, allocations: 91.7 kB / 476.3 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001974/0.09503, allocations: 148 kB / 476.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.09523, allocations: 93.34 kB / 476.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.844e-05/0.09532, allocations: 59.77 kB / 476.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.683e-05/0.09542, allocations: 63.7 kB / 476.6 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.083e-05/0.09546, allocations: 19.94 kB / 476.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.09567, allocations: 131.9 kB / 476.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.943e-05/0.09574, allocations: 51.83 kB / 476.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.099e-05/0.09583, allocations: 63.61 kB / 476.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003242/0.09616, allocations: 231.2 kB / 477.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.09617, allocations: 0 / 477.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.09618, allocations: 4 kB / 477.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.0962, allocations: 0 / 477.1 MB, free: 8.793 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.0006354/0.09684, allocations: 451 kB / 477.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.09688, allocations: 8.031 kB / 477.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.077e-05/0.09694, allocations: 24.73 kB / 477.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.09718, allocations: 228 kB / 477.8 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.09721, allocations: 12.61 kB / 477.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.509e-05/0.09724, allocations: 12.38 kB / 477.8 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.09751, allocations: 154.7 kB / 478 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.09753, allocations: 192 / 478 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.09755, allocations: 7.938 kB / 478 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.09756, allocations: 4 kB / 478 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001485/0.09772, allocations: 84.12 kB / 478.1 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006257/0.09835, allocations: 461.6 kB / 478.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.09849, allocations: 73.08 kB / 478.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.267e-05/0.09857, allocations: 41.84 kB / 478.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.09861, allocations: 15.97 kB / 478.6 MB, free: 7.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001894/0.09881, allocations: 105 kB / 478.7 MB, free: 6.949 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.09882, allocations: 0 / 478.7 MB, free: 6.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002833/0.09911, allocations: 125.4 kB / 478.9 MB, free: 6.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.09916, allocations: 77.11 kB / 478.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.09932, allocations: 166.2 kB / 479.1 MB, free: 6.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.09934, allocations: 25.7 kB / 479.1 MB, free: 6.523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.163e-05/0.09944, allocations: 132.1 kB / 479.3 MB, free: 6.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.09948, allocations: 35.48 kB / 479.3 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.056e-05/0.09953, allocations: 29.72 kB / 479.3 MB, free: 6.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.09966, allocations: 322.8 kB / 479.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.119e-05/0.09973, allocations: 31.98 kB / 479.7 MB, free: 5.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.225e-05/0.09981, allocations: 63.34 kB / 479.7 MB, free: 5.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001203/0.09994, allocations: 83.36 kB / 479.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.09995, allocations: 0 / 479.8 MB, free: 5.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001982/0.1002, allocations: 113.5 kB / 479.9 MB, free: 5.676 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1002, allocations: 11.94 kB / 479.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.1002, allocations: 0 / 479.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.1002, allocations: 8.062 kB / 479.9 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.568e-05/0.1003, allocations: 8 kB / 480 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.1003, allocations: 0 / 480 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.288e-05/0.1003, allocations: 11.91 kB / 480 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.1004, allocations: 4 kB / 480 MB, free: 5.633 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.0001334/0.1005, allocations: 137.8 kB / 480.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.04e-05/0.1005, allocations: 11.84 kB / 480.1 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.606e-05/0.1006, allocations: 16.7 kB / 480.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.1006, allocations: 0 / 480.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1006, allocations: 4 kB / 480.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.1006, allocations: 4 kB / 480.1 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.1008, allocations: 237.4 kB / 480.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.1008, allocations: 4.312 kB / 480.4 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.146e-05/0.1009, allocations: 0 / 480.4 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.1009, allocations: 8 kB / 480.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.1009, allocations: 0 / 480.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1009, allocations: 0 / 480.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1009, allocations: 0 / 480.4 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.1011, allocations: 145.7 kB / 480.5 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.706e-05/0.1012, allocations: 92.94 kB / 480.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.707e-05/0.1012, allocations: 0 / 480.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.724e-05/0.1012, allocations: 0 / 480.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.194e-05/0.1013, allocations: 8 kB / 480.6 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.1013, allocations: 7.984 kB / 480.6 MB, free: 4.867 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.565e-05/0.1014, allocations: 112.1 kB / 480.7 MB, free: 4.758 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1014, allocations: 0 / 480.7 MB, free: 4.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002529/0.1016, allocations: 43.83 kB / 480.8 MB, free: 4.715 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0005269/0.1022, allocations: 246 kB / 481 MB, free: 4.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002088/0.1024, allocations: 101.5 kB / 481.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1024, allocations: 0 / 481.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.405e-05/0.1025, allocations: 69.75 kB / 481.2 MB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001666/0.1027, allocations: 8 kB / 481.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005051/0.1032, allocations: 313.5 kB / 481.5 MB, free: 3.984 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.1035, allocations: 0.7312 MB / 482.2 MB, free: 3.227 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.983e-05/0.1035, allocations: 19.44 kB / 482.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1035, allocations: 0 / 482.3 MB, free: 3.211 MB / 350.1 MB Notification: Performance of Templates: time 0.004587/0.1081, allocations: 2.638 MB / 484.9 MB, free: 0.5781 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)