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


Performing analysis on: 4FGL_J1202.5-0528_daily_bin1425
RA = 180.629, Dec = -5.4709
tmin = 608688001, tmax = 608947201
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='274658', job_status='RUN', time_executed='2021-09-04 21:23:47.067570', time_epoch_executed='1630815827.07' WHERE source_name='4FGL J1202.5-0528' and cadence='daily' and bin_id='1425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274658/ft1_4FGL_J1202.5-0528_daily_bin1425.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274658/ft2_4FGL_J1202.5-0528_daily_bin1425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274658/ft1_4FGL_J1202.5-0528_daily_bin1425.fits outfile=/scratch/kocevski/274658/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin1425.fits ra=180.629 dec=-5.4709 rad=12.0 tmin=608688001.0 tmax=608947201.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.52
user 2.83
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274658/ft1_filtered_4FGL_J1202.5-0528_daily_bin1425.fits" evtable="EVENTS" scfile=/scratch/kocevski/274658/ft2_4FGL_J1202.5-0528_daily_bin1425.fits sctable="SC_DATA" outfile=/scratch/kocevski/274658/ltcube_608688001_608947201_4FGL_J1202.5-0528_daily_bin1425.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/274658/ft2_4FGL_J1202.5-0528_daily_bin1425.fits
.....................!
real 12.61
user 12.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274658/ft1_filtered_4FGL_J1202.5-0528_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/274658/ft2_4FGL_J1202.5-0528_daily_bin1425.fits sctable="SC_DATA" expcube=/scratch/kocevski/274658/ltcube_608688001_608947201_4FGL_J1202.5-0528_daily_bin1425.fits outfile=/scratch/kocevski/274658/expmap_608688001_608947201_4FGL_J1202.5-0528_daily_bin1425.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/274658/ltcube_608688001_608947201_4FGL_J1202.5-0528_daily_bin1425.fits
.....................!
real 189.93
user 185.79
sys 3.74

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/274658/ft1_filtered_4FGL_J1202.5-0528_daily_bin1425.fits scfile=/scratch/kocevski/274658/ft2_4FGL_J1202.5-0528_daily_bin1425.fits outfile=/scratch/kocevski/274658/cmap_608688001_608947201_4FGL_J1202.5-0528_daily_bin1425.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274658/ft1_filtered_4FGL_J1202.5-0528_daily_bin1425.fits scfile=/scratch/kocevski/274658/ft2_4FGL_J1202.5-0528_daily_bin1425.fits outfile=/scratch/kocevski/274658/cmap_HighResolution_608688001_608947201_4FGL_J1202.5-0528_daily_bin1425.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/274658/ft1_filtered_4FGL_J1202.5-0528_daily_bin1425.fits evtable="EVENTS" scfile=/scratch/kocevski/274658/ft2_4FGL_J1202.5-0528_daily_bin1425.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274658/Model_4FGL_J1202.5-0528_daily_bin1425.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/274658/ft1_filtered_4FGL_J1202.5-0528_daily_bin1425.fits.....................!
real 34.74
user 33.19
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    28.705       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5216       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.1838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.234       1.0000         .10000E-03   10000.    
    12 'Prefactor '    86.737       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.870       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9207       1.0000         .10000E-03   10000.    
    16 'Prefactor '    116.42       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.062       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4329       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.2023       1.0000         .10000E-03   10000.    
    24 'norm      '    54.641       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .23549       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.705       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.283       1.0000         .10000E-03   10000.    
    31 'Prefactor '    231.83       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .93222       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .80901       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=   2735.429     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     6087 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7277        .14419E-07** at limit **
   2  Prefactor     .10000E-03    3.8480        .68241E-07** at limit **
   3  Prefactor     .10000E-03    87.489       -.12642E-05** at limit **
   4  norm          .10000E-03    7.4431        .41699E-07** at limit **
   5  Prefactor     .10000E-03    6.6255       -.26777E-06** at limit **
   6  norm          28.718        28.064        .20614E-06   -.20350E-05
   7  Prefactor     6.5221        3.5627        .11163E-06   -.33789E-04
   8  Prefactor     .10000E-03    13.512        .38680E-07** at limit **
   9  Prefactor     .10000E-03    40.873       -.13508E-06** at limit **
  10  norm          8.1838        14.919        .28130E-06   -.25386E-05
  11  Prefactor     17.233        12.762        .23290E-07   -.56797E-05
  12  Prefactor     86.741        78.184        .60007E-06    .21327E-05
  13  Prefactor     .10000E-03    14.491       -.14391E-06** at limit **
  14  Prefactor     11.872        512.94        .13632E-05   -.50870E-07
  15  Prefactor     4.9173        8.9414        .32560E-05   -.63246E-04
  16  Prefactor     116.42        61.920        .43183E-06   -.80494E-05
  17  Prefactor     .10000E-03    60.785        .65948E-06** at limit **
  18  Prefactor     .10001E-03    531.10       -.70120E-05** at limit **
  19  Prefactor     58.059        52.201       -.83659E-06   -.15277E-04
  20  Prefactor     .10000E-03    18.820       -.68006E-07** at limit **
  21  Prefactor     2.4348        35.090        .12453E-05   -.72810E-05
  22  norm          .10000E-03    1.9982       -.26669E-07** at limit **
  23  norm          2.2019        3.9378        .17761E-08   -.15993E-04
  24  norm          54.643        52.396       -.15096E-06    .29524E-05
  25  Prefactor     .10000E-03    24.511        .53870E-07** at limit **
  26  norm          .23527        .60476        .15755E-06    .19799E-03
  27  Prefactor     22.703        19.546        .37764E-06   -.86878E-05
  28  Prefactor     .10000E-03    14.892        .15460E-06** at limit **
  29  Prefactor     .10000E-03    136.07        .13677E-05** at limit **
  30  Prefactor     10.283        22.723        .47141E-06   -.86659E-05
  31  Prefactor     231.84        256.75        .53983E-06    .84188E-06
  32  Normalizat    .93202        .33835       -.28080E-05    .14061E-04
  33  Prefactor     .80904        .24102       -.26094E-06   -.21620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 28.7181
  Prefactor  = 6.52205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.18385
  Prefactor  = 17.2334
  Prefactor  = 86.7412
  Prefactor  = 0.0001
  Prefactor  = 11.8722
  Prefactor  = 4.91729
  Prefactor  = 116.425
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 58.0592
  Prefactor  = 0.0001
  Prefactor  = 2.43483
  norm       = 0.0001
  norm       = 2.20187
  norm       = 54.6435
  Prefactor  = 0.0001
  norm       = 0.235269
  Prefactor  = 22.703
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 10.2835
  Prefactor  = 231.839
  Normalizat = 0.932018
  Prefactor  = 0.809044
 **********
 **   18 **HESSE 
 **********

 FCN=   2735.429     FROM HESSE     STATUS=OK           691 CALLS     6778 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.7311        .13250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.8948        .10019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    88.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.5401        .13935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6743        .26025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          28.718        27.848        .74777E-04   -1.4636    
   7  Prefactor     6.5221        3.5748        .67800E-04   -1.5197    
   8  Prefactor     .10000E-03    13.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    40.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.1838        14.884        .14015E-03   -1.5136    
  11  Prefactor     17.233        12.730        .96478E-04   -1.4877    
  12  Prefactor     86.741        78.293        .43138E-04   -1.3843    
  13  Prefactor     .10000E-03    14.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.872        508.20        .11627E-03   -1.5019    
  15  Prefactor     4.9173        8.9543        .90658E-03   -1.5264    
  16  Prefactor     116.42        61.757        .37290E-04   -1.3546    
  17  Prefactor     .10000E-03    60.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    547.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     58.059        52.001        .52650E-04   -1.4183    
  20  Prefactor     .10000E-03    18.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.4348        33.589        .26235E-03   -1.5396    
  22  norm          .10000E-03    1.9986        .71990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.2019        3.9022        .13021E-03   -1.5411    
  24  norm          54.643        52.407        .54264E-04   -1.4228    
  25  Prefactor     .10000E-03    24.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .23527        .54486        .60249E-03   -1.5611    
  27  Prefactor     22.703        19.547        .84061E-04   -1.4755    
  28  Prefactor     .10000E-03    14.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    136.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     10.283        22.673        .12495E-03   -1.5066    
  31  Prefactor     231.84        256.68        .26581E-04   -1.2651    
  32  Normalizat    .93202        .37683        .33055E-03   -.95344    
  33  Prefactor     .80904        .27210        .25910E-03   -.99396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51093e-10
