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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1671
RA = 336.432, Dec = -4.9537
tmin = 672451201, tmax = 672710401
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='43748', job_status='RUN', time_executed='2022-04-27 01:07:50.853829', time_epoch_executed='1651046870.85' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/43748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/43748/ft1_4FGL_J2225.7-0457_daily_bin1671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/43748/ft2_4FGL_J2225.7-0457_daily_bin1671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/43748/ft1_4FGL_J2225.7-0457_daily_bin1671.fits outfile=/scratch/kocevski/43748/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1671.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=672451201.0 tmax=672710401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.97
user 2.75
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/43748/ft2_4FGL_J2225.7-0457_daily_bin1671.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/43748/ft2_4FGL_J2225.7-0457_daily_bin1671.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/43748/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1671.fits evtable="EVENTS" outfile="/scratch/kocevski/43748/ft1_filtered_4FGL_J2225.7-0457_daily_bin1671.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.50
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 1053

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/43748/ft1_filtered_4FGL_J2225.7-0457_daily_bin1671.fits" evtable="EVENTS" scfile=/scratch/kocevski/43748/ft2_4FGL_J2225.7-0457_daily_bin1671.fits sctable="SC_DATA" outfile=/scratch/kocevski/43748/ltcube_672451201_672710401_4FGL_J2225.7-0457_daily_bin1671.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/43748/ft2_4FGL_J2225.7-0457_daily_bin1671.fits
.....................!
real 12.95
user 12.61
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/43748/ft1_filtered_4FGL_J2225.7-0457_daily_bin1671.fits evtable="EVENTS" scfile=/scratch/kocevski/43748/ft2_4FGL_J2225.7-0457_daily_bin1671.fits sctable="SC_DATA" expcube=/scratch/kocevski/43748/ltcube_672451201_672710401_4FGL_J2225.7-0457_daily_bin1671.fits outfile=/scratch/kocevski/43748/expmap_672451201_672710401_4FGL_J2225.7-0457_daily_bin1671.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/43748/ltcube_672451201_672710401_4FGL_J2225.7-0457_daily_bin1671.fits
.....................!
real 189.94
user 185.29
sys 4.26

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 148 point sources and 0 extended sources

