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


Performing analysis on: 4FGL_J0202.7+4204_daily_bin1673
RA = 30.6862, Dec = 42.0714
tmin = 672969601, tmax = 673228801
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='351040', job_status='RUN', time_executed='2022-05-03 00:09:42.508578', time_epoch_executed='1651561782.51' WHERE source_name='4FGL J0202.7+4204' and cadence='daily' and bin_id='1673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351040

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351040/ft1_4FGL_J0202.7+4204_daily_bin1673.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351040/ft2_4FGL_J0202.7+4204_daily_bin1673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351040/ft1_4FGL_J0202.7+4204_daily_bin1673.fits outfile=/scratch/kocevski/351040/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1673.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=672969601.0 tmax=673228801.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.26
user 2.76
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351040/ft2_4FGL_J0202.7+4204_daily_bin1673.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351040/ft2_4FGL_J0202.7+4204_daily_bin1673.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/351040/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1673.fits evtable="EVENTS" outfile="/scratch/kocevski/351040/ft1_filtered_4FGL_J0202.7+4204_daily_bin1673.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 151

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351040/ft1_filtered_4FGL_J0202.7+4204_daily_bin1673.fits" evtable="EVENTS" scfile=/scratch/kocevski/351040/ft2_4FGL_J0202.7+4204_daily_bin1673.fits sctable="SC_DATA" outfile=/scratch/kocevski/351040/ltcube_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.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/351040/ft2_4FGL_J0202.7+4204_daily_bin1673.fits
.....................!
real 17.75
user 17.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351040/ft1_filtered_4FGL_J0202.7+4204_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351040/ft2_4FGL_J0202.7+4204_daily_bin1673.fits sctable="SC_DATA" expcube=/scratch/kocevski/351040/ltcube_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.fits outfile=/scratch/kocevski/351040/expmap_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.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/351040/ltcube_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.fits
.....................!
real 193.47
user 186.97
sys 5.98

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 176 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0202.7+4204 @ 30.6862 42.0714

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351040/ft1_filtered_4FGL_J0202.7+4204_daily_bin1673.fits scfile=/scratch/kocevski/351040/ft2_4FGL_J0202.7+4204_daily_bin1673.fits outfile=/scratch/kocevski/351040/cmap_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.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=30.6862 yref=42.0714 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351040/ft1_filtered_4FGL_J0202.7+4204_daily_bin1673.fits scfile=/scratch/kocevski/351040/ft2_4FGL_J0202.7+4204_daily_bin1673.fits outfile=/scratch/kocevski/351040/cmap_HighResolution_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.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=30.6862 yref=42.0714 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351040/ft1_filtered_4FGL_J0202.7+4204_daily_bin1673.fits evtable="EVENTS" scfile=/scratch/kocevski/351040/ft2_4FGL_J0202.7+4204_daily_bin1673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351040/Model_4FGL_J0202.7+4204_daily_bin1673.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/351040/ft1_filtered_4FGL_J0202.7+4204_daily_bin1673.fits......................!
real 29.76
user 27.82
sys 1.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351040/ft1_filtered_4FGL_J0202.7+4204_daily_bin1673.fits', '/scratch/kocevski/351040/ft2_4FGL_J0202.7+4204_daily_bin1673.fits', expMap='/scratch/kocevski/351040/expmap_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.fits', expCube='/scratch/kocevski/351040/ltcube_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351040/Model_4FGL_J0202.7+4204_daily_bin1673.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0202.7+4204'

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  4.935e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351040/ft1_filtered_4FGL_J0202.7+4204_daily_bin1673.fits
Spacecraft file(s): /scratch/kocevski/351040/ft2_4FGL_J0202.7+4204_daily_bin1673.fits
Exposure map: /scratch/kocevski/351040/expmap_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.fits
Exposure cube: /scratch/kocevski/351040/ltcube_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351040/Model_4FGL_J0202.7+4204_daily_bin1673.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) = 1572.19735235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    62.276       1.0000         .10000E-03   10000.    
     3 'Prefactor '    193.90       1.0000         .10000E-03   10000.    
     4 'norm      '    .10386E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.506       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .17856E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10299E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    20 'norm      '    10000.       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73933       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1571.301     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     2491 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2157       -.20366E-08** at limit **
   2  Prefactor     62.268        1.3696       -.71839E-07   -.17010E-03
   3  Prefactor     193.89        2.5263       -.14228E-06    .31986E-02
   4  norm          .10000E-03    5.3566       -.16591E-06** at limit **
   5  Prefactor     53.490        2.9253       -.29804E-06    .93414E-03
   6  Prefactor     .10350E-03    47.498       -.12196E-05** at limit **
   7  norm          .10000E-03    .82984       -.10611E-06** at limit **
   8  norm          .10000E-03    1.0863        .38110E-06** at limit **
   9  Prefactor     .10000E-03    10.574       -.80380E-07** at limit **
  10  Prefactor     .10000E-03    6.8074        .35338E-06** at limit **
  11  Prefactor     .10118E-03    42.105        .32609E-05** at limit **
  12  Prefactor     .10691E-03    27.518       -.38573E-05** at limit **
  13  norm          .10000E-03    13.521        .35965E-06** at limit **
  14  Prefactor     .10012E-03    18.483        .16602E-05** at limit **
  15  norm          .10420E-03    114.82        .12495E-04** at limit **
  16  Prefactor     .14589E-03    84.075       -.20721E-05** at limit **
  17  norm          .10009E-03    19.521       -.81728E-06** at limit **
  18  norm          .10000E-03    2.9032        .25886E-10** at limit **
  19  Prefactor    10000.0        167.02        .20208E-04** at limit **
  20  norm         10000.0        176.86        .18430E-04** at limit **
  21  Prefactor    10000.0        1.0116        .14408E-05** at limit **
  22  norm          .10001E-03    16.255       -.17580E-05** at limit **
  23  Normalizat    .10000E-01    .22136       -.69400E-05** at limit **
  24  Prefactor     .73950        .10138        .19125E-07   -.10896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 62.2683
  Prefactor  = 193.891
  norm       = 0.0001
  Prefactor  = 53.49
  Prefactor  = 0.000103497
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101175
  Prefactor  = 0.000106908
  norm       = 0.0001
  Prefactor  = 0.000100119
  norm       = 0.000104204
  Prefactor  = 0.000145894
  norm       = 0.00010009
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.000100008
  Normalizat = 0.01
  Prefactor  = 0.739499
 **********
 **   18 **HESSE 
 **********

 FCN=   1571.301     FROM HESSE     STATUS=OK           433 CALLS     2924 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     62.268        38.459        .12712E-02   -1.4128    
   3  Prefactor     193.89        111.01        .72521E-03   -1.2914    
   4  norm          .10000E-03    5.2498        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.490        54.517        .13708E-02   -1.4244    
   6  Prefactor     .10350E-03    67.132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .82972        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .86565        .17472E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.574        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.7637        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10118E-03    45.917        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10691E-03    54.680        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10012E-03    18.766        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10420E-03    149.31        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14589E-03    218.33        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10009E-03    19.721        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.9035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor    10000.0        578.59        .91836E-02    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm         10000.0        377.75        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        6523.1        .10696E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    16.184        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .18582        .26091       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .73950        .12024        .42922E-01   -1.0200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.15414e-07
