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.0008477/0.0008477, allocations: 98.7 kB / 15.74 MB, free: 432 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.0008405/0.0008406, allocations: 182.1 kB / 16.62 MB, free: 6.883 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.221/1.221, allocations: 223.2 MB / 240.6 MB, free: 5.344 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.1577/0.1577, allocations: 12.03 MB / 303.7 MB, free: 1.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002966/0.0002966, allocations: 11.98 kB / 367.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09039/0.0907, allocations: 53.34 MB / 420.9 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002426/0.09316, allocations: 1.912 MB / 422.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002986/0.09348, allocations: 159.6 kB / 423 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.112e-05/0.09357, allocations: 7.938 kB / 423 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.115e-05/0.09366, allocations: 19.84 kB / 423 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001268/0.09379, allocations: 31.94 kB / 423 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000196/0.09399, allocations: 43.64 kB / 423.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000105/0.09411, allocations: 39.94 kB / 423.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.479e-05/0.0942, allocations: 20.22 kB / 423.1 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.646e-05/0.09425, allocations: 23.86 kB / 423.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.85e-05/0.09431, allocations: 27.84 kB / 423.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.09433, allocations: 11.94 kB / 423.2 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001408/0.09447, allocations: 111.9 kB / 423.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.123e-05/0.0945, allocations: 19.86 kB / 423.3 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.716e-05/0.09455, allocations: 33.7 kB / 423.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.09469, allocations: 87.83 kB / 423.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.0947, allocations: 0 / 423.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.09471, allocations: 4 kB / 423.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.09472, allocations: 0 / 423.4 MB, free: 1.469 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.0003616/0.09509, allocations: 426.7 kB / 423.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.09512, allocations: 8.031 kB / 423.9 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.092e-05/0.09517, allocations: 19.86 kB / 423.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001873/0.09536, allocations: 194.9 kB / 424.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.09539, allocations: 8 kB / 424.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.81e-05/0.09541, allocations: 8 kB / 424.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.09569, allocations: 152.9 kB / 424.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.201e-06/0.09571, allocations: 0 / 424.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.09573, allocations: 0 / 424.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.09574, allocations: 4 kB / 424.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.573e-05/0.09582, allocations: 35.88 kB / 424.3 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000316/0.09614, allocations: 289.7 kB / 424.6 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1681/0.2642, allocations: 157.2 kB / 424.7 MB, free: 39.6 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.224e-05/0.2643, allocations: 1.078 kB / 424.7 MB, free: 39.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.2643, allocations: 30.56 kB / 424.7 MB, free: 39.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 3.016e-06/0.2643, allocations: 0.5312 kB / 424.7 MB, free: 39.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004591/0.2648, allocations: 243 kB / 425 MB, free: 39.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.2649, allocations: 135.7 kB / 425.1 MB, free: 39.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.265, allocations: 137.8 kB / 425.3 MB, free: 39.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.265, allocations: 26.39 kB / 425.3 MB, free: 39.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.54e-05/0.2651, allocations: 96.12 kB / 425.4 MB, free: 39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.2651, allocations: 11.89 kB / 425.4 MB, free: 39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-06/0.2651, allocations: 2.094 kB / 425.4 MB, free: 39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.094e-05/0.2652, allocations: 321.4 kB / 425.7 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.846e-05/0.2652, allocations: 11.66 kB / 425.7 MB, free: 38.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.117e-05/0.2653, allocations: 59.94 kB / 425.8 MB, free: 38.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.705e-05/0.2653, allocations: 73.91 kB / 425.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.2653, allocations: 3.031 kB / 425.8 MB, free: 38.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001731/0.2655, allocations: 160.6 kB / 426 MB, free: 38.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.624e-05/0.2656, allocations: 60.7 kB / 426.1 MB, free: 38.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2656, allocations: 0.9688 kB / 426.1 MB, free: 38.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.2656, allocations: 3.375 kB / 426.1 MB, free: 38.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.531e-05/0.2657, allocations: 13.62 kB / 426.1 MB, free: 38.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.2657, allocations: 4.266 kB / 426.1 MB, free: 38.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.84e-05/0.2657, allocations: 10.5 kB / 426.1 MB, free: 38.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.2657, allocations: 4.312 kB / 426.1 MB, free: 38.41 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.95e-05/0.2659, allocations: 181.4 kB / 426.3 MB, free: 38.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.355e-05/0.266, allocations: 61.56 kB / 426.3 MB, free: 38.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.872e-05/0.266, allocations: 12.61 kB / 426.3 MB, free: 38.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.266, allocations: 1.125 kB / 426.3 MB, free: 38.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.266, allocations: 4.25 kB / 426.3 MB, free: 38.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.266, allocations: 0.8438 kB / 426.4 MB, free: 38.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001403/0.2662, allocations: 196.7 kB / 426.5 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2662, allocations: 0 / 426.5 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.774e-05/0.2662, allocations: 5.078 kB / 426.5 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2662, allocations: 1.906 kB / 426.5 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.2662, allocations: 4.969 kB / 426.6 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2662, allocations: 0 / 426.6 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2663, allocations: 2.016 kB / 426.6 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002075/0.2665, allocations: 273.8 kB / 426.8 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.312e-05/0.2665, allocations: 85.78 kB / 426.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.2665, allocations: 6.828 kB / 426.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.766e-05/0.2666, allocations: 7.641 kB / 426.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.256e-05/0.2666, allocations: 2.906 kB / 426.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.2667, allocations: 4.938 kB / 426.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.09e-05/0.2667, allocations: 105.9 kB / 427 MB, free: 37.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2667, allocations: 0.6562 kB / 427 MB, free: 37.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002858/0.267, allocations: 27.06 kB / 427.1 MB, free: 37.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005801/0.2676, allocations: 300.4 kB / 427.4 MB, free: 37.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000191/0.2678, allocations: 163.4 kB / 427.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2678, allocations: 0.5625 kB / 427.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.285e-05/0.2679, allocations: 126.1 kB / 427.6 MB, free: 37.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.2681, allocations: 27.45 kB / 427.7 MB, free: 37.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003683/0.2685, allocations: 199.7 kB / 427.9 MB, free: 37.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.2686, allocations: 0.6964 MB / 428.6 MB, free: 36.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.103e-05/0.2687, allocations: 16.27 kB / 428.6 MB, free: 36.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.493e-05/0.2687, allocations: 14.31 kB / 428.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2687, allocations: 4 kB / 428.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of Templates: time 0.003918/0.2727, allocations: 1.606 MB / 430.2 MB, free: 36.25 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)