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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin528
RA = 336.432, Dec = -4.9537
tmin = 376185601, tmax = 376444801
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='297085', job_status='RUN', time_executed='2021-09-28 11:10:56.083998', time_epoch_executed='1632852656.08' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/297085

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/297085/ft1_4FGL_J2225.7-0457_daily_bin528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/297085/ft2_4FGL_J2225.7-0457_daily_bin528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/297085/ft1_4FGL_J2225.7-0457_daily_bin528.fits outfile=/scratch/kocevski/297085/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin528.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=376185601.0 tmax=376444801.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.39
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/297085/ft1_filtered_4FGL_J2225.7-0457_daily_bin528.fits" evtable="EVENTS" scfile=/scratch/kocevski/297085/ft2_4FGL_J2225.7-0457_daily_bin528.fits sctable="SC_DATA" outfile=/scratch/kocevski/297085/ltcube_376185601_376444801_4FGL_J2225.7-0457_daily_bin528.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/297085/ft2_4FGL_J2225.7-0457_daily_bin528.fits
.....................!
real 13.00
user 12.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/297085/ft1_filtered_4FGL_J2225.7-0457_daily_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/297085/ft2_4FGL_J2225.7-0457_daily_bin528.fits sctable="SC_DATA" expcube=/scratch/kocevski/297085/ltcube_376185601_376444801_4FGL_J2225.7-0457_daily_bin528.fits outfile=/scratch/kocevski/297085/expmap_376185601_376444801_4FGL_J2225.7-0457_daily_bin528.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/297085/ltcube_376185601_376444801_4FGL_J2225.7-0457_daily_bin528.fits
.....................!
real 191.95
user 186.83
sys 4.81

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/297085/ft1_filtered_4FGL_J2225.7-0457_daily_bin528.fits scfile=/scratch/kocevski/297085/ft2_4FGL_J2225.7-0457_daily_bin528.fits outfile=/scratch/kocevski/297085/cmap_376185601_376444801_4FGL_J2225.7-0457_daily_bin528.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/297085/ft1_filtered_4FGL_J2225.7-0457_daily_bin528.fits scfile=/scratch/kocevski/297085/ft2_4FGL_J2225.7-0457_daily_bin528.fits outfile=/scratch/kocevski/297085/cmap_HighResolution_376185601_376444801_4FGL_J2225.7-0457_daily_bin528.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/297085/ft1_filtered_4FGL_J2225.7-0457_daily_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/297085/ft2_4FGL_J2225.7-0457_daily_bin528.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/297085/Model_4FGL_J2225.7-0457_daily_bin528.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/297085/ft1_filtered_4FGL_J2225.7-0457_daily_bin528.fits.....................!
real 55.63
user 54.29
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4096       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.410       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.261       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.697       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3351       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.924       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.612       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7752       1.0000         .10000E-03   10000.    
    19 'norm      '    25.178       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1266       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85971       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=   5597.464     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2501 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4012        310.57       -.45565E-05   -.18344E-04
   2  Prefactor     .10000E-03    6.3072       -.19717E-08** at limit **
   3  Prefactor     10.411        11.753        .12213E-06   -.16594E-04
   4  Prefactor     16.245        23.961       -.14363E-05   -.16814E-03
   5  Prefactor     10.701        22.795        .14269E-05    .24075E-04
   6  Prefactor     .10000E-03    45.328        .12612E-05** at limit **
   7  Prefactor     .10000E-03    10.299       -.92690E-07** at limit **
   8  Prefactor     2.3340        16.318       -.24668E-05   -.70384E-04
   9  Prefactor     .10000E-03    33.626        .44426E-06** at limit **
  10  Prefactor     6.9155        5.6222        .22453E-05   -.35979E-03
  11  Prefactor     .10000E-03    29.221       -.14386E-05** at limit **
  12  norm          .10000E-03    1.5166       -.32141E-07** at limit **
  13  Prefactor     .10000E-03    32.577       -.13304E-06** at limit **
  14  norm          11.925        2.2064       -.63474E-07   -.45700E-03
  15  Prefactor     .10000E-03    24.316        .29131E-05** at limit **
  16  norm          .10000E-03    .79595        .79641E-06** at limit **
  17  Prefactor     41.642        36.871        .38310E-05    .27072E-03
  18  Prefactor     1.7759        8.7228        .43371E-06   -.10908E-03
  19  norm          25.172        16.936        .13954E-06   -.49363E-04
  20  Normalizat    1.1265        .23734       -.29028E-05   -.15424E-04
  21  Prefactor     .85981        .13812        .90901E-06   -.21956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.40121
  Prefactor  = 0.0001
  Prefactor  = 10.4108
  Prefactor  = 16.2453
  Prefactor  = 10.7008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.33398
  Prefactor  = 0.0001
  Prefactor  = 6.91549
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9248
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 41.6418
  Prefactor  = 1.77591
  norm       = 25.1721
  Normalizat = 1.12649
  Prefactor  = 0.859806
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.464     FROM HESSE     STATUS=OK           313 CALLS     2814 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4012        314.60        .21909E-03   -1.5339    
   2  Prefactor     .10000E-03    6.3932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.411        11.743        .12419E-03   -1.5063    
   4  Prefactor     16.245        24.214        .99323E-04   -1.4902    
   5  Prefactor     10.701        22.714        .12250E-03   -1.5054    
   6  Prefactor     .10000E-03    45.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.3340        16.086        .26834E-03   -1.5402    
   9  Prefactor     .10000E-03    33.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9155        5.8085        .72526E-03   -1.5182    
  11  Prefactor     .10000E-03    29.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5263        .89949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.925        2.2126        .45795E-04   -1.5017    
  15  Prefactor     .10000E-03    24.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .79977        .12789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.642        38.065        .62142E-04   -1.4416    
  18  Prefactor     1.7759        8.7851        .31421E-03   -1.5441    
  19  norm          25.172        16.983        .79832E-04   -1.4704    
  20  Normalizat    1.1265        .27434        .30212E-03   -.88906    
  21  Prefactor     .85981        .16099        .20846E-03   -.97560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86092e-10
