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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin674
RA = 336.432, Dec = -4.9537
tmin = 414028801, tmax = 414288001
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='298526', job_status='RUN', time_executed='2021-09-28 11:19:08.053268', time_epoch_executed='1632853148.05' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298526

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298526/ft1_4FGL_J2225.7-0457_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298526/ft2_4FGL_J2225.7-0457_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298526/ft1_4FGL_J2225.7-0457_daily_bin674.fits outfile=/scratch/kocevski/298526/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin674.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.23
user 4.92
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/298526/ft1_filtered_4FGL_J2225.7-0457_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/298526/ft2_4FGL_J2225.7-0457_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/298526/ltcube_414028801_414288001_4FGL_J2225.7-0457_daily_bin674.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/298526/ft2_4FGL_J2225.7-0457_daily_bin674.fits
.....................!
real 12.37
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298526/ft1_filtered_4FGL_J2225.7-0457_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/298526/ft2_4FGL_J2225.7-0457_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/298526/ltcube_414028801_414288001_4FGL_J2225.7-0457_daily_bin674.fits outfile=/scratch/kocevski/298526/expmap_414028801_414288001_4FGL_J2225.7-0457_daily_bin674.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/298526/ltcube_414028801_414288001_4FGL_J2225.7-0457_daily_bin674.fits
.....................!
real 190.96
user 186.24
sys 4.35

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/298526/ft1_filtered_4FGL_J2225.7-0457_daily_bin674.fits scfile=/scratch/kocevski/298526/ft2_4FGL_J2225.7-0457_daily_bin674.fits outfile=/scratch/kocevski/298526/cmap_414028801_414288001_4FGL_J2225.7-0457_daily_bin674.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=336.432 yref=-4.9537 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298526/ft1_filtered_4FGL_J2225.7-0457_daily_bin674.fits scfile=/scratch/kocevski/298526/ft2_4FGL_J2225.7-0457_daily_bin674.fits outfile=/scratch/kocevski/298526/cmap_HighResolution_414028801_414288001_4FGL_J2225.7-0457_daily_bin674.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/298526/ft1_filtered_4FGL_J2225.7-0457_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/298526/ft2_4FGL_J2225.7-0457_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/298526/Model_4FGL_J2225.7-0457_daily_bin674.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/298526/ft1_filtered_4FGL_J2225.7-0457_daily_bin674.fits.....................!
real 44.94
user 43.56
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.639       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.639       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9639       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.318       1.0000         .10000E-03   10000.    
    13 'Prefactor '    76.673       1.0000         .10000E-03   10000.    
    14 'norm      '    .81581E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20923E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .14831E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.071       1.0000         .10000E-03   10000.    
    19 'norm      '    21.462       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .81873       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2711       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=   3784.154     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2216 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.822       -.95812E-06** at limit **
   2  Prefactor     21.642        14.144        .10748E-05    .71630E-04
   3  Prefactor     .10000E-03    9.9091       -.12087E-06** at limit **
   4  Prefactor     .10000E-03    19.096        .84484E-05** at limit **
   5  Prefactor     .10000E-03    16.061       -.63348E-05** at limit **
   6  Prefactor     .10000E-03    13.005        .15732E-05** at limit **
   7  Prefactor     .10000E-03    25.239       -.10717E-04** at limit **
   8  Prefactor     .10000E-03    17.162        .20468E-05** at limit **
   9  Prefactor     32.740        188.95        .16971E-03    .35753E-04
  10  Prefactor     2.9655        7.5640        .55986E-06   -.30192E-03
  11  Prefactor     .10000E-03    91.077        .49646E-05** at limit **
  12  norm          12.317        7.8726       -.29874E-05    .90135E-04
  13  Prefactor     76.671        86.978       -.24959E-05    .33597E-05
  14  norm          .72938E-01    1.0575       -.86821E-06    .42748E-03
  15  Prefactor     .10050E-03    24.238       -.26868E-05** at limit **
  16  norm          .25608E-01    1.2924       -.91619E-08    .42273E-03
  17  Prefactor     .10000E-03    34.116        .59365E-05** at limit **
  18  Prefactor     20.054        18.613        .31693E-05    .56161E-04
  19  norm          21.484        32.137        .17002E-04   -.17830E-04
  20  Normalizat    .81833        .35809       -.13684E-04    .21914E-03
  21  Prefactor     1.2712        .20639        .30886E-06    .23907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.6422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 32.7397
  Prefactor  = 2.96549
  Prefactor  = 0.0001
  norm       = 12.3166
  Prefactor  = 76.6708
  norm       = 0.0729383
  Prefactor  = 0.000100496
  norm       = 0.0256082
  Prefactor  = 0.0001
  Prefactor  = 20.0539
  norm       = 21.4838
  Normalizat = 0.818329
  Prefactor  = 1.27117
 **********
 **   18 **HESSE 
 **********

 FCN=   3784.154     FROM HESSE     STATUS=OK           317 CALLS     2533 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.642        14.178        .86106E-04   -1.4777    
   3  Prefactor     .10000E-03    9.9388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.740        189.72        .70138E-04   -1.4563    
  10  Prefactor     2.9655        7.5312        .23586E-03   -1.5364    
  11  Prefactor     .10000E-03    91.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.317        7.8646        .11413E-03   -1.5006    
  13  Prefactor     76.671        86.955        .45858E-04   -1.3954    
  14  norm          .72938E-01    10.849        .11676E-02   -1.5654    
  15  Prefactor     .10050E-03    122.03        .52050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .25608E-01    20.374        .12067E-02   -1.5676    
  17  Prefactor     .10000E-03    34.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.054        18.641        .89401E-04   -1.4812    
  19  norm          21.484        32.181        .86460E-04   -1.4781    
  20  Normalizat    .81833        .40562        .39514E-03   -.99392    
  21  Prefactor     1.2712        .23703        .19835E-03   -.84169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8515e-09