Minuit parameter uncertainties:
  1  1.3944e-07
  2  38.4748
  3  111.134
  4  9.14047e-06
  5  54.5683
  6  0.0306771
  7  2.32268e-06
  8  8.51358e-06
  9  8.02682e-06
  10  2.20863e-05
  11  0.0147024
  12  0.038906
  13  8.26155e-05
  14  0.00299054
  15  0.0502344
  16  0.200935
  17  0.00266011
  18  7.99289e-09
  19  0.710171
  20  0.0162179
  21  1.18371
  22  0.00070177
  23  2.27775e-06
  24  0.120281
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.069e-04  3.891e-02  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.395e-01  1.203e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.000e-02  2.278e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 30.686 42.071
Photon Flux Upper Limit: 2.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351040/likelihoodResults_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.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) = 1571.3008105
delta logL = -9.06536806724e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1571.30072189
delta logL = -2.04364187084e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18484E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3436       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73950       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1571.301     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      277 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10249E-03    21.523        .18142E-01** at limit **
   2  Index         2.2691        5.8645        .50000        .86334E-05
   3  Normalizat    .10000E-01    .20833E-03    .94068E-02** at limit **
   4  Prefactor     .73950        .30966E-02    .14998E-03   -.32173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102487
  Index      = 2.26913
  Normalizat = 0.01
  Prefactor  = 0.739499
 **********
 **   18 **HESSE 
 **********

 FCN=   1571.301     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10249E-03    144.87        .26296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2691        5.2048        .50000       -.57779    
   3  Normalizat    .10000E-01    .14166E-02    .18814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .73950        .80721E-02    .29997E-04   -1.0200    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.5877e-10
Minuit parameter uncertainties:
  1  0.0380573
  2  210.954
  3  7.80152e-08
  4  0.00807211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351040': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1571.30071999
delta logL = -1.35121581479e-07

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.025e-04  3.806e-02  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.269e+00  2.110e+02  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  7.395e-01  8.072e-03  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.000e-02  7.802e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 30.686 42.071

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/351040/cmap_HighResolution_672969601_673228801_4FGL_J0202.7+4204_daily_bin1673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', job_status='DONE', photon_flux_upper_limit='2.11e-07', time_completed='2022-05-03 00:16:54.105697', job_id='351040', GAL2='0.74', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1651562214.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='-1.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1673' AND source_name='4FGL J0202.7+4204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue May  3 00:16:54 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 351039: <4FGL_J0202.7+4204_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0202.7+4204_daily_bin1673> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue May  3 00:05:32 2022
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:07:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:07:26 2022
Terminated at Tue May  3 00:15:54 2022
Results reported at Tue May  3 00:15:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_daily_bin1673 30.6862 42.0714 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0202.7+4204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   424.48 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             279.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   508 sec.
    Turnaround time :                            622 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 351040: <4FGL_J0202.7+4204_daily_bin1673> in cluster <slac> Done

Job <4FGL_J0202.7+4204_daily_bin1673> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue May  3 00:05:32 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 00:07:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 00:07:26 2022
Terminated at Tue May  3 00:16:54 2022
Results reported at Tue May  3 00:16:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_daily_bin1673 30.6862 42.0714 672969601 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0202.7+4204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   429.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            682 sec.

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

