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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin543
RA = 336.432, Dec = -4.9537
tmin = 380073601, tmax = 380332801
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='297108', job_status='RUN', time_executed='2021-09-28 11:13:34.729833', time_epoch_executed='1632852814.73' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/297108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/297108/ft1_4FGL_J2225.7-0457_daily_bin543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/297108/ft2_4FGL_J2225.7-0457_daily_bin543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/297108/ft1_4FGL_J2225.7-0457_daily_bin543.fits outfile=/scratch/kocevski/297108/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin543.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=380073601.0 tmax=380332801.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.47
user 4.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/297108/ft1_filtered_4FGL_J2225.7-0457_daily_bin543.fits" evtable="EVENTS" scfile=/scratch/kocevski/297108/ft2_4FGL_J2225.7-0457_daily_bin543.fits sctable="SC_DATA" outfile=/scratch/kocevski/297108/ltcube_380073601_380332801_4FGL_J2225.7-0457_daily_bin543.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/297108/ft2_4FGL_J2225.7-0457_daily_bin543.fits
.....................!
real 11.61
user 11.29
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/297108/ft1_filtered_4FGL_J2225.7-0457_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/297108/ft2_4FGL_J2225.7-0457_daily_bin543.fits sctable="SC_DATA" expcube=/scratch/kocevski/297108/ltcube_380073601_380332801_4FGL_J2225.7-0457_daily_bin543.fits outfile=/scratch/kocevski/297108/expmap_380073601_380332801_4FGL_J2225.7-0457_daily_bin543.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/297108/ltcube_380073601_380332801_4FGL_J2225.7-0457_daily_bin543.fits
.....................!
real 190.01
user 185.46
sys 4.23

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/297108/ft1_filtered_4FGL_J2225.7-0457_daily_bin543.fits scfile=/scratch/kocevski/297108/ft2_4FGL_J2225.7-0457_daily_bin543.fits outfile=/scratch/kocevski/297108/cmap_380073601_380332801_4FGL_J2225.7-0457_daily_bin543.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/297108/ft1_filtered_4FGL_J2225.7-0457_daily_bin543.fits scfile=/scratch/kocevski/297108/ft2_4FGL_J2225.7-0457_daily_bin543.fits outfile=/scratch/kocevski/297108/cmap_HighResolution_380073601_380332801_4FGL_J2225.7-0457_daily_bin543.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/297108/ft1_filtered_4FGL_J2225.7-0457_daily_bin543.fits evtable="EVENTS" scfile=/scratch/kocevski/297108/ft2_4FGL_J2225.7-0457_daily_bin543.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/297108/Model_4FGL_J2225.7-0457_daily_bin543.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/297108/ft1_filtered_4FGL_J2225.7-0457_daily_bin543.fits.....................!
real 52.92
user 51.68
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.893       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.394       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.908       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2090       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    83.011       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8822       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5912       1.0000         .10000E-03   10000.    
    16 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.834       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    14.196       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .51463       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1668       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=   5364.263     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2219 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    89.163        .52323E-05** at limit **
   2  Prefactor     .10000E-03    4.5983       -.25230E-07** at limit **
   3  Prefactor     17.888        16.655        .77411E-07   -.14006E-04
   4  Prefactor     .10000E-03    22.630        .52773E-06** at limit **
   5  Prefactor     10.394        17.224        .10882E-05   -.11292E-03
   6  Prefactor     10.908        18.765       -.24763E-06   -.45207E-05
   7  Prefactor     19.081        13.856        .68215E-07    .16168E-04
   8  Prefactor     .10000E-03    16.561       -.16159E-06** at limit **
   9  Prefactor     .10000E-03    101.82       -.55653E-05** at limit **
  10  Prefactor     6.2078        5.3564        .14039E-06    .65793E-05
  11  Prefactor     .10000E-03    27.111       -.62725E-06** at limit **
  12  norm          .10000E-03    1.5834       -.55227E-07** at limit **
  13  Prefactor     82.997        101.31       -.19926E-05    .21722E-04
  14  norm          3.8822        1.4300       -.53094E-07    .41835E-03
  15  Prefactor     2.5798        34.125        .47945E-05    .75657E-04
  16  norm          .10000E-03    .56722       -.38129E-06** at limit **
  17  Prefactor     34.858        48.037       -.99892E-06    .15796E-03
  18  Prefactor     .10000E-03    10.623        .39160E-06** at limit **
  19  norm          14.195        10.591        .16745E-07    .74456E-05
  20  Normalizat    .51434        .25210       -.90036E-06    .48590E-04
  21  Prefactor     1.1670        .15347        .22176E-06    .46697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 17.8877
  Prefactor  = 0.0001
  Prefactor  = 10.3935
  Prefactor  = 10.9078
  Prefactor  = 19.0807
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.20785
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 82.9966
  norm       = 3.88223
  Prefactor  = 2.57983
  norm       = 0.0001
  Prefactor  = 34.858
  Prefactor  = 0.0001
  norm       = 14.1946
  Normalizat = 0.514344
  Prefactor  = 1.16701
 **********
 **   18 **HESSE 
 **********

 FCN=   5364.263     FROM HESSE     STATUS=OK           317 CALLS     2536 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6511        .15330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.888        16.640        .94684E-04   -1.4862    
   4  Prefactor     .10000E-03    22.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.394        17.083        .62140E-03   -1.5063    
   6  Prefactor     10.908        18.711        .12131E-03   -1.5047    
   7  Prefactor     19.081        13.847        .91686E-04   -1.4834    
   8  Prefactor     .10000E-03    16.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    100.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2078        5.3333        .14538E-03   -1.5210    
  11  Prefactor     .10000E-03    27.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5951        .89912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     82.997        100.70        .44087E-04   -1.3883    
  14  norm          3.8822        1.4240        .50555E-04   -1.5314    
  15  Prefactor     2.5798        35.440        .25349E-03   -1.5387    
  16  norm          .10000E-03    .87669        .10191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.858        47.693        .67898E-04   -1.4526    
  18  Prefactor     .10000E-03    10.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          14.195        10.589        .10631E-03   -1.4954    
  20  Normalizat    .51434        .27211        .40779E-03   -1.1176    
  21  Prefactor     1.1670        .16860        .17736E-03   -.87353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35265e-10
