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


Performing analysis on: 4FGL_J1202.5-0528_daily_bin1314
RA = 180.629, Dec = -5.4709
tmin = 579916801, tmax = 580176001
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='273078', job_status='RUN', time_executed='2021-09-04 21:15:48.954480', time_epoch_executed='1630815348.95' WHERE source_name='4FGL J1202.5-0528' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273078

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273078/ft1_4FGL_J1202.5-0528_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273078/ft2_4FGL_J1202.5-0528_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273078/ft1_4FGL_J1202.5-0528_daily_bin1314.fits outfile=/scratch/kocevski/273078/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin1314.fits ra=180.629 dec=-5.4709 rad=12.0 tmin=579916801.0 tmax=580176001.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.77
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273078/ft1_filtered_4FGL_J1202.5-0528_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/273078/ft2_4FGL_J1202.5-0528_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/273078/ltcube_579916801_580176001_4FGL_J1202.5-0528_daily_bin1314.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/273078/ft2_4FGL_J1202.5-0528_daily_bin1314.fits
.....................!
real 12.30
user 11.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273078/ft1_filtered_4FGL_J1202.5-0528_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/273078/ft2_4FGL_J1202.5-0528_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/273078/ltcube_579916801_580176001_4FGL_J1202.5-0528_daily_bin1314.fits outfile=/scratch/kocevski/273078/expmap_579916801_580176001_4FGL_J1202.5-0528_daily_bin1314.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/273078/ltcube_579916801_580176001_4FGL_J1202.5-0528_daily_bin1314.fits
.....................!
real 189.98
user 185.34
sys 4.28

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/273078/ft1_filtered_4FGL_J1202.5-0528_daily_bin1314.fits scfile=/scratch/kocevski/273078/ft2_4FGL_J1202.5-0528_daily_bin1314.fits outfile=/scratch/kocevski/273078/cmap_579916801_580176001_4FGL_J1202.5-0528_daily_bin1314.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.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273078/ft1_filtered_4FGL_J1202.5-0528_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/273078/ft2_4FGL_J1202.5-0528_daily_bin1314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273078/Model_4FGL_J1202.5-0528_daily_bin1314.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/273078/ft1_filtered_4FGL_J1202.5-0528_daily_bin1314.fits.....................!
real 51.48
user 49.99
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.224       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5141       1.0000         .10000E-03   10000.    
     6 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .35094E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .52916       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3889       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3821       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.006       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.975       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8630       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1882       1.0000         .10000E-03   10000.    
    23 'norm      '    4.4993       1.0000         .10000E-03   10000.    
    24 'norm      '    6.9590       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .63663       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2973       1.0000         .10000E-03   10000.    
    28 'Prefactor '    20.775       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.3440       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3120       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .96770       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=   5666.842     FROM MIGRAD    STATUS=CONVERGED    936 CALLS     4629 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.046       -.71077E-06** at limit **
   2  Prefactor     .10000E-03    1.4482        .57399E-07** at limit **
   3  Prefactor     34.223        50.704       -.18154E-05    .28634E-05
   4  norm          .10000E-03    2.8026       -.13142E-07** at limit **
   5  Prefactor     5.5166        4.8122       -.84651E-06    .14519E-03
   6  norm          .10000E-03    21.966       -.17100E-04** at limit **
   7  Prefactor     .10000E-03    1.4101       -.19584E-08** at limit **
   8  Prefactor     .10000E-03    13.028        .41212E-05** at limit **
   9  Prefactor     .19491        54.161       -.22568E-05    .85033E-05
  10  norm          4.3863        6.7094        .12491E-05   -.16113E-03
  11  Prefactor     3.3858        5.2067       -.19955E-05   -.60404E-03
  12  Prefactor     37.003        24.000        .47791E-05    .44209E-04
  13  Prefactor     .10000E-03    7.7924        .36417E-06** at limit **
  14  Prefactor     27.960        40.046        .93607E-05   -.17334E-04
  15  Prefactor     5.8631        5.5659        .43288E-06    .91162E-04
  16  Prefactor     .10000E-03    8.3874       -.58886E-06** at limit **
  17  Prefactor     .10000E-03    25.123        .12901E-04** at limit **
  18  Prefactor     .10000E-03    18.542        .13017E-05** at limit **
  19  Prefactor     .10000E-03    4.6062       -.18508E-06** at limit **
  20  Prefactor     .10000E-03    13.977       -.57292E-05** at limit **
  21  Prefactor     .10000E-03    4.3050        .82967E-07** at limit **
  22  norm          2.1872        2.3431        .52551E-07   -.39808E-03
  23  norm          4.4993        3.0724        .38708E-06   -.94379E-04
  24  norm          6.9581        57.251       -.91488E-05   -.75846E-05
  25  Prefactor     .10000E-03    4.4704        .12937E-06** at limit **
  26  norm          .63671        .45311        .59191E-07   -.50875E-03
  27  Prefactor     1.2971        1.2534        .33276E-07    .26190E-03
  28  Prefactor     20.774        12.506       -.45917E-06   -.15168E-03
  29  Prefactor     6.3430        14.599        .15383E-05   -.64420E-04
  30  Prefactor     .10000E-03    17.507        .75581E-05** at limit **
  31  Prefactor     .10000E-03    34.395       -.23466E-05** at limit **
  32  Normalizat    1.3118        .24811        .12217E-07   -.64087E-05
  33  Prefactor     .96779        .17389       -.51574E-06    .63410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.2234
  norm       = 0.0001
  Prefactor  = 5.51657
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.194914
  norm       = 4.38632
  Prefactor  = 3.38579
  Prefactor  = 37.003
  Prefactor  = 0.0001
  Prefactor  = 27.9601
  Prefactor  = 5.86314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18715
  norm       = 4.49934
  norm       = 6.95814
  Prefactor  = 0.0001
  norm       = 0.636708
  Prefactor  = 1.29711
  Prefactor  = 20.7744
  Prefactor  = 6.34303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31181
  Prefactor  = 0.967791
 **********
 **   18 **HESSE 
 **********

 FCN=   5666.842     FROM HESSE     STATUS=OK           705 CALLS     5334 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4506        .88462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.223        50.704        .68500E-04   -1.4537    
   4  norm          .10000E-03    2.8052        .12306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.5166        4.8059        .14747E-03   -1.5238    
   6  norm          .10000E-03    21.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0488        .17043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .19491        57.400        .14409       -1.5620    
  10  norm          4.3863        6.6562        .19225E-03   -1.5289    
  11  Prefactor     3.3858        5.1990        .18419E-03   -1.5340    
  12  Prefactor     37.003        24.063        .65882E-04   -1.4491    
  13  Prefactor     .10000E-03    7.7957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.960        40.029        .75744E-04   -1.4650    
  15  Prefactor     5.8631        5.5741        .16585E-03   -1.5224    
  16  Prefactor     .10000E-03    8.4250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6073        .15779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.3120        .15244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1872        2.3273        .11501E-03   -1.5412    
  23  norm          4.4993        3.0845        .95094E-04   -1.5284    
  24  norm          6.9581        57.815        .15208E-03   -1.5180    
  25  Prefactor     .10000E-03    4.5410        .15535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .63671        .43978        .40264E-03   -1.5548    
  27  Prefactor     1.2971        1.2806        .80742E-04   -1.5480    
  28  Prefactor     20.774        12.492        .87875E-04   -1.4796    
  29  Prefactor     6.3430        14.559        .15936E-03   -1.5204    
  30  Prefactor     .10000E-03    17.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    34.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.3118        .29162        .29810E-03   -.83215    
  33  Prefactor     .96779        .20635        .24177E-03   -.93811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69805e-10
