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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1645
RA = 336.432, Dec = -4.9537
tmin = 665712001, tmax = 665971201
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='629213', job_status='RUN', time_executed='2022-02-08 00:40:15.418626', time_epoch_executed='1644309615.42' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629213

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629213/ft1_4FGL_J2225.7-0457_daily_bin1645.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629213/ft2_4FGL_J2225.7-0457_daily_bin1645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629213/ft1_4FGL_J2225.7-0457_daily_bin1645.fits outfile=/scratch/kocevski/629213/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1645.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=665712001.0 tmax=665971201.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.59
user 3.36
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/629213/ft2_4FGL_J2225.7-0457_daily_bin1645.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/629213/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1645.fits evtable="EVENTS" outfile="/scratch/kocevski/629213/ft1_filtered_4FGL_J2225.7-0457_daily_bin1645.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629213/ft1_filtered_4FGL_J2225.7-0457_daily_bin1645.fits" evtable="EVENTS" scfile=/scratch/kocevski/629213/ft2_4FGL_J2225.7-0457_daily_bin1645.fits sctable="SC_DATA" outfile=/scratch/kocevski/629213/ltcube_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.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/629213/ft2_4FGL_J2225.7-0457_daily_bin1645.fits
.....................!
real 12.17
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629213/ft1_filtered_4FGL_J2225.7-0457_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/629213/ft2_4FGL_J2225.7-0457_daily_bin1645.fits sctable="SC_DATA" expcube=/scratch/kocevski/629213/ltcube_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.fits outfile=/scratch/kocevski/629213/expmap_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.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/629213/ltcube_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.fits
.....................!
real 192.33
user 187.17
sys 4.77

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/629213/ft1_filtered_4FGL_J2225.7-0457_daily_bin1645.fits scfile=/scratch/kocevski/629213/ft2_4FGL_J2225.7-0457_daily_bin1645.fits outfile=/scratch/kocevski/629213/cmap_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/629213/ft1_filtered_4FGL_J2225.7-0457_daily_bin1645.fits scfile=/scratch/kocevski/629213/ft2_4FGL_J2225.7-0457_daily_bin1645.fits outfile=/scratch/kocevski/629213/cmap_HighResolution_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/629213/ft1_filtered_4FGL_J2225.7-0457_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/629213/ft2_4FGL_J2225.7-0457_daily_bin1645.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/629213/Model_4FGL_J2225.7-0457_daily_bin1645.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/629213/ft1_filtered_4FGL_J2225.7-0457_daily_bin1645.fits.....................!
real 65.09
user 63.51
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/629213/ft1_filtered_4FGL_J2225.7-0457_daily_bin1645.fits', '/scratch/kocevski/629213/ft2_4FGL_J2225.7-0457_daily_bin1645.fits', expMap='/scratch/kocevski/629213/expmap_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.fits', expCube='/scratch/kocevski/629213/ltcube_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/629213/Model_4FGL_J2225.7-0457_daily_bin1645.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/629213/ft1_filtered_4FGL_J2225.7-0457_daily_bin1645.fits
Spacecraft file(s): /scratch/kocevski/629213/ft2_4FGL_J2225.7-0457_daily_bin1645.fits
Exposure map: /scratch/kocevski/629213/expmap_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.fits
Exposure cube: /scratch/kocevski/629213/ltcube_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/629213/Model_4FGL_J2225.7-0457_daily_bin1645.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) = 6490.36069807

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.384       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19512E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.286       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6247       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.997       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7637       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11243E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9688       1.0000         .10000E-03   10000.    
    16 'norm      '    .36837       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    44.682       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .60809       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2004       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=   6490.337     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     1906 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.566        .47807E-06** at limit **
   2  Prefactor     23.381        9.8298        .25983E-06   -.37992E-05
   3  Prefactor     .10000E-03    5.4998        .45072E-06** at limit **
   4  Prefactor     .10054E-03    31.870        .46069E-05** at limit **
   5  Prefactor     14.289        19.013       -.73174E-06   -.86254E-04
   6  Prefactor     .10000E-03    15.424        .58283E-07** at limit **
   7  Prefactor     5.6214        13.531       -.85351E-06   -.39749E-04
   8  Prefactor     25.992        15.292        .23906E-06   -.49416E-04
   9  Prefactor     4.8248        223.86       -.12277E-05   -.10387E-04
  10  Prefactor     .10000E-03    4.1229       -.11351E-05** at limit **
  11  Prefactor     .10000E-03    20.927        .64194E-06** at limit **
  12  norm          15.151        5.5174       -.20752E-06   -.17376E-03
  13  Prefactor     .10000E-03    22.790       -.33334E-06** at limit **
  14  norm          .10000E-03    .31854       -.26164E-06** at limit **
  15  Prefactor     8.0777        48.808        .14205E-05    .11754E-03
  16  norm          .36146        5.4039       -.46621E-06    .18020E-03
  17  Prefactor     .10000E-03    10.843       -.51624E-06** at limit **
  18  Prefactor     .10000E-03    3.1006        .10200E-06** at limit **
  19  norm          44.687        19.063        .49991E-06    .26552E-05
  20  Normalizat    .60789        .25704       -.65061E-05   -.23515E-03
  21  Prefactor     1.2004        .14821        .12020E-05   -.59899E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.3814
  Prefactor  = 0.0001
  Prefactor  = 0.000100542
  Prefactor  = 14.2891
  Prefactor  = 0.0001
  Prefactor  = 5.62139
  Prefactor  = 25.9918
  Prefactor  = 4.82477
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.1512
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.07765
  norm       = 0.361459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 44.6869
  Normalizat = 0.607888
  Prefactor  = 1.20044
 **********
 **   18 **HESSE 
 **********

 FCN=   6490.337     FROM HESSE     STATUS=OK           321 CALLS     2227 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.381        9.8257        .82834E-04   -1.4741    
   3  Prefactor     .10000E-03    5.5281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10054E-03    173.39        .72697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.289        18.983        .10597E-03   -1.4952    
   6  Prefactor     .10000E-03    15.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6214        13.455        .16938E-03   -1.5234    
   8  Prefactor     25.992        15.282        .78568E-04   -1.4688    
   9  Prefactor     4.8248        225.69        .18434E-03   -1.5269    
  10  Prefactor     .10000E-03    4.1731        .31518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.151        5.4962        .10290E-03   -1.4929    
  13  Prefactor     .10000E-03    22.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .32326        .87770E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.0777        48.433        .14204E-03   -1.5139    
  16  norm          .36146        5.3771        .10182E-02   -1.5588    
  17  Prefactor     .10000E-03    10.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1050        .13856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          44.687        19.066        .59979E-04   -1.4370    
  20  Normalizat    .60789        .26973        .40346E-03   -1.0765    
  21  Prefactor     1.2004        .15952        .18602E-03   -.86318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13882e-09
