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


Performing analysis on: 4FGL_J1202.5-0528_daily_bin1481
RA = 180.629, Dec = -5.4709
tmin = 623203201, tmax = 623462401
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='274737', job_status='RUN', time_executed='2021-09-04 21:23:28.517888', time_epoch_executed='1630815808.52' WHERE source_name='4FGL J1202.5-0528' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274737

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274737/ft1_4FGL_J1202.5-0528_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274737/ft2_4FGL_J1202.5-0528_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274737/ft1_4FGL_J1202.5-0528_daily_bin1481.fits outfile=/scratch/kocevski/274737/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin1481.fits ra=180.629 dec=-5.4709 rad=12.0 tmin=623203201.0 tmax=623462401.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.93
user 2.72
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/274737/ft2_4FGL_J1202.5-0528_daily_bin1481.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/274737/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin1481.fits evtable="EVENTS" outfile="/scratch/kocevski/274737/ft1_filtered_4FGL_J1202.5-0528_daily_bin1481.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274737/ft1_filtered_4FGL_J1202.5-0528_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/274737/ft2_4FGL_J1202.5-0528_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/274737/ltcube_623203201_623462401_4FGL_J1202.5-0528_daily_bin1481.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/274737/ft2_4FGL_J1202.5-0528_daily_bin1481.fits
.....................!
real 12.17
user 11.84
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274737/ft1_filtered_4FGL_J1202.5-0528_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/274737/ft2_4FGL_J1202.5-0528_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/274737/ltcube_623203201_623462401_4FGL_J1202.5-0528_daily_bin1481.fits outfile=/scratch/kocevski/274737/expmap_623203201_623462401_4FGL_J1202.5-0528_daily_bin1481.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/274737/ltcube_623203201_623462401_4FGL_J1202.5-0528_daily_bin1481.fits
.....................!
real 189.63
user 185.38
sys 3.90

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/274737/ft1_filtered_4FGL_J1202.5-0528_daily_bin1481.fits scfile=/scratch/kocevski/274737/ft2_4FGL_J1202.5-0528_daily_bin1481.fits outfile=/scratch/kocevski/274737/cmap_623203201_623462401_4FGL_J1202.5-0528_daily_bin1481.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274737/ft1_filtered_4FGL_J1202.5-0528_daily_bin1481.fits scfile=/scratch/kocevski/274737/ft2_4FGL_J1202.5-0528_daily_bin1481.fits outfile=/scratch/kocevski/274737/cmap_HighResolution_623203201_623462401_4FGL_J1202.5-0528_daily_bin1481.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/274737/ft1_filtered_4FGL_J1202.5-0528_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/274737/ft2_4FGL_J1202.5-0528_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274737/Model_4FGL_J1202.5-0528_daily_bin1481.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/274737/ft1_filtered_4FGL_J1202.5-0528_daily_bin1481.fits.......................!
real 23.00
user 21.76
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/274737/ft1_filtered_4FGL_J1202.5-0528_daily_bin1481.fits', '/scratch/kocevski/274737/ft2_4FGL_J1202.5-0528_daily_bin1481.fits', expMap='/scratch/kocevski/274737/expmap_623203201_623462401_4FGL_J1202.5-0528_daily_bin1481.fits', expCube='/scratch/kocevski/274737/ltcube_623203201_623462401_4FGL_J1202.5-0528_daily_bin1481.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/274737/Model_4FGL_J1202.5-0528_daily_bin1481.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/274737/ft1_filtered_4FGL_J1202.5-0528_daily_bin1481.fits
Spacecraft file(s): /scratch/kocevski/274737/ft2_4FGL_J1202.5-0528_daily_bin1481.fits
Exposure map: /scratch/kocevski/274737/expmap_623203201_623462401_4FGL_J1202.5-0528_daily_bin1481.fits
Exposure cube: /scratch/kocevski/274737/ltcube_623203201_623462401_4FGL_J1202.5-0528_daily_bin1481.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/274737/Model_4FGL_J1202.5-0528_daily_bin1481.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) = 1171.29963339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18769E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.879       1.0000         .10000E-03   10000.    
     6 'norm      '    .29720E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .44352E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4555       1.0000         .10000E-03   10000.    
    10 'norm      '    .10614E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2425       1.0000         .10000E-03   10000.    
    12 'Prefactor '    52.811       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79510E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    229.51       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11424E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    26.847       1.0000         .10000E-03   10000.    
    24 'norm      '    .19340       1.0000         .10000E-03   10000.    
    25 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    26 'norm      '    .54232       1.0000         .10000E-03   10000.    
    27 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .44822E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    9999.7       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .17026E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1079       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .64627       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=   1168.792     FROM MIGRAD    STATUS=CONVERGED    930 CALLS     5482 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.810       -.50940E-07** at limit **
   2  Prefactor     .10000E-03    16.854       -.60355E-06** at limit **
   3  Prefactor     .10000E-03    142.10        .15305E-06** at limit **
   4  norm          .10000E-03    9.9360       -.10554E-06** at limit **
   5  Prefactor     10.894        12.119       -.72676E-06    .63068E-04
   6  norm          .10000E-03    147.18       -.10857E-05** at limit **
   7  Prefactor     .10000E-03    1.4060       -.10781E-06** at limit **
   8  Prefactor     .10000E-03    151.64       -.11041E-05** at limit **
   9  Prefactor     5.6244        6183.0       -.29053E-05    .20566E-06
  10  norm          .10000E-03    49.230       -.31710E-06** at limit **
  11  Prefactor     6.2389        19.509        .18708E-06    .51637E-06
  12  Prefactor     52.917        158.20        .76079E-06    .11307E-06
  13  Prefactor     .10000E-03    23.641       -.95021E-07** at limit **
  14  Prefactor     .10000E-03    265.58        .62882E-06** at limit **
  15  Prefactor     .10000E-03    16.932       -.55481E-06** at limit **
  16  Prefactor     229.60        148.08       -.27772E-06    .10999E-04
  17  Prefactor     .10000E-03    217.03        .51765E-06** at limit **
  18  Prefactor     .10000E-03    79.208       -.74872E-06** at limit **
  19  Prefactor     .10000E-03    519.93       -.16796E-05** at limit **
  20  Prefactor     .10000E-03    29.188       -.29743E-06** at limit **
  21  Prefactor     .10000E-03    46.425        .29456E-06** at limit **
  22  norm          .10000E-03    4.3180        .84613E-07** at limit **
  23  norm          26.843        13.282        .18417E-05    .16155E-03
  24  norm          .10003E-03    1984.7       -.97811E-05** at limit **
  25  Prefactor    10000.0        6994.1        .81830E-09** at limit **
  26  norm          .54801        2.2142       -.11737E-05   -.29606E-03
  27  Prefactor    10000.0        8104.5       -.13753E-06** at limit **
  28  Prefactor     .10000E-03    125.26       -.12458E-05** at limit **
  29  Prefactor    10000.0        9905.0        .66707E-05** at limit **
  30  Prefactor     .10000E-03    29.503       -.88477E-07** at limit **
  31  Prefactor     .10000E-03    232.64       -.52164E-07** at limit **
  32  Normalizat    1.1073        .50221        .67047E-05   -.69008E-05
  33  Prefactor     .64641        .37856       -.50301E-05    .11291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8941
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.62441
  norm       = 0.0001
  Prefactor  = 6.23888
  Prefactor  = 52.917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 229.598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.8425
  norm       = 0.000100035
  Prefactor  = 10000
  norm       = 0.548008
  Prefactor  = 10000
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10725
  Prefactor  = 0.64641
 **********
 **   18 **HESSE 
 **********

 FCN=   1168.792     FROM HESSE     STATUS=OK           675 CALLS     6157 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.818        .12412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.085        .13686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    142.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    9.9466        .10526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.894        12.116        .11727E-03   -1.5048    
   6  norm          .10000E-03    147.44        .19839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.4092        .39587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    152.22        .21216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6244        6160.7        .17203E-03   -1.5234    
  10  norm          .10000E-03    49.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.2389        19.489        .16067E-03   -1.5208    
  12  Prefactor     52.917        158.14        .55191E-04   -1.4252    
  13  Prefactor     .10000E-03    23.646        .16243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    265.54        .20906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.021        .13742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     229.60        148.06        .13356E-03   -1.2666    
  17  Prefactor     .10000E-03    216.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    79.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    538.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.206        .18053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.3282        .69366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          26.843        13.780        .72968E-04   -1.4671    
  24  norm          .10003E-03    2048.0        .39790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        6994.2        .19572E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .54801        2.1835        .79041E-04   -1.5560    
  27  Prefactor    10000.0        8104.7        .20651E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    128.05        .42421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor    10000.0        9904.9        .21113E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    29.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    232.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1073        .56731        .29464E-03   -.89519    
  33  Prefactor     .64641        .42710        .27177E-03   -1.0567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.6443e-10
