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


Performing analysis on: 4FGL_J1202.5-0528_daily_bin1281
RA = 180.629, Dec = -5.4709
tmin = 571363201, tmax = 571622401
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='273027', job_status='RUN', time_executed='2021-09-04 21:18:05.775048', time_epoch_executed='1630815485.78' WHERE source_name='4FGL J1202.5-0528' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273027

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273027/ft1_4FGL_J1202.5-0528_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273027/ft2_4FGL_J1202.5-0528_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273027/ft1_4FGL_J1202.5-0528_daily_bin1281.fits outfile=/scratch/kocevski/273027/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin1281.fits ra=180.629 dec=-5.4709 rad=12.0 tmin=571363201.0 tmax=571622401.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 2.90
user 2.65
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/273027/ft2_4FGL_J1202.5-0528_daily_bin1281.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/273027/ft2_4FGL_J1202.5-0528_daily_bin1281.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/273027/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin1281.fits evtable="EVENTS" outfile="/scratch/kocevski/273027/ft1_filtered_4FGL_J1202.5-0528_daily_bin1281.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273027/ft1_filtered_4FGL_J1202.5-0528_daily_bin1281.fits" evtable="EVENTS" scfile=/scratch/kocevski/273027/ft2_4FGL_J1202.5-0528_daily_bin1281.fits sctable="SC_DATA" outfile=/scratch/kocevski/273027/ltcube_571363201_571622401_4FGL_J1202.5-0528_daily_bin1281.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/273027/ft2_4FGL_J1202.5-0528_daily_bin1281.fits
.....................!
real 12.28
user 11.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273027/ft1_filtered_4FGL_J1202.5-0528_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/273027/ft2_4FGL_J1202.5-0528_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/273027/ltcube_571363201_571622401_4FGL_J1202.5-0528_daily_bin1281.fits outfile=/scratch/kocevski/273027/expmap_571363201_571622401_4FGL_J1202.5-0528_daily_bin1281.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/273027/ltcube_571363201_571622401_4FGL_J1202.5-0528_daily_bin1281.fits
.....................!
real 191.07
user 186.52
sys 4.21

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

