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.0007577/0.0007578, allocations: 96.7 kB / 15.74 MB, free: 424 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.00077/0.00077, allocations: 174.3 kB / 16.62 MB, free: 6.434 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.275/1.275, allocations: 223.3 MB / 240.6 MB, free: 5.297 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.1645/0.1645, allocations: 12.02 MB / 303.8 MB, free: 1.754 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002743/0.0002743, allocations: 8 kB / 367.7 MB, free: 9.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08023/0.08052, allocations: 53.33 MB / 421 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002212/0.08275, allocations: 1.909 MB / 422.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002921/0.08305, allocations: 171.6 kB / 423.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.659e-05/0.08312, allocations: 7.938 kB / 423.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.08325, allocations: 19.91 kB / 423.1 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.08336, allocations: 31.89 kB / 423.1 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001537/0.08353, allocations: 27.97 kB / 423.2 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000103/0.08364, allocations: 67.77 kB / 423.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.335e-05/0.08372, allocations: 8.234 kB / 423.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.951e-05/0.08377, allocations: 31.84 kB / 423.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.081e-05/0.08383, allocations: 27.84 kB / 423.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.581e-05/0.08385, allocations: 8 kB / 423.3 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.08401, allocations: 123.9 kB / 423.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.589e-05/0.08404, allocations: 15.91 kB / 423.4 MB, free: 1.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.08408, allocations: 33.7 kB / 423.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001348/0.08422, allocations: 87.84 kB / 423.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.08423, allocations: 0 / 423.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.08424, allocations: 3.938 kB / 423.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.915e-06/0.08424, allocations: 0 / 423.6 MB, free: 1.48 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.0003816/0.08463, allocations: 430.8 kB / 424 MB, free: 1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.827e-05/0.08467, allocations: 12.03 kB / 424 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.948e-05/0.08471, allocations: 15.86 kB / 424 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001946/0.08491, allocations: 194.4 kB / 424.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.08494, allocations: 8 kB / 424.2 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.08496, allocations: 4 kB / 424.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002968/0.08526, allocations: 166.8 kB / 424.4 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.08528, allocations: 0 / 424.4 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.0853, allocations: 3.984 kB / 424.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.463e-06/0.08531, allocations: 4 kB / 424.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.005e-05/0.08539, allocations: 43.81 kB / 424.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003293/0.08573, allocations: 285.7 kB / 424.7 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.15/0.2358, allocations: 158.1 kB / 424.9 MB, free: 39.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.2359, allocations: 32.89 kB / 424.9 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.2359, allocations: 2.438 kB / 424.9 MB, free: 39.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.236, allocations: 33.03 kB / 424.9 MB, free: 39.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 2.044e-06/0.236, allocations: 0.6562 kB / 424.9 MB, free: 39.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003253/0.2363, allocations: 165 kB / 425.1 MB, free: 39.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.2364, allocations: 137.5 kB / 425.2 MB, free: 39.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.495e-05/0.2365, allocations: 135.9 kB / 425.3 MB, free: 38.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/0.2365, allocations: 26.77 kB / 425.4 MB, free: 38.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.669e-05/0.2365, allocations: 95.66 kB / 425.5 MB, free: 38.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.239e-05/0.2365, allocations: 8.5 kB / 425.5 MB, free: 38.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-06/0.2365, allocations: 3.312 kB / 425.5 MB, free: 38.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.025e-05/0.2366, allocations: 319.3 kB / 425.8 MB, free: 38.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.658e-05/0.2366, allocations: 14.56 kB / 425.8 MB, free: 38.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.642e-05/0.2367, allocations: 59.17 kB / 425.9 MB, free: 38.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.221e-05/0.2367, allocations: 71.27 kB / 425.9 MB, free: 38.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.2368, allocations: 4.875 kB / 425.9 MB, free: 38.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001593/0.2369, allocations: 160.6 kB / 426.1 MB, free: 38.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.237, allocations: 60.53 kB / 426.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.237, allocations: 1.547 kB / 426.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.237, allocations: 3.75 kB / 426.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.016e-05/0.237, allocations: 5.812 kB / 426.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.2371, allocations: 5.625 kB / 426.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.598e-05/0.2371, allocations: 9.188 kB / 426.2 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.2371, allocations: 5.625 kB / 426.2 MB, free: 38.29 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 7.662e-05/0.2372, allocations: 182.3 kB / 426.4 MB, free: 38.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.882e-05/0.2373, allocations: 63.19 kB / 426.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.537e-05/0.2373, allocations: 12.03 kB / 426.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.2374, allocations: 8.672 kB / 426.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2374, allocations: 0 / 426.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.2374, allocations: 1.531 kB / 426.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.2375, allocations: 185.7 kB / 426.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2375, allocations: 2.719 kB / 426.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.563e-05/0.2375, allocations: 7.672 kB / 426.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.2375, allocations: 0.625 kB / 426.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.2376, allocations: 3.281 kB / 426.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.2376, allocations: 1.766 kB / 426.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.2376, allocations: 0 / 426.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001948/0.2378, allocations: 262 kB / 426.9 MB, free: 37.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.757e-05/0.2378, allocations: 89.3 kB / 427 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.2378, allocations: 6.562 kB / 427 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.155e-05/0.2379, allocations: 4.406 kB / 427 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.087e-05/0.2379, allocations: 6.406 kB / 427 MB, free: 37.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.2379, allocations: 7.969 kB / 427 MB, free: 37.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.138e-05/0.238, allocations: 103.8 kB / 427.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.238, allocations: 0.75 kB / 427.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002846/0.2383, allocations: 20.94 kB / 427.1 MB, free: 37.5 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.0005303/0.2388, allocations: 304.1 kB / 427.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001727/0.239, allocations: 167.8 kB / 427.6 MB, free: 37.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.239, allocations: 0 / 427.6 MB, free: 37.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.789e-05/0.2391, allocations: 122.9 kB / 427.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.2394, allocations: 33.61 kB / 427.7 MB, free: 37.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003745/0.2397, allocations: 211.3 kB / 428 MB, free: 36.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.507e-05/0.2399, allocations: 0.699 MB / 428.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.46e-05/0.2399, allocations: 11.38 kB / 428.7 MB, free: 36.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.032e-05/0.24, allocations: 17.22 kB / 428.7 MB, free: 36.28 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.24, allocations: 0 / 428.7 MB, free: 36.28 MB / 350.1 MB Notification: Performance of Templates: time 0.003625/0.2436, allocations: 1.601 MB / 430.3 MB, free: 36.12 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)