Setting source of interest to:
4FGL J2225.7-0457 @ 336.432 -4.9537

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/43748/ft1_filtered_4FGL_J2225.7-0457_daily_bin1671.fits scfile=/scratch/kocevski/43748/ft2_4FGL_J2225.7-0457_daily_bin1671.fits outfile=/scratch/kocevski/43748/cmap_672451201_672710401_4FGL_J2225.7-0457_daily_bin1671.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=336.432 yref=-4.9537 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/43748/ft1_filtered_4FGL_J2225.7-0457_daily_bin1671.fits scfile=/scratch/kocevski/43748/ft2_4FGL_J2225.7-0457_daily_bin1671.fits outfile=/scratch/kocevski/43748/cmap_HighResolution_672451201_672710401_4FGL_J2225.7-0457_daily_bin1671.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=336.432 yref=-4.9537 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/43748/ft1_filtered_4FGL_J2225.7-0457_daily_bin1671.fits evtable="EVENTS" scfile=/scratch/kocevski/43748/ft2_4FGL_J2225.7-0457_daily_bin1671.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/43748/Model_4FGL_J2225.7-0457_daily_bin1671.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/43748/ft1_filtered_4FGL_J2225.7-0457_daily_bin1671.fits.....................!
real 96.55
user 95.13
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/43748/ft1_filtered_4FGL_J2225.7-0457_daily_bin1671.fits', '/scratch/kocevski/43748/ft2_4FGL_J2225.7-0457_daily_bin1671.fits', expMap='/scratch/kocevski/43748/expmap_672451201_672710401_4FGL_J2225.7-0457_daily_bin1671.fits', expCube='/scratch/kocevski/43748/ltcube_672451201_672710401_4FGL_J2225.7-0457_daily_bin1671.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/43748/Model_4FGL_J2225.7-0457_daily_bin1671.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2225.7-0457'

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.714e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/43748/ft1_filtered_4FGL_J2225.7-0457_daily_bin1671.fits
Spacecraft file(s): /scratch/kocevski/43748/ft2_4FGL_J2225.7-0457_daily_bin1671.fits
Exposure map: /scratch/kocevski/43748/expmap_672451201_672710401_4FGL_J2225.7-0457_daily_bin1671.fits
Exposure cube: /scratch/kocevski/43748/ltcube_672451201_672710401_4FGL_J2225.7-0457_daily_bin1671.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/43748/Model_4FGL_J2225.7-0457_daily_bin1671.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) = 11043.9588925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11519E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.490       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5877       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .26649E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4253       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.583       1.0000         .10000E-03   10000.    
    16 'norm      '    .14082E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    88.292       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13553E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    48.733       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3184       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .69998       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11043.90     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2680 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.346       -.17215E-05** at limit **
   2  Prefactor     .10000E-03    2.7050       -.69978E-07** at limit **
   3  Prefactor     .10000E-03    3.4924       -.54024E-07** at limit **
   4  Prefactor     .10001E-03    9.4895       -.37404E-06** at limit **
   5  Prefactor     4.8481        6.1168        .44046E-05   -.50375E-04
   6  Prefactor     .10000E-03    3.2541       -.12007E-06** at limit **
   7  Prefactor     34.493        10.599       -.18786E-06    .46388E-05
   8  Prefactor     7.5877        5.2808       -.92481E-06   -.11682E-03
   9  Prefactor     .10000E-03    20.297        .40297E-05** at limit **
  10  Prefactor     3.8130        2.5831       -.86141E-09   -.36378E-03
  11  Prefactor     .10000E-03    23.340       -.50990E-05** at limit **
  12  norm          .15679E-01    .79871        .27847E-07   -.32808E-03
  13  Prefactor     .10000E-03    44.281       -.80789E-06** at limit **
  14  norm          7.4252        1.2095       -.91313E-07    .16631E-03
  15  Prefactor     28.607        21.181        .12175E-04    .58150E-05
  16  norm          .10114E-01    .50873       -.25153E-07    .18353E-02
  17  Prefactor     88.269        39.119       -.18641E-04    .50688E-06
  18  Prefactor     .10000E-03    12.861        .21870E-05** at limit **
  19  norm          48.736        14.284        .98460E-07    .12767E-04
  20  Normalizat    1.3180        .16633        .17183E-05   -.12444E-03
  21  Prefactor     .70022        .97585E-01   -.68448E-06    .14317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 4.8481
  Prefactor  = 0.0001
  Prefactor  = 34.4933
  Prefactor  = 7.58768
  Prefactor  = 0.0001
  Prefactor  = 3.813
  Prefactor  = 0.0001
  norm       = 0.015679
  Prefactor  = 0.0001
  norm       = 7.42524
  Prefactor  = 28.6068
  norm       = 0.0101141
  Prefactor  = 88.2687
  Prefactor  = 0.000100003
  norm       = 48.7357
  Normalizat = 1.31801
  Prefactor  = 0.700218
 **********
 **   18 **HESSE 
 **********

 FCN=   11043.90     FROM HESSE     STATUS=OK           337 CALLS     3017 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7969        .33737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    85.152        .62352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8481        6.1056        .18268E-03   -1.5268    
   6  Prefactor     .10000E-03    3.2587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.493        10.633        .68235E-04   -1.4533    
   8  Prefactor     7.5877        5.2767        .14559E-03   -1.5157    
   9  Prefactor     .10000E-03    20.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8130        2.5778        .13257E-03   -1.5317    
  11  Prefactor     .10000E-03    23.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .15679E-01    1.8144        .32251E-01   -1.5683    
  13  Prefactor     .10000E-03    44.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4252        1.2109        .44288E-04   -1.5163    
  15  Prefactor     28.607        23.012        .74936E-04   -1.4638    
  16  norm          .10114E-01    1.1605        .21579E-01   -1.5688    
  17  Prefactor     88.269        39.088        .42760E-04   -1.3826    
  18  Prefactor     .10000E-03    13.291        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          48.736        14.337        .57442E-04   -1.4311    
  20  Normalizat    1.3180        .19758        .27806E-03   -.83030    
  21  Prefactor     .70022        .11544        .22558E-03   -1.0352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69617e-09
