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.000971/0.0009711, allocations: 99.06 kB / 16.44 MB, free: 6.5 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.000977/0.000977, allocations: 192 kB / 17.38 MB, free: 5.715 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.212/1.212, allocations: 222.9 MB / 241.1 MB, free: 15.16 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.05169/0.05169, allocations: 12.05 MB / 303.3 MB, free: 3.109 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 63.89 kB / 420.1 MB, free: 17.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09489/0.09603, allocations: 52.32 MB / 472.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003355/0.09943, allocations: 2.227 MB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002543/0.09971, allocations: 127.5 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.681e-05/0.09978, allocations: 4 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.09994, allocations: 15.86 kB / 474.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.576e-05/0.1, allocations: 23.8 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002033/0.1002, allocations: 39.14 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001407/0.1004, allocations: 83.81 kB / 474.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.1005, allocations: 20.22 kB / 474.9 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.422e-05/0.1006, allocations: 35.84 kB / 474.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.829e-05/0.1006, allocations: 39.78 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.535e-05/0.1006, allocations: 8 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.529e-05/0.1007, allocations: 27.98 kB / 475 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.954e-05/0.1008, allocations: 11.94 kB / 475 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.103e-05/0.1008, allocations: 47.72 kB / 475.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.101, allocations: 111.6 kB / 475.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.101, allocations: 4 kB / 475.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.101, allocations: 0 / 475.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.101, allocations: 0 / 475.2 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.0004255/0.1015, allocations: 442.6 kB / 475.6 MB, free: 9.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.1015, allocations: 12.03 kB / 475.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.33e-05/0.1016, allocations: 16.75 kB / 475.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002441/0.1018, allocations: 200.1 kB / 475.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.1018, allocations: 8.375 kB / 475.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.1019, allocations: 4.375 kB / 475.9 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003872/0.1023, allocations: 272.8 kB / 476.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.1023, allocations: 3.938 kB / 476.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.1023, allocations: 4 kB / 476.1 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.085e-05/0.1023, allocations: 11.98 kB / 476.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001105/0.1024, allocations: 63.91 kB / 476.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003537/0.1028, allocations: 301.6 kB / 476.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001701/0.103, allocations: 133.4 kB / 476.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.205e-05/0.1031, allocations: 77.75 kB / 476.7 MB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.736e-06/0.1031, allocations: 4 kB / 476.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.1031, allocations: 34.56 kB / 476.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.443e-06/0.1031, allocations: 0 / 476.7 MB, free: 8.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003936/0.1035, allocations: 252.8 kB / 477 MB, free: 8.004 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.29e-05/0.1036, allocations: 138.2 kB / 477.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.1037, allocations: 125.7 kB / 477.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.1037, allocations: 33.7 kB / 477.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.469e-05/0.1038, allocations: 96.44 kB / 477.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/0.1038, allocations: 19.89 kB / 477.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-05/0.1039, allocations: 41.7 kB / 477.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.104, allocations: 322.8 kB / 477.8 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.926e-05/0.1041, allocations: 28.08 kB / 477.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.1042, allocations: 161 kB / 477.9 MB, free: 6.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002453/0.1045, allocations: 311.7 kB / 478.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1045, allocations: 0 / 478.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003142/0.1048, allocations: 257 kB / 478.5 MB, free: 6.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.246e-05/0.1049, allocations: 63.34 kB / 478.6 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.1049, allocations: 8 kB / 478.6 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/0.1049, allocations: 4 kB / 478.6 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.937e-05/0.105, allocations: 35.86 kB / 478.6 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.874e-05/0.105, allocations: 7.938 kB / 478.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.801e-05/0.1051, allocations: 15.84 kB / 478.6 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.1051, allocations: 16 kB / 478.6 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.0001588/0.1053, allocations: 199.5 kB / 478.8 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.1054, allocations: 121.5 kB / 479 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.991e-05/0.1055, allocations: 16.83 kB / 479 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/0.1055, allocations: 11.94 kB / 479 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1055, allocations: 0 / 479 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1055, allocations: 144 / 479 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001771/0.1057, allocations: 189.5 kB / 479.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1057, allocations: 0 / 479.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.462e-05/0.1057, allocations: 7.922 kB / 479.2 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1057, allocations: 7.938 kB / 479.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.1058, allocations: 4 kB / 479.2 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.83e-06/0.1058, allocations: 11.92 kB / 479.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1058, allocations: 0 / 479.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.1061, allocations: 315.6 kB / 479.5 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.987e-05/0.1061, allocations: 85.02 kB / 479.6 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.1062, allocations: 4 kB / 479.6 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.159e-05/0.1062, allocations: 0 / 479.6 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.157e-05/0.1063, allocations: 15.98 kB / 479.6 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.906e-06/0.1063, allocations: 4 kB / 479.6 MB, free: 5.012 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.544e-05/0.1063, allocations: 91.27 kB / 479.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1063, allocations: 0 / 479.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.1067, allocations: 24 kB / 479.7 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.0005268/0.1072, allocations: 275.7 kB / 480 MB, free: 4.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003048/0.1075, allocations: 253.6 kB / 480.2 MB, free: 4.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1075, allocations: 4 kB / 480.2 MB, free: 4.418 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.617e-05/0.1076, allocations: 122.8 kB / 480.4 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.0003409/0.1079, allocations: 85.27 kB / 480.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003952/0.1084, allocations: 235.2 kB / 480.7 MB, free: 3.938 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.1086, allocations: 0.7154 MB / 481.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.763e-05/0.1087, allocations: 21 kB / 481.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.9e-05/0.1087, allocations: 11.44 kB / 481.4 MB, free: 3.156 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1087, allocations: 4 kB / 481.4 MB, free: 3.152 MB / 350.1 MB Notification: Performance of Templates: time 0.00398/0.1127, allocations: 1.519 MB / 482.9 MB, free: 1.633 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)