Minuit parameter uncertainties:
  1  2.54926e-05
  2  9.82636
  3  1.89777e-05
  4  0.0194381
  5  18.9914
  6  2.98489e-05
  7  13.462
  8  15.2839
  9  66.263
  10  1.71965e-05
  11  5.51098e-05
  12  5.49634
  13  8.2853e-06
  14  1.86173e-06
  15  39.6066
  16  2.78818
  17  5.5124e-06
  18  4.39284e-06
  19  19.0685
  20  0.270315
  21  0.159588
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.720e-05  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:  1.200e+00  1.596e-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:  6.079e-01  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 9.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/629213/likelihoodResults_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.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) = 6490.33836891
delta logL = -0.00114435461637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6490.33722461
delta logL = -5.8047589846e-08

Fit tolerance = 1e-08

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

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

 FCN=   6490.337     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4448        .90712E-02** at limit **
   2  Index         2.4019        6.2003        .50000        .24518E-04
   3  Normalizat    .60789        .22503        .91070E-01    .79046E-04
   4  Prefactor     1.2004        .14258        .34620E-01    .82660E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40187
  Normalizat = 0.607888
  Prefactor  = 1.20044
 **********
 **   18 **HESSE 
 **********

 FCN=   6490.337     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4351        .31691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4019        6.2009        .50000       -.54641    
   3  Normalizat    .60789        .24628        .40349E-03   -1.0765    
   4  Prefactor     1.2004        .15657        .18602E-03   -.86318    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15202e-10
Minuit parameter uncertainties:
  1  4.09742e-05
  2  4.38254
  3  0.246727
  4  0.156633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629213': 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) = 6490.33722442
delta logL = 1.36998096423e-07

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  4.097e-05  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.402e+00  4.383e+00  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:  1.200e+00  1.566e-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:  6.079e-01  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 336.432 -4.954

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/629213/cmap_HighResolution_665712001_665971201_4FGL_J2225.7-0457_daily_bin1645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', job_status='DONE', photon_flux_upper_limit='9.67e-08', time_completed='2022-02-08 00:49:39.718226', job_id='629213', GAL2='1.20', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1644310179.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1645' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb  8 00:49:39 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 629213: <4FGL_J2225.7-0457_daily_bin1645> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin1645> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Feb  8 00:36:04 2022
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:36:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:36:08 2022
Terminated at Tue Feb  8 00:49:40 2022
Results reported at Tue Feb  8 00:49:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1645 336.432 -4.9537 665712001 665971201 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 :                                   566.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             270.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            816 sec.

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