Minuit parameter uncertainties:
  1  6.14875e-05
  2  14.1797
  3  5.33638e-05
  4  4.03881e-05
  5  7.01649e-05
  6  4.94555e-05
  7  0.000281797
  8  0.000121867
  9  158.39
  10  7.53363
  11  5.43438e-07
  12  7.86525
  13  87.0999
  14  1.77823
  15  0.0155858
  16  1.44231
  17  3.7559e-05
  18  18.6466
  19  32.2072
  20  0.407138
  21  0.237227
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.965e+00  7.534e+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.271e+00  2.372e-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:  8.183e-01  4.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/298526/likelihoodResults_414028801_414288001_4FGL_J2225.7-0457_daily_bin674.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) = 3784.15419791
delta logL = 2.19713479055e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3784.15419237
delta logL = 2.75072475233e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9784       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4156       1.0000          .0000       10.000    
     3 'Normalizat'    .81832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2712       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=   3784.154     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      260 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9778        7.7852        .23525E-03    .30397E-04
   2  Index         2.4152        1.3804        .14268E-01    .14113E-04
   3  Normalizat    .81857        .38283        .39510E-03    .88093E-04
   4  Prefactor     1.2711        .23565        .19836E-03    .16738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97779
  Index      = 2.41521
  Normalizat = 0.818572
  Prefactor  = 1.27108
 **********
 **   18 **HESSE 
 **********

 FCN=   3784.154     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9778        7.6254        .94101E-05   -1.5363    
   2  Index         2.4152        1.3533        .57074E-03   -.54329    
   3  Normalizat    .81857        .38301        .15804E-04   -.99383    
   4  Prefactor     1.2711        .23572        .39672E-04   -.84171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21273e-11
Minuit parameter uncertainties:
  1  7.62787
  2  1.37692
  3  0.384285
  4  0.235921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298526': 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) = 3784.15419209
delta logL = 2.77875201391e-05

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.978e+00  7.628e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.415e+00  1.377e+00  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.271e+00  2.359e-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:  8.186e-01  3.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/298526/cmap_HighResolution_414028801_414288001_4FGL_J2225.7-0457_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-02', job_status='DONE', photon_flux_upper_limit='2.22e-07', time_completed='2021-09-28 11:27:08.272244', job_id='298526', GAL2='1.27', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632853628.27', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='2.78e-05', ts2='0.19', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='674' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:27:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 298526: <4FGL_J2225.7-0457_daily_bin674> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin674 336.432 -4.9537 414028801 414288001 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 :                                   473.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             260.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            702 sec.

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

