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.0008763/0.0008764, allocations: 96.94 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007527/0.0007526, allocations: 181.7 kB / 16.96 MB, free: 6.895 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.366/1.366, allocations: 223.3 MB / 241 MB, free: 5.324 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.1604/0.1604, allocations: 12.03 MB / 304.2 MB, free: 1.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002692/0.0002693, allocations: 12 kB / 368.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08083/0.08111, allocations: 53.35 MB / 421.6 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002362/0.08351, allocations: 1.921 MB / 423.5 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002458/0.08377, allocations: 131.6 kB / 423.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.319e-05/0.08383, allocations: 0 / 423.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.08398, allocations: 23.84 kB / 423.7 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.554e-05/0.08404, allocations: 7.938 kB / 423.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001801/0.08423, allocations: 39.89 kB / 423.7 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.08434, allocations: 67.84 kB / 423.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.036e-05/0.08444, allocations: 20.22 kB / 423.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.657e-05/0.08449, allocations: 27.86 kB / 423.9 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.973e-05/0.08455, allocations: 27.84 kB / 423.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.08457, allocations: 8 kB / 423.9 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.02e-05/0.08464, allocations: 20 kB / 423.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.325e-05/0.08469, allocations: 15.92 kB / 423.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.257e-05/0.08476, allocations: 65.44 kB / 424 MB, free: 1.297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.08491, allocations: 107.6 kB / 424.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.08493, allocations: 3.938 kB / 424.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.08493, allocations: 0 / 424.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.08494, allocations: 0 / 424.1 MB, free: 1.188 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003879/0.08533, allocations: 427 kB / 424.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.08537, allocations: 15.97 kB / 424.5 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.599e-05/0.08542, allocations: 16.75 kB / 424.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001801/0.0856, allocations: 184.3 kB / 424.7 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.08563, allocations: 12.36 kB / 424.7 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.08565, allocations: 8.375 kB / 424.8 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.08605, allocations: 271.5 kB / 425 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.08607, allocations: 8 kB / 425 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.08609, allocations: 7.984 kB / 425 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.08611, allocations: 7.984 kB / 425 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.08623, allocations: 63.91 kB / 425.1 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1474/0.2337, allocations: 296 kB / 425.4 MB, free: 39.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.2339, allocations: 134.7 kB / 425.5 MB, free: 39.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.696e-05/0.234, allocations: 68.25 kB / 425.6 MB, free: 39.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.087e-05/0.234, allocations: 1.344 kB / 425.6 MB, free: 39.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.436e-05/0.234, allocations: 37.88 kB / 425.6 MB, free: 39.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.365e-06/0.234, allocations: 0 / 425.6 MB, free: 39.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003776/0.2344, allocations: 255.4 kB / 425.9 MB, free: 39.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.2345, allocations: 139.2 kB / 426 MB, free: 38.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.85e-05/0.2345, allocations: 123.9 kB / 426.1 MB, free: 38.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.192e-05/0.2345, allocations: 29.58 kB / 426.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.235e-05/0.2346, allocations: 94.14 kB / 426.3 MB, free: 38.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.2346, allocations: 14.81 kB / 426.3 MB, free: 38.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.167e-05/0.2346, allocations: 29.91 kB / 426.3 MB, free: 38.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.758e-05/0.2347, allocations: 324.1 kB / 426.6 MB, free: 38.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.711e-05/0.2348, allocations: 28.97 kB / 426.6 MB, free: 38.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.41e-05/0.2348, allocations: 159.2 kB / 426.8 MB, free: 38.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.235, allocations: 311.2 kB / 427.1 MB, free: 37.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.235, allocations: 4.688 kB / 427.1 MB, free: 37.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002716/0.2353, allocations: 249.7 kB / 427.4 MB, free: 37.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.836e-05/0.2353, allocations: 62.98 kB / 427.4 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.2353, allocations: 2.938 kB / 427.4 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.2354, allocations: 5.781 kB / 427.4 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.039e-05/0.2355, allocations: 29.08 kB / 427.5 MB, free: 37.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.377e-06/0.2355, allocations: 12.31 kB / 427.5 MB, free: 37.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.002e-05/0.2356, allocations: 15.89 kB / 427.5 MB, free: 37.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.508e-05/0.2356, allocations: 15.41 kB / 427.5 MB, free: 37.75 MB / 350.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.0001243/0.2357, allocations: 210 kB / 427.7 MB, free: 37.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.2358, allocations: 122.3 kB / 427.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.59e-05/0.2359, allocations: 14.38 kB / 427.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.358e-05/0.2359, allocations: 9.172 kB / 427.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.2359, allocations: 0.6562 kB / 427.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2359, allocations: 1.828 kB / 427.8 MB, free: 37.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.236, allocations: 188.2 kB / 428 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.2361, allocations: 6.547 kB / 428 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.134e-05/0.2361, allocations: 8.656 kB / 428 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2361, allocations: 6.531 kB / 428 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.2361, allocations: 2.688 kB / 428.1 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.2361, allocations: 0.75 kB / 428.1 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2361, allocations: 0 / 428.1 MB, free: 37.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002274/0.2363, allocations: 325.5 kB / 428.4 MB, free: 37.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.29e-05/0.2364, allocations: 96.27 kB / 428.5 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.2364, allocations: 5.5 kB / 428.5 MB, free: 37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.774e-05/0.2365, allocations: 11.03 kB / 428.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.509e-05/0.2365, allocations: 3.766 kB / 428.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.2365, allocations: 3.703 kB / 428.5 MB, free: 36.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.335e-05/0.2365, allocations: 95.98 kB / 428.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2365, allocations: 0 / 428.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003074/0.2369, allocations: 30.34 kB / 428.6 MB, free: 36.92 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: 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.0004514/0.2373, allocations: 275.8 kB / 428.9 MB, free: 36.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002279/0.2376, allocations: 237.1 kB / 429.1 MB, free: 36.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2376, allocations: 0 / 429.1 MB, free: 36.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.99e-05/0.2376, allocations: 124 kB / 429.2 MB, free: 36.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.238, allocations: 83.38 kB / 429.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003999/0.2384, allocations: 283.1 kB / 429.6 MB, free: 36.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.2385, allocations: 0.7238 MB / 430.3 MB, free: 35.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.047e-05/0.2385, allocations: 16.12 kB / 430.3 MB, free: 35.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.711e-05/0.2386, allocations: 13.28 kB / 430.3 MB, free: 35.65 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2386, allocations: 0 / 430.3 MB, free: 35.65 MB / 350.1 MB Notification: Performance of Templates: time 0.00338/0.242, allocations: 1.479 MB / 431.8 MB, free: 35.5 MB / 350.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)