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


Performing analysis on: 4FGL_J1202.5-0528_daily_bin1223
RA = 180.629, Dec = -5.4709
tmin = 556329601, tmax = 556588801
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='272902', job_status='RUN', time_executed='2021-09-04 21:17:45.844376', time_epoch_executed='1630815465.84' WHERE source_name='4FGL J1202.5-0528' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272902

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272902/ft1_4FGL_J1202.5-0528_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272902/ft2_4FGL_J1202.5-0528_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272902/ft1_4FGL_J1202.5-0528_daily_bin1223.fits outfile=/scratch/kocevski/272902/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin1223.fits ra=180.629 dec=-5.4709 rad=12.0 tmin=556329601.0 tmax=556588801.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.80
user 3.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272902/ft1_filtered_4FGL_J1202.5-0528_daily_bin1223.fits" evtable="EVENTS" scfile=/scratch/kocevski/272902/ft2_4FGL_J1202.5-0528_daily_bin1223.fits sctable="SC_DATA" outfile=/scratch/kocevski/272902/ltcube_556329601_556588801_4FGL_J1202.5-0528_daily_bin1223.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/272902/ft2_4FGL_J1202.5-0528_daily_bin1223.fits
.....................!
real 11.84
user 11.43
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272902/ft1_filtered_4FGL_J1202.5-0528_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/272902/ft2_4FGL_J1202.5-0528_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/272902/ltcube_556329601_556588801_4FGL_J1202.5-0528_daily_bin1223.fits outfile=/scratch/kocevski/272902/expmap_556329601_556588801_4FGL_J1202.5-0528_daily_bin1223.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/272902/ltcube_556329601_556588801_4FGL_J1202.5-0528_daily_bin1223.fits
.....................!
real 191.90
user 187.48
sys 4.03

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/272902/ft1_filtered_4FGL_J1202.5-0528_daily_bin1223.fits scfile=/scratch/kocevski/272902/ft2_4FGL_J1202.5-0528_daily_bin1223.fits outfile=/scratch/kocevski/272902/cmap_556329601_556588801_4FGL_J1202.5-0528_daily_bin1223.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272902/ft1_filtered_4FGL_J1202.5-0528_daily_bin1223.fits scfile=/scratch/kocevski/272902/ft2_4FGL_J1202.5-0528_daily_bin1223.fits outfile=/scratch/kocevski/272902/cmap_HighResolution_556329601_556588801_4FGL_J1202.5-0528_daily_bin1223.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/272902/ft1_filtered_4FGL_J1202.5-0528_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/272902/ft2_4FGL_J1202.5-0528_daily_bin1223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/272902/Model_4FGL_J1202.5-0528_daily_bin1223.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/272902/ft1_filtered_4FGL_J1202.5-0528_daily_bin1223.fits....................!
real 35.24
user 33.91
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0396       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3350       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.2125       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.835       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0903       1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.592       1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.070       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21527E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    77.839       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.677       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    229.05       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.3231       1.0000         .10000E-03   10000.    
    26 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.1853       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    15.585       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .79836       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0091       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=   3037.743     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4688 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0399        80.566        .74454E-05   -.60331E-07
   2  Prefactor     2.3345        12.615        .62131E-05   -.17902E-05
   3  Prefactor     .10000E-03    63.485       -.98711E-06** at limit **
   4  norm          6.2137        13.395       -.65600E-06   -.27019E-05
   5  Prefactor     .10000E-03    2.9656        .11906E-06** at limit **
   6  norm          .10000E-03    12.517       -.43884E-07** at limit **
   7  Prefactor     .10000E-03    4.0750       -.94948E-08** at limit **
   8  Prefactor     43.819        40.793        .56363E-06   -.19124E-05
   9  Prefactor     4.1509        56.644       -.36743E-05   -.27396E-05
  10  norm          .10000E-03    13.753       -.15371E-05** at limit **
  11  Prefactor     12.588        8.5849       -.27481E-06   -.29996E-03
  12  Prefactor     58.068        33.056        .51923E-06   -.43387E-04
  13  Prefactor     .10000E-03    22.703       -.14911E-05** at limit **
  14  Prefactor     .10001E-03    503.56        .37082E-04** at limit **
  15  Prefactor     .10000E-03    11.554        .31409E-06** at limit **
  16  Prefactor     77.832        38.490       -.60572E-06   -.20526E-03
  17  Prefactor     .10000E-03    35.184        .27691E-05** at limit **
  18  Prefactor     54.622        172.25        .89705E-05    .10677E-04
  19  Prefactor     .10000E-03    16.912        .17508E-05** at limit **
  20  Prefactor     .10000E-03    99.814       -.32231E-05** at limit **
  21  Prefactor     .10000E-03    12.641       -.41842E-06** at limit **
  22  norm          .10000E-03    2.1609       -.74267E-07** at limit **
  23  norm          .10000E-03    12.072        .60392E-06** at limit **
  24  norm          229.02        218.00        .41327E-05    .61909E-04
  25  Prefactor     7.3225        9.9836        .92530E-06    .65863E-05
  26  norm          .10000E-03    1.8651       -.95520E-06** at limit **
  27  Prefactor     4.1854        3.0694       -.11580E-06    .77219E-05
  28  Prefactor     .10000E-03    11.301       -.83031E-06** at limit **
  29  Prefactor     15.588        20.524        .13907E-06   -.68399E-06
  30  Prefactor     .10000E-03    27.942       -.12926E-05** at limit **
  31  Prefactor     .10000E-03    109.50       -.75102E-06** at limit **
  32  Normalizat    .79828        .39652       -.38113E-05    .16827E-04
  33  Prefactor     1.0091        .22519        .51823E-06   -.45930E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03987
  Prefactor  = 2.33451
  Prefactor  = 0.0001
  norm       = 6.21369
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.8193
  Prefactor  = 4.15091
  norm       = 0.0001
  Prefactor  = 12.588
  Prefactor  = 58.0679
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 77.8316
  Prefactor  = 0.0001
  Prefactor  = 54.6225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 229.016
  Prefactor  = 7.32254
  norm       = 0.0001
  Prefactor  = 4.18545
  Prefactor  = 0.0001
  Prefactor  = 15.5877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.798279
  Prefactor  = 1.0091
 **********
 **   18 **HESSE 
 **********

 FCN=   3037.743     FROM HESSE     STATUS=OK           681 CALLS     5369 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0399        78.073        .14478E-02   -1.5422    
   2  Prefactor     2.3345        12.798        .13417E-02   -1.5402    
   3  Prefactor     .10000E-03    63.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.2137        13.326        .80529E-03   -1.5209    
   5  Prefactor     .10000E-03    2.9712        .92642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1260        .10858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.819        40.842        .60552E-04   -1.4383    
   9  Prefactor     4.1509        56.526        .19934E-03   -1.5300    
  10  norm          .10000E-03    13.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.588        8.5759        .11289E-03   -1.4998    
  12  Prefactor     58.068        33.055        .52646E-04   -1.4182    
  13  Prefactor     .10000E-03    22.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    505.64        .40323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     77.832        38.668        .45516E-04   -1.3941    
  17  Prefactor     .10000E-03    35.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     54.622        173.03        .54246E-04   -1.4228    
  19  Prefactor     .10000E-03    16.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    99.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.1635        .79118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    12.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          229.02        213.93        .13369E-03   -1.2670    
  25  Prefactor     7.3225        9.9972        .74108E-03   -1.5167    
  26  norm          .10000E-03    3.0307        .14112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.1854        3.0786        .74551E-04   -1.5299    
  28  Prefactor     .10000E-03    11.310        .18098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     15.588        20.497        .10146E-03   -1.4918    
  30  Prefactor     .10000E-03    28.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    109.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .79828        .45190        .38715E-03   -1.0013    
  33  Prefactor     1.0091        .25996        .21877E-03   -.92427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67932e-10
