Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009884/0.0009884, allocations: 100 kB / 15.73 MB, free: 436 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.001024/0.001024, allocations: 178.2 kB / 16.62 MB, free: 6.422 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.294/1.294, allocations: 223.2 MB / 240.6 MB, free: 5.469 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.1695/0.1695, allocations: 12.03 MB / 303.7 MB, free: 1.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002866/0.0002863, allocations: 11.98 kB / 367.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08774/0.08804, allocations: 53.35 MB / 420.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.002542/0.09062, allocations: 2.267 MB / 423.2 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004699/0.09111, allocations: 339.1 kB / 423.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.854e-05/0.09119, allocations: 7.875 kB / 423.5 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001758/0.09138, allocations: 47.7 kB / 423.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.09153, allocations: 51.84 kB / 423.6 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001642/0.09171, allocations: 75.89 kB / 423.7 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.09185, allocations: 104.2 kB / 423.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.09198, allocations: 57.69 kB / 423.8 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.179e-05/0.09204, allocations: 43.83 kB / 423.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.424e-05/0.09212, allocations: 47.72 kB / 423.9 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.09215, allocations: 7.938 kB / 423.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000149/0.0923, allocations: 119.9 kB / 424 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.67e-05/0.09234, allocations: 23.91 kB / 424.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.898e-05/0.09239, allocations: 57.56 kB / 424.1 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001776/0.09257, allocations: 156 kB / 424.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.043e-06/0.09258, allocations: 0 / 424.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09259, allocations: 0 / 424.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.487e-06/0.0926, allocations: 0 / 424.3 MB, free: 0.7383 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004317/0.09303, allocations: 431 kB / 424.7 MB, free: 272 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.688e-05/0.09307, allocations: 8.031 kB / 424.7 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.891e-05/0.09311, allocations: 19.8 kB / 424.7 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1729/0.266, allocations: 221.5 kB / 424.9 MB, free: 39.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.216e-05/0.2661, allocations: 8.172 kB / 425 MB, free: 39.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.2661, allocations: 14.19 kB / 425 MB, free: 39.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003792/0.2665, allocations: 154.8 kB / 425.1 MB, free: 39.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2666, allocations: 0.625 kB / 425.1 MB, free: 39.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.2666, allocations: 4.219 kB / 425.1 MB, free: 39.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.2666, allocations: 5.703 kB / 425.1 MB, free: 39.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.2668, allocations: 81.47 kB / 425.2 MB, free: 39.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007527/0.2675, allocations: 472.2 kB / 425.7 MB, free: 39.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001179/0.2677, allocations: 75.81 kB / 425.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.2677, allocations: 0.5156 kB / 425.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001725/0.2679, allocations: 92.77 kB / 425.8 MB, free: 39.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 2.535e-06/0.2679, allocations: 0.5938 kB / 425.8 MB, free: 39.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002804/0.2682, allocations: 218 kB / 426 MB, free: 38.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.2682, allocations: 85.05 kB / 426.1 MB, free: 38.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001118/0.2683, allocations: 159 kB / 426.3 MB, free: 38.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.2684, allocations: 28.53 kB / 426.3 MB, free: 38.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.387e-05/0.2684, allocations: 126.3 kB / 426.4 MB, free: 38.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.003e-05/0.2684, allocations: 31.48 kB / 426.5 MB, free: 38.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.863e-06/0.2685, allocations: 7.016 kB / 426.5 MB, free: 38.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.627e-05/0.2685, allocations: 320.5 kB / 426.8 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.878e-05/0.2686, allocations: 29.59 kB / 426.8 MB, free: 38.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.327e-05/0.2686, allocations: 54.17 kB / 426.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.647e-05/0.2687, allocations: 34.95 kB / 426.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.2687, allocations: 0 / 426.9 MB, free: 38.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001539/0.2689, allocations: 129.6 kB / 427 MB, free: 38.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.2689, allocations: 6.188 kB / 427 MB, free: 38.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.2689, allocations: 1.625 kB / 427 MB, free: 38.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.2689, allocations: 1.75 kB / 427 MB, free: 38.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.445e-05/0.269, allocations: 13.62 kB / 427.1 MB, free: 38.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.269, allocations: 9.359 kB / 427.1 MB, free: 38.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.713e-05/0.269, allocations: 3.969 kB / 427.1 MB, free: 38.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.2691, allocations: 11.41 kB / 427.1 MB, free: 38.19 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.keyState,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.912e-05/0.2691, allocations: 130.1 kB / 427.2 MB, free: 38.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.701e-05/0.2692, allocations: 15.09 kB / 427.2 MB, free: 38.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.108e-05/0.2692, allocations: 14.92 kB / 427.2 MB, free: 38.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.2692, allocations: 1.781 kB / 427.2 MB, free: 38.06 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.2692, allocations: 0 / 427.2 MB, free: 38.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2692, allocations: 6.578 kB / 427.2 MB, free: 38.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/0.2694, allocations: 227.6 kB / 427.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.2694, allocations: 5.438 kB / 427.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.067e-05/0.2694, allocations: 5.109 kB / 427.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2694, allocations: 2.594 kB / 427.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.2695, allocations: 4.219 kB / 427.5 MB, free: 37.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2695, allocations: 3.938 kB / 427.5 MB, free: 37.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2695, allocations: 2.594 kB / 427.5 MB, free: 37.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001488/0.2696, allocations: 143.2 kB / 427.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.803e-05/0.2697, allocations: 97.72 kB / 427.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.2697, allocations: 2.938 kB / 427.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.712e-05/0.2697, allocations: 2.047 kB / 427.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.391e-05/0.2698, allocations: 17.67 kB / 427.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-06/0.2698, allocations: 5.734 kB / 427.8 MB, free: 37.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.707e-05/0.2698, allocations: 111.8 kB / 427.9 MB, free: 37.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2698, allocations: 0 / 427.9 MB, free: 37.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002417/0.2701, allocations: 38.27 kB / 427.9 MB, free: 37.57 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0004663/0.2706, allocations: 250.4 kB / 428.1 MB, free: 37.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001695/0.2707, allocations: 99.28 kB / 428.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.2708, allocations: 0 / 428.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.286e-05/0.2708, allocations: 65.98 kB / 428.3 MB, free: 37.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001106/0.2709, allocations: 16.19 kB / 428.3 MB, free: 37.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004311/0.2714, allocations: 319.5 kB / 428.6 MB, free: 37.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.2715, allocations: 0.7318 MB / 429.4 MB, free: 36.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.105e-05/0.2716, allocations: 9.734 kB / 429.4 MB, free: 36.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.771e-05/0.2716, allocations: 16.28 kB / 429.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2716, allocations: 4 kB / 429.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of Templates: time 0.003459/0.2751, allocations: 1.342 MB / 430.7 MB, free: 36.37 MB / 350.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)