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.000716/0.0007161, allocations: 103.1 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007583/0.0007583, allocations: 182.2 kB / 16.96 MB, free: 6.879 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.269/1.269, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.1555/0.1555, allocations: 12.03 MB / 304.2 MB, free: 1.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002703, allocations: 8 kB / 368.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07993/0.08021, allocations: 53.34 MB / 421.6 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002317/0.08256, allocations: 1.94 MB / 423.6 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003281/0.0829, allocations: 183.5 kB / 423.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.071e-05/0.08297, allocations: 7.938 kB / 423.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001296/0.0831, allocations: 23.91 kB / 423.8 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.08322, allocations: 27.83 kB / 423.8 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001539/0.08338, allocations: 39.91 kB / 423.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001029/0.0835, allocations: 71.77 kB / 423.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.576e-05/0.08359, allocations: 20.22 kB / 423.9 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.132e-05/0.08364, allocations: 23.86 kB / 424 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.911e-05/0.08369, allocations: 31.8 kB / 424 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.549e-05/0.08371, allocations: 4 kB / 424 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.08387, allocations: 135.9 kB / 424.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.002e-05/0.0839, allocations: 7.984 kB / 424.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.213e-05/0.08396, allocations: 57.45 kB / 424.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001862/0.08415, allocations: 135.7 kB / 424.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.08416, allocations: 0 / 424.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.08417, allocations: 0 / 424.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.08418, allocations: 0 / 424.3 MB, free: 0.9766 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.0003725/0.08456, allocations: 434.9 kB / 424.7 MB, free: 500 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.739e-05/0.08459, allocations: 8.031 kB / 424.8 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.593e-05/0.08463, allocations: 8.844 kB / 424.8 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001772/0.08481, allocations: 196.2 kB / 425 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.08484, allocations: 4.375 kB / 425 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.564e-05/0.08486, allocations: 8.375 kB / 425 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002779/0.08514, allocations: 157.4 kB / 425.1 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.08516, allocations: 4.172 kB / 425.1 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.08518, allocations: 3.938 kB / 425.1 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.08519, allocations: 4 kB / 425.1 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.49e-05/0.08527, allocations: 27.92 kB / 425.2 MB, free: 20 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1447/0.23, allocations: 288.4 kB / 425.4 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001745/0.2302, allocations: 155.2 kB / 425.6 MB, free: 39.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.409e-05/0.2303, allocations: 40.52 kB / 425.6 MB, free: 39.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.238e-05/0.2303, allocations: 0.7969 kB / 425.6 MB, free: 39.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.2304, allocations: 33.62 kB / 425.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 2.444e-06/0.2304, allocations: 0.9688 kB / 425.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003023/0.2307, allocations: 166.1 kB / 425.8 MB, free: 39.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.2307, allocations: 135.2 kB / 426 MB, free: 38.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.601e-05/0.2308, allocations: 138.2 kB / 426.1 MB, free: 38.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.099e-05/0.2308, allocations: 27.55 kB / 426.1 MB, free: 38.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.554e-05/0.2309, allocations: 102.2 kB / 426.2 MB, free: 38.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.143e-05/0.2309, allocations: 8.484 kB / 426.2 MB, free: 38.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-05/0.2309, allocations: 19.52 kB / 426.3 MB, free: 38.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.943e-05/0.231, allocations: 321.5 kB / 426.6 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.742e-05/0.231, allocations: 17.28 kB / 426.6 MB, free: 38.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.35e-05/0.2311, allocations: 55.97 kB / 426.6 MB, free: 38.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.174e-05/0.2312, allocations: 179.6 kB / 426.8 MB, free: 38.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2312, allocations: 0 / 426.8 MB, free: 38.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001627/0.2313, allocations: 159.4 kB / 427 MB, free: 37.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.2314, allocations: 67.91 kB / 427 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.2314, allocations: 1.531 kB / 427 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.2314, allocations: 2.469 kB / 427 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.517e-05/0.2314, allocations: 11.09 kB / 427.1 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.2315, allocations: 3.375 kB / 427.1 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.172e-05/0.2315, allocations: 9.797 kB / 427.1 MB, free: 37.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.2315, allocations: 5.219 kB / 427.1 MB, free: 37.91 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 7.31e-05/0.2316, allocations: 184.2 kB / 427.2 MB, free: 37.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.997e-05/0.2317, allocations: 66.34 kB / 427.3 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.233e-05/0.2317, allocations: 11.72 kB / 427.3 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2317, allocations: 2.656 kB / 427.3 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.2318, allocations: 0 / 427.3 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.2318, allocations: 1.5 kB / 427.3 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.2319, allocations: 181.5 kB / 427.5 MB, free: 37.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2319, allocations: 3.938 kB / 427.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.506e-05/0.2319, allocations: 5.875 kB / 427.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.2319, allocations: 3.906 kB / 427.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.232, allocations: 3.875 kB / 427.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.232, allocations: 3.281 kB / 427.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.232, allocations: 3.812 kB / 427.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001872/0.2322, allocations: 255.2 kB / 427.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.393e-05/0.2322, allocations: 94.41 kB / 427.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.2322, allocations: 9.969 kB / 427.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.44e-05/0.2323, allocations: 0 / 427.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.255e-05/0.2323, allocations: 4.094 kB / 427.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.2323, allocations: 7.406 kB / 427.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.194e-05/0.2324, allocations: 103.9 kB / 428 MB, free: 37.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.2324, allocations: 0 / 428 MB, free: 37.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002814/0.2327, allocations: 29.81 kB / 428 MB, free: 37.12 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.0005239/0.2332, allocations: 300.5 kB / 428.3 MB, free: 37.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001746/0.2334, allocations: 168.7 kB / 428.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2334, allocations: 0 / 428.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.82e-05/0.2334, allocations: 128.9 kB / 428.6 MB, free: 36.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.2337, allocations: 30.22 kB / 428.6 MB, free: 36.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003806/0.2341, allocations: 223.5 kB / 428.9 MB, free: 36.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001063/0.2342, allocations: 0.6914 MB / 429.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.087e-05/0.2343, allocations: 15.84 kB / 429.6 MB, free: 35.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.116e-05/0.2343, allocations: 13.59 kB / 429.6 MB, free: 35.89 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2344, allocations: 0 / 429.6 MB, free: 35.89 MB / 350.1 MB Notification: Performance of Templates: time 0.003667/0.238, allocations: 1.625 MB / 431.2 MB, free: 35.73 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)