/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 150 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7368
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1136.4+7009_daily_bin1202
RA = 174.122, Dec = 70.1537
tmin = 550886401, tmax = 551145601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='975826', job_status='RUN', time_executed='2021-09-04 06:34:12.355011', time_epoch_executed='1630762452.36' WHERE source_name='4FGL J1136.4+7009' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/975826

Creating custom pfile directory:
/scratch/kocevski/975826/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=550886401.0 && nMetStart<551145601.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=550886401.0 && nMetStart<551145601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/975826/ft1_4FGL_J1136.4+7009_daily_bin1202.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=550886401.0 && nMetStart<551145601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/975826/ft2_4FGL_J1136.4+7009_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/975826/ft1_4FGL_J1136.4+7009_daily_bin1202.fits outfile=/scratch/kocevski/975826/ft1_filteredMKT_4FGL_J1136.4+7009_daily_bin1202.fits ra=174.122 dec=70.1537 rad=12.0 tmin=550886401.0 tmax=551145601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.76
user 3.54
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/975826/ft2_4FGL_J1136.4+7009_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/975826/ft2_4FGL_J1136.4+7009_daily_bin1202.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/975826/ft1_filteredMKT_4FGL_J1136.4+7009_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/975826/ft1_filtered_4FGL_J1136.4+7009_daily_bin1202.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/975826/ft1_filtered_4FGL_J1136.4+7009_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/975826/ft2_4FGL_J1136.4+7009_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/975826/ltcube_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/975826/ft2_4FGL_J1136.4+7009_daily_bin1202.fits
.....................!
real 14.32
user 13.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/975826/ft1_filtered_4FGL_J1136.4+7009_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/975826/ft2_4FGL_J1136.4+7009_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/975826/ltcube_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.fits outfile=/scratch/kocevski/975826/expmap_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/975826/ltcube_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.fits
.....................!
real 191.11
user 185.16
sys 5.51

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 237 point sources and 0 extended sources

Setting source of interest to:
4FGL J1136.4+7009 @ 174.122 70.1537

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/975826/ft1_filtered_4FGL_J1136.4+7009_daily_bin1202.fits scfile=/scratch/kocevski/975826/ft2_4FGL_J1136.4+7009_daily_bin1202.fits outfile=/scratch/kocevski/975826/cmap_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=174.122 yref=70.1537 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/975826/ft1_filtered_4FGL_J1136.4+7009_daily_bin1202.fits scfile=/scratch/kocevski/975826/ft2_4FGL_J1136.4+7009_daily_bin1202.fits outfile=/scratch/kocevski/975826/cmap_HighResolution_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=174.122 yref=70.1537 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/975826/ft1_filtered_4FGL_J1136.4+7009_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/975826/ft2_4FGL_J1136.4+7009_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/975826/Model_4FGL_J1136.4+7009_daily_bin1202.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/975826/ft1_filtered_4FGL_J1136.4+7009_daily_bin1202.fits.....................!
real 31.82
user 30.50
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/975826/ft1_filtered_4FGL_J1136.4+7009_daily_bin1202.fits', '/scratch/kocevski/975826/ft2_4FGL_J1136.4+7009_daily_bin1202.fits', expMap='/scratch/kocevski/975826/expmap_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.fits', expCube='/scratch/kocevski/975826/ltcube_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/975826/Model_4FGL_J1136.4+7009_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1136.4+7009'

4FGL J1136.4+7009
   Spectrum: PowerLaw
