Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008753/0.0008754, allocations: 92.02 kB / 16.71 MB, free: 6.145 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.0009308/0.0009308, allocations: 177.4 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.229/1.229, 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.05453/0.05453, allocations: 12.05 MB / 304.8 MB, free: 2.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002651/0.0002651, allocations: 8 kB / 368.9 MB, free: 2.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1607/0.161, allocations: 53.35 MB / 422.3 MB, free: 20.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.001827/0.1629, allocations: 1.931 MB / 424.2 MB, free: 18.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001959/0.1631, allocations: 128.3 kB / 424.3 MB, free: 18.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.711e-05/0.1631, allocations: 4 kB / 424.3 MB, free: 18.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.1633, allocations: 25.2 kB / 424.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.254e-05/0.1633, allocations: 3.984 kB / 424.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001619/0.1635, allocations: 39.91 kB / 424.4 MB, free: 18.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.629e-05/0.1636, allocations: 67.78 kB / 424.5 MB, free: 18.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.48e-05/0.1637, allocations: 24.92 kB / 424.5 MB, free: 18.01 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.003e-05/0.1637, allocations: 32.88 kB / 424.5 MB, free: 17.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.15e-05/0.1638, allocations: 23.86 kB / 424.6 MB, free: 17.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.663e-05/0.1638, allocations: 0 / 424.6 MB, free: 17.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.007e-05/0.1639, allocations: 24.77 kB / 424.6 MB, free: 17.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.919e-05/0.1639, allocations: 19.92 kB / 424.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.973e-05/0.164, allocations: 66.09 kB / 424.7 MB, free: 17.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.794e-05/0.1641, allocations: 71.8 kB / 424.7 MB, free: 17.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1641, allocations: 5.469 kB / 424.7 MB, free: 17.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1641, allocations: 0 / 424.7 MB, free: 17.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.016e-06/0.1641, allocations: 0 / 424.7 MB, free: 17.77 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0002706/0.1644, allocations: 432.7 kB / 425.2 MB, free: 17.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.764e-05/0.1644, allocations: 8.031 kB / 425.2 MB, free: 17.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.573e-05/0.1644, allocations: 16.78 kB / 425.2 MB, free: 17.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.1646, allocations: 192.1 kB / 425.4 MB, free: 17.03 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.1646, allocations: 8.375 kB / 425.4 MB, free: 17.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.47e-05/0.1646, allocations: 8.375 kB / 425.4 MB, free: 17.02 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003222/0.165, allocations: 280 kB / 425.7 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.165, allocations: 0 / 425.7 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.165, allocations: 0 / 425.7 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.165, allocations: 12 kB / 425.7 MB, free: 16.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.221e-05/0.1651, allocations: 71.89 kB / 425.8 MB, free: 16.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002449/0.1654, allocations: 293.7 kB / 426 MB, free: 16.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.1655, allocations: 137.4 kB / 426.2 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.813e-05/0.1656, allocations: 77.7 kB / 426.3 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.312e-06/0.1656, allocations: 4 kB / 426.3 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.46e-05/0.1656, allocations: 34.56 kB / 426.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.1656, allocations: 0 / 426.3 MB, free: 16.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.000322/0.166, allocations: 255 kB / 426.5 MB, free: 15.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.166, allocations: 136.5 kB / 426.7 MB, free: 15.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.116e-05/0.1661, allocations: 121.8 kB / 426.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.1661, allocations: 37.83 kB / 426.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.846e-05/0.1661, allocations: 92.36 kB / 426.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.1661, allocations: 19.83 kB / 426.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.976e-05/0.1662, allocations: 29.7 kB / 427 MB, free: 15.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.603e-05/0.1662, allocations: 326.8 kB / 427.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.159e-05/0.1663, allocations: 31.92 kB / 427.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.763e-05/0.1664, allocations: 150.6 kB / 427.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.1665, allocations: 307.7 kB / 427.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.1665, allocations: 0 / 427.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002497/0.1668, allocations: 260.9 kB / 428 MB, free: 14.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.1668, allocations: 59.41 kB / 428.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1668, allocations: 4 kB / 428.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.1668, allocations: 8 kB / 428.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.972e-05/0.1669, allocations: 27.92 kB / 428.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.1669, allocations: 11.88 kB / 428.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.527e-05/0.167, allocations: 15.91 kB / 428.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.167, allocations: 12 kB / 428.2 MB, free: 13.9 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 19 (synchronizeRealtime.initialized,keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],keyboardInput.KeyCode[6],keyboardInput.KeyCode[5],keyboardInput.KeyCode[4],keyboardInput.KeyCode[3],keyboardInput.KeyCode[2],keyboardInput.KeyCode[1],keyboardInput.keySpace,keyboardInput.keyReturn,keyboardInput.keyLeft,keyboardInput.keyRight,keyboardInput.keyDown,keyboardInput.keyUp,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.0001143/0.1672, allocations: 207.5 kB / 428.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.1673, allocations: 117.6 kB / 428.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.441e-05/0.1673, allocations: 12.83 kB / 428.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.1673, allocations: 12 kB / 428.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1673, allocations: 3.938 kB / 428.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1674, allocations: 3.938 kB / 428.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.1675, allocations: 185.5 kB / 428.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1675, allocations: 0 / 428.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.146e-05/0.1675, allocations: 7.938 kB / 428.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1675, allocations: 4 kB / 428.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.1675, allocations: 7.984 kB / 428.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1675, allocations: 0 / 428.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1675, allocations: 7.938 kB / 428.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002172/0.1678, allocations: 317 kB / 429 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.026e-05/0.1678, allocations: 89.09 kB / 429.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.1678, allocations: 11.92 kB / 429.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.695e-05/0.1679, allocations: 8 kB / 429.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.019e-05/0.1679, allocations: 7.984 kB / 429.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.1679, allocations: 4 kB / 429.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.904e-05/0.1679, allocations: 99.2 kB / 429.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.168, allocations: 0 / 429.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.1683, allocations: 28 kB / 429.3 MB, free: 12.66 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: 19 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,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: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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.0004317/0.1687, allocations: 268.8 kB / 429.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002187/0.1689, allocations: 238.5 kB / 429.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1689, allocations: 0 / 429.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.887e-05/0.169, allocations: 124 kB / 429.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.1693, allocations: 78.19 kB / 430 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003879/0.1697, allocations: 324.6 kB / 430.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.796e-05/0.1698, allocations: 0.7122 MB / 431 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.638e-05/0.1698, allocations: 15.44 kB / 431 MB, free: 10.87 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1698, allocations: 0 / 431 MB, free: 10.87 MB / 302.1 MB Notification: Performance of Templates: time 0.002587/0.1724, allocations: 1.747 MB / 432.7 MB, free: 9.129 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)