aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 128 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 = 7709
number of fields = 31
RA_SUN column already exists. File will not be modified.Done.


Performing analysis on: 4FGL_J1202.5-0528_daily_bin1692
RA = 180.629, Dec = -5.4709
tmin = 677894401, tmax = 678153601
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='405249', job_status='RUN', time_executed='2022-06-29 04:27:51.229445', time_epoch_executed='1656502071.23' WHERE source_name='4FGL J1202.5-0528' and cadence='daily' and bin_id='1692'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405249

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405249/ft1_4FGL_J1202.5-0528_daily_bin1692.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405249/ft2_4FGL_J1202.5-0528_daily_bin1692.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405249/ft1_4FGL_J1202.5-0528_daily_bin1692.fits outfile=/scratch/kocevski/405249/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin1692.fits ra=180.629 dec=-5.4709 rad=12.0 tmin=677894401.0 tmax=678153601.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 4.57
user 4.34
sys 0.21

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

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

Number of photons that the gtmktime cut: 974

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405249/ft1_filtered_4FGL_J1202.5-0528_daily_bin1692.fits" evtable="EVENTS" scfile=/scratch/kocevski/405249/ft2_4FGL_J1202.5-0528_daily_bin1692.fits sctable="SC_DATA" outfile=/scratch/kocevski/405249/ltcube_677894401_678153601_4FGL_J1202.5-0528_daily_bin1692.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/405249/ft2_4FGL_J1202.5-0528_daily_bin1692.fits
.....................!
real 15.27
user 14.86
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405249/ft1_filtered_4FGL_J1202.5-0528_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405249/ft2_4FGL_J1202.5-0528_daily_bin1692.fits sctable="SC_DATA" expcube=/scratch/kocevski/405249/ltcube_677894401_678153601_4FGL_J1202.5-0528_daily_bin1692.fits outfile=/scratch/kocevski/405249/expmap_677894401_678153601_4FGL_J1202.5-0528_daily_bin1692.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/405249/ltcube_677894401_678153601_4FGL_J1202.5-0528_daily_bin1692.fits
.....................!
real 193.90
user 188.50
sys 4.48

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/405249/ft1_filtered_4FGL_J1202.5-0528_daily_bin1692.fits scfile=/scratch/kocevski/405249/ft2_4FGL_J1202.5-0528_daily_bin1692.fits outfile=/scratch/kocevski/405249/cmap_677894401_678153601_4FGL_J1202.5-0528_daily_bin1692.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405249/ft1_filtered_4FGL_J1202.5-0528_daily_bin1692.fits scfile=/scratch/kocevski/405249/ft2_4FGL_J1202.5-0528_daily_bin1692.fits outfile=/scratch/kocevski/405249/cmap_HighResolution_677894401_678153601_4FGL_J1202.5-0528_daily_bin1692.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405249/ft1_filtered_4FGL_J1202.5-0528_daily_bin1692.fits evtable="EVENTS" scfile=/scratch/kocevski/405249/ft2_4FGL_J1202.5-0528_daily_bin1692.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405249/Model_4FGL_J1202.5-0528_daily_bin1692.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/405249/ft1_filtered_4FGL_J1202.5-0528_daily_bin1692.fits.....................!
real 84.74
user 83.09
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8865       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.553       1.0000         .10000E-03   10000.    
     4 'norm      '    8.2637       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6362       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    86.107       1.0000         .10000E-03   10000.    
    10 'norm      '    .12328E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8790       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4585       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12651E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47173E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12287E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.721       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0481       1.0000         .10000E-03   10000.    
    22 'norm      '    .11032E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.380       1.0000         .10000E-03   10000.    
    24 'norm      '    23.784       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.4278       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .12334       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.9779       1.0000         .10000E-03   10000.    
    31 'Prefactor '    19.929       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.3665       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .82505       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10304.47     FROM MIGRAD    STATUS=CONVERGED    936 CALLS     4733 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8862        7.2559         .0000        .11138E-02
   2  Prefactor     .10000E-03    1.8873         .0000    ** at limit **
   3  Prefactor     33.552        53.814         .0000        .63310E-03
   4  norm          8.2617        7.3265         .0000        .18073E-02
   5  Prefactor     .10000E-03    1.8088         .0000    ** at limit **
   6  norm          .10000E-03    4.7108         .0000    ** at limit **
   7  Prefactor     3.6363        1.7041         .0000        .22713E-03
   8  Prefactor     5.8820        14.571         .0000        .14096E-02
   9  Prefactor     86.109        40.657         .0000        .13561E-02
  10  norm          .10000E-03    1.8103         .0000    ** at limit **
  11  Prefactor     2.8764        2.6416         .0000        .17810E-01
  12  Prefactor     6.4576        11.684         .0000       -.18171E-03
  13  Prefactor     .10000E-03    8.4286         .0000    ** at limit **
  14  Prefactor     .10003E-03    38.099         .0000    ** at limit **
  15  Prefactor     .16465E-01    3.4315         .0000        .28349E-03
  16  Prefactor     .10003E-03    3.5789         .0000    ** at limit **
  17  Prefactor     .10000E-03    7.2503         .0000    ** at limit **
  18  Prefactor     .10000E-03    56.933         .0000    ** at limit **
  19  Prefactor     .10001E-03    23.340         .0000    ** at limit **
  20  Prefactor     26.722        28.852         .0000       -.10110E-03
  21  Prefactor     4.0532        7.0712         .0000        .31934E-02
  22  norm          .10000E-03    1.0396         .0000    ** at limit **
  23  norm          11.380        4.2116         .0000        .11799E-02
  24  norm          23.785        31.715         .0000        .21362E-03
  25  Prefactor     .10000E-03    1.1202         .0000    ** at limit **
  26  norm          .10000E-03    .79826E-01     .0000    ** at limit **
  27  Prefactor     5.4278        1.6225         .0000       -.65244E-03
  28  Prefactor     .10000E-03    4.1775         .0000    ** at limit **
  29  Prefactor     .13423        3.3935         .0000        .11103E-02
  30  Prefactor     1.9789        5.6890         .0000        .18156E-01
  31  Prefactor     19.929        20.724         .0000       -.20994E-04
  32  Normalizat    1.3666        .16931         .0000       -.52743E-03
  33  Prefactor     .82495        .11449         .0000       -.48525E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.88623
  Prefactor  = 0.0001
  Prefactor  = 33.552
  norm       = 8.26167
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.63625
  Prefactor  = 5.88198
  Prefactor  = 86.1089
  norm       = 0.000100002
  Prefactor  = 2.87636
  Prefactor  = 6.45764
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 0.016465
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100011
  Prefactor  = 26.7216
  Prefactor  = 4.0532
  norm       = 0.0001
  norm       = 11.3797
  norm       = 23.7845
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.42776
  Prefactor  = 0.0001
  Prefactor  = 0.134232
  Prefactor  = 1.97894
  Prefactor  = 19.9287
  Normalizat = 1.36659
  Prefactor  = 0.824947
 **********
 **   18 **HESSE 
 **********

 FCN=   10304.47     FROM HESSE     STATUS=OK           703 CALLS     5436 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8862        7.2530        .15289E-03   -1.5183    
   2  Prefactor     .10000E-03    1.9230        .13599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.552        53.825        .69179E-04   -1.4549    
   4  norm          8.2617        7.3023        .13946E-03   -1.5133    
   5  Prefactor     .10000E-03    1.8333        .13285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.7128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6363        1.7039        .87867E-04   -1.5327    
   8  Prefactor     5.8820        14.564        .82741E-03   -1.5223    
   9  Prefactor     86.109        40.697        .43294E-04   -1.3849    
  10  norm          .10000E-03    18.382        .25566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8764        2.5521        .71271E-03   -1.5369    
  12  Prefactor     6.4576        11.635        .15793E-03   -1.5200    
  13  Prefactor     .10000E-03    8.4890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10003E-03    39.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16465E-01    4.1516        .60971E-01   -1.5682    
  16  Prefactor     .10003E-03    23.626        .36872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    57.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    23.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.722        28.859        .77498E-04   -1.4674    
  21  Prefactor     4.0532        6.5571        .20041E-03   -1.5305    
  22  norm          .10000E-03    2.4182        .18626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.380        4.2276        .10782E-03   -1.5033    
  24  norm          23.785        31.806        .82136E-04   -1.4732    
  25  Prefactor     .10000E-03    1.1251        .10490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .93946E-01    .55671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.4278        1.6231        .68827E-04   -1.5242    
  28  Prefactor     .10000E-03    4.2304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .13423        36.033        .36024E-02   -1.5635    
  30  Prefactor     1.9789        5.6798        .14737E-02   -1.5427    
  31  Prefactor     19.929        20.723        .89721E-04   -1.4815    
  32  Normalizat    1.3666        .19651        .27152E-03   -.81600    
  33  Prefactor     .82495        .13336        .23882E-03   -.98815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2157e-08
