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.001428/0.001428, allocations: 107.2 kB / 17.12 MB, free: 5.918 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.001346/0.001346, allocations: 190.4 kB / 18.06 MB, free: 4.996 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.316/1.316, allocations: 222.9 MB / 241.7 MB, free: 15.09 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.05877/0.05877, allocations: 12.06 MB / 304 MB, free: 3.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 63.91 kB / 420.7 MB, free: 17.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08887/0.09066, 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.003482/0.09414, allocations: 2.246 MB / 475.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002577/0.0944, allocations: 119.6 kB / 475.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.815e-05/0.09445, allocations: 0 / 475.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.0946, allocations: 27.78 kB / 475.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.002e-05/0.09466, allocations: 7.938 kB / 475.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001966/0.09485, allocations: 51.81 kB / 475.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001598/0.09501, allocations: 79.78 kB / 475.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.826e-05/0.09511, allocations: 24.19 kB / 475.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.435e-05/0.09517, allocations: 31.86 kB / 475.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.908e-05/0.09521, allocations: 31.84 kB / 475.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.339e-05/0.09524, allocations: 8 kB / 475.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.142e-05/0.0953, allocations: 20 kB / 475.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.333e-05/0.09535, allocations: 23.91 kB / 475.7 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.008e-05/0.09541, allocations: 39.73 kB / 475.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.09562, allocations: 123.4 kB / 475.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.09562, allocations: 0 / 475.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.09562, allocations: 0 / 475.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.036e-06/0.09563, allocations: 4 kB / 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.0004933/0.09612, allocations: 450.4 kB / 476.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.09616, allocations: 12.02 kB / 476.3 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.619e-05/0.0962, allocations: 16.84 kB / 476.3 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002518/0.09645, allocations: 192.2 kB / 476.5 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.09647, allocations: 12.31 kB / 476.5 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/0.09649, allocations: 4.375 kB / 476.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004158/0.0969, allocations: 278.3 kB / 476.8 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.09691, allocations: 3.938 kB / 476.8 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.09693, allocations: 7.984 kB / 476.8 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.09695, allocations: 8 kB / 476.8 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001142/0.09706, allocations: 63.97 kB / 476.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003746/0.09744, allocations: 305.5 kB / 477.2 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001922/0.09763, allocations: 125.4 kB / 477.3 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.258e-05/0.09772, allocations: 59.7 kB / 477.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.09773, allocations: 0 / 477.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.09776, allocations: 38.55 kB / 477.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.162e-06/0.09777, allocations: 0 / 477.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004245/0.09819, allocations: 256.8 kB / 477.7 MB, free: 8.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.359e-05/0.09827, allocations: 136.5 kB / 477.8 MB, free: 7.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.09839, allocations: 129.8 kB / 477.9 MB, free: 7.715 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.0984, allocations: 25.7 kB / 477.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.918e-05/0.09846, allocations: 92.45 kB / 478 MB, free: 7.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.242e-05/0.09848, allocations: 19.94 kB / 478.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-05/0.09855, allocations: 37.72 kB / 478.1 MB, free: 7.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.09868, allocations: 322.8 kB / 478.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.552e-05/0.09875, allocations: 35.97 kB / 478.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.0989, allocations: 149.2 kB / 478.6 MB, free: 6.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.09919, allocations: 311.7 kB / 478.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.09919, allocations: 0 / 478.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003392/0.09953, allocations: 252.8 kB / 479.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.954e-05/0.09958, allocations: 69.06 kB / 479.2 MB, free: 6.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.09959, allocations: 11.92 kB / 479.2 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.0996, allocations: 4 kB / 479.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.158e-05/0.09969, allocations: 23.94 kB / 479.2 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.09971, allocations: 19.91 kB / 479.3 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.048e-05/0.09979, allocations: 16.34 kB / 479.3 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.09981, allocations: 20 kB / 479.3 MB, free: 6.129 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.0001645/0.09998, allocations: 207.5 kB / 479.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/0.1001, allocations: 117.6 kB / 479.6 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.13e-05/0.1002, allocations: 16.84 kB / 479.6 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/0.1002, allocations: 7.938 kB / 479.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.1002, allocations: 0 / 479.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1002, allocations: 4.172 kB / 479.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001898/0.1004, allocations: 189.6 kB / 479.8 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1004, allocations: 7.938 kB / 479.8 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.313e-05/0.1004, allocations: 4 kB / 479.8 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.1004, allocations: 3.938 kB / 479.9 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.1004, allocations: 8 kB / 479.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.1004, allocations: 3.938 kB / 479.9 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1004, allocations: 0 / 479.9 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003256/0.1007, allocations: 319.6 kB / 480.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.962e-05/0.1008, allocations: 93.02 kB / 480.3 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.01e-05/0.1008, allocations: 4 kB / 480.3 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.628e-05/0.1009, allocations: 7.984 kB / 480.3 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.35e-05/0.1009, allocations: 4 kB / 480.3 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.268e-06/0.1009, allocations: 4 kB / 480.3 MB, free: 5.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.907e-05/0.101, allocations: 91.27 kB / 480.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.101, allocations: 0 / 480.4 MB, free: 4.934 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000294/0.1013, allocations: 35.94 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.0006444/0.1019, allocations: 263.3 kB / 480.7 MB, free: 4.703 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003109/0.1022, allocations: 243.5 kB / 480.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1022, allocations: 0 / 480.9 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.942e-05/0.1023, allocations: 126.9 kB / 481 MB, free: 4.293 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.1026, allocations: 75.36 kB / 481.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004027/0.103, allocations: 239.6 kB / 481.3 MB, free: 3.961 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/0.1034, allocations: 0.7196 MB / 482.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.327e-05/0.1034, allocations: 16.94 kB / 482.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.463e-05/0.1034, allocations: 19.42 kB / 482.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1034, allocations: 0 / 482.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of Templates: time 0.004354/0.1078, allocations: 1.519 MB / 483.6 MB, free: 1.656 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 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)