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


Performing analysis on: 4FGL_J1202.5-0528_daily_bin1305
RA = 180.629, Dec = -5.4709
tmin = 577584001, tmax = 577843201
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='273063', job_status='RUN', time_executed='2021-09-04 21:17:36.804775', time_epoch_executed='1630815456.8' WHERE source_name='4FGL J1202.5-0528' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273063

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273063/ft1_4FGL_J1202.5-0528_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273063/ft2_4FGL_J1202.5-0528_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273063/ft1_4FGL_J1202.5-0528_daily_bin1305.fits outfile=/scratch/kocevski/273063/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin1305.fits ra=180.629 dec=-5.4709 rad=12.0 tmin=577584001.0 tmax=577843201.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.79
user 2.59
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273063/ft1_filtered_4FGL_J1202.5-0528_daily_bin1305.fits" evtable="EVENTS" scfile=/scratch/kocevski/273063/ft2_4FGL_J1202.5-0528_daily_bin1305.fits sctable="SC_DATA" outfile=/scratch/kocevski/273063/ltcube_577584001_577843201_4FGL_J1202.5-0528_daily_bin1305.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/273063/ft2_4FGL_J1202.5-0528_daily_bin1305.fits
.....................!
real 12.82
user 12.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273063/ft1_filtered_4FGL_J1202.5-0528_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/273063/ft2_4FGL_J1202.5-0528_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/273063/ltcube_577584001_577843201_4FGL_J1202.5-0528_daily_bin1305.fits outfile=/scratch/kocevski/273063/expmap_577584001_577843201_4FGL_J1202.5-0528_daily_bin1305.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/273063/ltcube_577584001_577843201_4FGL_J1202.5-0528_daily_bin1305.fits
.....................!
real 193.19
user 186.13
sys 6.06

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/273063/ft1_filtered_4FGL_J1202.5-0528_daily_bin1305.fits scfile=/scratch/kocevski/273063/ft2_4FGL_J1202.5-0528_daily_bin1305.fits outfile=/scratch/kocevski/273063/cmap_577584001_577843201_4FGL_J1202.5-0528_daily_bin1305.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.62
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273063/ft1_filtered_4FGL_J1202.5-0528_daily_bin1305.fits scfile=/scratch/kocevski/273063/ft2_4FGL_J1202.5-0528_daily_bin1305.fits outfile=/scratch/kocevski/273063/cmap_HighResolution_577584001_577843201_4FGL_J1202.5-0528_daily_bin1305.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.67
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10324E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.7685       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2155       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2654       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14351E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.268       1.0000         .10000E-03   10000.    
    17 'Prefactor '    132.42       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .56328E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .89137E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    9.6674       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .25593E-02   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .58970       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .88779       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=   746.2575     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     5316 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.923       -.38253E-08** at limit **
   2  Prefactor     .10000E-03    8.1603       -.48171E-06** at limit **
   3  Prefactor     .10001E-03    143.27       -.50664E-05** at limit **
   4  norm          9.8050        48.484       -.99175E-05   -.53256E-04
   5  Prefactor     2.2030        46.843        .89976E-05    .20430E-03
   6  norm          .10000E-03    100.82        .48470E-06** at limit **
   7  Prefactor     .10000E-03    6.8229        .41839E-06** at limit **
   8  Prefactor     .10000E-03    47.098       -.45991E-06** at limit **
   9  Prefactor     .10000E-03    66.107        .58970E-06** at limit **
  10  norm          4.2829        102.89       -.89215E-05    .43561E-05
  11  Prefactor     24.659        35.334        .50965E-05    .34361E-03
  12  Prefactor     .10000E-03    500.22        .11201E-05** at limit **
  13  Prefactor     .10000E-03    34.001       -.23932E-06** at limit **
  14  Prefactor     .10003E-03    270.09       -.10655E-04** at limit **
  15  Prefactor     .10000E-03    9.3446        .28154E-06** at limit **
  16  Prefactor     48.131        147.80        .39691E-05    .54264E-04
  17  Prefactor     132.61        320.81       -.16261E-04   -.58762E-05
  18  Prefactor     .10000E-03    57.325       -.93378E-06** at limit **
  19  Prefactor     .10004E-03    361.71        .19170E-04** at limit **
  20  Prefactor     .10000E-03    60.873       -.48980E-06** at limit **
  21  Prefactor     .10009E-03    524.35       -.41830E-04** at limit **
  22  norm          9.6080        12.698       -.29514E-05    .38283E-04
  23  norm          .10000E-03    3.8275        .89591E-07** at limit **
  24  norm          .10000E-03    47.304       -.19040E-06** at limit **
  25  Prefactor     .10000E-03    48.036       -.45195E-06** at limit **
  26  norm          .10000E-03    1.3653        .21644E-07** at limit **
  27  Prefactor     .10000E-03    32.067       -.56423E-07** at limit **
  28  Prefactor     .10000E-03    50.459       -.10786E-05** at limit **
  29  Prefactor     .10001E-03    324.57       -.46553E-05** at limit **
  30  Prefactor     .10000E-03    42.270        .18045E-05** at limit **
  31  Prefactor     .10048E-03    6179.7        .43405E-04** at limit **
  32  Normalizat    .59001        .59125       -.26082E-04    .10671E-03
  33  Prefactor     .88739        .45101        .17033E-04   -.12384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 9.80502
  Prefactor  = 2.20298
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.28289
  Prefactor  = 24.6594
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 48.1314
  Prefactor  = 132.609
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 0.000100088
  norm       = 9.60795
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.000100484
  Normalizat = 0.590012
  Prefactor  = 0.887393
 **********
 **   18 **HESSE 
 **********

 FCN=   746.2575     FROM HESSE     STATUS=OK           675 CALLS     5991 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.975        .17871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1711        .76095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    143.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.8050        42.002        .12821E-03   -1.5082    
   5  Prefactor     2.2030        39.866        .21998E-03   -1.5411    
   6  norm          .10000E-03    101.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0224        .13877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    66.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2829        97.211        .19509E-03   -1.5294    
  11  Prefactor     24.659        35.081        .80678E-04   -1.4714    
  12  Prefactor     .10000E-03    502.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.015        .15571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    272.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.3491        .81590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     48.131        148.62        .57717E-04   -1.4319    
  17  Prefactor     132.61        319.41        .17497E-03   -1.3400    
  18  Prefactor     .10000E-03    57.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    369.24        .21097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    60.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10009E-03    527.27        .53559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.6080        12.788        .10726E-03   -1.5088    
  23  norm          .10000E-03    3.8308        .52211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    47.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    48.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.6762        .62172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    32.068        .15120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    50.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    324.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    42.328        .17374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10048E-03    6193.9        .19994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .59001        .61033        .32190E-03   -1.0841    
  33  Prefactor     .88739        .46566        .19736E-03   -.96583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61648e-09