Minuit parameter uncertainties:
  1  7.25397
  2  1.70807e-06
  3  53.9032
  4  7.30305
  5  1.03939e-05
  6  2.25806e-05
  7  1.70393
  8  14.5727
  9  40.7103
  10  0.000428063
  11  2.55223
  12  11.6396
  13  6.17027e-05
  14  0.00217345
  15  0.521344
  16  0.00174506
  17  2.34638e-05
  18  0.000999046
  19  0.00102767
  20  28.8738
  21  6.55821
  22  2.85986e-05
  23  4.22769
  24  31.8288
  25  6.74451e-06
  26  1.25787e-06
  27  1.62309
  28  5.24278e-06
  29  4.39958
  30  5.68133
  31  20.7301
  32  0.196617
  33  0.133413
Done.

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

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  1.000e-04  1.745e-03  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.249e-01  1.334e-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.367e+00  1.966e-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: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405249/likelihoodResults_677894401_678153601_4FGL_J1202.5-0528_daily_bin1692.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) = 10304.4738258
delta logL = -0.000198659456146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10300.2370406
delta logL = 4.2365865714

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4574       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0414       1.0000          .0000       10.000    
     3 'Normalizat'    1.3617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82144       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=   10300.24     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      276 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4574        2.0564        .65228E-02   -.80667E-03
   2  Index         1.0414        .22288        .16032       -.98763E-04
   3  Normalizat    1.3617        .16015        .61419E-01   -.29675E-03
   4  Prefactor     .82144        .11333        .43996E-01   -.18610E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.45737
  Index      = 1.04142
  Normalizat = 1.36168
  Prefactor  = 0.821439
 **********
 **   18 **HESSE 
 **********

 FCN=   10300.24     FROM HESSE     STATUS=OK            31 CALLS      307 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4574        3.7201        .11951E-03   -1.5394    
   2  Index         1.0414        .42959        .66561E-02   -.91361    
   3  Normalizat    1.3617        .18602        .27165E-03   -.81743    
   4  Prefactor     .82144        .13174        .23913E-03   -.98943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07497e-09