Setting source of interest to:
4FGL J1202.5-0528 @ 180.629 -5.4709

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/273027/ft1_filtered_4FGL_J1202.5-0528_daily_bin1281.fits scfile=/scratch/kocevski/273027/ft2_4FGL_J1202.5-0528_daily_bin1281.fits outfile=/scratch/kocevski/273027/cmap_571363201_571622401_4FGL_J1202.5-0528_daily_bin1281.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=180.629 yref=-5.4709 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273027/ft1_filtered_4FGL_J1202.5-0528_daily_bin1281.fits scfile=/scratch/kocevski/273027/ft2_4FGL_J1202.5-0528_daily_bin1281.fits outfile=/scratch/kocevski/273027/cmap_HighResolution_571363201_571622401_4FGL_J1202.5-0528_daily_bin1281.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=180.629 yref=-5.4709 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273027/ft1_filtered_4FGL_J1202.5-0528_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/273027/ft2_4FGL_J1202.5-0528_daily_bin1281.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273027/Model_4FGL_J1202.5-0528_daily_bin1281.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/273027/ft1_filtered_4FGL_J1202.5-0528_daily_bin1281.fits.....................!
real 48.33
user 47.05
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/273027/ft1_filtered_4FGL_J1202.5-0528_daily_bin1281.fits', '/scratch/kocevski/273027/ft2_4FGL_J1202.5-0528_daily_bin1281.fits', expMap='/scratch/kocevski/273027/expmap_571363201_571622401_4FGL_J1202.5-0528_daily_bin1281.fits', expCube='/scratch/kocevski/273027/ltcube_571363201_571622401_4FGL_J1202.5-0528_daily_bin1281.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/273027/Model_4FGL_J1202.5-0528_daily_bin1281.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1202.5-0528'

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  3.355e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  2.834e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  4.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/273027/ft1_filtered_4FGL_J1202.5-0528_daily_bin1281.fits
Spacecraft file(s): /scratch/kocevski/273027/ft2_4FGL_J1202.5-0528_daily_bin1281.fits
Exposure map: /scratch/kocevski/273027/expmap_571363201_571622401_4FGL_J1202.5-0528_daily_bin1281.fits
Exposure cube: /scratch/kocevski/273027/ltcube_571363201_571622401_4FGL_J1202.5-0528_daily_bin1281.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/273027/Model_4FGL_J1202.5-0528_daily_bin1281.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) = 5313.12988903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    11.515       1.0000         .10000E-03   10000.    
     3 'Prefactor '    50.917       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.935       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.309       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9506       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.331       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.110       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4495       1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.681       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    129.28       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .29491       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.4182       1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.0816       1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.9302       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2082       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .93103       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5313.108     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4546 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.839        .66071E-06** at limit **
   2  Prefactor     11.516        11.024        .20081E-06   -.26839E-04
   3  Prefactor     50.966        126.59       -.73829E-05   -.12184E-04
   4  norm          .10000E-03    6.4038        .55990E-06** at limit **
   5  Prefactor     .10000E-03    2.7817        .29155E-07** at limit **
   6  norm          .10000E-03    9.0886       -.54863E-06** at limit **
   7  Prefactor     .10000E-03    3.5926       -.81609E-07** at limit **
   8  Prefactor     .10000E-03    11.731        .64477E-06** at limit **
   9  Prefactor     .10000E-03    16.026       -.51220E-06** at limit **
  10  norm          .10000E-03    2.7657        .52895E-07** at limit **
  11  Prefactor     12.935        6.4307        .14915E-06    .16107E-04
  12  Prefactor     45.311        28.191        .19174E-06    .13207E-04
  13  Prefactor     4.9466        36.002        .19219E-05    .73170E-05
  14  Prefactor     .10000E-03    24.899        .83572E-06** at limit **
  15  Prefactor     13.332        14.102        .19491E-06    .50338E-04
  16  Prefactor     43.116        23.607       -.23972E-06    .11351E-04
  17  Prefactor     .10000E-03    13.811        .48118E-06** at limit **
  18  Prefactor     .10000E-03    18.742       -.14527E-05** at limit **
  19  Prefactor     .10000E-03    14.763        .36141E-07** at limit **
  20  Prefactor     5.4451        38.684        .20409E-05    .26380E-04
  21  Prefactor     33.681        18.431        .43388E-06    .23043E-03
  22  norm          .10000E-03    1.4547        .19029E-07** at limit **
  23  norm          .10000E-03    4.9890       -.11880E-05** at limit **
  24  norm          129.27        79.992        .35773E-05    .22858E-03
  25  Prefactor     .10000E-03    3.6343       -.17263E-06** at limit **
  26  norm          .29497        .73581       -.49271E-06   -.13157E-02
  27  Prefactor     4.4181        2.1665       -.14164E-06    .83707E-04
  28  Prefactor     5.0812        11.561        .29806E-05    .14465E-04
  29  Prefactor     1.9312        28.104        .12945E-04   -.14985E-03
  30  Prefactor     .10000E-03    6.9247       -.32221E-06** at limit **
  31  Prefactor     .10000E-03    24.082        .10023E-06** at limit **
  32  Normalizat    1.2079        .30181       -.26264E-05    .12087E-03
  33  Prefactor     .93119        .17836        .39358E-06    .20077E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.516
  Prefactor  = 50.9659
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9352
  Prefactor  = 45.3112
  Prefactor  = 4.94656
  Prefactor  = 0.0001
  Prefactor  = 13.3324
  Prefactor  = 43.1155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.44509
  Prefactor  = 33.6809
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 129.271
  Prefactor  = 0.0001
  norm       = 0.294966
  Prefactor  = 4.4181
  Prefactor  = 5.08117
  Prefactor  = 1.93118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20795
  Prefactor  = 0.93119
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.108     FROM HESSE     STATUS=OK           683 CALLS     5229 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.516        11.030        .11806E-03   -1.5029    
   3  Prefactor     50.966        125.75        .56203E-04   -1.4279    
   4  norm          .10000E-03    6.4122        .18014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.7919        .11869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.0812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6525        .13489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.7759        .11837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.935        6.4275        .11137E-03   -1.4989    
  12  Prefactor     45.311        28.262        .59564E-04   -1.4361    
  13  Prefactor     4.9466        35.920        .18076E-03   -1.5263    
  14  Prefactor     .10000E-03    24.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.332        14.111        .10971E-03   -1.4978    
  16  Prefactor     43.116        23.685        .61058E-04   -1.4394    
  17  Prefactor     .10000E-03    13.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4451        38.633        .17213E-03   -1.5241    
  21  Prefactor     33.681        18.323        .69047E-04   -1.4547    
  22  norm          .10000E-03    1.4625        .85633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.1478        .31846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          129.27        78.672        .17705E-03   -1.3429    
  25  Prefactor     .10000E-03    3.6656        .13558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .29497        .70483        .81724E-04   -1.5599    
  27  Prefactor     4.4181        2.1674        .71985E-04   -1.5288    
  28  Prefactor     5.0812        11.563        .89182E-03   -1.5257    
  29  Prefactor     1.9312        28.476        .14948E-02   -1.5430    
  30  Prefactor     .10000E-03    7.0562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    24.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2079        .35326        .33679E-03   -.86358    
  33  Prefactor     .93119        .21181        .24229E-03   -.95060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40578e-09
