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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1087
RA = 336.432, Dec = -4.9537
tmin = 521078401, tmax = 521337601
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='300286', job_status='RUN', time_executed='2021-09-28 11:23:48.880958', time_epoch_executed='1632853428.88' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300286

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300286/ft1_4FGL_J2225.7-0457_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300286/ft2_4FGL_J2225.7-0457_daily_bin1087.fits


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

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

Done.
real 4.60
user 4.33
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300286/ft1_filtered_4FGL_J2225.7-0457_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/300286/ft2_4FGL_J2225.7-0457_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/300286/ltcube_521078401_521337601_4FGL_J2225.7-0457_daily_bin1087.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/300286/ft2_4FGL_J2225.7-0457_daily_bin1087.fits
.....................!
real 11.87
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300286/ft1_filtered_4FGL_J2225.7-0457_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/300286/ft2_4FGL_J2225.7-0457_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/300286/ltcube_521078401_521337601_4FGL_J2225.7-0457_daily_bin1087.fits outfile=/scratch/kocevski/300286/expmap_521078401_521337601_4FGL_J2225.7-0457_daily_bin1087.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/300286/ltcube_521078401_521337601_4FGL_J2225.7-0457_daily_bin1087.fits
.....................!
real 192.23
user 186.58
sys 5.29

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/300286/ft1_filtered_4FGL_J2225.7-0457_daily_bin1087.fits scfile=/scratch/kocevski/300286/ft2_4FGL_J2225.7-0457_daily_bin1087.fits outfile=/scratch/kocevski/300286/cmap_521078401_521337601_4FGL_J2225.7-0457_daily_bin1087.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300286/ft1_filtered_4FGL_J2225.7-0457_daily_bin1087.fits scfile=/scratch/kocevski/300286/ft2_4FGL_J2225.7-0457_daily_bin1087.fits outfile=/scratch/kocevski/300286/cmap_HighResolution_521078401_521337601_4FGL_J2225.7-0457_daily_bin1087.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300286/ft1_filtered_4FGL_J2225.7-0457_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/300286/ft2_4FGL_J2225.7-0457_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300286/Model_4FGL_J2225.7-0457_daily_bin1087.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/300286/ft1_filtered_4FGL_J2225.7-0457_daily_bin1087.fits.....................!
real 72.40
user 70.96
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20970E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.871       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2388       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.539       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11333E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5752       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.620       1.0000         .10000E-03   10000.    
    12 'norm      '    .11786E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .21019E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.670       1.0000         .10000E-03   10000.    
    16 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    25.132       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0273       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86174       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8178.465     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2387 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8990         .0000    ** at limit **
   2  Prefactor     .13958E-03    2.0112         .0000    ** at limit **
   3  Prefactor     .10000E-03    2.1181         .0000    ** at limit **
   4  Prefactor     13.868        18.315         .0000       -.85789E-03
   5  Prefactor     .10000E-03    10.998         .0000    ** at limit **
   6  Prefactor     .10000E-03    46.355         .0000    ** at limit **
   7  Prefactor     1.2391        11.803         .0000        .17447E-01
   8  Prefactor     15.539        8.8525         .0000        .62709E-02
   9  Prefactor     .11480E-03    520.02         .0000    ** at limit **
  10  Prefactor     5.5740        3.5238         .0000       -.59135E-03
  11  Prefactor     33.628        36.009         .0000        .14787E-02
  12  norm          .10000E-03    1.3396         .0000    ** at limit **
  13  Prefactor     .10000E-03    58.259         .0000    ** at limit **
  14  norm          .20163E-01    .30376         .0000        .12221E-02
  15  Prefactor     54.664        17.106         .0000       -.83109E-03
  16  norm          .10000E-03    .51215         .0000    ** at limit **
  17  Prefactor     .10000E-03    32.908         .0000    ** at limit **
  18  Prefactor     .10000E-03    6.3685         .0000    ** at limit **
  19  norm          25.129        11.557         .0000       -.95993E-03
  20  Normalizat    1.0274        .17350         .0000       -.21413E-04
  21  Prefactor     .86178        .10412         .0000       -.14701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000139582
  Prefactor  = 0.0001
  Prefactor  = 13.868
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.23912
  Prefactor  = 15.5392
  Prefactor  = 0.000114805
  Prefactor  = 5.57404
  Prefactor  = 33.6284
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0201627
  Prefactor  = 54.6639
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.1291
  Normalizat = 1.02744
  Prefactor  = 0.861782
 **********
 **   18 **HESSE 
 **********

 FCN=   8178.465     FROM HESSE     STATUS=OK           319 CALLS     2706 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.8999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13958E-03    4.4798        .41507E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1208        .12853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.868        18.308        .10755E-03   -1.4963    
   5  Prefactor     .10000E-03    11.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.231        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2391        11.954        .20154E-02   -1.5485    
   8  Prefactor     15.539        8.8474        .10160E-03   -1.4919    
   9  Prefactor     .11480E-03    531.52        .36285E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5740        3.5115        .12670E-03   -1.5236    
  11  Prefactor     33.628        36.031        .69110E-04   -1.4548    
  12  norm          .10000E-03    4.3699        .19829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    58.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .20163E-01    3.5218        .94534E-03   -1.5680    
  15  Prefactor     54.664        14.710        .54249E-04   -1.4228    
  16  norm          .10000E-03    .64362        .10745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          25.129        11.562        .79906E-04   -1.4705    
  20  Normalizat    1.0274        .20193        .28141E-03   -.92117    
  21  Prefactor     .86178        .12257        .19320E-03   -.97490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24065e-08
