/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 212 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.7-0457_daily_bin50
RA = 336.432, Dec = -4.9537
tmin = 252288001, tmax = 252547201
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='294043', job_status='RUN', time_executed='2021-09-28 11:04:50.017696', time_epoch_executed='1632852290.02' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/294043

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/294043/ft1_4FGL_J2225.7-0457_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/294043/ft2_4FGL_J2225.7-0457_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/294043/ft1_4FGL_J2225.7-0457_daily_bin50.fits outfile=/scratch/kocevski/294043/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin50.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.53
user 2.34
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/294043/ft1_filtered_4FGL_J2225.7-0457_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/294043/ft2_4FGL_J2225.7-0457_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/294043/ltcube_252288001_252547201_4FGL_J2225.7-0457_daily_bin50.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/294043/ft2_4FGL_J2225.7-0457_daily_bin50.fits
.....................!
real 12.38
user 12.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/294043/ft1_filtered_4FGL_J2225.7-0457_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/294043/ft2_4FGL_J2225.7-0457_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/294043/ltcube_252288001_252547201_4FGL_J2225.7-0457_daily_bin50.fits outfile=/scratch/kocevski/294043/expmap_252288001_252547201_4FGL_J2225.7-0457_daily_bin50.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/294043/ltcube_252288001_252547201_4FGL_J2225.7-0457_daily_bin50.fits
.....................!
real 191.12
user 186.60
sys 4.19

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/294043/ft1_filtered_4FGL_J2225.7-0457_daily_bin50.fits scfile=/scratch/kocevski/294043/ft2_4FGL_J2225.7-0457_daily_bin50.fits outfile=/scratch/kocevski/294043/cmap_252288001_252547201_4FGL_J2225.7-0457_daily_bin50.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/294043/ft1_filtered_4FGL_J2225.7-0457_daily_bin50.fits scfile=/scratch/kocevski/294043/ft2_4FGL_J2225.7-0457_daily_bin50.fits outfile=/scratch/kocevski/294043/cmap_HighResolution_252288001_252547201_4FGL_J2225.7-0457_daily_bin50.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.57
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/294043/ft1_filtered_4FGL_J2225.7-0457_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/294043/ft2_4FGL_J2225.7-0457_daily_bin50.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/294043/Model_4FGL_J2225.7-0457_daily_bin50.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/294043/ft1_filtered_4FGL_J2225.7-0457_daily_bin50.fits.....................!
real 67.94
user 66.59
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6942       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0141       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.559       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4218       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.881       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4367       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.503       1.0000         .10000E-03   10000.    
    13 'Prefactor '    82.966       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1597       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11949       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.710       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8271       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6370       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3435       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84966       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=   7046.902     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2180 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6908        83.846       -.29671E-05   -.40211E-04
   2  Prefactor     7.0154        7.9246        .20002E-05   -.12128E-02
   3  Prefactor     15.558        12.722       -.11937E-06   -.77652E-04
   4  Prefactor     .10000E-03    5.7802        .20102E-07** at limit **
   5  Prefactor     1.4158        42.184        .47582E-05   -.46314E-05
   6  Prefactor     .10000E-03    9.8637        .14333E-05** at limit **
   7  Prefactor     .10000E-03    21.308       -.17140E-06** at limit **
   8  Prefactor     .10000E-03    16.060       -.55591E-07** at limit **
   9  Prefactor     32.867        53.930       -.68337E-05   -.23325E-03
  10  Prefactor     7.4345        4.5581       -.88624E-07   -.14103E-03
  11  Prefactor     .10000E-03    102.33       -.12932E-06** at limit **
  12  norm          23.503        5.8856        .40068E-06    .66140E-03
  13  Prefactor     82.970        75.018        .14324E-05    .76922E-04
  14  norm          1.1594        .86399        .34410E-07   -.21646E-03
  15  Prefactor     .10000E-03    9.8144       -.15604E-05** at limit **
  16  norm          .11679        1.0260        .41532E-06   -.79605E-03
  17  Prefactor     31.706        27.357       -.11777E-05   -.19555E-03
  18  Prefactor     5.8268        6.4662        .55842E-06    .23907E-03
  19  norm          1.6384        9.7731        .50816E-06   -.18414E-03
  20  Normalizat    1.3432        .22267       -.90284E-06   -.71774E-04
  21  Prefactor     .84973        .13329       -.78616E-07   -.13406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.69081
  Prefactor  = 7.01544
  Prefactor  = 15.5581
  Prefactor  = 0.0001
  Prefactor  = 1.41582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.867
  Prefactor  = 7.43454
  Prefactor  = 0.0001
  norm       = 23.503
  Prefactor  = 82.9695
  norm       = 1.15936
  Prefactor  = 0.0001
  norm       = 0.116787
  Prefactor  = 31.7056
  Prefactor  = 5.82681
  norm       = 1.63842
  Normalizat = 1.34325
  Prefactor  = 0.849731
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6908        84.951        .21012E-03   -1.5324    
   2  Prefactor     7.0154        9.6635        .75737E-03   -1.5178    
   3  Prefactor     15.558        12.701        .10154E-03   -1.4919    
   4  Prefactor     .10000E-03    5.7831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4158        42.127        .36274E-03   -1.5470    
   6  Prefactor     .10000E-03    9.8984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.867        56.576        .69881E-04   -1.4561    
  10  Prefactor     7.4345        4.5665        .13372E-03   -1.5163    
  11  Prefactor     .10000E-03    103.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.503        5.9289        .82625E-04   -1.4738    
  13  Prefactor     82.970        75.116        .44099E-04   -1.3884    
  14  norm          1.1594        .84601        .64789E-04   -1.5493    
  15  Prefactor     .10000E-03    9.8777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .11679        2.4768        .12916E-02   -1.5640    
  17  Prefactor     31.706        28.521        .71155E-04   -1.4581    
  18  Prefactor     5.8268        6.4840        .16637E-03   -1.5225    
  19  norm          1.6384        10.102        .33034E-03   -1.5452    
  20  Normalizat    1.3432        .26878        .29374E-03   -.82284    
  21  Prefactor     .84973        .15927        .22215E-03   -.97920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09093e-09