399    Prefactor:  1.574e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
400        Index:  1.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
401        Scale:  2.611e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/975826/ft1_filtered_4FGL_J1136.4+7009_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/975826/ft2_4FGL_J1136.4+7009_daily_bin1202.fits
Exposure map: /scratch/kocevski/975826/expmap_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.fits
Exposure cube: /scratch/kocevski/975826/ltcube_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/975826/Model_4FGL_J1136.4+7009_daily_bin1202.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 1938.50522524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 1938.48073266

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9490       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5180       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11107E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.0724       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10915E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9495       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50237E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2297       1.0000         .10000E-03   10000.    
    12 'norm      '    .12243E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.6735       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76183E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    75.295       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10650E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    15.901       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    35 'Prefactor '    40.159       1.0000         .10000E-03   10000.    
    36 'Normalizat'    1.1736       1.0000         .10000E-01   10.000    
    37 'Prefactor '    .65316       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1938.481     FROM MIGRAD    STATUS=CONVERGED   1072 CALLS     5561 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    90.707        .27968E-05** at limit **
   2  norm          1.9492        1.6050        .52308E-07   -.15103E-03
   3  norm          .10000E-03    15.547        .14965E-06** at limit **
   4  Prefactor     5.5222        27.255        .13132E-05   -.37793E-04
   5  Prefactor     .10000E-03    90.026        .22695E-07** at limit **
   6  Prefactor     .10000E-03    16.921        .17443E-06** at limit **
   7  norm          3.0726        3.0593       -.29105E-07    .10924E-04
   8  Prefactor     .10000E-03    148.12       -.10399E-05** at limit **
   9  norm          3.9495        4.6830        .25899E-07   -.14725E-04
  10  Prefactor     .10002E-03    2293.4       -.22528E-04** at limit **
  11  Prefactor     3.2241        11.355        .31066E-06   -.10789E-03
  12  norm          .10000E-03    1.8623        .95444E-07** at limit **
  13  norm          1.6782        6.4875        .99139E-09   -.11393E-03
  14  Prefactor     .10000E-03    5.5771        .15712E-07** at limit **
  15  Prefactor     .10000E-03    30.010        .96253E-06** at limit **
  16  Prefactor     .10002E-03    585.36       -.95948E-05** at limit **
  17  Prefactor     .10000E-03    19.084       -.26836E-07** at limit **
  18  Prefactor     .10000E-03    4.8248        .15843E-06** at limit **
  19  norm          75.287        45.571        .45249E-06   -.33380E-04
  20  Prefactor     .10000E-03    7.1359        .23730E-06** at limit **
  21  norm          .10000E-03    13.317        .39853E-05** at limit **
  22  Prefactor     .10000E-03    5.4189        .14016E-06** at limit **
  23  Prefactor     .10000E-03    14.917        .13733E-06** at limit **
  24  Prefactor     .10000E-03    89.184        .95569E-06** at limit **
  25  Prefactor     .10000E-03    22.542        .10351E-06** at limit **
  26  Prefactor     .10000E-03    65.177       -.60876E-07** at limit **
  27  norm          15.900        10.832        .10488E-06   -.27203E-04
  28  norm          .10000E-03    1.6843        .47794E-07** at limit **
  29  Prefactor     .10000E-03    71.862        .30419E-06** at limit **
  30  Prefactor     .10000E-03    48.739       -.31915E-06** at limit **
  31  Prefactor     .10000E-03    61.849       -.13457E-06** at limit **
  32  Prefactor     .10000E-03    34.742        .36353E-06** at limit **
  33  Prefactor     .10000E-03    17.732        .24923E-06** at limit **
  34  Prefactor     .10000E-03    11.822        .39252E-06** at limit **
  35  Prefactor     40.159        48.038        .25295E-06   -.66777E-05
  36  Normalizat    1.1734        .29458       -.84989E-06   -.11221E-03
  37  Prefactor     .65339        .28221       -.10897E-05   -.80077E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.94915
  norm       = 0.0001
  Prefactor  = 5.52221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.07257
  Prefactor  = 0.0001
  norm       = 3.94947
  Prefactor  = 0.000100017
  Prefactor  = 3.22405
  norm       = 0.000100003
  norm       = 1.67821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 75.2874
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.9002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.1594
  Normalizat = 1.17338
  Prefactor  = 0.653393
 **********
 **   18 **HESSE 
 **********

 FCN=   1938.481     FROM HESSE     STATUS=OK           841 CALLS     6402 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9492        1.6007        .47952E-04   -1.5429    
   3  norm          .10000E-03    15.550        .16961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.5222        26.266        .17104E-03   -1.5238    
   5  Prefactor     .10000E-03    90.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.931        .17695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.0726        3.0680        .74942E-04   -1.5357    
   8  Prefactor     .10000E-03    148.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9495        4.6816        .10106E-03   -1.5310    
  10  Prefactor     .10002E-03    2270.5        .19196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2241        10.657        .21102E-03   -1.5349    
  12  norm          .10000E-03    7.1917        .88450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.6782        6.2503        .17515E-03   -1.5449    
  14  Prefactor     .10000E-03    5.5796        .10156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.214        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    592.68        .65184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.8430        .94493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          75.287        44.406        .46273E-04   -1.3970    
  20  Prefactor     .10000E-03    7.1536        .11492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    13.345        .22182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.4216        .10011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.920        .16613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    89.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    65.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          15.900        10.837        .10044E-03   -1.4910    
  28  norm          .10000E-03    1.6856        .55816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    71.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    48.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    61.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    34.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    17.776        .18117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    11.931        .14796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     40.159        48.027        .63252E-04   -1.4440    
  36  Normalizat    1.1734        .33535        .21152E-03   -.87429    
  37  Prefactor     .65339        .32262        .27066E-03   -1.0538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04005e-10
