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 182 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7584
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1202.5-0528_daily_bin1755
RA = 180.629, Dec = -5.4709
tmin = 694224001, tmax = 694483201
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='822140', job_status='RUN', time_executed='2023-01-04 00:58:54.678365', time_epoch_executed='1672822734.68' WHERE source_name='4FGL J1202.5-0528' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822140

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822140/ft1_4FGL_J1202.5-0528_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822140/ft2_4FGL_J1202.5-0528_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822140/ft1_4FGL_J1202.5-0528_daily_bin1755.fits outfile=/scratch/kocevski/822140/ft1_filteredMKT_4FGL_J1202.5-0528_daily_bin1755.fits ra=180.629 dec=-5.4709 rad=12.0 tmin=694224001.0 tmax=694483201.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.05
user 2.79
sys 0.21

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

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

Number of photons that the gtmktime cut: 542

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822140/ft1_filtered_4FGL_J1202.5-0528_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/822140/ft2_4FGL_J1202.5-0528_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/822140/ltcube_694224001_694483201_4FGL_J1202.5-0528_daily_bin1755.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/822140/ft2_4FGL_J1202.5-0528_daily_bin1755.fits
.....................!
real 16.71
user 16.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822140/ft1_filtered_4FGL_J1202.5-0528_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/822140/ft2_4FGL_J1202.5-0528_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/822140/ltcube_694224001_694483201_4FGL_J1202.5-0528_daily_bin1755.fits outfile=/scratch/kocevski/822140/expmap_694224001_694483201_4FGL_J1202.5-0528_daily_bin1755.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/822140/ltcube_694224001_694483201_4FGL_J1202.5-0528_daily_bin1755.fits
.....................!
real 193.30
user 186.07
sys 5.86

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/822140/ft1_filtered_4FGL_J1202.5-0528_daily_bin1755.fits scfile=/scratch/kocevski/822140/ft2_4FGL_J1202.5-0528_daily_bin1755.fits outfile=/scratch/kocevski/822140/cmap_694224001_694483201_4FGL_J1202.5-0528_daily_bin1755.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.56
user 0.38
sys 0.16

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822140/ft1_filtered_4FGL_J1202.5-0528_daily_bin1755.fits', '/scratch/kocevski/822140/ft2_4FGL_J1202.5-0528_daily_bin1755.fits', expMap='/scratch/kocevski/822140/expmap_694224001_694483201_4FGL_J1202.5-0528_daily_bin1755.fits', expCube='/scratch/kocevski/822140/ltcube_694224001_694483201_4FGL_J1202.5-0528_daily_bin1755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822140/Model_4FGL_J1202.5-0528_daily_bin1755.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  0.000e+00  1.000e+06 ( 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/822140/ft1_filtered_4FGL_J1202.5-0528_daily_bin1755.fits
Spacecraft file(s): /scratch/kocevski/822140/ft2_4FGL_J1202.5-0528_daily_bin1755.fits
Exposure map: /scratch/kocevski/822140/expmap_694224001_694483201_4FGL_J1202.5-0528_daily_bin1755.fits
Exposure cube: /scratch/kocevski/822140/ltcube_694224001_694483201_4FGL_J1202.5-0528_daily_bin1755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822140/Model_4FGL_J1202.5-0528_daily_bin1755.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) = 5930.3469867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16433E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.3889       1.0000          .0000       .10000E+07
     3 'norm      '    7.4511       1.0000          .0000       .10000E+07
     4 'Prefactor '    .22057E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .72703E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.6953       1.0000          .0000       .10000E+07
     7 'Prefactor '    18.013       1.0000          .0000       .10000E+07
     8 'Prefactor '    .63264E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .13180E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .93280E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.5621       1.0000          .0000       .10000E+07
    12 'Prefactor '    .93412E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    38.249       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13797E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    53.108       1.0000          .0000       .10000E+07
    16 'Prefactor '    24.861       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11237E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .11435E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .46077       1.0000          .0000       .10000E+07
    20 'norm      '    1.3104       1.0000          .0000       .10000E+07
    21 'norm      '    .14704E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    3.2673       1.0000          .0000       .10000E+07
    23 'norm      '    3.3257       1.0000          .0000       .10000E+07
    24 'Prefactor '    5.8280       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .16165E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .14178E-03   1.0000          .0000       .10000E+07
    27 'Prefactor '    .92286       1.0000          .0000       .10000E+07
    28 'Prefactor '    .11452E-06   1.0000          .0000       .10000E+07
    29 'Normalizat'    .68412       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1972       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5929.993     FROM MIGRAD    STATUS=CONVERGED    226 CALLS     2913 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.0659       -.92087E-07** at limit **
   2  Prefactor     .86042E-08    1783.8       -.10993E-04** at limit **
   3  norm          7.6303        10.411        .23120E-06   -.11867E-03
   4  Prefactor     .55511E-10    6.0638       -.73002E-07** at limit **
   5  norm          .41966E-07    11.360        .42811E-06** at limit **
   6  Prefactor     2.6972        2.1808       -.19794E-07    .53526E-05
   7  Prefactor     17.220        26.740        .12934E-06    .50212E-02
   8  Prefactor     .26645E-08    18.331        .59823E-06** at limit **
   9  norm           .0000        2.9080        .40366E-07** at limit **
  10  Prefactor     .32752E-08    2.0225        .24696E-06** at limit **
  11  Prefactor     1.3836        4.8797        .17355E-06    .35901E-02
  12  Prefactor      .0000        2.7222        .12251E-07** at limit **
  13  Prefactor     38.398        5.9183       -.10186E-06    .33520E-01
  14  Prefactor     .27756E-09    23.381       -.50581E-06** at limit **
  15  Prefactor     54.957        44.880       -.32268E-06   -.11231E-02
  16  Prefactor     24.616        4.1485       -.17179E-07   -.46329E-02
  17  Prefactor     .56066E-08    8.7947        .14639E-06** at limit **
  18  Prefactor     .44409E-09    8.0317       -.94324E-07** at limit **
  19  norm          .46085        2.4107       -.40461E-07    .10740E-04
  20  norm          1.3009        2.5921       -.50417E-07   -.71430E-04
  21  norm          .40801E-07    10.746       -.20827E-06** at limit **
  22  Prefactor     3.2571        7.3093       -.15642E-07   -.14854E-03
  23  norm          3.3250        .71392        .27747E-08    .72543E-04
  24  Prefactor     5.8278        2.5030        .15412E-06    .22441E-04
  25  Prefactor      .0000        2.9032        .40841E-07** at limit **
  26  Prefactor      .0000        4.8984        .10303E-06** at limit **
  27  Prefactor     .88125        2.7630       -.17477E-06   -.29229E-01
  28  Prefactor     .38303E-08    9.4554        .18921E-06** at limit **
  29  Normalizat    .68277        .28044        .54553E-05    .49564E-04
  30  Prefactor     1.1985        .19175       -.24071E-06    .86272E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 8.60423e-09
  norm       = 7.6303
  Prefactor  = 5.55112e-11
  norm       = 4.19664e-08
  Prefactor  = 2.69719
  Prefactor  = 17.2195
  Prefactor  = 2.66454e-09
  norm       = 0
  Prefactor  = 3.27516e-09
  Prefactor  = 1.38362
  Prefactor  = 0
  Prefactor  = 38.3982
  Prefactor  = 2.77556e-10
  Prefactor  = 54.9566
  Prefactor  = 24.6157
  Prefactor  = 5.60663e-09
  Prefactor  = 4.44089e-10
  norm       = 0.460852
  norm       = 1.30088
  norm       = 4.08007e-08
  Prefactor  = 3.25705
  norm       = 3.32502
  Prefactor  = 5.8278
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.881252
  Prefactor  = 3.83027e-09
  Normalizat = 0.682774
  Prefactor  = 1.1985
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.993     FROM HESSE     STATUS=OK           648 CALLS     3561 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.0690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .86042E-08    1749.6        .66238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.6303        10.487        .36718E-03   -1.5653    
   4  Prefactor     .55511E-10    6.0710        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .41966E-07    13.709        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6972        2.1792        .62028E-03   -1.5675    
   7  Prefactor     17.220        27.148        .23571E-03   -1.5625    
   8  Prefactor     .26645E-08    19.619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        2.9122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .32752E-08    3.3708        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3836        47.623        .85093E-03   -1.5684    
  12  Prefactor      .0000        2.7288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.398        19.210        .16171E-03   -1.5584    
  14  Prefactor     .27756E-09    23.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     54.957        44.811        .13723E-03   -1.5560    
  16  Prefactor     24.616        23.698        .20060E-03   -1.5609    
  17  Prefactor     .56066E-08    9.0591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .44409E-09    8.0664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .46085        2.4577        .82759E-03   -1.5694    
  20  norm          1.3009        2.6379        .96286E-03   -1.5685    
  21  norm          .40801E-07    13.378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.2571        7.4019        .55999E-03   -1.5672    
  23  norm          3.3250        .71510        .55481E-03   -1.5671    
  24  Prefactor     5.8278        2.5111        .41590E-02   -1.5225    
  25  Prefactor      .0000        2.9039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        4.9017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .88125        8.5958        .44193E-03   -1.5689    
  28  Prefactor     .38303E-08    9.5826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .68277        .25663        .84281E-01   -1.0458    
  30  Prefactor     1.1985        .16946        .34698E-01   -.86377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39244e-07
