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.001038/0.001038, allocations: 122.4 kB / 17.13 MB, free: 5.891 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.001074/0.001074, allocations: 194.3 kB / 18.06 MB, free: 4.977 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.273/1.273, allocations: 222.9 MB / 241.8 MB, free: 15.05 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.05683/0.05683, allocations: 12.05 MB / 304 MB, free: 3.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 63.91 kB / 420.7 MB, free: 17.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08556/0.08673, allocations: 52.31 MB / 473 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003804/0.09057, allocations: 2.247 MB / 475.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003146/0.09091, allocations: 119.6 kB / 475.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.087e-05/0.09102, allocations: 4 kB / 475.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001728/0.0912, allocations: 19.8 kB / 475.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.892e-05/0.09132, allocations: 7.938 kB / 475.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002304/0.09156, allocations: 43.88 kB / 475.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001691/0.09173, allocations: 87.77 kB / 475.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.09187, allocations: 28.19 kB / 475.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.484e-05/0.09194, allocations: 31.86 kB / 475.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.784e-05/0.09201, allocations: 31.84 kB / 475.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.722e-05/0.09204, allocations: 8 kB / 475.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.284e-05/0.09213, allocations: 27.98 kB / 475.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.36e-05/0.0922, allocations: 15.92 kB / 475.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.214e-05/0.09227, allocations: 43.73 kB / 475.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002235/0.0925, allocations: 119.5 kB / 475.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.09251, allocations: 0 / 475.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.09252, allocations: 4 kB / 475.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.09253, allocations: 0 / 475.9 MB, free: 10.02 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.0004853/0.09302, allocations: 442.6 kB / 476.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.09306, allocations: 8.031 kB / 476.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.412e-05/0.09312, allocations: 16.75 kB / 476.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002855/0.09342, allocations: 204.1 kB / 476.5 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.09344, allocations: 4.375 kB / 476.5 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.735e-05/0.09346, allocations: 8.375 kB / 476.5 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004289/0.0939, allocations: 278.2 kB / 476.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.09392, allocations: 0 / 476.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.09394, allocations: 7.938 kB / 476.8 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/0.09397, allocations: 8 kB / 476.8 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.09409, allocations: 67.95 kB / 476.9 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003947/0.09449, allocations: 305.5 kB / 477.2 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000182/0.09468, allocations: 133.4 kB / 477.3 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.484e-05/0.09479, allocations: 73.81 kB / 477.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/0.09481, allocations: 7.984 kB / 477.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.09484, allocations: 30.56 kB / 477.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.09485, allocations: 0 / 477.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004193/0.09527, allocations: 254.4 kB / 477.7 MB, free: 8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.94e-05/0.09536, allocations: 144.5 kB / 477.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.09547, allocations: 125.7 kB / 477.9 MB, free: 7.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.0955, allocations: 29.7 kB / 478 MB, free: 7.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.504e-05/0.09556, allocations: 88.42 kB / 478.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.09559, allocations: 19.89 kB / 478.1 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.335e-05/0.09566, allocations: 41.7 kB / 478.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.09576, allocations: 322.8 kB / 478.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.957e-05/0.09583, allocations: 31.98 kB / 478.5 MB, free: 7.145 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.09596, allocations: 153.1 kB / 478.6 MB, free: 6.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002443/0.09621, allocations: 307.7 kB / 478.9 MB, free: 6.547 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.09622, allocations: 0 / 478.9 MB, free: 6.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003215/0.09655, allocations: 256.5 kB / 479.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.701e-05/0.0966, allocations: 63.39 kB / 479.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.09662, allocations: 7.938 kB / 479.2 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.09664, allocations: 4 kB / 479.2 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.09675, allocations: 35.86 kB / 479.3 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.09676, allocations: 4.594 kB / 479.3 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.342e-05/0.09685, allocations: 19.84 kB / 479.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.09688, allocations: 16 kB / 479.3 MB, free: 6.117 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.0001566/0.09704, allocations: 199.4 kB / 479.5 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.09721, allocations: 121.4 kB / 479.6 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.346e-05/0.09725, allocations: 12.84 kB / 479.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/0.09728, allocations: 15.92 kB / 479.7 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.09729, allocations: 192 / 479.7 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.09729, allocations: 0 / 479.7 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.09749, allocations: 201.5 kB / 479.9 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-06/0.0975, allocations: 0 / 479.9 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.334e-05/0.09752, allocations: 4 kB / 479.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.09753, allocations: 0 / 479.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.09754, allocations: 3.938 kB / 479.9 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.09755, allocations: 7.938 kB / 479.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.09756, allocations: 0 / 479.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003049/0.09786, allocations: 329.4 kB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.181e-05/0.09792, allocations: 85.02 kB / 480.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.09795, allocations: 4 kB / 480.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.362e-05/0.098, allocations: 0 / 480.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.521e-05/0.09803, allocations: 8.141 kB / 480.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.09805, allocations: 11.98 kB / 480.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.191e-05/0.09811, allocations: 87.28 kB / 480.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09811, allocations: 0 / 480.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003111/0.09843, allocations: 27.98 kB / 480.4 MB, free: 4.898 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.0005283/0.09896, allocations: 275.5 kB / 480.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003514/0.09932, allocations: 255.3 kB / 480.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.09934, allocations: 0 / 480.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.255e-05/0.09943, allocations: 119.1 kB / 481 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/0.09979, allocations: 93.03 kB / 481.1 MB, free: 4.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004531/0.1003, allocations: 257.5 kB / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.1005, allocations: 0.7154 MB / 482.1 MB, free: 3.164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.436e-05/0.1006, allocations: 15.48 kB / 482.1 MB, free: 3.148 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1006, allocations: 4 kB / 482.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of Templates: time 0.003521/0.1041, allocations: 1.754 MB / 483.9 MB, free: 1.387 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)