Minuit parameter uncertainties:
  1  25.2745
  2  10.9354
  3  2.42715e-05
  4  13.3323
  5  6.71976e-06
  6  8.35132e-06
  7  5.34651e-06
  8  40.8683
  9  30.6705
  10  2.78364e-06
  11  8.57674
  12  33.0655
  13  1.56599e-05
  14  0.00426257
  15  3.30849e-05
  16  38.6803
  17  4.63151e-07
  18  174.662
  19  1.02254e-06
  20  7.1292e-05
  21  7.54421e-06
  22  6.95345e-07
  23  2.54485e-05
  24  214.663
  25  9.99946
  26  2.31198e-05
  27  3.07875
  28  2.0347e-07
  29  20.506
  30  8.19012e-06
  31  5.13082e-06
  32  0.454048
  33  0.260283
Done.

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

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  7.783e+01  3.868e+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:  1.009e+00  2.603e-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:  7.983e-01  4.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.72
Ra Dec: 180.629 -5.471
Photon Index (Fixed Index): 2.83 +/- 0.00
Photon Flux (Fixed Index): 2.85e-07 +/- 1.42e-07
Energy Flux (Fixed Index): 6.25e-05 +/- 3.10e-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) = 3037.52622648
delta logL = 0.217140097214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3037.5236517
delta logL = 0.219714874083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.755       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4246       1.0000          .0000       10.000    
     3 'Normalizat'    .88525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96954       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=   3037.524     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.749        42.839       -.23324E-05    .26279E-05
   2  Index         2.4245        .59009       -.11020E-04    .17602E-04
   3  Normalizat    .88511        .37285        .49521E-05    .94761E-04
   4  Prefactor     .97001        .22331       -.14568E-05    .18488E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.7486
  Index      = 2.42453
  Normalizat = 0.885105
  Prefactor  = 0.970006
 **********
 **   18 **HESSE 
 **********

 FCN=   3037.524     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.749        42.693        .44693E-04   -1.3908    
   2  Index         2.4245        .58767        .62118E-02   -.54112    
   3  Normalizat    .88511        .42001        .36985E-03   -.96986    
   4  Prefactor     .97001        .25539        .22246E-03   -.93736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15337e-11