Minuit parameter uncertainties:
  1  0.000354614
  2  5.58388e-06
  3  0.00183225
  4  40.6356
  5  18.757
  6  0.000133651
  7  0.000109262
  8  0.00016068
  9  0.000135574
  10  40.8838
  11  35.1104
  12  0.00111225
  13  7.22402e-05
  14  0.00569317
  15  1.75443e-05
  16  149.786
  17  323.714
  18  0.000196638
  19  0.00735906
  20  0.000101241
  21  0.0137628
  22  12.792
  23  5.21002e-06
  24  4.93085e-05
  25  0.000109455
  26  1.64325e-05
  27  1.48214e-05
  28  0.000268483
  29  0.00274802
  30  0.00037402
  31  0.0710272
  32  0.617498
  33  0.467765
Done.

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

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  4.813e+01  1.498e+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:  8.874e-01  4.678e-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:  5.900e-01  6.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 180.629 -5.471
Photon Flux Upper Limit: 1.19e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273063/likelihoodResults_577584001_577843201_4FGL_J1202.5-0528_daily_bin1305.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): 0
logL (Free Index) = 744.840366844
delta logL = 1.41715652058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 744.825385219
delta logL = 1.43213814524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8187       1.0000         .10000E-03   10000.    
     2 'Index     '    6.9603       1.0000          .0000       10.000    
     3 'Normalizat'    .39884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98817       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.

 FCN=   744.8254     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      316 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7870        46.840        .61744E-02   -.22906E-03
   2  Index         6.9735        8.3559        .75441E-01   -.47983E-06
   3  Normalizat    .39857        .24041        .85815E-01    .36210E-04
   4  Prefactor     .98819        .18168        .46119E-01    .94343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78704
  Index      = 6.97345
  Normalizat = 0.398575
  Prefactor  = 0.988192
 **********
 **   18 **HESSE 
 **********

 FCN=   744.8254     FROM HESSE     STATUS=OK            29 CALLS      345 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7870        18.891        .27405E-04   -1.5441    
   2  Index         6.9735        7.5039        .33064E-03    .40573    
   3  Normalizat    .39857        .57967        .38028E-03   -1.1738    
   4  Prefactor     .98819        .43736        .18691E-03   -.93124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68203e-10
Minuit parameter uncertainties:
  1  11.6248
  2  4.8598
  3  0.588739
  4  0.438938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273063': 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) = 744.82537899
delta logL = 1.43214437388

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  1.787e+00  1.162e+01  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  6.973e+00  4.860e+00  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.882e-01  4.389e-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:  3.986e-01  5.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 180.629 -5.471
Photon Index (Free Index): 6.97 +/- 4.86
Photon Flux (Free Index): 9.49e-07 +/- 7.38e-07
Energy Flux (Free Index): 1.14e-04 +/- 9.18e-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/273063/cmap_HighResolution_577584001_577843201_4FGL_J1202.5-0528_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.46e-02', comment='SUCCESS', energy_flux2='1.14e-04', dlogl='1.43e+00', photon_flux2='9.49e-07', job_status='DONE', time_completed='2021-09-04 21:24:32.070993', photon_index_error2='4.86', photon_index2='6.97', ts='0.19', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.19e-06', energy_flux_error2='9.18e-05', EG='0.59', time_epoch_completed='1630815872.07', return_code='0', job_id='273063', GAL2='0.99', EG2='0.40', return_code2='0', photon_flux_error2='7.38e-07', ts2='3.25', photon_index='2.83' WHERE bin_id='1305' AND source_name='4FGL J1202.5-0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 21:24:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 273063: <4FGL_J1202.5-0528_daily_bin1305> in cluster <slac> Done

Job <4FGL_J1202.5-0528_daily_bin1305> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 21:15:36 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 21:15:38 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:38 2021
Terminated at Sat Sep  4 21:24:33 2021
Results reported at Sat Sep  4 21:24:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1202.5-0528_daily_bin1305 180.629 -5.4709 577584001 577843201 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 :                                   408.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   534 sec.
    Turnaround time :                            537 sec.

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