Minuit parameter uncertainties:
  1  65.7807
  2  1.90923e-05
  3  11.7461
  4  24.2282
  5  22.7325
  6  0.000231981
  7  5.83757e-06
  8  12.2591
  9  7.91485e-05
  10  5.80901
  11  0.000230813
  12  3.26172e-06
  13  2.98199e-05
  14  2.21264
  15  0.000231403
  16  2.18111e-05
  17  38.0872
  18  7.90138
  19  16.9866
  20  0.274689
  21  0.161076
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  6.915e+00  5.809e+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.598e-01  1.611e-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.126e+00  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.51
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.94e-08 +/- 5.82e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.85e-05

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

Saving results to:
/scratch/kocevski/297085/likelihoodResults_376185601_376444801_4FGL_J2225.7-0457_daily_bin528.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) = 5597.18485332
delta logL = 0.279139358739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5597.17404979
delta logL = 0.28994288687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3120       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9938       1.0000          .0000       10.000    
     3 'Normalizat'    1.0882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87536       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=   5597.174     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      268 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3126        5.9533        .10053E-03    .48447E-03
   2  Index         2.9941        .93592        .57343E-02    .10354E-03
   3  Normalizat    1.0881        .26812        .30667E-03    .38159E-03
   4  Prefactor     .87553        .16171        .20675E-03    .63329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31265
  Index      = 2.99415
  Normalizat = 1.0881
  Prefactor  = 0.875525
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.174     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3126        5.1802        .40211E-05   -1.5293    
   2  Index         2.9941        .81476        .22937E-03   -.41279    
   3  Normalizat    1.0881        .26766        .61335E-04   -.90135    
   4  Prefactor     .87553        .16140        .41350E-04   -.97002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59497e-10
Minuit parameter uncertainties:
  1  5.1807
  2  0.819115
  3  0.267996
  4  0.161484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/297085': 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) = 5597.17404799
delta logL = 0.289944683654

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  4.313e+00  5.181e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.994e+00  8.191e-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.755e-01  1.615e-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.088e+00  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 2.99 +/- 0.82
Photon Flux (Free Index): 9.90e-08 +/- 7.36e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.39e-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/297085/cmap_HighResolution_376185601_376444801_4FGL_J2225.7-0457_daily_bin528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='6.94e-08', energy_flux2='1.98e-05', photon_flux_error='5.82e-08', dlogl='2.90e-01', energy_flux='2.20e-05', photon_flux2='9.90e-08', job_status='DONE', time_completed='2021-09-28 11:20:17.849088', photon_index_error2='0.82', photon_index2='2.99', ts='2.51', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.83e-07', energy_flux_error2='1.39e-05', EG='1.13', time_epoch_completed='1632853217.85', return_code='0', job_id='297085', GAL2='0.88', EG2='1.09', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='7.36e-08', ts2='3.10', photon_index='2.43' WHERE bin_id='528' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:20:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 297085: <4FGL_J2225.7-0457_daily_bin528> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin528 336.432 -4.9537 376185601 376444801 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 :                                   561.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             361.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   578 sec.
    Turnaround time :                            580 sec.

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