Minuit parameter uncertainties:
  1  6.5991e-06
  2  0.00777127
  3  10.4875
  4  2.62414e-05
  5  0.00151709
  6  2.17921
  7  27.1483
  8  0.000454913
  9  3.55123e-06
  10  0.000209639
  11  16.2349
  12  3.85311e-06
  13  19.2096
  14  0.000161986
  15  44.811
  16  23.698
  17  0.000450725
  18  0.000120039
  19  2.12851
  20  2.63787
  21  0.00147762
  22  7.40195
  23  0.715097
  24  2.51112
  25  4.04394e-06
  26  1.03174e-05
  27  5.50458
  28  0.000382877
  29  0.257079
  30  0.169541
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.199e+00  1.695e-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:  6.828e-01  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.57
Ra Dec: 180.629 -5.471
Photon Index (Fixed Index): 2.83 +/- 0.00
Photon Flux (Fixed Index): 1.41e-07 +/- 7.03e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 1.54e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5929.26525633
delta logL = 0.727466103367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5929.13387862
delta logL = 0.858843811715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.647       1.0000          .0000       .10000E+07
     2 'Index     '    2.2688       1.0000          .0000       10.000    
     3 'Normalizat'    .73126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1688       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=   5929.134     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      209 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.647        27.782        .14193E-03    .35058E-01
   2  Index         2.2688        .41925        .15241       -.16446E-04
   3  Normalizat    .73129        .23185        .81595E-01    .26825E-04
   4  Prefactor     1.1688        .16420        .35413E-01    .34437E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.6471
  Index      = 2.26882
  Normalizat = 0.731289
  Prefactor  = 1.16881
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.134     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.647        23.298        .56774E-05   -1.5567    
   2  Index         2.2688        .38092        .62053E-02   -.57786    
   3  Normalizat    .73129        .26347        .36130E-03   -1.0267    
   4  Prefactor     1.1688        .18607        .20732E-03   -.87297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34316e-08