Minuit parameter uncertainties:
  1  3.72042
  2  0.431018
  3  0.186113
  4  0.131787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405249': 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) = 10300.2370406
delta logL = 4.23658657418

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  2.457e+00  3.720e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        Index:  1.041e+00  4.310e-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:  8.214e-01  1.318e-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.362e+00  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.48
Ra Dec: 180.629 -5.471
Photon Index (Free Index): 1.04 +/- 0.43
Photon Flux (Free Index): 6.93e-09 +/- 6.46e-09
Energy Flux (Free Index): 9.03e-05 +/- 8.75e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/405249/cmap_HighResolution_677894401_678153601_4FGL_J1202.5-0528_daily_bin1692.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', comment='SUCCESS', energy_flux2='9.03e-05', dlogl='4.24e+00', photon_flux2='6.93e-09', job_status='DONE', time_completed='2022-06-29 04:53:30.488089', photon_index_error2='0.43', photon_index2='1.04', ts='-0.00', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='6.38e-08', energy_flux_error2='8.75e-05', EG='1.37', time_epoch_completed='1656503610.49', return_code='0', job_id='405249', GAL2='0.82', EG2='1.36', return_code2='0', photon_flux_error2='6.46e-09', ts2='8.48', photon_index='2.83' WHERE bin_id='1692' AND source_name='4FGL J1202.5-0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jun 29 04:53:30 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 405261: <4FGL_J1202.5-0528_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1202.5-0528_daily_bin1692> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:39 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:26:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:26:08 2022
Terminated at Wed Jun 29 04:49:04 2022
Results reported at Wed Jun 29 04:49:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1202.5-0528_daily_bin1692 180.629 -5.4709 677894401 678153601 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 :                                   1230.89 sec.
    Max Memory :                                 625 MB
    Average Memory :                             279.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1375 sec.
    Turnaround time :                            16945 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 405249: <4FGL_J1202.5-0528_daily_bin1692> in cluster <slac> Done

Job <4FGL_J1202.5-0528_daily_bin1692> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jun 29 00:06:39 2022
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jun 29 04:26:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jun 29 04:26:03 2022
Terminated at Wed Jun 29 04:53:30 2022
Results reported at Wed Jun 29 04:53:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1202.5-0528_daily_bin1692 180.629 -5.4709 677894401 678153601 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 :                                   1535.12 sec.
    Max Memory :                                 1276 MB
    Average Memory :                             330.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1647 sec.
    Turnaround time :                            17211 sec.

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

