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.0008615/0.0008616, allocations: 97.25 kB / 16.06 MB, free: 40 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.0009749/0.0009752, allocations: 180.8 kB / 16.96 MB, free: 6.871 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.356/1.356, allocations: 223.3 MB / 241 MB, free: 5.273 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.1549/0.1549, allocations: 12.04 MB / 304.2 MB, free: 1.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002955/0.0002955, allocations: 12 kB / 368.3 MB, free: 9.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09953/0.09984, allocations: 53.35 MB / 421.6 MB, free: 3.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002817/0.1027, allocations: 1.917 MB / 423.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002591/0.103, allocations: 131.6 kB / 423.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.051e-05/0.103, allocations: 0 / 423.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.1032, allocations: 23.86 kB / 423.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.904e-05/0.1033, allocations: 3.938 kB / 423.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001982/0.1035, allocations: 47.77 kB / 423.8 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.1036, allocations: 63.89 kB / 423.8 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.1037, allocations: 20.23 kB / 423.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.168e-05/0.1038, allocations: 31.8 kB / 423.9 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.681e-05/0.1038, allocations: 31.84 kB / 423.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.936e-05/0.1039, allocations: 3.984 kB / 423.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.708e-05/0.1039, allocations: 20 kB / 423.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.043e-05/0.104, allocations: 19.92 kB / 423.9 MB, free: 1.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.506e-05/0.1041, allocations: 57.44 kB / 424 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.1042, allocations: 107.6 kB / 424.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1042, allocations: 0 / 424.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1043, allocations: 0 / 424.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.277e-06/0.1043, allocations: 4 kB / 424.1 MB, free: 1.184 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.0004552/0.1047, allocations: 431 kB / 424.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.1048, allocations: 8.031 kB / 424.5 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.156e-05/0.1048, allocations: 16.75 kB / 424.6 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.105, allocations: 188.2 kB / 424.7 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.1051, allocations: 8.375 kB / 424.7 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/0.1051, allocations: 8.375 kB / 424.8 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004182/0.1055, allocations: 279.5 kB / 425 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1055, allocations: 0 / 425 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.1055, allocations: 4 kB / 425 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.025e-05/0.1056, allocations: 11.98 kB / 425 MB, free: 136 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001113/0.1057, allocations: 63.89 kB / 425.1 MB, free: 72 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1624/0.2681, allocations: 305.8 kB / 425.4 MB, free: 39.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001877/0.2683, allocations: 127.6 kB / 425.5 MB, free: 39.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.28e-05/0.2684, allocations: 68.7 kB / 425.6 MB, free: 39.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.285e-05/0.2684, allocations: 2.594 kB / 425.6 MB, free: 39.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.2685, allocations: 36.42 kB / 425.6 MB, free: 39.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.665e-06/0.2685, allocations: 0 / 425.6 MB, free: 39.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003761/0.2689, allocations: 258.2 kB / 425.9 MB, free: 39.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.2689, allocations: 139.9 kB / 426 MB, free: 38.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.988e-05/0.269, allocations: 122.8 kB / 426.1 MB, free: 38.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.269, allocations: 27.17 kB / 426.2 MB, free: 38.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.971e-05/0.2691, allocations: 93.91 kB / 426.3 MB, free: 38.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.2691, allocations: 16.38 kB / 426.3 MB, free: 38.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.288e-05/0.2691, allocations: 32.98 kB / 426.3 MB, free: 38.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.05e-05/0.2692, allocations: 321.9 kB / 426.6 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.545e-05/0.2692, allocations: 29.89 kB / 426.7 MB, free: 38.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.422e-05/0.2693, allocations: 163.4 kB / 426.8 MB, free: 38.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.2695, allocations: 302.9 kB / 427.1 MB, free: 37.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.2695, allocations: 0 / 427.1 MB, free: 37.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000251/0.2698, allocations: 256.8 kB / 427.4 MB, free: 37.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.129e-05/0.2698, allocations: 62.17 kB / 427.4 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.2698, allocations: 4.891 kB / 427.4 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.2698, allocations: 5.438 kB / 427.4 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.951e-05/0.2699, allocations: 27.45 kB / 427.5 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.2699, allocations: 11.12 kB / 427.5 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.463e-05/0.27, allocations: 22.52 kB / 427.5 MB, free: 37.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.514e-05/0.27, allocations: 10.41 kB / 427.5 MB, free: 37.67 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.0001297/0.2702, allocations: 205.6 kB / 427.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.2703, allocations: 121.3 kB / 427.8 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.669e-05/0.2703, allocations: 14.23 kB / 427.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.2704, allocations: 7.703 kB / 427.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2704, allocations: 0 / 427.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2704, allocations: 2.719 kB / 427.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001257/0.2705, allocations: 200.3 kB / 428 MB, free: 37.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.2705, allocations: 7.719 kB / 428 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.003e-05/0.2705, allocations: 0 / 428 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.2705, allocations: 3.922 kB / 428 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.2706, allocations: 0.875 kB / 428 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.2706, allocations: 6.875 kB / 428.1 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2706, allocations: 0 / 428.1 MB, free: 37.24 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/0.2708, allocations: 323.4 kB / 428.4 MB, free: 37.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.309e-05/0.2708, allocations: 98.03 kB / 428.5 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.2708, allocations: 8.328 kB / 428.5 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.312e-05/0.2709, allocations: 2 kB / 428.5 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.66e-05/0.2709, allocations: 9.016 kB / 428.5 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.2709, allocations: 6.781 kB / 428.5 MB, free: 36.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.416e-05/0.271, allocations: 92.59 kB / 428.6 MB, free: 36.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.271, allocations: 0 / 428.6 MB, free: 36.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002897/0.2713, allocations: 27.47 kB / 428.6 MB, free: 36.84 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.0006492/0.2719, allocations: 279.1 kB / 428.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002557/0.2722, allocations: 235.3 kB / 429.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.2722, allocations: 3.656 kB / 429.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.206e-05/0.2723, allocations: 122.1 kB / 429.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003289/0.2726, allocations: 90.2 kB / 429.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004114/0.273, allocations: 280.9 kB / 429.6 MB, free: 36.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001167/0.2732, allocations: 0.7178 MB / 430.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.782e-05/0.2732, allocations: 13.03 kB / 430.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.81e-05/0.2732, allocations: 13.41 kB / 430.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2732, allocations: 0 / 430.3 MB, free: 35.57 MB / 350.1 MB Notification: Performance of Templates: time 0.003712/0.277, allocations: 1.491 MB / 431.8 MB, free: 35.41 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)