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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin562
RA = 336.432, Dec = -4.9537
tmin = 384998401, tmax = 385257601
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='298357', job_status='RUN', time_executed='2021-09-28 11:15:25.511114', time_epoch_executed='1632852925.51' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298357/ft1_4FGL_J2225.7-0457_daily_bin562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298357/ft2_4FGL_J2225.7-0457_daily_bin562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298357/ft1_4FGL_J2225.7-0457_daily_bin562.fits outfile=/scratch/kocevski/298357/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin562.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=384998401.0 tmax=385257601.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.55
user 3.32
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/298357/ft1_filtered_4FGL_J2225.7-0457_daily_bin562.fits" evtable="EVENTS" scfile=/scratch/kocevski/298357/ft2_4FGL_J2225.7-0457_daily_bin562.fits sctable="SC_DATA" outfile=/scratch/kocevski/298357/ltcube_384998401_385257601_4FGL_J2225.7-0457_daily_bin562.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/298357/ft2_4FGL_J2225.7-0457_daily_bin562.fits
.....................!
real 12.50
user 12.10
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298357/ft1_filtered_4FGL_J2225.7-0457_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/298357/ft2_4FGL_J2225.7-0457_daily_bin562.fits sctable="SC_DATA" expcube=/scratch/kocevski/298357/ltcube_384998401_385257601_4FGL_J2225.7-0457_daily_bin562.fits outfile=/scratch/kocevski/298357/expmap_384998401_385257601_4FGL_J2225.7-0457_daily_bin562.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/298357/ltcube_384998401_385257601_4FGL_J2225.7-0457_daily_bin562.fits
.....................!
real 191.52
user 185.24
sys 5.09

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/298357/ft1_filtered_4FGL_J2225.7-0457_daily_bin562.fits scfile=/scratch/kocevski/298357/ft2_4FGL_J2225.7-0457_daily_bin562.fits outfile=/scratch/kocevski/298357/cmap_384998401_385257601_4FGL_J2225.7-0457_daily_bin562.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.63
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298357/ft1_filtered_4FGL_J2225.7-0457_daily_bin562.fits scfile=/scratch/kocevski/298357/ft2_4FGL_J2225.7-0457_daily_bin562.fits outfile=/scratch/kocevski/298357/cmap_HighResolution_384998401_385257601_4FGL_J2225.7-0457_daily_bin562.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.60
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/298357/ft1_filtered_4FGL_J2225.7-0457_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/298357/ft2_4FGL_J2225.7-0457_daily_bin562.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/298357/Model_4FGL_J2225.7-0457_daily_bin562.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/298357/ft1_filtered_4FGL_J2225.7-0457_daily_bin562.fits....................!
real 60.16
user 58.55
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4024       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2957       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32531E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12930E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8756       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.584       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1219       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.286       1.0000         .10000E-03   10000.    
    19 'norm      '    22.029       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .70108       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2567       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=   6089.891     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2172 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.458        .55366E-06** at limit **
   2  Prefactor     2.4018        7.0881        .93578E-06   -.56084E-04
   3  Prefactor     .10000E-03    4.3335        .27450E-07** at limit **
   4  Prefactor     .10000E-03    10.254        .22400E-06** at limit **
   5  Prefactor     .10000E-03    11.776       -.69830E-06** at limit **
   6  Prefactor     .10000E-03    13.519        .10688E-05** at limit **
   7  Prefactor     .10000E-03    26.410        .16588E-06** at limit **
   8  Prefactor     5.2962        9.2151        .41540E-05   -.38875E-03
   9  Prefactor     .10035E-03    765.08       -.30427E-04** at limit **
  10  Prefactor     .10000E-03    2.9919       -.33641E-06** at limit **
  11  Prefactor     .10000E-03    139.36       -.11012E-06** at limit **
  12  norm          3.8770        4.1346        .78685E-08    .10472E-03
  13  Prefactor     19.564        103.37       -.48992E-05   -.57950E-04
  14  norm          3.1221        1.3215       -.72510E-08    .13363E-03
  15  Prefactor     .10000E-03    5.6867        .32877E-07** at limit **
  16  norm          .10000E-03    .42608        .90664E-07** at limit **
  17  Prefactor     .10000E-03    15.421       -.10296E-05** at limit **
  18  Prefactor     15.283        13.922        .18725E-06    .38322E-04
  19  norm          22.035        14.328       -.13461E-06   -.15489E-03
  20  Normalizat    .70097        .23674       -.10874E-05    .41761E-04
  21  Prefactor     1.2568        .14702       -.24608E-06    .74852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.40181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.29621
  Prefactor  = 0.000100347
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.87703
  Prefactor  = 19.5637
  norm       = 3.12208
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.2831
  norm       = 22.0352
  Normalizat = 0.70097
  Prefactor  = 1.25675
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.891     FROM HESSE     STATUS=OK           313 CALLS     2485 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4018        7.0804        .26417E-03   -1.5398    
   3  Prefactor     .10000E-03    4.3494        .15865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.073        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2962        9.4668        .87327E-03   -1.5248    
   9  Prefactor     .10035E-03    842.33        .42711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0421        .13186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    139.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8770        4.1223        .15128E-03   -1.5314    
  13  Prefactor     19.564        105.88        .90506E-04   -1.4823    
  14  norm          3.1221        1.3180        .56037E-04   -1.5355    
  15  Prefactor     .10000E-03    5.6984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .57256        .98624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.283        13.869        .10244E-03   -1.4926    
  19  norm          22.035        14.369        .85340E-04   -1.4769    
  20  Normalizat    .70097        .26579        .37385E-03   -1.0385    
  21  Prefactor     1.2568        .16657        .18298E-03   -.84602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02369e-09
