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.00187/0.001871, allocations: 100.8 kB / 16.31 MB, free: 6.391 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.002017/0.002018, allocations: 190.7 kB / 17.24 MB, free: 5.922 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.561/1.561, allocations: 222.9 MB / 240.9 MB, free: 15.26 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.05664/0.05664, allocations: 12.05 MB / 303.1 MB, free: 3.168 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 67.91 kB / 366.5 MB, free: 3.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3128, allocations: 52.33 MB / 418.8 MB, free: 21.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.00457/0.3174, allocations: 2.661 MB / 421.5 MB, free: 18.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004491/0.3179, allocations: 353.8 kB / 421.8 MB, free: 18.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.877e-05/0.318, allocations: 7.938 kB / 421.8 MB, free: 18.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002197/0.3183, allocations: 43.64 kB / 421.9 MB, free: 18.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001712/0.3184, allocations: 55.73 kB / 421.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001868/0.3186, allocations: 91.64 kB / 422 MB, free: 17.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001489/0.3188, allocations: 144 kB / 422.1 MB, free: 17.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.319, allocations: 79.77 kB / 422.2 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.278e-05/0.319, allocations: 67.75 kB / 422.3 MB, free: 17.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.592e-05/0.3191, allocations: 59.7 kB / 422.3 MB, free: 17.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.63e-05/0.3192, allocations: 12 kB / 422.3 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001639/0.3193, allocations: 135.9 kB / 422.5 MB, free: 17.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.468e-05/0.3194, allocations: 47.83 kB / 422.5 MB, free: 17.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.549e-05/0.3195, allocations: 67.55 kB / 422.6 MB, free: 17.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002584/0.3197, allocations: 225.3 kB / 422.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3198, allocations: 0 / 422.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3198, allocations: 0 / 422.8 MB, free: 17.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.3198, allocations: 4 kB / 422.8 MB, free: 17.05 MB / 302.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.0004698/0.3202, allocations: 447.1 kB / 423.3 MB, free: 16.56 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.3203, allocations: 16.02 kB / 423.3 MB, free: 16.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.864e-05/0.3203, allocations: 16.75 kB / 423.3 MB, free: 16.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.3205, allocations: 229.6 kB / 423.5 MB, free: 16.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.3206, allocations: 8.609 kB / 423.5 MB, free: 16.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.3206, allocations: 12.38 kB / 423.5 MB, free: 16.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002218/0.3208, allocations: 164.8 kB / 423.7 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.3208, allocations: 192 / 423.7 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.3208, allocations: 7.938 kB / 423.7 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.3209, allocations: 4 kB / 423.7 MB, free: 16.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001271/0.321, allocations: 80.12 kB / 423.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005087/0.3215, allocations: 465.6 kB / 424.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001088/0.3216, allocations: 85.11 kB / 424.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.833e-05/0.3217, allocations: 41.8 kB / 424.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.964e-05/0.3217, allocations: 0 / 424.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001931/0.3219, allocations: 101 kB / 424.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 9.71e-07/0.3219, allocations: 0 / 424.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002723/0.3222, allocations: 133.3 kB / 424.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.3223, allocations: 81.11 kB / 424.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.3224, allocations: 159.7 kB / 424.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/0.3224, allocations: 29.69 kB / 424.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.894e-05/0.3225, allocations: 136.1 kB / 425 MB, free: 14.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.048e-05/0.3225, allocations: 27.64 kB / 425 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/0.3225, allocations: 29.62 kB / 425 MB, free: 14.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.881e-05/0.3226, allocations: 326.8 kB / 425.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.962e-05/0.3226, allocations: 27.98 kB / 425.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.362e-05/0.3227, allocations: 55.41 kB / 425.4 MB, free: 14.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.361e-05/0.3228, allocations: 91.34 kB / 425.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3228, allocations: 0 / 425.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001505/0.323, allocations: 117.5 kB / 425.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.323, allocations: 4 kB / 425.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.133e-05/0.323, allocations: 4 kB / 425.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.3231, allocations: 3.938 kB / 425.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.325e-05/0.3231, allocations: 8 kB / 425.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.3231, allocations: 8.062 kB / 425.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.602e-05/0.3232, allocations: 7.844 kB / 425.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.3232, allocations: 11.98 kB / 425.7 MB, free: 13.88 MB / 302.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.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.099e-05/0.3233, allocations: 133.7 kB / 425.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.006e-05/0.3233, allocations: 11.91 kB / 425.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.466e-05/0.3234, allocations: 16.7 kB / 425.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.3234, allocations: 7.938 kB / 425.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.3234, allocations: 0 / 425.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3234, allocations: 0 / 425.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.3235, allocations: 233.5 kB / 426.1 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.3236, allocations: 4.312 kB / 426.1 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.975e-05/0.3236, allocations: 8 kB / 426.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3236, allocations: 0 / 426.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.3236, allocations: 0 / 426.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-06/0.3236, allocations: 4 kB / 426.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3236, allocations: 0 / 426.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.3238, allocations: 145.6 kB / 426.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.727e-05/0.3238, allocations: 89.23 kB / 426.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.3238, allocations: 0 / 426.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.615e-05/0.3239, allocations: 4 kB / 426.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.505e-05/0.3239, allocations: 15.97 kB / 426.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.3239, allocations: 0 / 426.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.99e-05/0.324, allocations: 119.2 kB / 426.5 MB, free: 13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.324, allocations: 0 / 426.5 MB, free: 13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002339/0.3242, allocations: 31.84 kB / 426.5 MB, free: 12.97 MB / 302.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 (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.0004792/0.3247, allocations: 251.2 kB / 426.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002079/0.325, allocations: 105.5 kB / 426.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.325, allocations: 3.938 kB / 426.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.93e-05/0.325, allocations: 61.69 kB / 426.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001638/0.3252, allocations: 4 kB / 426.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004786/0.3257, allocations: 284 kB / 427.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.3259, allocations: 0.7275 MB / 427.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.439e-05/0.3259, allocations: 16.34 kB / 427.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.531e-05/0.3259, allocations: 19.38 kB / 428 MB, free: 11.48 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.3259, allocations: 7.938 kB / 428 MB, free: 11.48 MB / 302.1 MB Notification: Performance of Templates: time 0.003816/0.3298, allocations: 1.386 MB / 429.4 MB, free: 10.09 MB / 302.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)