Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.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.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007263/0.0007263, allocations: 90.33 kB / 16.71 MB, free: 6.141 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.000767/0.000767, allocations: 184.3 kB / 17.62 MB, free: 5.855 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.223/1.223, allocations: 223.3 MB / 241.7 MB, free: 14.46 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.05528/0.05528, allocations: 12.06 MB / 304.8 MB, free: 2.902 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002608/0.0002608, allocations: 8.219 kB / 368.9 MB, free: 2.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.1652, allocations: 53.35 MB / 422.3 MB, free: 20.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.002063/0.1673, allocations: 2.324 MB / 424.6 MB, free: 17.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003405/0.1677, allocations: 305.1 kB / 424.9 MB, free: 17.63 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.582e-05/0.1678, allocations: 7.875 kB / 424.9 MB, free: 17.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.1679, allocations: 35.78 kB / 425 MB, free: 17.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.869e-05/0.168, allocations: 15.91 kB / 425 MB, free: 17.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001663/0.1682, allocations: 71.81 kB / 425 MB, free: 17.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001124/0.1683, allocations: 148.6 kB / 425.2 MB, free: 17.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.1684, allocations: 72.67 kB / 425.3 MB, free: 17.29 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.14e-05/0.1685, allocations: 47.78 kB / 425.3 MB, free: 17.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.886e-05/0.1685, allocations: 45.38 kB / 425.3 MB, free: 17.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.1686, allocations: 7.984 kB / 425.4 MB, free: 17.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.09e-05/0.1686, allocations: 19.98 kB / 425.4 MB, free: 17.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.765e-05/0.1687, allocations: 35.84 kB / 425.4 MB, free: 17.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.898e-05/0.1687, allocations: 85.83 kB / 425.5 MB, free: 17.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001291/0.1689, allocations: 145.6 kB / 425.6 MB, free: 16.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1689, allocations: 7.188 kB / 425.6 MB, free: 16.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1689, allocations: 0 / 425.6 MB, free: 16.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.1689, allocations: 0 / 425.6 MB, free: 16.9 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0003527/0.1693, allocations: 434.9 kB / 426.1 MB, free: 16.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.813e-05/0.1693, allocations: 11.97 kB / 426.1 MB, free: 16.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.099e-05/0.1693, allocations: 24.64 kB / 426.1 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/0.1695, allocations: 224 kB / 426.3 MB, free: 16.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.1695, allocations: 14.47 kB / 426.3 MB, free: 16.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/0.1695, allocations: 12.38 kB / 426.4 MB, free: 16.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.1698, allocations: 187.9 kB / 426.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.1698, allocations: 4.188 kB / 426.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.1698, allocations: 7.938 kB / 426.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.1698, allocations: 4 kB / 426.5 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001501/0.17, allocations: 120.1 kB / 426.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004669/0.1705, allocations: 473.5 kB / 427.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/0.1706, allocations: 129.1 kB / 427.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.174e-05/0.1707, allocations: 77.77 kB / 427.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.1707, allocations: 7.969 kB / 427.3 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001525/0.1709, allocations: 133 kB / 427.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.343e-06/0.1709, allocations: 3.938 kB / 427.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.000293/0.1712, allocations: 241.3 kB / 427.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.1712, allocations: 93.09 kB / 427.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.988e-05/0.1713, allocations: 151.2 kB / 427.9 MB, free: 14.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.1713, allocations: 37.7 kB / 428 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.071e-05/0.1714, allocations: 124.6 kB / 428.1 MB, free: 14.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.153e-05/0.1714, allocations: 63.25 kB / 428.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.408e-05/0.1715, allocations: 37.7 kB / 428.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.885e-05/0.1715, allocations: 330.8 kB / 428.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.09e-05/0.1716, allocations: 68.23 kB / 428.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.1717, allocations: 159.7 kB / 428.8 MB, free: 13.49 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002106/0.1719, allocations: 251 kB / 429 MB, free: 13.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.1719, allocations: 7.938 kB / 429 MB, free: 13.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003048/0.1723, allocations: 281.2 kB / 429.3 MB, free: 12.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.1723, allocations: 4 kB / 429.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.1723, allocations: 4 kB / 429.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1723, allocations: 8.188 kB / 429.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.1724, allocations: 31.92 kB / 429.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.1724, allocations: 4 kB / 429.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.718e-05/0.1725, allocations: 15.91 kB / 429.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.1725, allocations: 12 kB / 429.4 MB, free: 12.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 (keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],$PRE.keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.KeyCode[6],$PRE.keyboardInput.KeyCode[6],keyboardInput.keySpace,keyboardInput.KeyCode[5],$PRE.keyboardInput.KeyCode[5],keyboardInput.keyReturn,keyboardInput.KeyCode[4],$PRE.keyboardInput.KeyCode[4],keyboardInput.keyLeft,keyboardInput.KeyCode[3],$PRE.keyboardInput.KeyCode[3],keyboardInput.keyRight,keyboardInput.KeyCode[2],$PRE.keyboardInput.KeyCode[2],keyboardInput.keyDown,keyboardInput.KeyCode[1],$PRE.keyboardInput.KeyCode[1],keyboardInput.keyUp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 0.0001028/0.1726, allocations: 170.3 kB / 429.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.716e-05/0.1726, allocations: 15.81 kB / 429.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.946e-05/0.1727, allocations: 21.19 kB / 429.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.1727, allocations: 0 / 429.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1727, allocations: 0 / 429.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1727, allocations: 11.92 kB / 429.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001358/0.1729, allocations: 237.7 kB / 429.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.1729, allocations: 8 kB / 429.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.425e-05/0.1729, allocations: 11.92 kB / 429.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1729, allocations: 0 / 429.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.1729, allocations: 8 kB / 429.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1729, allocations: 0 / 429.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1729, allocations: 0 / 429.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001944/0.1731, allocations: 235.4 kB / 430.1 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.264e-05/0.1732, allocations: 93.12 kB / 430.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.1732, allocations: 0 / 430.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.385e-05/0.1732, allocations: 11.94 kB / 430.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.497e-05/0.1733, allocations: 11.97 kB / 430.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.622e-06/0.1733, allocations: 4 kB / 430.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.542e-05/0.1733, allocations: 117.1 kB / 430.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1733, allocations: 0 / 430.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002522/0.1736, allocations: 51.78 kB / 430.3 MB, free: 11.76 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: 17 ($whenCondition1,keyboardInput.keyUp,keyboardInput.keyDown,keyboardInput.keyRight,keyboardInput.keyLeft,keyboardInput.keyReturn,keyboardInput.keySpace,keyboardInput.KeyCode[1],keyboardInput.KeyCode[2],keyboardInput.KeyCode[3],keyboardInput.KeyCode[4],keyboardInput.KeyCode[5],keyboardInput.KeyCode[6],keyboardInput.KeyCode[7],keyboardInput.KeyCode[8],keyboardInput.KeyCode[9],keyboardInput.KeyCode[10]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.0003531/0.1739, allocations: 204.8 kB / 430.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002402/0.1742, allocations: 213.4 kB / 430.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1742, allocations: 0 / 430.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.094e-05/0.1743, allocations: 97.67 kB / 430.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001546/0.1745, allocations: 15.94 kB / 430.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004292/0.1749, allocations: 441.7 kB / 431.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001182/0.175, allocations: 0.7403 MB / 432 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.667e-05/0.1751, allocations: 19.38 kB / 432.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1751, allocations: 0 / 432.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Templates: time 0.002998/0.1781, allocations: 2.243 MB / 434.3 MB, free: 7.777 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1)