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.001388/0.001388, allocations: 120.2 kB / 17.13 MB, free: 5.895 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.001367/0.001367, allocations: 194.3 kB / 18.06 MB, free: 4.977 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.258/1.258, allocations: 222.9 MB / 241.7 MB, free: 15.04 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.05523/0.05523, allocations: 12.05 MB / 304 MB, free: 3.051 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 63.91 kB / 420.7 MB, free: 17.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07646/0.07755, allocations: 52.31 MB / 473 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003474/0.08105, allocations: 2.254 MB / 475.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003729/0.08145, allocations: 167.5 kB / 475.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.158e-05/0.08153, allocations: 4 kB / 475.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001329/0.08167, allocations: 19.86 kB / 475.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.08185, allocations: 43.8 kB / 475.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.08203, allocations: 47.83 kB / 475.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00014/0.08217, allocations: 75.77 kB / 475.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.08229, allocations: 28.22 kB / 475.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.8e-05/0.08236, allocations: 47.77 kB / 475.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.551e-05/0.08241, allocations: 27.86 kB / 475.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.08244, allocations: 4 kB / 475.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.08261, allocations: 131.9 kB / 475.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.619e-05/0.08264, allocations: 19.91 kB / 475.9 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.326e-05/0.08269, allocations: 27.81 kB / 475.9 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002372/0.08294, allocations: 139.6 kB / 476.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.08295, allocations: 0 / 476.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.08295, allocations: 0 / 476.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.08296, allocations: 0 / 476.1 MB, free: 9.773 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.0004426/0.08341, allocations: 454.6 kB / 476.5 MB, free: 9.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.08345, allocations: 8.031 kB / 476.5 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.803e-05/0.0835, allocations: 16.75 kB / 476.5 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.08374, allocations: 196.2 kB / 476.7 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.08377, allocations: 4.375 kB / 476.7 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.867e-05/0.08379, allocations: 12.36 kB / 476.7 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003346/0.08413, allocations: 161.4 kB / 476.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.08415, allocations: 192 / 476.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.08417, allocations: 3.938 kB / 476.9 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.08418, allocations: 4 kB / 476.9 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.243e-05/0.08427, allocations: 27.98 kB / 476.9 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004095/0.08469, allocations: 301.5 kB / 477.2 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002154/0.08491, allocations: 150.3 kB / 477.4 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.233e-05/0.08499, allocations: 41.69 kB / 477.4 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.834e-05/0.08503, allocations: 4.031 kB / 477.4 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.08506, allocations: 38.5 kB / 477.5 MB, free: 8.156 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.312e-06/0.08507, allocations: 4 kB / 477.5 MB, free: 8.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003185/0.08539, allocations: 160.9 kB / 477.6 MB, free: 7.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.337e-05/0.08547, allocations: 136.5 kB / 477.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.08558, allocations: 133.2 kB / 477.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.08561, allocations: 29.7 kB / 477.9 MB, free: 7.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.956e-05/0.08566, allocations: 96.05 kB / 478 MB, free: 7.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.269e-05/0.08568, allocations: 7.891 kB / 478 MB, free: 7.531 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.136e-05/0.08573, allocations: 25.75 kB / 478 MB, free: 7.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.08584, allocations: 326.8 kB / 478.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.842e-05/0.08588, allocations: 15.98 kB / 478.4 MB, free: 7.156 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.531e-05/0.08595, allocations: 53.95 kB / 478.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/0.08609, allocations: 184.7 kB / 478.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.0861, allocations: 0 / 478.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001994/0.08631, allocations: 161 kB / 478.8 MB, free: 6.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.016e-05/0.08636, allocations: 59.41 kB / 478.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.08637, allocations: 3.938 kB / 478.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.08638, allocations: 4 kB / 478.8 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.311e-05/0.08643, allocations: 7.984 kB / 478.8 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.08644, allocations: 4 kB / 478.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.008e-05/0.08649, allocations: 7.938 kB / 478.8 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.0865, allocations: 4.094 kB / 478.9 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.0001111/0.08662, allocations: 181.2 kB / 479 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.956e-05/0.08673, allocations: 69.78 kB / 479.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.481e-05/0.08677, allocations: 8.312 kB / 479.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.08678, allocations: 4 kB / 479.1 MB, free: 6.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.08679, allocations: 4.062 kB / 479.1 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.0868, allocations: 3.984 kB / 479.1 MB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.08697, allocations: 193.5 kB / 479.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.08697, allocations: 0 / 479.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.225e-05/0.087, allocations: 4.141 kB / 479.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.08701, allocations: 4 kB / 479.3 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.08703, allocations: 7.922 kB / 479.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.08704, allocations: 4 kB / 479.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.08704, allocations: 4.078 kB / 479.3 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002463/0.08729, allocations: 263.6 kB / 479.6 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.591e-05/0.08734, allocations: 85.02 kB / 479.7 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.08736, allocations: 0 / 479.7 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.34e-05/0.08742, allocations: 4 kB / 479.7 MB, free: 5.629 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.488e-05/0.08745, allocations: 7.984 kB / 479.7 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.08746, allocations: 8 kB / 479.7 MB, free: 5.613 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.534e-05/0.08753, allocations: 99.27 kB / 479.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.08754, allocations: 0 / 479.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002706/0.08781, allocations: 31.94 kB / 479.8 MB, free: 5.484 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.0005394/0.08836, allocations: 285.9 kB / 480.1 MB, free: 5.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002123/0.08858, allocations: 174.8 kB / 480.3 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.08859, allocations: 0 / 480.3 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.083e-05/0.08868, allocations: 122.8 kB / 480.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.08896, allocations: 38.58 kB / 480.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003445/0.08931, allocations: 208.5 kB / 480.6 MB, free: 4.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.08956, allocations: 0.6926 MB / 481.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.506e-05/0.08959, allocations: 23.42 kB / 481.3 MB, free: 3.918 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.0896, allocations: 0 / 481.3 MB, free: 3.918 MB / 350.1 MB Notification: Performance of Templates: time 0.003884/0.09349, allocations: 2.261 MB / 483.6 MB, free: 1.66 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)