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.001246/0.001246, allocations: 120.8 kB / 17.13 MB, free: 5.961 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.001312/0.001312, allocations: 193.2 kB / 18.06 MB, free: 5.039 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.278/1.278, allocations: 222.9 MB / 241.7 MB, free: 15.15 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.05653/0.05653, allocations: 12.05 MB / 304 MB, free: 3.098 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 63.91 kB / 420.7 MB, free: 17.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08127/0.0824, allocations: 52.31 MB / 473 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003806/0.08625, allocations: 2.242 MB / 475.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002927/0.08657, allocations: 119.6 kB / 475.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.953e-05/0.08665, allocations: 0 / 475.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001524/0.08681, allocations: 27.78 kB / 475.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.14e-05/0.0869, allocations: 3.938 kB / 475.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002049/0.08711, allocations: 43.89 kB / 475.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000148/0.08727, allocations: 83.77 kB / 475.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.08739, allocations: 32.17 kB / 475.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.856e-05/0.08745, allocations: 31.86 kB / 475.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.009e-05/0.08751, allocations: 35.84 kB / 475.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.466e-05/0.08754, allocations: 4 kB / 475.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.251e-05/0.08762, allocations: 27.98 kB / 475.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.286e-05/0.08768, allocations: 19.92 kB / 475.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.127e-05/0.08774, allocations: 43.73 kB / 475.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.08795, allocations: 107.6 kB / 475.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.08797, allocations: 0 / 475.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.08797, allocations: 0 / 475.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.08798, allocations: 7.984 kB / 475.9 MB, free: 10.03 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.0004595/0.08845, allocations: 446.6 kB / 476.3 MB, free: 9.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.08849, allocations: 8.031 kB / 476.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.073e-05/0.08855, allocations: 16.69 kB / 476.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.08881, allocations: 204.1 kB / 476.5 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.08884, allocations: 8.359 kB / 476.5 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.08886, allocations: 12.38 kB / 476.5 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004023/0.08927, allocations: 269.4 kB / 476.8 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.08929, allocations: 3.938 kB / 476.8 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.0893, allocations: 0 / 476.8 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/0.08933, allocations: 11.98 kB / 476.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001143/0.08945, allocations: 59.97 kB / 476.9 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003525/0.08981, allocations: 313.5 kB / 477.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001783/0.09, allocations: 137.3 kB / 477.3 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.444e-05/0.09011, allocations: 73.78 kB / 477.4 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.09012, allocations: 0 / 477.4 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.09016, allocations: 34.56 kB / 477.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.392e-06/0.09016, allocations: 0 / 477.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004234/0.09059, allocations: 250.8 kB / 477.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.074e-05/0.09068, allocations: 144.4 kB / 477.8 MB, free: 7.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.0908, allocations: 129.7 kB / 477.9 MB, free: 7.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.09082, allocations: 29.7 kB / 478 MB, free: 7.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.763e-05/0.09089, allocations: 96.41 kB / 478.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.904e-05/0.09091, allocations: 11.91 kB / 478.1 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.189e-05/0.09099, allocations: 41.7 kB / 478.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.09111, allocations: 326.8 kB / 478.4 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.312e-05/0.09117, allocations: 31.97 kB / 478.5 MB, free: 7.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.09132, allocations: 159.9 kB / 478.6 MB, free: 6.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002665/0.09159, allocations: 307.7 kB / 478.9 MB, free: 6.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.0916, allocations: 0 / 478.9 MB, free: 6.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003379/0.09195, allocations: 256.7 kB / 479.2 MB, free: 6.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.961e-05/0.092, allocations: 63.34 kB / 479.2 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.09202, allocations: 4 kB / 479.2 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.09204, allocations: 8 kB / 479.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001/0.09215, allocations: 31.86 kB / 479.3 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.09216, allocations: 7.984 kB / 479.3 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.472e-05/0.09226, allocations: 19.84 kB / 479.3 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.09229, allocations: 16.41 kB / 479.3 MB, free: 6.109 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.0001576/0.09245, allocations: 199.4 kB / 479.5 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001653/0.09263, allocations: 127 kB / 479.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.958e-05/0.09266, allocations: 12.84 kB / 479.6 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.09268, allocations: 12.12 kB / 479.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.09269, allocations: 0 / 479.7 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.0927, allocations: 7.922 kB / 479.7 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001842/0.09289, allocations: 189.5 kB / 479.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.0929, allocations: 0 / 479.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.216e-05/0.09292, allocations: 4 kB / 479.9 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.09293, allocations: 3.938 kB / 479.9 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.09295, allocations: 4 kB / 479.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.09295, allocations: 3.938 kB / 479.9 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.09296, allocations: 0 / 479.9 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003098/0.09327, allocations: 319.6 kB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.331e-05/0.09333, allocations: 93 kB / 480.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.09335, allocations: 7.984 kB / 480.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.669e-05/0.09342, allocations: 4 kB / 480.3 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.55e-05/0.09345, allocations: 4 kB / 480.3 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-06/0.09346, allocations: 8 kB / 480.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.148e-05/0.09353, allocations: 95.27 kB / 480.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09353, allocations: 0 / 480.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003089/0.09385, allocations: 24 kB / 480.4 MB, free: 4.891 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.0005161/0.09437, allocations: 270.3 kB / 480.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003136/0.09469, allocations: 254.3 kB / 480.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.09471, allocations: 1.25 kB / 480.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.918e-05/0.09479, allocations: 118.8 kB / 481 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003596/0.09516, allocations: 92.05 kB / 481.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004389/0.09561, allocations: 261.5 kB / 481.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002654/0.09588, allocations: 0.7115 MB / 482.1 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.381e-05/0.09591, allocations: 15.44 kB / 482.1 MB, free: 3.141 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09592, allocations: 0 / 482.1 MB, free: 3.141 MB / 350.1 MB Notification: Performance of Templates: time 0.003347/0.09927, allocations: 1.756 MB / 483.9 MB, free: 1.383 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)