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.001017/0.001017, allocations: 120.4 kB / 17.13 MB, free: 5.961 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.001099/0.001099, allocations: 193.2 kB / 18.06 MB, free: 5.039 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.271/1.271, allocations: 222.9 MB / 241.7 MB, free: 15.15 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.05441/0.05441, allocations: 12.05 MB / 304 MB, free: 3.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 63.91 kB / 420.7 MB, free: 17.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08994/0.09113, allocations: 52.32 MB / 473 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.003448/0.09462, allocations: 2.247 MB / 475.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003108/0.09495, allocations: 171.5 kB / 475.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.958e-05/0.09503, allocations: 4 kB / 475.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.0952, allocations: 23.78 kB / 475.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001681/0.09539, allocations: 43.81 kB / 475.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001686/0.09556, allocations: 43.58 kB / 475.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000144/0.09571, allocations: 83.7 kB / 475.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.09583, allocations: 24.19 kB / 475.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.221e-05/0.09589, allocations: 31.86 kB / 475.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.844e-05/0.09595, allocations: 35.84 kB / 475.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.314e-05/0.09598, allocations: 8 kB / 475.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001729/0.09616, allocations: 139.9 kB / 475.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.136e-05/0.09619, allocations: 15.88 kB / 475.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.622e-05/0.09624, allocations: 27.8 kB / 475.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.09649, allocations: 151.5 kB / 476.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.0965, allocations: 0 / 476.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.09651, allocations: 0 / 476.1 MB, free: 9.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.09652, allocations: 4 kB / 476.1 MB, free: 9.918 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.0004822/0.09701, allocations: 446.6 kB / 476.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.09705, allocations: 8.031 kB / 476.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.542e-05/0.0971, allocations: 12.75 kB / 476.5 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002411/0.09734, allocations: 188.3 kB / 476.7 MB, free: 9.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.09737, allocations: 8.375 kB / 476.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.09739, allocations: 4.375 kB / 476.7 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003091/0.0977, allocations: 164.9 kB / 476.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.09772, allocations: 192 / 476.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.09774, allocations: 7.938 kB / 476.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.09775, allocations: 4 kB / 476.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.53e-05/0.09783, allocations: 23.94 kB / 476.9 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003403/0.09818, allocations: 297.6 kB / 477.2 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.09838, allocations: 158.2 kB / 477.4 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.316e-05/0.09846, allocations: 37.78 kB / 477.4 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.09849, allocations: 3.984 kB / 477.4 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.09852, allocations: 42.5 kB / 477.5 MB, free: 8.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.09852, allocations: 4 kB / 477.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003187/0.09885, allocations: 160.9 kB / 477.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.84e-05/0.09892, allocations: 136.5 kB / 477.8 MB, free: 7.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.09904, allocations: 130.1 kB / 477.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.09907, allocations: 29.7 kB / 477.9 MB, free: 7.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.09912, allocations: 96.05 kB / 478 MB, free: 7.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.09915, allocations: 11.89 kB / 478 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.997e-05/0.09921, allocations: 21.72 kB / 478 MB, free: 7.664 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.09932, allocations: 330.9 kB / 478.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.969e-05/0.09936, allocations: 12 kB / 478.4 MB, free: 7.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.015e-05/0.09943, allocations: 61.88 kB / 478.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.09957, allocations: 180.7 kB / 478.6 MB, free: 7.016 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.09958, allocations: 0 / 478.6 MB, free: 7.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001851/0.09977, allocations: 161 kB / 478.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.932e-05/0.09982, allocations: 63.44 kB / 478.8 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.09983, allocations: 0 / 478.8 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.09985, allocations: 4 kB / 478.8 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.116e-05/0.09989, allocations: 4 kB / 478.8 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.09991, allocations: 4 kB / 478.8 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.144e-05/0.09996, allocations: 11.94 kB / 478.9 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.09998, allocations: 7.984 kB / 478.9 MB, free: 6.734 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.0001057/0.1001, allocations: 177.3 kB / 479 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.1002, allocations: 69.58 kB / 479.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.347e-05/0.1002, allocations: 12.31 kB / 479.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1003, allocations: 0 / 479.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.1003, allocations: 0 / 479.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.1003, allocations: 0 / 479.1 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.1004, allocations: 189.8 kB / 479.3 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1004, allocations: 8 kB / 479.3 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.08e-05/0.1005, allocations: 0 / 479.3 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.1005, allocations: 7.984 kB / 479.3 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.1005, allocations: 7.938 kB / 479.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1005, allocations: 3.938 kB / 479.3 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1005, allocations: 4 kB / 479.3 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000244/0.1008, allocations: 255.6 kB / 479.6 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.437e-05/0.1008, allocations: 85.02 kB / 479.7 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.279e-05/0.1009, allocations: 4 kB / 479.7 MB, free: 5.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.179e-05/0.1009, allocations: 4 kB / 479.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.486e-05/0.1009, allocations: 0 / 479.7 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.101, allocations: 4 kB / 479.7 MB, free: 5.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.793e-05/0.101, allocations: 107.2 kB / 479.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.101, allocations: 0 / 479.8 MB, free: 5.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002682/0.1013, allocations: 35.94 kB / 479.8 MB, free: 5.652 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.0005667/0.1019, allocations: 294.3 kB / 480.1 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002221/0.1021, allocations: 167.1 kB / 480.3 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1021, allocations: 4.062 kB / 480.3 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.161e-05/0.1022, allocations: 118.8 kB / 480.4 MB, free: 5.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.1025, allocations: 38.95 kB / 480.4 MB, free: 5.066 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003493/0.1029, allocations: 204.5 kB / 480.6 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.1031, allocations: 0.6923 MB / 481.3 MB, free: 4.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.18e-05/0.1031, allocations: 15.44 kB / 481.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1031, allocations: 4.062 kB / 481.3 MB, free: 4.094 MB / 350.1 MB Notification: Performance of Templates: time 0.003662/0.1068, allocations: 2.264 MB / 483.6 MB, free: 1.832 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)