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.001033/0.001033, allocations: 100.6 kB / 16.45 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.001092/0.001092, allocations: 192.1 kB / 17.39 MB, free: 5.688 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.227/1.227, allocations: 222.9 MB / 241.1 MB, free: 15.12 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.05289/0.05289, allocations: 12.05 MB / 303.3 MB, free: 3.086 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 59.91 kB / 420.1 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08509/0.08615, allocations: 52.32 MB / 472.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003184/0.08937, allocations: 2.238 MB / 474.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000253/0.08964, allocations: 123.5 kB / 474.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.699e-05/0.08973, allocations: 4 kB / 474.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.08989, allocations: 23.78 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.108e-05/0.08996, allocations: 7.938 kB / 474.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.09014, allocations: 43.88 kB / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.09029, allocations: 79.78 kB / 474.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.09041, allocations: 36.19 kB / 474.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.368e-05/0.09047, allocations: 35.84 kB / 475 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.913e-05/0.09053, allocations: 31.84 kB / 475 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.334e-05/0.09056, allocations: 8 kB / 475 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.29e-05/0.09062, allocations: 20 kB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.269e-05/0.09068, allocations: 15.92 kB / 475 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.281e-05/0.09075, allocations: 47.72 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000191/0.09095, allocations: 119.4 kB / 475.2 MB, free: 10 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.09096, allocations: 0 / 475.2 MB, free: 10 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.09097, allocations: 0 / 475.2 MB, free: 10 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.09097, allocations: 0 / 475.2 MB, free: 10 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.0004579/0.09144, allocations: 454.4 kB / 475.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.09148, allocations: 8.031 kB / 475.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.504e-05/0.09153, allocations: 20.84 kB / 475.7 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.09176, allocations: 200.2 kB / 475.9 MB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.467e-06/0.09178, allocations: 4.375 kB / 475.9 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.0918, allocations: 8.375 kB / 475.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/0.0922, allocations: 272 kB / 476.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.09222, allocations: 3.938 kB / 476.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.09224, allocations: 7.938 kB / 476.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.09226, allocations: 4 kB / 476.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001071/0.09237, allocations: 59.97 kB / 476.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003525/0.09273, allocations: 305.6 kB / 476.5 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001676/0.09291, allocations: 133.3 kB / 476.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.275e-05/0.09301, allocations: 73.83 kB / 476.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.341e-05/0.09303, allocations: 4 kB / 476.7 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/0.09305, allocations: 38.53 kB / 476.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.232e-06/0.09306, allocations: 0 / 476.8 MB, free: 8.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003948/0.09346, allocations: 254.7 kB / 477 MB, free: 7.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.793e-05/0.09355, allocations: 144.4 kB / 477.1 MB, free: 7.805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.554e-05/0.09365, allocations: 121.8 kB / 477.3 MB, free: 7.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.09367, allocations: 33.73 kB / 477.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.004e-05/0.09373, allocations: 92.55 kB / 477.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.09376, allocations: 23.88 kB / 477.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.39e-05/0.09381, allocations: 41.7 kB / 477.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.09392, allocations: 318.8 kB / 477.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.979e-05/0.09399, allocations: 35.97 kB / 477.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.09412, allocations: 149.2 kB / 477.9 MB, free: 6.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.09435, allocations: 311.7 kB / 478.2 MB, free: 6.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.09436, allocations: 0 / 478.2 MB, free: 6.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003155/0.09468, allocations: 252.9 kB / 478.5 MB, free: 6.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.534e-05/0.09474, allocations: 63.39 kB / 478.6 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.09475, allocations: 7.938 kB / 478.6 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.09478, allocations: 4 kB / 478.6 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.354e-05/0.09488, allocations: 27.88 kB / 478.6 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.09489, allocations: 11.92 kB / 478.6 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.282e-05/0.09498, allocations: 23.84 kB / 478.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.095, allocations: 12 kB / 478.6 MB, free: 6.09 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.0001455/0.09515, allocations: 207.7 kB / 478.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.0953, allocations: 113.6 kB / 479 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.755e-05/0.09534, allocations: 12.84 kB / 479 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/0.09536, allocations: 11.94 kB / 479 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.09537, allocations: 3.984 kB / 479 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.09537, allocations: 0 / 479 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.09554, allocations: 193.5 kB / 479.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.09555, allocations: 0 / 479.2 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.141e-05/0.09556, allocations: 8 kB / 479.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.09557, allocations: 0 / 479.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.09559, allocations: 3.938 kB / 479.2 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.09559, allocations: 11.94 kB / 479.2 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.0956, allocations: 0 / 479.2 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000284/0.09589, allocations: 321.2 kB / 479.5 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.533e-05/0.09593, allocations: 89.02 kB / 479.6 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.988e-05/0.09596, allocations: 8 kB / 479.6 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.055e-05/0.09602, allocations: 4 kB / 479.6 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.669e-05/0.09605, allocations: 8.141 kB / 479.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.09606, allocations: 4 kB / 479.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.552e-05/0.09611, allocations: 91.27 kB / 479.7 MB, free: 4.898 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09612, allocations: 0 / 479.7 MB, free: 4.898 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002795/0.0964, allocations: 27.94 kB / 479.7 MB, free: 4.871 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.0004747/0.09688, allocations: 287.2 kB / 480 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000278/0.09717, allocations: 246.4 kB / 480.3 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.09718, allocations: 1.25 kB / 480.3 MB, free: 4.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.005e-05/0.09725, allocations: 118.8 kB / 480.4 MB, free: 4.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.09759, allocations: 91.42 kB / 480.5 MB, free: 4.164 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003889/0.09799, allocations: 235.6 kB / 480.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.09824, allocations: 0.7198 MB / 481.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.511e-05/0.0983, allocations: 24.8 kB / 481.4 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.845e-05/0.09833, allocations: 11.44 kB / 481.4 MB, free: 3.117 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.09833, allocations: 0 / 481.4 MB, free: 3.117 MB / 350.1 MB Notification: Performance of Templates: time 0.003808/0.1021, allocations: 1.518 MB / 483 MB, free: 1.602 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)