Minuit parameter uncertainties:
  1  42.7092
  2  0.589523
  3  0.421577
  4  0.255706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272902': 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) = 3037.52364662
delta logL = 0.219719954887

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  8.075e+01  4.271e+01  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  2.425e+00  5.895e-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.700e-01  2.557e-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:  8.851e-01  4.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.06
Ra Dec: 180.629 -5.471
Photon Index (Free Index): 2.42 +/- 0.59
Photon Flux (Free Index): 2.07e-07 +/- 1.59e-07
Energy Flux (Free Index): 6.58e-05 +/- 3.60e-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/272902/cmap_HighResolution_556329601_556588801_4FGL_J1202.5-0528_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.85e-07', energy_flux2='6.58e-05', photon_flux_error='1.42e-07', dlogl='2.20e-01', energy_flux='6.25e-05', photon_flux2='2.07e-07', job_status='DONE', time_completed='2021-09-04 21:27:35.210577', photon_index_error2='0.59', photon_index2='2.42', ts='7.72', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.60e-05', EG='0.80', time_epoch_completed='1630816055.21', return_code='0', job_id='272902', GAL2='0.97', EG2='0.89', return_code2='0', energy_flux_error='3.10e-05', photon_flux_error2='1.59e-07', ts2='8.06', photon_index='2.83' WHERE bin_id='1223' AND source_name='4FGL J1202.5-0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:27:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 272902: <4FGL_J1202.5-0528_daily_bin1223> in cluster <slac> Done

Job <4FGL_J1202.5-0528_daily_bin1223> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:15:25 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:15:26 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:26 2021
Terminated at Sat Sep  4 21:27:35 2021
Results reported at Sat Sep  4 21:27:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1202.5-0528_daily_bin1223 180.629 -5.4709 556329601 556588801 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 :                                   576.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            730 sec.

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

