/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 114 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 = 7528
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1136.2+3407_daily_bin791
RA = 174.075, Dec = 34.129
tmin = 444355201, tmax = 444614401
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='949807', job_status='RUN', time_executed='2021-09-04 05:08:39.315657', time_epoch_executed='1630757319.32' WHERE source_name='4FGL J1136.2+3407' and cadence='daily' and bin_id='791'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/949807

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/949807/ft1_4FGL_J1136.2+3407_daily_bin791.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/949807/ft2_4FGL_J1136.2+3407_daily_bin791.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/949807/ft1_4FGL_J1136.2+3407_daily_bin791.fits outfile=/scratch/kocevski/949807/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin791.fits ra=174.075 dec=34.129 rad=12.0 tmin=444355201.0 tmax=444614401.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 6.92
user 6.31
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/949807/ft2_4FGL_J1136.2+3407_daily_bin791.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/949807/ft2_4FGL_J1136.2+3407_daily_bin791.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/949807/ft1_filteredMKT_4FGL_J1136.2+3407_daily_bin791.fits evtable="EVENTS" outfile="/scratch/kocevski/949807/ft1_filtered_4FGL_J1136.2+3407_daily_bin791.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.57
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/949807/ft1_filtered_4FGL_J1136.2+3407_daily_bin791.fits" evtable="EVENTS" scfile=/scratch/kocevski/949807/ft2_4FGL_J1136.2+3407_daily_bin791.fits sctable="SC_DATA" outfile=/scratch/kocevski/949807/ltcube_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.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/949807/ft2_4FGL_J1136.2+3407_daily_bin791.fits
.....................!
real 12.93
user 11.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/949807/ft1_filtered_4FGL_J1136.2+3407_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/949807/ft2_4FGL_J1136.2+3407_daily_bin791.fits sctable="SC_DATA" expcube=/scratch/kocevski/949807/ltcube_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.fits outfile=/scratch/kocevski/949807/expmap_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.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/949807/ltcube_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.fits
.....................!
real 191.80
user 186.96
sys 4.40

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 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1136.2+3407 @ 174.075 34.129

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/949807/ft1_filtered_4FGL_J1136.2+3407_daily_bin791.fits scfile=/scratch/kocevski/949807/ft2_4FGL_J1136.2+3407_daily_bin791.fits outfile=/scratch/kocevski/949807/cmap_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.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.075 yref=34.129 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/949807/ft1_filtered_4FGL_J1136.2+3407_daily_bin791.fits scfile=/scratch/kocevski/949807/ft2_4FGL_J1136.2+3407_daily_bin791.fits outfile=/scratch/kocevski/949807/cmap_HighResolution_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.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.075 yref=34.129 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/949807/ft1_filtered_4FGL_J1136.2+3407_daily_bin791.fits evtable="EVENTS" scfile=/scratch/kocevski/949807/ft2_4FGL_J1136.2+3407_daily_bin791.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/949807/Model_4FGL_J1136.2+3407_daily_bin791.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/949807/ft1_filtered_4FGL_J1136.2+3407_daily_bin791.fits.....................!
real 47.04
user 45.76
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/949807/ft1_filtered_4FGL_J1136.2+3407_daily_bin791.fits', '/scratch/kocevski/949807/ft2_4FGL_J1136.2+3407_daily_bin791.fits', expMap='/scratch/kocevski/949807/expmap_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.fits', expCube='/scratch/kocevski/949807/ltcube_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/949807/Model_4FGL_J1136.2+3407_daily_bin791.xml', optimizer='MINUIT')

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

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  1.848e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/949807/ft1_filtered_4FGL_J1136.2+3407_daily_bin791.fits
Spacecraft file(s): /scratch/kocevski/949807/ft2_4FGL_J1136.2+3407_daily_bin791.fits
Exposure map: /scratch/kocevski/949807/expmap_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.fits
Exposure cube: /scratch/kocevski/949807/ltcube_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/949807/Model_4FGL_J1136.2+3407_daily_bin791.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) = 4846.13084882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    125.92       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.804       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12772E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9994       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3916       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14967       1.0000         .10000E-03   10000.    
    13 'norm      '    6.0956       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8854       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2918       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11049       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9915       1.0000         .10000E-03   10000.    
    20 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.501       1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.729       1.0000         .10000E-03   10000.    
    23 'norm      '    8.0915       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10768E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    15.469       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.4122       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .98560       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4846.107     FROM MIGRAD    STATUS=CONVERGED    819 CALLS     3965 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.848        .68602E-06** at limit **
   2  Prefactor     125.79        137.33       -.81575E-04    .90469E-06
   3  Prefactor     13.796        19.547       -.61494E-05   -.39516E-04
   4  norm          1.4834        .45660       -.22376E-06    .10448E-02
   5  Prefactor     .10000E-03    4.0862        .44449E-06** at limit **
   6  Prefactor     .10000E-03    21.701       -.37828E-05** at limit **
   7  Prefactor     1.9989        23.503        .24011E-04   -.14739E-03
   8  norm          3.3941        19.077        .10878E-04   -.73780E-04
   9  norm          .10000E-03    5.6520       -.77682E-07** at limit **
  10  Prefactor     .10000E-03    1.5536       -.75921E-07** at limit **
  11  Prefactor     .10000E-03    22.065        .21922E-05** at limit **
  12  Prefactor     .10008E-03    19.832       -.13779E-05** at limit **
  13  norm          6.0955        3.3504       -.16989E-06   -.24811E-04
  14  Prefactor     .10000E-03    13.595       -.74497E-07** at limit **
  15  Prefactor     3.8888        7.6209       -.14447E-05   -.23594E-03
  16  Prefactor     .10000E-03    67.462       -.40444E-05** at limit **
  17  norm          2.2917        1.4321       -.11275E-06   -.66765E-04
  18  Prefactor     .10010E-03    14.063       -.63811E-06** at limit **
  19  Prefactor     3.9919        2.6675       -.20146E-06    .52878E-04
  20  norm          .10000E-03    5.4376       -.33953E-07** at limit **
  21  Prefactor     32.482        37.500       -.49754E-05    .30707E-04
  22  Prefactor     53.724        51.357       -.12133E-06    .65037E-05
  23  norm          8.0914        2.3511       -.63384E-07    .25893E-03
  24  Prefactor     .10000E-03    58.097        .41930E-05** at limit **
  25  norm          15.470        5.5163       -.16346E-06   -.27600E-03
  26  Prefactor     .10000E-03    8.0506       -.96809E-07** at limit **
  27  Prefactor     .10000E-03    3.0021       -.12793E-07** at limit **
  28  Prefactor     6.4118        4.0941       -.13404E-06   -.85085E-04
  29  Normalizat    .98586        .23584        .65345E-05   -.72268E-04
  30  Prefactor     1.1556        .25803       -.14133E-05    .16215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 125.795
  Prefactor  = 13.796
  norm       = 1.48344
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 1.99891
  norm       = 3.39414
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100075
  norm       = 6.09553
  Prefactor  = 0.0001
  Prefactor  = 3.88875
  Prefactor  = 0.0001
  norm       = 2.29172
  Prefactor  = 0.000100104
  Prefactor  = 3.99186
  norm       = 0.0001
  Prefactor  = 32.4822
  Prefactor  = 53.7244
  norm       = 8.09143
  Prefactor  = 0.0001
  norm       = 15.4696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.4118
  Normalizat = 0.985864
  Prefactor  = 1.15564
 **********
 **   18 **HESSE 
 **********

 FCN=   4846.107     FROM HESSE     STATUS=OK           602 CALLS     4567 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     125.79        137.85        .17937E-03   -1.3460    
   3  Prefactor     13.796        19.390        .10781E-03   -1.4965    
   4  norm          1.4834        .45787        .24293E-04   -1.5464    
   5  Prefactor     .10000E-03    4.1403        .27179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9989        23.215        .29291E-03   -1.5425    
   8  norm          3.3941        18.902        .21969E-03   -1.5339    
   9  norm          .10000E-03    5.6667        .16163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.5780        .84581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10008E-03    21.787        .90855E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.0955        3.3481        .90100E-04   -1.5214    
  14  Prefactor     .10000E-03    13.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8888        7.5877        .20470E-03   -1.5314    
  16  Prefactor     .10000E-03    67.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2917        1.4278        .61315E-04   -1.5405    
  18  Prefactor     .10010E-03    24.585        .88095E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9919        2.6628        .88434E-04   -1.5308    
  20  norm          .10000E-03    5.4404        .15854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.482        37.597        .70286E-04   -1.4567    
  22  Prefactor     53.724        51.426        .54720E-04   -1.4241    
  23  norm          8.0914        2.3492        .54171E-04   -1.5139    
  24  Prefactor     .10000E-03    58.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          15.470        5.4805        .45171E-03   -1.4921    
  26  Prefactor     .10000E-03    8.1261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.0753        .23369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.4118        4.0930        .10489E-03   -1.5201    
  29  Normalizat    .98586        .27500        .28625E-03   -.93506    
  30  Prefactor     1.1556        .30171        .30926E-03   -.87708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12585e-09