Minuit parameter uncertainties:
  1  23.2977
  2  0.381449
  3  0.263924
  4  0.186179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822140': 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) = 5929.1338786
delta logL = 0.858843833625

Extracting fit parameters...

4FGL J1202.5-0528
   Spectrum: PowerLaw
309    Prefactor:  4.965e+01  2.330e+01  0.000e+00  1.000e+06 ( 1.000e-12)
310        Index:  2.269e+00  3.814e-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:  1.169e+00  1.862e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  7.313e-01  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.19
Ra Dec: 180.629 -5.471
Photon Index (Free Index): 2.27 +/- 0.38
Photon Flux (Free Index): 1.14e-07 +/- 6.16e-08
Energy Flux (Free Index): 4.52e-05 +/- 2.67e-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/822140/cmap_HighResolution_694224001_694483201_4FGL_J1202.5-0528_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.41e-07', energy_flux2='4.52e-05', photon_flux_error='7.03e-08', dlogl='8.59e-01', energy_flux='3.08e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2023-01-04 01:10:31.852577', photon_index_error2='0.38', photon_index2='2.27', ts='6.57', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='2.67e-05', EG='0.68', time_epoch_completed='1672823431.85', return_code='0', job_id='822140', GAL2='1.17', EG2='0.73', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='6.16e-08', ts2='8.19', photon_index='2.83' WHERE bin_id='1755' AND source_name='4FGL J1202.5-0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:10:31 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 822140: <4FGL_J1202.5-0528_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1202.5-0528_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 00:55:16 2023
Job was executed on host(s) <bullet0176>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:55:44 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:55:44 2023
Terminated at Wed Jan  4 01:10:32 2023
Results reported at Wed Jan  4 01:10:32 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1202.5-0528_daily_bin1755 180.629 -5.4709 694224001 694483201 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 :                                   697.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            916 sec.

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