Minuit parameter uncertainties:
  1  0.000107142
  2  7.08289
  3  1.18974e-07
  4  3.0131e-05
  5  0.000132851
  6  0.000185752
  7  5.1327e-05
  8  9.4695
  9  0.0347159
  10  1.34929e-05
  11  8.27794e-05
  12  4.12257
  13  91.2754
  14  1.31801
  15  2.40402e-06
  16  9.13428e-07
  17  0.000218211
  18  13.8717
  19  14.3716
  20  0.266278
  21  0.166639
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.349e-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.257e+00  1.666e-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:  7.010e-01  2.663e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/298357/likelihoodResults_384998401_385257601_4FGL_J2225.7-0457_daily_bin562.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) = 6089.89217698
delta logL = -0.00156539521413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6089.89061172
delta logL = -1.28713509184e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4103       1.0000          .0000       10.000    
     3 'Normalizat'    .70097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2568       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=   6089.891     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10106E-03    67.781        .13307E-02** at limit **
   2  Index         2.3511        7.1067        .50000        .30965E-04
   3  Normalizat    .70097        .26246E-01    .37385E-03    .90104E-04
   4  Prefactor     1.2568        .16844E-01    .18298E-03    .16599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101062
  Index      = 2.35109
  Normalizat = 0.70097
  Prefactor  = 1.25675
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.891     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10106E-03    264.05        .26614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3511        8.8218        .50000       -.55834    
   3  Normalizat    .70097        .56589E-01    .14954E-04   -1.0385    
   4  Prefactor     1.2568        .36314E-01    .36596E-04   -.84602    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.11777e-08
Minuit parameter uncertainties:
  1  0.0336451
  2  710.189
  3  0.056594
  4  0.0363146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298357': 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) = 6089.8906111
delta logL = 4.84470547235e-07

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.011e-04  3.365e-02  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.351e+00  7.102e+02  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.257e+00  3.631e-02  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:  7.010e-01  5.659e-02  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/298357/cmap_HighResolution_384998401_385257601_4FGL_J2225.7-0457_daily_bin562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.46e-03', job_status='DONE', photon_flux_upper_limit='9.63e-08', time_completed='2021-09-28 11:24:49.570848', job_id='298357', GAL2='1.26', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1632853489.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='4.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='562' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:24:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 298357: <4FGL_J2225.7-0457_daily_bin562> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin562> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:15:14 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:15:16 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:15:16 2021
Terminated at Tue Sep 28 11:24:50 2021
Results reported at Tue Sep 28 11:24:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin562 336.432 -4.9537 384998401 385257601 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 :                                   559.08 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             337.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            576 sec.

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