Minuit parameter uncertainties:
  1  4.43125e-05
  2  138.202
  3  19.3985
  4  0.457868
  5  0.000101206
  6  0.000378992
  7  13.6305
  8  16.0268
  9  1.23128e-05
  10  9.33791e-06
  11  1.85293e-05
  12  0.00255848
  13  3.34819
  14  1.28015e-05
  15  7.58962
  16  6.58039e-05
  17  1.42786
  18  0.0031983
  19  2.66286
  20  4.40061e-06
  21  37.6244
  22  51.4687
  23  2.34925
  24  7.8657e-06
  25  5.48067
  26  3.65099e-05
  27  2.01828e-06
  28  4.09315
  29  0.275399
  30  0.302158
Done.

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

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  3.889e+00  7.590e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.156e+00  3.022e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.859e-01  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 174.075 34.129
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/949807/likelihoodResults_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.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): 0
logL (Free Index) = 4846.05545147
delta logL = 0.0515610618586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4846.0513281
delta logL = 0.0556844282246

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4846.051     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      232 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9657        8.6020        .60733E-05    .20624E-03
   2  Index         2.1542        1.0432        .19766E-05   -.64910E-04
   3  Normalizat    .99628        .22067       -.79079E-06   -.40633E-04
   4  Prefactor     1.1443        .25670       -.80643E-06   -.16486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.96571
  Index      = 2.15424
  Normalizat = 0.996283
  Prefactor  = 1.14434
 **********
 **   18 **HESSE 
 **********

 FCN=   4846.051     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9657        8.4322        .18050E-03   -1.5262    
   2  Index         2.1542        1.0333        .99903E-03   -.60547    
   3  Normalizat    .99628        .25804        .28490E-03   -.93155    
   4  Prefactor     1.1443        .29996        .31053E-03   -.88062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31767e-10