Minuit parameter uncertainties:
  1  5.97287e-06
  2  5.0143e-06
  3  1.26987e-05
  4  0.0013862
  5  6.10634
  6  1.48362e-05
  7  10.6332
  8  5.27706
  9  4.55763e-06
  10  2.57784
  11  8.7591e-07
  12  0.336263
  13  6.25112e-07
  14  1.2109
  15  23.0195
  16  0.215613
  17  39.0993
  18  0.000388709
  19  14.3377
  20  0.197696
  21  0.115482
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  3.813e+00  2.578e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  7.002e-01  1.155e-01  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  1.318e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.28
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 8.20e-06

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) = 11043.466493
delta logL = 0.428901185291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11043.465889
delta logL = 0.429505246013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2250       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9689       1.0000          .0000       10.000    
     3 'Normalizat'    1.3339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69199       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+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=   11043.47     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      286 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2250        3.3721        .14903E-03    .33809E-03
   2  Index         1.9689        .43583        .94743E-02    .85592E-04
   3  Normalizat    1.3339        .18620        .27661E-03   -.49321E-05
   4  Prefactor     .69200        .11428        .22670E-03   -.21463E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.22496
  Index      = 1.96892
  Normalizat = 1.33389
  Prefactor  = 0.691995
 **********
 **   18 **HESSE 
 **********

 FCN=   11043.47     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2250        3.3582        .59613E-05   -1.5251    
   2  Index         1.9689        .43410        .37897E-03   -.65129    
   3  Normalizat    1.3339        .18637        .11064E-04   -.82560    
   4  Prefactor     .69200        .11438        .90681E-05   -1.0384    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05519e-10
Minuit parameter uncertainties:
  1  3.35835
  2  0.434967
  3  0.186462
  4  0.114422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/43748': 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) = 11043.4658889
delta logL = 0.429505286524

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  5.225e+00  3.358e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.969e+00  4.350e-01  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  6.920e-01  1.144e-01  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  1.334e+00  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 1.97 +/- 0.43
Photon Flux (Free Index): 3.02e-08 +/- 2.26e-08
Energy Flux (Free Index): 2.26e-05 +/- 2.18e-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/43748/cmap_HighResolution_672451201_672710401_4FGL_J2225.7-0457_daily_bin1671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='2.26e-05', photon_flux_error='2.58e-08', dlogl='4.30e-01', energy_flux='1.21e-05', photon_flux2='3.02e-08', job_status='DONE', time_completed='2022-04-27 01:20:44.013582', photon_index_error2='0.43', photon_index2='1.97', ts='4.28', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='2.18e-05', EG='1.32', time_epoch_completed='1651047644.01', return_code='0', job_id='43748', GAL2='0.69', EG2='1.33', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='2.26e-08', ts2='5.14', photon_index='2.43' WHERE bin_id='1671' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr 27 01:20:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 43748: <4FGL_J2225.7-0457_daily_bin1671> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin1671> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Apr 27 01:05:34 2022
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr 27 01:05:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr 27 01:05:34 2022
Terminated at Wed Apr 27 01:20:44 2022
Results reported at Wed Apr 27 01:20:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1671 336.432 -4.9537 672451201 672710401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2225.7-0457 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   775.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             321.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            910 sec.

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

