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.001578/0.001578, allocations: 105.9 kB / 16.03 MB, free: 5.801 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.001675/0.001675, allocations: 196.3 kB / 16.95 MB, free: 5.652 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.411/1.411, allocations: 222.9 MB / 240.6 MB, free: 4.48 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.2219/0.2219, allocations: 12.02 MB / 302.8 MB, free: 0.9023 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 59.91 kB / 366 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1197, allocations: 52.31 MB / 418.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004095/0.1238, allocations: 2.688 MB / 421 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000645/0.1245, allocations: 350.8 kB / 421.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.095e-05/0.1246, allocations: 7.938 kB / 421.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002858/0.1249, allocations: 43.77 kB / 421.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001644/0.1251, allocations: 43.81 kB / 421.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002142/0.1253, allocations: 71.81 kB / 421.5 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001877/0.1255, allocations: 156 kB / 421.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001763/0.1257, allocations: 89.42 kB / 421.7 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.202e-05/0.1258, allocations: 51.84 kB / 421.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.031e-05/0.1259, allocations: 75.62 kB / 421.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.1259, allocations: 12 kB / 421.8 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001774/0.1261, allocations: 135.9 kB / 422 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.493e-05/0.1262, allocations: 47.84 kB / 422 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.275e-05/0.1262, allocations: 75.47 kB / 422.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002839/0.1265, allocations: 219.6 kB / 422.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1265, allocations: 0 / 422.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1266, allocations: 0 / 422.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1266, allocations: 0 / 422.3 MB, free: 1.461 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.000588/0.1272, allocations: 459 kB / 422.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.1272, allocations: 8.031 kB / 422.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.653e-05/0.1272, allocations: 16.75 kB / 422.8 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.1275, allocations: 232 kB / 423 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.1275, allocations: 8.609 kB / 423 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.1275, allocations: 12.38 kB / 423 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002466/0.1278, allocations: 152.8 kB / 423.2 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.1278, allocations: 192 / 423.2 MB, free: 500 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.1278, allocations: 11.94 kB / 423.2 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1278, allocations: 7.938 kB / 423.2 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.128, allocations: 88.12 kB / 423.3 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2073/0.3353, allocations: 462.2 kB / 423.7 MB, free: 42.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.3355, allocations: 80.27 kB / 423.8 MB, free: 42.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.33e-05/0.3355, allocations: 42.33 kB / 423.9 MB, free: 42.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.503e-05/0.3356, allocations: 2.062 kB / 423.9 MB, free: 42.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002136/0.3358, allocations: 91.14 kB / 423.9 MB, free: 42.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.663e-06/0.3358, allocations: 1.625 kB / 423.9 MB, free: 42.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002683/0.3361, allocations: 125.9 kB / 424.1 MB, free: 42.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.3361, allocations: 82.44 kB / 424.1 MB, free: 42.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.3363, allocations: 163 kB / 424.3 MB, free: 41.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.3363, allocations: 27.64 kB / 424.3 MB, free: 41.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.56e-05/0.3363, allocations: 129.5 kB / 424.5 MB, free: 41.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.3364, allocations: 29.61 kB / 424.5 MB, free: 41.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.852e-05/0.3364, allocations: 32.69 kB / 424.5 MB, free: 41.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.213e-05/0.3365, allocations: 322 kB / 424.8 MB, free: 41.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.2e-05/0.3365, allocations: 31.27 kB / 424.9 MB, free: 41.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.28e-05/0.3366, allocations: 56.14 kB / 424.9 MB, free: 41.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.277e-05/0.3367, allocations: 84.78 kB / 425 MB, free: 41.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.3367, allocations: 0.875 kB / 425 MB, free: 41.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001555/0.3369, allocations: 118.8 kB / 425.1 MB, free: 41.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.3369, allocations: 11.31 kB / 425.1 MB, free: 41.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.3369, allocations: 5.562 kB / 425.1 MB, free: 41.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.3369, allocations: 2.438 kB / 425.1 MB, free: 41.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.295e-05/0.337, allocations: 11.62 kB / 425.2 MB, free: 41.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.421e-06/0.337, allocations: 5.391 kB / 425.2 MB, free: 41.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.016e-05/0.3371, allocations: 11.86 kB / 425.2 MB, free: 41.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.896e-06/0.3371, allocations: 3.625 kB / 425.2 MB, free: 41.4 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.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 7.932e-05/0.3372, allocations: 132.1 kB / 425.3 MB, free: 41.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.982e-05/0.3372, allocations: 17.88 kB / 425.3 MB, free: 41.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.094e-05/0.3372, allocations: 18.47 kB / 425.3 MB, free: 41.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3372, allocations: 0.7031 kB / 425.3 MB, free: 41.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.3372, allocations: 0 / 425.3 MB, free: 41.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3373, allocations: 3.516 kB / 425.3 MB, free: 41.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.3374, allocations: 230.3 kB / 425.6 MB, free: 41.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.3374, allocations: 8.391 kB / 425.6 MB, free: 41.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.052e-05/0.3374, allocations: 6.375 kB / 425.6 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3375, allocations: 2.344 kB / 425.6 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.3375, allocations: 4.828 kB / 425.6 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.3375, allocations: 1.5 kB / 425.6 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3375, allocations: 0 / 425.6 MB, free: 41.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001445/0.3376, allocations: 133 kB / 425.7 MB, free: 41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.266e-05/0.3377, allocations: 91.17 kB / 425.8 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.3377, allocations: 8.906 kB / 425.8 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.507e-05/0.3377, allocations: 3.156 kB / 425.8 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.942e-05/0.3378, allocations: 10.11 kB / 425.8 MB, free: 40.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.814e-06/0.3378, allocations: 1.031 kB / 425.8 MB, free: 40.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.49e-05/0.3378, allocations: 116.3 kB / 425.9 MB, free: 40.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3378, allocations: 0.625 kB / 425.9 MB, free: 40.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002422/0.3381, allocations: 41.22 kB / 426 MB, free: 40.81 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 (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.0004634/0.3386, allocations: 254.5 kB / 426.2 MB, free: 40.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001784/0.3387, allocations: 104.1 kB / 426.3 MB, free: 40.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3388, allocations: 0 / 426.3 MB, free: 40.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.403e-05/0.3388, allocations: 63.19 kB / 426.4 MB, free: 40.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001597/0.339, allocations: 12.95 kB / 426.4 MB, free: 40.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004091/0.3394, allocations: 330.1 kB / 426.7 MB, free: 40.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001263/0.3395, allocations: 0.7272 MB / 427.5 MB, free: 39.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.481e-05/0.3396, allocations: 20.22 kB / 427.5 MB, free: 39.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.394e-05/0.3396, allocations: 13 kB / 427.5 MB, free: 39.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3396, allocations: 0 / 427.5 MB, free: 39.73 MB / 350.1 MB Notification: Performance of Templates: time 0.003508/0.3431, allocations: 1.412 MB / 428.9 MB, free: 39.62 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)