Minuit parameter uncertainties:
  1  3.75312e-06
  2  2.58468e-05
  3  4.58169e-05
  4  7.13219e-06
  5  12.1184
  6  0.000417297
  7  4.84352e-07
  8  0.000202083
  9  249.942
  10  3.94781e-05
  11  19.5093
  12  159.42
  13  2.55986e-06
  14  3.2236e-05
  15  4.66536e-07
  16  148.297
  17  3.12141e-05
  18  0.000138514
  19  0.000295295
  20  3.43126e-05
  21  1.24228e-05
  22  3.0738e-06
  23  13.782
  24  0.017462
  25  0.00246814
  26  2.18377
  27  0.00278966
  28  0.000542348
  29  0.0959991
  30  2.55565e-05
  31  8.16946e-05
  32  0.570477
  33  0.429281
Done.

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

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  2.296e+02  1.483e+02  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:  6.464e-01  4.293e-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.107e+00  5.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 180.629 -5.471
Photon Index (Fixed Index): 2.83 +/- 0.00
Photon Flux (Fixed Index): 8.42e-07 +/- 5.43e-07
Energy Flux (Fixed Index): 1.84e-04 +/- 1.19e-04

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) = 1168.02852881
delta logL = 0.763060755619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1168.01561201
delta logL = 0.77597754953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    212.35       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9661       1.0000          .0000       10.000    
     3 'Normalizat'    1.1800       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60641       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=   1168.016     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .37E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     212.20        176.56       -.10914E-04    .15305E-07
   2  Index         1.9660        .64864       -.43302E-04   -.36894E-05
   3  Normalizat    1.1805        .46988        .40761E-05   -.41911E-05
   4  Prefactor     .60604        .33826       -.25875E-05    .54216E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 212.197
  Index      = 1.96599
  Normalizat = 1.18046
  Prefactor  = 0.606038
 **********
 **   18 **HESSE 
 **********

 FCN=   1168.016     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     212.20        174.70        .13873E-03   -1.2784    
   2  Index         1.9660        .64191        .43247E-02   -.65203    
   3  Normalizat    1.1805        .55125        .28758E-03   -.87209    
   4  Prefactor     .60604        .39698        .28024E-03   -1.0733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.37972e-11