Minuit parameter uncertainties:
  1  2.01113e-05
  2  2.21476e-06
  3  50.7678
  4  4.81951e-06
  5  4.80627
  6  0.000121021
  7  0.00015559
  8  1.70413e-05
  9  6.69445
  10  6.65727
  11  5.19974
  12  24.0696
  13  4.07503e-07
  14  40.0675
  15  5.57458
  16  2.50888e-05
  17  8.13155e-05
  18  1.84971e-06
  19  4.24386e-07
  20  2.43353e-06
  21  1.39255e-07
  22  2.3274
  23  3.08465
  24  40.1668
  25  5.05346e-06
  26  0.439785
  27  1.2806
  28  12.4939
  29  14.5668
  30  5.01182e-05
  31  8.43181e-07
  32  0.291985
  33  0.206513
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.678e-01  2.065e-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.312e+00  2.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 180.629 -5.471
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273078/likelihoodResults_579916801_580176001_4FGL_J1202.5-0528_daily_bin1314.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5666.84221717
delta logL = -0.000565341480979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5666.84165359
delta logL = -1.75545028469e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8151       1.0000          .0000       10.000    
     3 'Normalizat'    1.3115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96801       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=   5666.842     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      252 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.836        .18142E-01** at limit **
   2  Index         2.3954        6.9743        .50000        .13165E-07
   3  Normalizat    1.3118        .12828E-01    .29810E-03   -.23510E-03
   4  Prefactor     .96779        .91526E-02    .24177E-03   -.29024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39539
  Normalizat = 1.31181
  Prefactor  = 0.967789
 **********
 **   18 **HESSE 
 **********

 FCN=   5666.842     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    340.09        .23211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3954        6.0544        .50000       -.54793    
   3  Normalizat    1.3118        .36768E-01    .59620E-04   -.83215    
   4  Prefactor     .96779        .26233E-01    .48355E-04   -.93811    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38014e-11
Minuit parameter uncertainties:
  1  3.10679e-05
  2  883.039
  3  0.036769
  4  0.0262331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273078': 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): 102
logL (Free Index) = 5666.84165083
delta logL = 1.0071826182e-06

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  3.107e-05  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  2.395e+00  8.830e+02  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.678e-01  2.623e-02  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.312e+00  3.677e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 180.629 -5.471

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/273078/cmap_HighResolution_579916801_580176001_4FGL_J1202.5-0528_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.40e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-04 21:31:24.568274', job_id='273078', GAL2='0.97', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630816284.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.83' WHERE bin_id='1314' AND source_name='4FGL J1202.5-0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:31:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 273078: <4FGL_J1202.5-0528_daily_bin1314> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1202.5-0528_daily_bin1314 180.629 -5.4709 579916801 580176001 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 :                                   925.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            948 sec.

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

