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.0009052/0.0009051, allocations: 89.11 kB / 16.71 MB, free: 6.152 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.0009493/0.0009494, allocations: 175.7 kB / 17.62 MB, free: 5.859 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.224/1.224, allocations: 223.3 MB / 241.7 MB, free: 188 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05485/0.05485, allocations: 12.06 MB / 304.8 MB, free: 3.23 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002468/0.0002468, allocations: 8 kB / 368.9 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.1618, allocations: 53.35 MB / 422.3 MB, free: 20.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.002154/0.164, allocations: 2.336 MB / 424.6 MB, free: 18.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004534/0.1645, allocations: 367.8 kB / 425 MB, free: 17.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.762e-05/0.1645, allocations: 5.562 kB / 425 MB, free: 17.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001797/0.1647, allocations: 43.77 kB / 425 MB, free: 17.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000107/0.1648, allocations: 35.83 kB / 425.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001677/0.165, allocations: 79.78 kB / 425.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001173/0.1651, allocations: 140.8 kB / 425.3 MB, free: 17.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.1653, allocations: 79.14 kB / 425.4 MB, free: 17.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.681e-05/0.1653, allocations: 39.78 kB / 425.4 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.493e-05/0.1654, allocations: 55.69 kB / 425.5 MB, free: 17.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.647e-05/0.1654, allocations: 11.88 kB / 425.5 MB, free: 17.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001338/0.1656, allocations: 123.9 kB / 425.6 MB, free: 17.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.248e-05/0.1656, allocations: 27.91 kB / 425.6 MB, free: 17.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.81e-05/0.1657, allocations: 77.31 kB / 425.7 MB, free: 17.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001565/0.1658, allocations: 173.7 kB / 425.9 MB, free: 16.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1659, allocations: 4 kB / 425.9 MB, free: 16.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1659, allocations: 0 / 425.9 MB, free: 16.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.626e-06/0.1659, allocations: 0 / 425.9 MB, free: 16.99 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.000389/0.1663, allocations: 411.2 kB / 426.3 MB, free: 16.53 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.1663, allocations: 11.97 kB / 426.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.023e-05/0.1664, allocations: 24.75 kB / 426.3 MB, free: 16.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001621/0.1665, allocations: 224 kB / 426.5 MB, free: 16.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.1665, allocations: 12.55 kB / 426.5 MB, free: 16.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.1666, allocations: 12.38 kB / 426.5 MB, free: 16.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002145/0.1668, allocations: 152.8 kB / 426.7 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.1668, allocations: 8.172 kB / 426.7 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.1668, allocations: 7.938 kB / 426.7 MB, free: 16.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1668, allocations: 4 kB / 426.7 MB, free: 16.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000133/0.167, allocations: 80.14 kB / 426.8 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004744/0.1675, allocations: 473.5 kB / 427.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.929e-05/0.1676, allocations: 77.19 kB / 427.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.501e-05/0.1676, allocations: 41.8 kB / 427.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.1677, allocations: 7.984 kB / 427.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001374/0.1678, allocations: 93.03 kB / 427.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.1678, allocations: 0 / 427.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002341/0.1681, allocations: 129.4 kB / 427.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.1681, allocations: 85.09 kB / 427.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.1682, allocations: 163.7 kB / 427.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.05e-05/0.1682, allocations: 29.7 kB / 427.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.478e-05/0.1683, allocations: 124.2 kB / 428 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.909e-05/0.1683, allocations: 31.55 kB / 428 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.572e-05/0.1683, allocations: 17.72 kB / 428 MB, free: 14.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.553e-05/0.1684, allocations: 322.8 kB / 428.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.854e-05/0.1684, allocations: 31.92 kB / 428.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.272e-05/0.1685, allocations: 63.58 kB / 428.4 MB, free: 14.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.162e-05/0.1686, allocations: 83.41 kB / 428.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1686, allocations: 0 / 428.5 MB, free: 14.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001538/0.1687, allocations: 121.5 kB / 428.6 MB, free: 13.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.1688, allocations: 8 kB / 428.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1688, allocations: 0 / 428.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.1688, allocations: 8.062 kB / 428.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.808e-05/0.1689, allocations: 11.98 kB / 428.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.1689, allocations: 0 / 428.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.753e-05/0.1689, allocations: 7.906 kB / 428.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.1689, allocations: 7.984 kB / 428.7 MB, free: 13.87 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 7.109e-05/0.169, allocations: 141.7 kB / 428.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.654e-05/0.169, allocations: 7.906 kB / 428.8 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.475e-05/0.1691, allocations: 17.02 kB / 428.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.1691, allocations: 0 / 428.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1691, allocations: 4 kB / 428.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.1691, allocations: 8 kB / 428.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/0.1692, allocations: 233.5 kB / 429.1 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.1692, allocations: 4 kB / 429.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.046e-05/0.1693, allocations: 0 / 429.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1693, allocations: 7.938 kB / 429.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.1693, allocations: 0 / 429.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1693, allocations: 0 / 429.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1693, allocations: 0 / 429.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001447/0.1694, allocations: 141.7 kB / 429.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.362e-05/0.1695, allocations: 93 kB / 429.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/0.1695, allocations: 0 / 429.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.78e-05/0.1695, allocations: 0 / 429.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.1696, allocations: 15.92 kB / 429.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.1696, allocations: 4 kB / 429.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.422e-05/0.1696, allocations: 111.2 kB / 429.5 MB, free: 13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1696, allocations: 0 / 429.5 MB, free: 13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002401/0.1699, allocations: 47.84 kB / 429.5 MB, free: 12.95 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.0004226/0.1703, allocations: 243.9 kB / 429.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001613/0.1705, allocations: 101.6 kB / 429.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.1705, allocations: 0 / 429.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.436e-05/0.1706, allocations: 61.81 kB / 429.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001582/0.1707, allocations: 17.98 kB / 429.9 MB, free: 12.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003945/0.1711, allocations: 372.8 kB / 430.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.1713, allocations: 0.7238 MB / 431 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.542e-05/0.1713, allocations: 15.44 kB / 431 MB, free: 11.39 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1713, allocations: 0 / 431 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Templates: time 0.003306/0.1746, allocations: 2.598 MB / 433.6 MB, free: 8.801 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)