Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.ClockedBlocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 109.4 kB / 16.45 MB, free: 6.395 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.00117/0.001171, allocations: 186.4 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.244/1.244, allocations: 222.9 MB / 241.1 MB, free: 15.02 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.05295/0.05295, allocations: 12.04 MB / 303.3 MB, free: 3.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 59.91 kB / 420.1 MB, free: 17.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08311/0.08422, allocations: 52.32 MB / 472.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003249/0.08749, allocations: 2.247 MB / 474.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003134/0.08782, allocations: 171.5 kB / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.806e-05/0.08788, allocations: 3.938 kB / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001053/0.08799, allocations: 27.78 kB / 474.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001141/0.08812, allocations: 35.83 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001466/0.08828, allocations: 47.88 kB / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000109/0.08839, allocations: 79.77 kB / 475 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.624e-05/0.08848, allocations: 32.19 kB / 475 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.098e-05/0.08853, allocations: 35.86 kB / 475 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.642e-05/0.08858, allocations: 35.83 kB / 475.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.772e-05/0.0886, allocations: 8 kB / 475.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.08875, allocations: 127.9 kB / 475.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.683e-05/0.08878, allocations: 15.92 kB / 475.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.735e-05/0.08882, allocations: 31.8 kB / 475.3 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.08901, allocations: 147.5 kB / 475.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.08903, allocations: 4 kB / 475.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.08903, allocations: 0 / 475.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.08904, allocations: 0 / 475.4 MB, free: 9.766 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003599/0.08941, allocations: 446.6 kB / 475.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.247e-05/0.08943, allocations: 8.031 kB / 475.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.726e-05/0.08948, allocations: 16.75 kB / 475.9 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001836/0.08967, allocations: 187 kB / 476 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.08969, allocations: 8.375 kB / 476.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.325e-05/0.08971, allocations: 4.375 kB / 476.1 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002632/0.08997, allocations: 156.9 kB / 476.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.36e-06/0.08999, allocations: 192 / 476.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.09001, allocations: 15.92 kB / 476.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.09002, allocations: 0 / 476.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.977e-05/0.09009, allocations: 27.94 kB / 476.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002976/0.0904, allocations: 305.6 kB / 476.6 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.09057, allocations: 150.2 kB / 476.7 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.473e-05/0.09065, allocations: 37.78 kB / 476.7 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.09067, allocations: 3.938 kB / 476.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.0907, allocations: 38.56 kB / 476.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.0907, allocations: 4 kB / 476.8 MB, free: 8.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002882/0.091, allocations: 168.9 kB / 476.9 MB, free: 7.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.09107, allocations: 128.5 kB / 477.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.09118, allocations: 134.1 kB / 477.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.0912, allocations: 25.7 kB / 477.2 MB, free: 7.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.856e-05/0.09125, allocations: 100 kB / 477.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.117e-05/0.09127, allocations: 11.84 kB / 477.3 MB, free: 7.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.806e-05/0.09132, allocations: 29.73 kB / 477.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.222e-05/0.09142, allocations: 326.8 kB / 477.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.05e-05/0.09147, allocations: 12 kB / 477.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.257e-05/0.09152, allocations: 58 kB / 477.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001276/0.09166, allocations: 176.8 kB / 477.9 MB, free: 6.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.09167, allocations: 7.938 kB / 477.9 MB, free: 6.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001846/0.09186, allocations: 157 kB / 478.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/0.0919, allocations: 63.39 kB / 478.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.09191, allocations: 4 kB / 478.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.646e-06/0.09193, allocations: 0 / 478.2 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.489e-05/0.09197, allocations: 12 kB / 478.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.09198, allocations: 0 / 478.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.19e-05/0.09203, allocations: 8.188 kB / 478.2 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.09205, allocations: 11.94 kB / 478.2 MB, free: 6.578 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 (synchronizeRealtime.initialized,keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.0001133/0.09217, allocations: 181.2 kB / 478.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/0.09228, allocations: 65.62 kB / 478.4 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.095e-05/0.09232, allocations: 12.31 kB / 478.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.09233, allocations: 0 / 478.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.09234, allocations: 0 / 478.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.09234, allocations: 0 / 478.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.09252, allocations: 189.5 kB / 478.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-06/0.09253, allocations: 0 / 478.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.653e-05/0.09256, allocations: 11.94 kB / 478.6 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.09256, allocations: 3.938 kB / 478.6 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.09258, allocations: 0 / 478.6 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.09259, allocations: 7.984 kB / 478.6 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.09259, allocations: 4 kB / 478.7 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002435/0.09284, allocations: 251.6 kB / 478.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.882e-05/0.09289, allocations: 89 kB / 479 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.09291, allocations: 4 kB / 479 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.14e-05/0.09297, allocations: 4 kB / 479 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.766e-05/0.09299, allocations: 0 / 479 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.09301, allocations: 8.094 kB / 479 MB, free: 5.637 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.694e-05/0.09308, allocations: 107.2 kB / 479.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.074e-06/0.09309, allocations: 0 / 479.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.09336, allocations: 39.86 kB / 479.1 MB, free: 5.492 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: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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.0005288/0.09389, allocations: 284.7 kB / 479.4 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002019/0.0941, allocations: 167 kB / 479.6 MB, free: 5.094 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.09411, allocations: 4.125 kB / 479.6 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.479e-05/0.09419, allocations: 122.8 kB / 479.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.09447, allocations: 43.03 kB / 479.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002947/0.09478, allocations: 178.9 kB / 479.9 MB, free: 4.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003926/0.09518, allocations: 0.6923 MB / 480.6 MB, free: 3.984 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.8e-05/0.09522, allocations: 16.72 kB / 480.6 MB, free: 3.969 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.854e-05/0.09526, allocations: 15.44 kB / 480.7 MB, free: 3.953 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.09526, allocations: 0 / 480.7 MB, free: 3.953 MB / 350.1 MB Notification: Performance of Templates: time 0.003662/0.09893, allocations: 1.654 MB / 482.3 MB, free: 2.309 MB / 350.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1)