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.0008993/0.0008993, allocations: 84.19 kB / 15.75 MB, free: 416 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.0009852/0.0009853, allocations: 176.5 kB / 16.63 MB, free: 6.887 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.283/1.283, allocations: 223.3 MB / 240.7 MB, free: 5.406 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.1529/0.1529, allocations: 12.04 MB / 303.8 MB, free: 1.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003895/0.0003896, allocations: 8 kB / 367.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09351/0.09391, allocations: 53.35 MB / 421 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002234/0.09618, allocations: 1.889 MB / 422.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002253/0.09642, allocations: 127.6 kB / 423 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.755e-05/0.09649, allocations: 4 kB / 423 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001338/0.09663, allocations: 23.91 kB / 423.1 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.023e-05/0.09669, allocations: 3.938 kB / 423.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001728/0.09687, allocations: 39.89 kB / 423.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.09698, allocations: 59.84 kB / 423.2 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.529e-05/0.09707, allocations: 12.22 kB / 423.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.991e-05/0.09713, allocations: 27.91 kB / 423.2 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.017e-05/0.09719, allocations: 27.86 kB / 423.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.865e-05/0.09721, allocations: 7.938 kB / 423.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.736e-05/0.09727, allocations: 27.92 kB / 423.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.638e-05/0.09732, allocations: 8 kB / 423.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.926e-05/0.09736, allocations: 41.64 kB / 423.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000121/0.09749, allocations: 79.78 kB / 423.4 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.0975, allocations: 0 / 423.4 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.09751, allocations: 0 / 423.4 MB, free: 1.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.09752, allocations: 0 / 423.4 MB, free: 1.684 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.0003717/0.09789, allocations: 438.7 kB / 423.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.09793, allocations: 16.02 kB / 423.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.903e-05/0.09797, allocations: 15.77 kB / 423.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.09816, allocations: 183 kB / 424 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.09818, allocations: 8 kB / 424 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.681e-05/0.09821, allocations: 4 kB / 424 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003852/0.0986, allocations: 270.9 kB / 424.3 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.09861, allocations: 0 / 424.3 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.09863, allocations: 4 kB / 424.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.219e-05/0.09866, allocations: 15.94 kB / 424.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001083/0.09877, allocations: 67.89 kB / 424.4 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003252/0.09911, allocations: 305.5 kB / 424.7 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.09928, allocations: 133.4 kB / 424.8 MB, free: 68 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1546/0.2539, allocations: 70.41 kB / 424.9 MB, free: 39.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.2539, allocations: 3.797 kB / 424.9 MB, free: 39.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.65e-05/0.2539, allocations: 31.59 kB / 424.9 MB, free: 39.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.906e-06/0.254, allocations: 0 / 424.9 MB, free: 39.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004359/0.2544, allocations: 253.9 kB / 425.2 MB, free: 39.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.969e-05/0.2544, allocations: 133.5 kB / 425.3 MB, free: 39.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.242e-05/0.2545, allocations: 128 kB / 425.4 MB, free: 39.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.2546, allocations: 27.7 kB / 425.4 MB, free: 39.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.475e-05/0.2546, allocations: 90.11 kB / 425.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.2546, allocations: 16.25 kB / 425.5 MB, free: 38.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.334e-06/0.2546, allocations: 7.062 kB / 425.6 MB, free: 38.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.074e-05/0.2547, allocations: 325.3 kB / 425.9 MB, free: 38.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.277e-05/0.2547, allocations: 26.02 kB / 425.9 MB, free: 38.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.268e-05/0.2548, allocations: 159.6 kB / 426.1 MB, free: 38.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.404e-05/0.2549, allocations: 113.4 kB / 426.2 MB, free: 38.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.2549, allocations: 1.406 kB / 426.2 MB, free: 38.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000274/0.2552, allocations: 253.2 kB / 426.4 MB, free: 38.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.2552, allocations: 59.64 kB / 426.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.2553, allocations: 6.906 kB / 426.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.2553, allocations: 5.875 kB / 426.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.468e-05/0.2554, allocations: 25.98 kB / 426.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.2554, allocations: 7.766 kB / 426.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.121e-05/0.2555, allocations: 19.16 kB / 426.5 MB, free: 38.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.2555, allocations: 16.95 kB / 426.5 MB, free: 38.23 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.0001266/0.2556, allocations: 203.5 kB / 426.7 MB, free: 38.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.2558, allocations: 121.6 kB / 426.9 MB, free: 38.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.848e-05/0.2558, allocations: 16.17 kB / 426.9 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/0.2558, allocations: 6.531 kB / 426.9 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2558, allocations: 5.125 kB / 426.9 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.2558, allocations: 4.281 kB / 426.9 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001333/0.256, allocations: 196.3 kB / 427.1 MB, free: 37.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.256, allocations: 0 / 427.1 MB, free: 37.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.245e-05/0.256, allocations: 4.062 kB / 427.1 MB, free: 37.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.256, allocations: 1.031 kB / 427.1 MB, free: 37.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.256, allocations: 6.344 kB / 427.1 MB, free: 37.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.256, allocations: 3.938 kB / 427.1 MB, free: 37.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.256, allocations: 1.453 kB / 427.1 MB, free: 37.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002221/0.2563, allocations: 325.7 kB / 427.4 MB, free: 37.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.526e-05/0.2563, allocations: 88.64 kB / 427.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.2563, allocations: 4.609 kB / 427.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.393e-05/0.2564, allocations: 7.188 kB / 427.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.025e-05/0.2564, allocations: 4.609 kB / 427.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.2564, allocations: 3.516 kB / 427.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.184e-05/0.2565, allocations: 93.45 kB / 427.6 MB, free: 37.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2565, allocations: 2.938 kB / 427.6 MB, free: 37.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002982/0.2568, allocations: 30.81 kB / 427.7 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.0004483/0.2572, allocations: 270.8 kB / 427.9 MB, free: 37.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002246/0.2575, allocations: 242.6 kB / 428.2 MB, free: 37.17 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2575, allocations: 3.828 kB / 428.2 MB, free: 37.17 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.844e-05/0.2575, allocations: 121.9 kB / 428.3 MB, free: 37.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.2579, allocations: 91.09 kB / 428.4 MB, free: 37.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003979/0.2583, allocations: 275.2 kB / 428.6 MB, free: 36.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.2584, allocations: 0.7096 MB / 429.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.298e-05/0.2584, allocations: 23.06 kB / 429.4 MB, free: 36.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.734e-05/0.2585, allocations: 13.84 kB / 429.4 MB, free: 36.16 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2585, allocations: 0 / 429.4 MB, free: 36.16 MB / 350.1 MB Notification: Performance of Templates: time 0.003318/0.2618, allocations: 1.447 MB / 430.8 MB, free: 36 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)