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.001231/0.001231, allocations: 110.9 kB / 17.13 MB, free: 6.035 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.001204/0.001205, allocations: 195.3 kB / 18.07 MB, free: 5.113 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.261/1.261, allocations: 222.9 MB / 241.8 MB, free: 15.07 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.05645/0.05645, allocations: 12.05 MB / 304 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 60.14 kB / 420.7 MB, free: 17.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07459/0.07579, allocations: 52.32 MB / 473.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003294/0.07912, allocations: 2.238 MB / 475.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002618/0.07939, allocations: 119.6 kB / 475.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.677e-05/0.07947, allocations: 7.938 kB / 475.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.07962, allocations: 23.84 kB / 475.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.898e-05/0.07969, allocations: 7.938 kB / 475.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001855/0.07988, allocations: 46.95 kB / 475.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001366/0.08003, allocations: 79.77 kB / 475.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.281e-05/0.08013, allocations: 24.2 kB / 475.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.19e-05/0.0802, allocations: 39.83 kB / 475.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.603e-05/0.08025, allocations: 31.86 kB / 475.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.08028, allocations: 8 kB / 475.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.528e-05/0.08035, allocations: 27.98 kB / 475.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.777e-05/0.0804, allocations: 19.92 kB / 475.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.206e-05/0.08047, allocations: 47.67 kB / 475.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001843/0.08066, allocations: 111.6 kB / 475.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.08068, allocations: 0 / 475.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.08068, allocations: 0 / 475.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.08069, allocations: 0 / 475.9 MB, free: 9.992 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.0004188/0.08112, allocations: 442.6 kB / 476.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.08116, allocations: 12.03 kB / 476.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.068e-05/0.08121, allocations: 16.75 kB / 476.3 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.08143, allocations: 200.1 kB / 476.5 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.08145, allocations: 8.375 kB / 476.5 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.08148, allocations: 4.375 kB / 476.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003922/0.08187, allocations: 272.8 kB / 476.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.08189, allocations: 3.938 kB / 476.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.08191, allocations: 8 kB / 476.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.08194, allocations: 7.984 kB / 476.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000107/0.08205, allocations: 63.91 kB / 476.9 MB, free: 8.859 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003288/0.08239, allocations: 301.6 kB / 477.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001789/0.08258, allocations: 137.4 kB / 477.3 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.056e-05/0.08268, allocations: 69.72 kB / 477.4 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.0827, allocations: 4 kB / 477.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.08272, allocations: 38.5 kB / 477.4 MB, free: 8.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.08273, allocations: 0 / 477.4 MB, free: 8.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003946/0.08313, allocations: 260.8 kB / 477.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.0832, allocations: 128.5 kB / 477.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.92e-05/0.08329, allocations: 125.7 kB / 477.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.08331, allocations: 29.7 kB / 478 MB, free: 7.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.79e-05/0.08337, allocations: 96.45 kB / 478.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.08339, allocations: 15.89 kB / 478.1 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.583e-05/0.08345, allocations: 41.7 kB / 478.1 MB, free: 7.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.08357, allocations: 326.8 kB / 478.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.972e-05/0.08363, allocations: 27.98 kB / 478.5 MB, free: 7.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.08377, allocations: 157.1 kB / 478.6 MB, free: 6.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/0.08401, allocations: 307.9 kB / 478.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.08402, allocations: 0 / 478.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003277/0.08436, allocations: 261 kB / 479.2 MB, free: 6.242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.052e-05/0.08441, allocations: 65.06 kB / 479.2 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.08442, allocations: 4 kB / 479.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.08444, allocations: 8 kB / 479.3 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.558e-05/0.08453, allocations: 23.92 kB / 479.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.08454, allocations: 11.94 kB / 479.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.456e-05/0.08463, allocations: 19.84 kB / 479.3 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.08465, allocations: 8 kB / 479.3 MB, free: 6.094 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 (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,synchronizeRealtime.initialized) * 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.0001439/0.0848, allocations: 211.4 kB / 479.5 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.079e-05/0.08485, allocations: 11.91 kB / 479.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.477e-05/0.08488, allocations: 8.844 kB / 479.5 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.08489, allocations: 0 / 479.5 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.0849, allocations: 3.938 kB / 479.5 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.68e-05/0.08495, allocations: 92.92 kB / 479.6 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.08497, allocations: 4 kB / 479.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.765e-05/0.08504, allocations: 0 / 479.6 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.08507, allocations: 11.98 kB / 479.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003495/0.08543, allocations: 478.3 kB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003388/0.08578, allocations: 473.1 kB / 480.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.99e-05/0.08588, allocations: 64.16 kB / 480.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.18e-05/0.08594, allocations: 91.27 kB / 480.7 MB, free: 4.562 MB / 350.1 MB Notification: Performance of Backend: time 4.11e-07/0.08594, allocations: 3.938 kB / 480.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009441/0.08689, allocations: 427.5 kB / 481.2 MB, free: 4.188 MB / 350.1 MB Notification: Performance of SimCode: time 0.0004882/0.08739, allocations: 0.7371 MB / 481.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of Templates: time 0.003752/0.09116, allocations: 1.416 MB / 483.3 MB, free: 1.965 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)