Minuit parameter uncertainties:
  1  2.854e-05
  2  1.60069
  3  1.65467e-06
  4  24.1042
  5  0.000394699
  6  5.46674e-06
  7  3.06818
  8  0.000358723
  9  4.68201
  10  0.0131374
  11  10.6631
  12  0.000294863
  13  6.25269
  14  3.18473e-06
  15  2.00653e-05
  16  0.00689861
  17  1.27082e-05
  18  4.76012e-06
  19  44.4258
  20  4.86063e-06
  21  5.53906e-05
  22  1.90376e-06
  23  4.24297e-06
  24  3.01555e-05
  25  3.61111e-05
  26  4.79913e-05
  27  10.8382
  28  1.06212e-06
  29  5.54949e-05
  30  3.93337e-05
  31  5.6667e-05
  32  5.60666e-06
  33  1.49577e-05
  34  1.31268e-05
  35  48.0738
  36  0.335969
  37  0.323548
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 1938.48072855

Extracting fit parameters...

4FGL J1136.4+7009
   Spectrum: PowerLaw
399    Prefactor:  1.000e-04  4.760e-06  1.000e-04  1.000e+04 ( 1.000e-13)
400        Index:  1.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
401        Scale:  2.611e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
759    Prefactor:  6.534e-01  3.235e-01  0.000e+00  1.000e+01 ( 1.000e+00)
760        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
761        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
758   Normalization:  1.173e+00  3.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 174.122 70.154
Photon Flux Upper Limit: 9.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/975826/likelihoodResults_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1938.48169306
delta logL = -0.000964510173162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1938.48072855
delta logL = -2.03385752684e-09

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8083       1.0000          .0000       10.000    
     3 'Normalizat'    1.1734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65339       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1938.481     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.852        .90712E-02** at limit **
   2  Index         1.8056        8.7254        .50000        .40128E-05
   3  Normalizat    1.1734        .24695E-01    .35579E-01    .10534E-05
   4  Prefactor     .65339        .24349E-01    .61184E-01    .91674E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80559
  Normalizat = 1.17338
  Prefactor  = 0.653393
 **********
 **   18 **HESSE 
 **********

 FCN=   1938.481     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    818.86        .94523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8056        5.8259        .50000       -.69305    
   3  Normalizat    1.1734        .12966        .21152E-03   -.87429    
   4  Prefactor     .65339        .12761        .27066E-03   -1.0538    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.29385e-09
Minuit parameter uncertainties:
  1  4.31158e-05
  2  50.7568
  3  0.129698
  4  0.127668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/975826': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1938.48072854
delta logL = 5.82508619118e-09

Extracting fit parameters...

4FGL J1136.4+7009
   Spectrum: PowerLaw
399    Prefactor:  1.000e-04  4.312e-05  1.000e-04  1.000e+04 ( 1.000e-13)
400        Index:  1.806e+00  5.076e+01  0.000e+00  1.000e+01 (-1.000e+00)
401        Scale:  2.611e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
759    Prefactor:  6.534e-01  1.277e-01  0.000e+00  1.000e+01 ( 1.000e+00)
760        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
761        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
758   Normalization:  1.173e+00  1.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 174.122 70.154

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/975826/cmap_HighResolution_550886401_551145601_4FGL_J1136.4+7009_daily_bin1202.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/975826

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-03', job_status='DONE', photon_flux_upper_limit='9.61e-08', time_completed='2021-09-04 06:45:27.538807', job_id='975826', GAL2='0.65', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630763127.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='5.83e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1202' AND source_name='4FGL J1136.4+7009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 06:45:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 975826: <4FGL_J1136.4+7009_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1136.4+7009_daily_bin1202> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 06:31:29 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:31:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 06:31:31 2021
Terminated at Sat Sep  4 06:45:28 2021
Results reported at Sat Sep  4 06:45:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.4+7009_daily_bin1202 174.122 70.1537 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.4+7009 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   669.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            839 sec.

The output (if any) is above this job summary.