Minuit parameter uncertainties:
  1  8.43422
  2  1.04455
  3  0.258365
  4  0.300406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/949807': 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): 0
logL (Free Index) = 4846.05132687
delta logL = 0.0556856599069

Extracting fit parameters...

4FGL J1136.2+3407
   Spectrum: PowerLaw
306    Prefactor:  4.966e+00  8.434e+00  1.000e-04  1.000e+04 ( 1.000e-12)
307        Index:  2.154e+00  1.045e+00  0.000e+00  1.000e+01 (-1.000e+00)
308        Scale:  6.244e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
623    Prefactor:  1.144e+00  3.004e-01  0.000e+00  1.000e+01 ( 1.000e+00)
624        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
625        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
622   Normalization:  9.963e-01  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 174.075 34.129

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/949807/cmap_HighResolution_444355201_444614401_4FGL_J1136.2+3407_daily_bin791.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-04 05:21:51.837469', job_id='949807', GAL2='1.14', fit_tolerance='1e-08', EG2='1.00', EG='0.99', time_epoch_completed='1630758111.84', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='5.57e-02', ts2='0.44', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='791' AND source_name='4FGL J1136.2+3407' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 05:21:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 949807: <4FGL_J1136.2+3407_daily_bin791> in cluster <slac> Done

Job <4FGL_J1136.2+3407_daily_bin791> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 05:06:34 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 05:06:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 05:06:36 2021
Terminated at Sat Sep  4 05:21:52 2021
Results reported at Sat Sep  4 05:21:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1136.2+3407_daily_bin791 174.075 34.129 444355201 444614401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1136.2+3407 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   788.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