Minuit parameter uncertainties:
  1  3.06021e-06
  2  8.42546e-06
  3  0.0011654
  4  1.07592e-05
  5  1.19533e-05
  6  27.8609
  7  3.57496
  8  1.36913e-05
  9  9.51407e-05
  10  14.8909
  11  12.7318
  12  78.3867
  13  4.56983e-05
  14  156.793
  15  8.95674
  16  61.7916
  17  0.000488353
  18  0.00451943
  19  52.0416
  20  1.09615e-05
  21  18.0987
  22  3.48054e-07
  23  3.9027
  24  52.4517
  25  1.76017e-05
  26  0.544872
  27  19.5526
  28  5.03384e-05
  29  0.00147167
  30  22.6924
  31  257.937
  32  0.377903
  33  0.272549
Done.

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

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  1.164e+02  6.179e+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:  8.090e-01  2.725e-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:  9.320e-01  3.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.88
Ra Dec: 180.629 -5.471
Photon Index (Fixed Index): 2.83 +/- 0.00
Photon Flux (Fixed Index): 4.27e-07 +/- 2.26e-07
Energy Flux (Fixed Index): 9.35e-05 +/- 4.96e-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) = 2735.34059258
delta logL = 0.0888912559221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2735.3176943
delta logL = 0.111789530908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    128.67       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6061       1.0000          .0000       10.000    
     3 'Normalizat'    .96093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78832       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=   2735.318     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      241 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     128.71        65.588        .17746E-03   -.10058E-04
   2  Index         2.6052        .47110        .24194E-01   -.32271E-04
   3  Normalizat    .96105        .35673        .32618E-03   -.15044E-03
   4  Prefactor     .78829        .26254        .26191E-03   -.23531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 128.707
  Index      = 2.60519
  Normalizat = 0.96105
  Prefactor  = 0.788288
 **********
 **   18 **HESSE 
 **********

 FCN=   2735.318     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     128.71        63.703        .70985E-05   -1.3434    
   2  Index         2.6052        .45756        .50278E-03   -.49947    
   3  Normalizat    .96105        .35666        .65236E-04   -.94347    
   4  Prefactor     .78829        .26206        .52383E-04   -1.0016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72e-10