Minuit parameter uncertainties:
  1  175.126
  2  0.644731
  3  0.553988
  4  0.39883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274737': 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) = 1168.0156111
delta logL = 0.775978458887

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  2.122e+02  1.751e+02  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  1.966e+00  6.447e-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:  6.060e-01  3.988e-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.180e+00  5.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.93
Ra Dec: 180.629 -5.471
Photon Index (Free Index): 1.97 +/- 0.64
Photon Flux (Free Index): 4.06e-07 +/- 4.14e-07
Energy Flux (Free Index): 3.06e-04 +/- 3.46e-04

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/274737/cmap_HighResolution_623203201_623462401_4FGL_J1202.5-0528_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.42e-07', energy_flux2='3.06e-04', photon_flux_error='5.43e-07', dlogl='7.76e-01', energy_flux='1.84e-04', photon_flux2='4.06e-07', job_status='DONE', time_completed='2021-09-04 21:33:31.713350', photon_index_error2='0.64', photon_index2='1.97', ts='5.40', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='3.46e-04', EG='1.11', time_epoch_completed='1630816411.71', return_code='0', job_id='274737', GAL2='0.61', EG2='1.18', return_code2='0', energy_flux_error='1.19e-04', photon_flux_error2='4.14e-07', ts2='6.93', photon_index='2.83' WHERE bin_id='1481' AND source_name='4FGL J1202.5-0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:33:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 274737: <4FGL_J1202.5-0528_daily_bin1481> in cluster <slac> Done

Job <4FGL_J1202.5-0528_daily_bin1481> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 21:20:34 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:20: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 21:20:36 2021
Terminated at Sat Sep  4 21:33:32 2021
Results reported at Sat Sep  4 21:33:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1202.5-0528_daily_bin1481 180.629 -5.4709 623203201 623462401 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 :                                   425.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             224.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            778 sec.

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

