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.0008312/0.0008311, allocations: 101 kB / 15.73 MB, free: 436 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.0008363/0.0008364, allocations: 182.3 kB / 16.62 MB, free: 6.422 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.167/1.167, allocations: 223.2 MB / 240.6 MB, free: 5.465 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.152/0.152, allocations: 12.02 MB / 303.7 MB, free: 1.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002627/0.0002628, allocations: 8 kB / 367.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0897/0.08997, allocations: 53.35 MB / 420.9 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002348/0.09237, allocations: 1.893 MB / 422.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002093/0.0926, allocations: 119.7 kB / 422.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.57e-05/0.09266, allocations: 4 kB / 422.9 MB, free: 2.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.828e-05/0.09276, allocations: 15.88 kB / 422.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.607e-05/0.09284, allocations: 11.91 kB / 422.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001871/0.09303, allocations: 43.78 kB / 423 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.09315, allocations: 47.88 kB / 423 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.153e-05/0.09323, allocations: 16.22 kB / 423 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.34e-05/0.09328, allocations: 23.92 kB / 423.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.633e-05/0.09334, allocations: 27.84 kB / 423.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.09336, allocations: 4 kB / 423.1 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.848e-05/0.09341, allocations: 11.94 kB / 423.1 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.797e-05/0.09345, allocations: 19.92 kB / 423.1 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.813e-05/0.0935, allocations: 37.64 kB / 423.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001121/0.09362, allocations: 67.88 kB / 423.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.09363, allocations: 4 kB / 423.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.09363, allocations: 0 / 423.2 MB, free: 1.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.09364, allocations: 0 / 423.2 MB, free: 1.777 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.0003794/0.09403, allocations: 434.8 kB / 423.7 MB, free: 1.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.09407, allocations: 8.031 kB / 423.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.392e-05/0.09412, allocations: 19.77 kB / 423.7 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002011/0.09432, allocations: 202.9 kB / 423.9 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.09434, allocations: 7.938 kB / 423.9 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.09437, allocations: 12 kB / 423.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003678/0.09474, allocations: 262.8 kB / 424.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.09476, allocations: 0 / 424.2 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.09478, allocations: 7.953 kB / 424.2 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.825e-05/0.0948, allocations: 8 kB / 424.2 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001105/0.09492, allocations: 63.97 kB / 424.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003098/0.09524, allocations: 301.5 kB / 424.5 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.09542, allocations: 129.4 kB / 424.7 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.09543, allocations: 3.953 kB / 424.7 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.193e-05/0.09546, allocations: 38.64 kB / 424.7 MB, free: 112 kB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.285e-06/0.09547, allocations: 96 / 424.7 MB, free: 112 kB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.1545/0.2499, allocations: 414.6 kB / 425.1 MB, free: 39.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.26e-05/0.25, allocations: 140.3 kB / 425.2 MB, free: 39.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.044e-05/0.2501, allocations: 122.2 kB / 425.4 MB, free: 39.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/0.2501, allocations: 27.3 kB / 425.4 MB, free: 39.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.399e-05/0.2502, allocations: 92.84 kB / 425.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.2502, allocations: 19.64 kB / 425.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.426e-06/0.2502, allocations: 4.594 kB / 425.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.222e-05/0.2502, allocations: 324.2 kB / 425.8 MB, free: 38.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.634e-05/0.2503, allocations: 28.34 kB / 425.8 MB, free: 38.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.18e-05/0.2504, allocations: 158 kB / 426 MB, free: 38.49 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.514e-05/0.2505, allocations: 106.8 kB / 426.1 MB, free: 38.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.2505, allocations: 3.469 kB / 426.1 MB, free: 38.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002597/0.2508, allocations: 254 kB / 426.4 MB, free: 38.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.058e-05/0.2508, allocations: 67.33 kB / 426.4 MB, free: 38.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.2508, allocations: 5.938 kB / 426.4 MB, free: 38.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.2508, allocations: 7.781 kB / 426.4 MB, free: 38.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.692e-05/0.2509, allocations: 26.59 kB / 426.5 MB, free: 38.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.689e-06/0.2509, allocations: 9.469 kB / 426.5 MB, free: 38.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.79e-05/0.251, allocations: 20.08 kB / 426.5 MB, free: 38.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.2511, allocations: 8.969 kB / 426.5 MB, free: 38.26 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.2512, allocations: 207.5 kB / 426.7 MB, free: 38.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.2513, allocations: 121.8 kB / 426.8 MB, free: 38.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.63e-05/0.2513, allocations: 15.19 kB / 426.8 MB, free: 38.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.2514, allocations: 11.28 kB / 426.8 MB, free: 38.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2514, allocations: 0.8438 kB / 426.8 MB, free: 38.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2514, allocations: 1.5 kB / 426.9 MB, free: 38.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.2515, allocations: 189.7 kB / 427 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2515, allocations: 0.6562 kB / 427 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.069e-05/0.2515, allocations: 7.656 kB / 427 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2515, allocations: 0 / 427 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.2516, allocations: 9.125 kB / 427.1 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2516, allocations: 0 / 427.1 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2516, allocations: 0.6562 kB / 427.1 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002201/0.2518, allocations: 342.7 kB / 427.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.319e-05/0.2518, allocations: 84.58 kB / 427.5 MB, free: 37.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.2519, allocations: 7.938 kB / 427.5 MB, free: 37.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.847e-05/0.2519, allocations: 9.672 kB / 427.5 MB, free: 37.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.304e-05/0.252, allocations: 2.734 kB / 427.5 MB, free: 37.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.252, allocations: 5.625 kB / 427.5 MB, free: 37.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.787e-05/0.252, allocations: 91.62 kB / 427.6 MB, free: 37.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.252, allocations: 0 / 427.6 MB, free: 37.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002862/0.2523, allocations: 31.11 kB / 427.6 MB, free: 37.43 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004286/0.2527, allocations: 263.5 kB / 427.9 MB, free: 37.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002085/0.2529, allocations: 241.2 kB / 428.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.253, allocations: 0 / 428.1 MB, free: 37.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.58e-05/0.253, allocations: 123.8 kB / 428.2 MB, free: 37.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002279/0.2532, allocations: 82.34 kB / 428.3 MB, free: 37.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003459/0.2536, allocations: 276.7 kB / 428.6 MB, free: 36.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.2537, allocations: 0.7166 MB / 429.3 MB, free: 36.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.829e-05/0.2538, allocations: 18.66 kB / 429.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.828e-05/0.2538, allocations: 13.25 kB / 429.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2538, allocations: 0 / 429.3 MB, free: 36.16 MB / 350.1 MB Notification: Performance of Templates: time 0.003153/0.257, allocations: 1.446 MB / 430.8 MB, free: 36.01 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)