Minuit parameter uncertainties:
  1  35.4704
  2  9.66569
  3  12.7033
  4  6.5911e-07
  5  15.4574
  6  0.000119981
  7  1.23354e-05
  8  2.51326e-05
  9  56.6683
  10  4.56667
  11  2.09302e-05
  12  5.92907
  13  75.2025
  14  0.846023
  15  0.000138399
  16  1.07525
  17  28.5332
  18  6.48482
  19  8.13865
  20  0.26906
  21  0.159355
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  7.435e+00  4.567e+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.497e-01  1.594e-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.343e+00  2.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.75
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.46e-08 +/- 4.58e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.45e-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) = 7046.84940087
delta logL = 0.052917497077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7046.84423773
delta logL = 0.0580806322741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7765       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2144       1.0000          .0000       10.000    
     3 'Normalizat'    1.3603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84368       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=   7046.844     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      244 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7766        4.9640        .14379E-03   -.45682E-03
   2  Index         2.2145        .61339        .94884E-02   -.72471E-04
   3  Normalizat    1.3603        .25732        .29228E-03    .34074E-04
   4  Prefactor     .84371        .15730        .22288E-03    .55598E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77661
  Index      = 2.21449
  Normalizat = 1.36034
  Prefactor  = 0.843714
 **********
 **   18 **HESSE 
 **********

 FCN=   7046.844     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7766        4.9566        .57518E-05   -1.5150    
   2  Index         2.2145        .61191        .37954E-03   -.59089    
   3  Normalizat    1.3603        .25745        .11691E-04   -.81783    
   4  Prefactor     .84371        .15742        .89153E-05   -.98137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96705e-10
Minuit parameter uncertainties:
  1  4.95691
  2  0.614145
  3  0.257698
  4  0.157502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/294043': 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) = 7046.84423761
delta logL = 0.0580807585757

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  7.777e+00  4.957e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.214e+00  6.141e-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.437e-01  1.575e-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.360e+00  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.88
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 2.21 +/- 0.61
Photon Flux (Free Index): 5.94e-08 +/- 5.81e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.92e-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/294043/cmap_HighResolution_252288001_252547201_4FGL_J2225.7-0457_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.46e-08', energy_flux2='2.60e-05', photon_flux_error='4.58e-08', dlogl='5.81e-02', energy_flux='2.36e-05', photon_flux2='5.94e-08', job_status='DONE', time_completed='2021-09-28 11:14:03.317215', photon_index_error2='0.61', photon_index2='2.21', ts='6.75', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='1.34', time_epoch_completed='1632852843.32', return_code='0', job_id='294043', GAL2='0.84', EG2='1.36', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='5.81e-08', ts2='6.88', photon_index='2.43' WHERE bin_id='50' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:14:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 294043: <4FGL_J2225.7-0457_daily_bin50> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin50> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:01:08 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:01:09 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:01:09 2021
Terminated at Tue Sep 28 11:14:04 2021
Results reported at Tue Sep 28 11:14:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin50 336.432 -4.9537 252288001 252547201 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 :                                   554.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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