Minuit parameter uncertainties:
  1  5.57436e-05
  2  11.032
  3  126.414
  4  1.96105e-05
  5  5.37061e-06
  6  4.10583e-06
  7  1.55223e-05
  8  8.90858e-06
  9  6.11024e-06
  10  1.34805e-06
  11  6.42784
  12  28.27
  13  26.6818
  14  2.19936e-05
  15  14.1148
  16  23.6904
  17  1.64321e-05
  18  3.21098e-05
  19  2.77068e-06
  20  29.0341
  21  18.3258
  22  3.59469e-07
  23  0.000135038
  24  78.7354
  25  1.70279e-05
  26  0.704848
  27  2.16744
  28  11.5677
  29  14.8395
  30  1.49463e-05
  31  1.63995e-05
  32  0.353958
  33  0.211996
Done.

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

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  4.312e+01  2.369e+01  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  2.834e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  4.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.312e-01  2.120e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.208e+00  3.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.83
Ra Dec: 180.629 -5.471
Photon Index (Fixed Index): 2.83 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 8.67e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 1.90e-05

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) = 5313.02541411
delta logL = 0.0828710921041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5313.02420407
delta logL = 0.0840811278449

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5313.024     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      294 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.313        26.756        .58295E-04   -.51150E-03
   2  Index         2.6034        .53791        .72802E-02   -.19085E-03
   3  Normalizat    1.2300        .33029        .33418E-03    .47151E-04
   4  Prefactor     .91944        .20944        .24359E-03    .67255E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.313
  Index      = 2.60343
  Normalizat = 1.22997
  Prefactor  = 0.919444
 **********
 **   18 **HESSE 
 **********

 FCN=   5313.024     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.313        26.570        .11659E-04   -1.4331    
   2  Index         2.6034        .53392        .29121E-03   -.49987    
   3  Normalizat    1.2300        .33062        .13367E-04   -.85682    
   4  Prefactor     .91944        .20960        .97434E-05   -.95465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.57214e-10
Minuit parameter uncertainties:
  1  26.5767
  2  0.535251
  3  0.331183
  4  0.209781
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273027': 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) = 5313.02420399
delta logL = 0.084081209392

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  4.731e+01  2.658e+01  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  2.603e+00  5.353e-01  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  4.412e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.194e-01  2.098e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.230e+00  3.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.94
Ra Dec: 180.629 -5.471
Photon Index (Free Index): 2.60 +/- 0.54
Photon Flux (Free Index): 1.41e-07 +/- 8.96e-08
Energy Flux (Free Index): 3.68e-05 +/- 2.10e-05

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/273027/cmap_HighResolution_571363201_571622401_4FGL_J1202.5-0528_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='3.68e-05', photon_flux_error='8.67e-08', dlogl='8.41e-02', energy_flux='3.46e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-04 21:30:50.305572', photon_index_error2='0.54', photon_index2='2.60', ts='5.83', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.21', time_epoch_completed='1630816250.31', return_code='0', job_id='273027', GAL2='0.92', EG2='1.23', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='8.96e-08', ts2='5.94', photon_index='2.83' WHERE bin_id='1281' AND source_name='4FGL J1202.5-0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:30:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 273027: <4FGL_J1202.5-0528_daily_bin1281> in cluster <slac> Done

Job <4FGL_J1202.5-0528_daily_bin1281> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:15:32 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:15:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 21:15:33 2021
Terminated at Sat Sep  4 21:30:51 2021
Results reported at Sat Sep  4 21:30:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1202.5-0528_daily_bin1281 180.629 -5.4709 571363201 571622401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1202.5-0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   758.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