Minuit parameter uncertainties:
  1  1.66222e-05
  2  0.0266342
  3  7.64744e-07
  4  18.3153
  5  0.000131989
  6  0.000771845
  7  7.69897
  8  8.84814
  9  0.179024
  10  3.51166
  11  36.0539
  12  2.84953e-05
  13  0.000377839
  14  0.531662
  15  14.7108
  16  1.65187e-06
  17  2.53928e-05
  18  2.97185e-05
  19  11.5632
  20  0.202082
  21  0.122609
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  5.574e+00  3.512e+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:  8.618e-01  1.226e-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.027e+00  2.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.52
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.59e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.12e-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) = 8177.92776182
delta logL = 0.536997319385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8177.89143247
delta logL = 0.573326667723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3248       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9803       1.0000          .0000       10.000    
     3 'Normalizat'    1.0454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85337       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=   8177.891     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3243        139.93        .37049E-02    .14098E-03
   2  Index         1.9803        5.8610        .18969        .16776E-05
   3  Normalizat    1.0454        .25694        .63137E-01    .10067E-04
   4  Prefactor     .85338        .16543        .44408E-01   -.19904E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.32431
  Index      = 1.98029
  Normalizat = 1.04537
  Prefactor  = 0.853383
 **********
 **   18 **HESSE 
 **********

 FCN=   8177.891     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .77E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3243        4.3482        .14020E-03   -1.5167    
   2  Index         1.9803        .38153        .73380E-02   -.64844    
   3  Normalizat    1.0454        .19101        .27926E-03   -.91526    
   4  Prefactor     .85338        .12178        .19397E-03   -.97790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66583e-13
Minuit parameter uncertainties:
  1  4.34836
  2  0.382118
  3  0.191134
  4  0.121816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300286': 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) = 8177.89143246
delta logL = 0.573326686334

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  7.324e+00  4.348e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.980e+00  3.821e-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:  8.534e-01  1.218e-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.045e+00  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.69
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 1.98 +/- 0.38
Photon Flux (Free Index): 4.29e-08 +/- 2.96e-08
Energy Flux (Free Index): 3.11e-05 +/- 2.65e-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/300286/cmap_HighResolution_521078401_521337601_4FGL_J2225.7-0457_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.59e-08', energy_flux2='3.11e-05', photon_flux_error='3.52e-08', dlogl='5.73e-01', energy_flux='1.77e-05', photon_flux2='4.29e-08', job_status='DONE', time_completed='2021-09-28 11:34:08.932559', photon_index_error2='0.38', photon_index2='1.98', ts='4.52', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.65e-05', EG='1.03', time_epoch_completed='1632854048.93', return_code='0', job_id='300286', GAL2='0.85', EG2='1.05', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='2.96e-08', ts2='5.69', photon_index='2.43' WHERE bin_id='1087' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:34:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 300286: <4FGL_J2225.7-0457_daily_bin1087> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin1087> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:20:36 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:20:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:20:38 2021
Terminated at Tue Sep 28 11:34:10 2021
Results reported at Tue Sep 28 11:34:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1087 336.432 -4.9537 521078401 521337601 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 :                                   619.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            814 sec.

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