Minuit parameter uncertainties:
  1  0.000501848
  2  4.17305e-06
  3  16.6441
  4  2.389e-05
  5  17.0914
  6  18.7215
  7  13.8496
  8  1.0237e-05
  9  0.00060247
  10  5.33374
  11  3.21606e-05
  12  4.18122e-06
  13  100.91
  14  1.42406
  15  19.1372
  16  1.6808e-05
  17  47.7447
  18  3.0045e-05
  19  10.5906
  20  0.272816
  21  0.168674
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  6.208e+00  5.334e+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:  1.167e+00  1.687e-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:  5.143e-01  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.24
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.23e-08 +/- 5.35e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.70e-05

TS (Fixed Index): 2.24
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 1.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/297108/likelihoodResults_380073601_380332801_4FGL_J2225.7-0457_daily_bin543.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): 0
logL (Free Index) = 5364.20748732
delta logL = 0.0553368145474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5364.20395938
delta logL = 0.0588647528512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2512       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6552       1.0000          .0000       10.000    
     3 'Normalizat'    .50148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1724       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=   5364.204     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      282 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2518        5.7674        .12856E-03   -.61973E-03
   2  Index         2.6553        .73032        .66295E-02   -.11735E-03
   3  Normalizat    .50191        .26329        .41259E-03    .13587E-03
   4  Prefactor     1.1721        .16695        .17701E-03    .47394E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.2518
  Index      = 2.65527
  Normalizat = 0.501911
  Prefactor  = 1.17215
 **********
 **   18 **HESSE 
 **********

 FCN=   5364.204     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2518        5.4837        .51424E-05   -1.5250    
   2  Index         2.6553        .69412        .26518E-03   -.48810    
   3  Normalizat    .50191        .26321        .16504E-04   -1.1233    
   4  Prefactor     1.1721        .16688        .35403E-04   -.87193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56377e-10
Minuit parameter uncertainties:
  1  5.48426
  2  0.697007
  3  0.263864
  4  0.166951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/297108': 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) = 5364.20395781
delta logL = 0.0588663174985

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  5.252e+00  5.484e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.655e+00  6.970e-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:  1.172e+00  1.670e-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:  5.019e-01  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.36
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 2.66 +/- 0.70
Photon Flux (Free Index): 7.26e-08 +/- 6.38e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.53e-05

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/297108/cmap_HighResolution_380073601_380332801_4FGL_J2225.7-0457_daily_bin543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='6.23e-08', energy_flux2='1.81e-05', photon_flux_error='5.35e-08', dlogl='5.89e-02', energy_flux='1.97e-05', photon_flux2='7.26e-08', job_status='DONE', time_completed='2021-09-28 11:22:26.808083', photon_index_error2='0.70', photon_index2='2.66', ts='2.24', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='1.53e-05', EG='0.51', time_epoch_completed='1632853346.81', return_code='0', job_id='297108', GAL2='1.17', EG2='0.50', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='6.38e-08', ts2='2.36', photon_index='2.43' WHERE bin_id='543' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:22:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 297108: <4FGL_J2225.7-0457_daily_bin543> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin543> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:10:40 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:10:41 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:10:41 2021
Terminated at Tue Sep 28 11:22:27 2021
Results reported at Tue Sep 28 11:22:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin543 336.432 -4.9537 380073601 380332801 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 :                                   530.12 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            707 sec.

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