Minuit parameter uncertainties:
  1  63.7369
  2  0.458389
  3  0.357549
  4  0.262479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274658': 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) = 2735.31769236
delta logL = 0.111791472588

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  1.287e+02  6.374e+01  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  2.605e+00  4.584e-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:  7.883e-01  2.625e-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:  9.611e-01  3.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.13
Ra Dec: 180.629 -5.471
Photon Index (Free Index): 2.61 +/- 0.46
Photon Flux (Free Index): 3.84e-07 +/- 2.09e-07
Energy Flux (Free Index): 1.00e-04 +/- 5.04e-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/274658/cmap_HighResolution_608688001_608947201_4FGL_J1202.5-0528_daily_bin1425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.27e-07', energy_flux2='1.00e-04', photon_flux_error='2.26e-07', dlogl='1.12e-01', energy_flux='9.35e-05', photon_flux2='3.84e-07', job_status='DONE', time_completed='2021-09-04 21:34:12.002514', photon_index_error2='0.46', photon_index2='2.61', ts='6.88', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='5.04e-05', EG='0.93', time_epoch_completed='1630816452.0', return_code='0', job_id='274658', GAL2='0.79', EG2='0.96', return_code2='0', energy_flux_error='4.96e-05', photon_flux_error2='2.09e-07', ts2='7.13', photon_index='2.83' WHERE bin_id='1425' AND source_name='4FGL J1202.5-0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:34:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 274658: <4FGL_J1202.5-0528_daily_bin1425> in cluster <slac> Done

Job <4FGL_J1202.5-0528_daily_bin1425> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 21:20:29 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:20:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 21:20:31 2021
Terminated at Sat Sep  4 21:34:12 2021
Results reported at Sat Sep  4 21:34:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1202.5-0528_daily_bin1425 180.629 -5.4709 608688001 608947201 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 :                                   593.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

