/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 3 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 = 7567
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.7-0457_daily_bin179
RA = 336.432, Dec = -4.9537
tmin = 285724801, tmax = 285984001
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='295475', job_status='RUN', time_executed='2021-09-28 11:05:39.380224', time_epoch_executed='1632852339.38' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/295475

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/295475/ft1_4FGL_J2225.7-0457_daily_bin179.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/295475/ft2_4FGL_J2225.7-0457_daily_bin179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/295475/ft1_4FGL_J2225.7-0457_daily_bin179.fits outfile=/scratch/kocevski/295475/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin179.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=285724801.0 tmax=285984001.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.16
user 3.95
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/295475/ft1_filtered_4FGL_J2225.7-0457_daily_bin179.fits" evtable="EVENTS" scfile=/scratch/kocevski/295475/ft2_4FGL_J2225.7-0457_daily_bin179.fits sctable="SC_DATA" outfile=/scratch/kocevski/295475/ltcube_285724801_285984001_4FGL_J2225.7-0457_daily_bin179.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/295475/ft2_4FGL_J2225.7-0457_daily_bin179.fits
.....................!
real 12.75
user 12.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/295475/ft1_filtered_4FGL_J2225.7-0457_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/295475/ft2_4FGL_J2225.7-0457_daily_bin179.fits sctable="SC_DATA" expcube=/scratch/kocevski/295475/ltcube_285724801_285984001_4FGL_J2225.7-0457_daily_bin179.fits outfile=/scratch/kocevski/295475/expmap_285724801_285984001_4FGL_J2225.7-0457_daily_bin179.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/295475/ltcube_285724801_285984001_4FGL_J2225.7-0457_daily_bin179.fits
.....................!
real 190.54
user 185.44
sys 4.76

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/295475/ft1_filtered_4FGL_J2225.7-0457_daily_bin179.fits scfile=/scratch/kocevski/295475/ft2_4FGL_J2225.7-0457_daily_bin179.fits outfile=/scratch/kocevski/295475/cmap_285724801_285984001_4FGL_J2225.7-0457_daily_bin179.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/295475/ft1_filtered_4FGL_J2225.7-0457_daily_bin179.fits scfile=/scratch/kocevski/295475/ft2_4FGL_J2225.7-0457_daily_bin179.fits outfile=/scratch/kocevski/295475/cmap_HighResolution_285724801_285984001_4FGL_J2225.7-0457_daily_bin179.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.413       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6521       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.058       1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.332       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7530       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7418       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.575       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15742E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6805       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .76956E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .65865       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5003       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2043       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .65572       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=   6146.555     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2303 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.414        34.324       -.46862E-07   -.40021E-06
   2  Prefactor     5.6523        5.0683        .27491E-07    .71506E-06
   3  Prefactor     12.059        9.2013       -.18278E-06    .27423E-04
   4  Prefactor     32.333        22.625        .84275E-08    .76734E-05
   5  Prefactor     1.7504        30.394        .12933E-05   -.88007E-04
   6  Prefactor     4.7493        18.169       -.22853E-06    .93922E-04
   7  Prefactor     .10000E-03    10.920       -.30603E-07** at limit **
   8  Prefactor     .10000E-03    20.964       -.58880E-06** at limit **
   9  Prefactor     .10000E-03    25.126        .59296E-07** at limit **
  10  Prefactor     11.579        5.3946        .99503E-07   -.33361E-03
  11  Prefactor     .10000E-03    162.53        .53907E-05** at limit **
  12  norm          3.6805        3.3387       -.81125E-07   -.63247E-03
  13  Prefactor     .10000E-03    66.638        .72391E-05** at limit **
  14  norm          .70460E-02    1.5386       -.39873E-05    .10846E-02
  15  Prefactor     .10005E-03    69.143        .33294E-04** at limit **
  16  norm          .65735        .70008       -.60324E-06    .43839E-03
  17  Prefactor     .10000E-03    9.7239        .41740E-06** at limit **
  18  Prefactor     .10000E-03    5.3336        .11361E-06** at limit **
  19  norm          1.4996        6.0718        .17879E-05   -.25331E-03
  20  Normalizat    1.2043        .19112       -.47214E-07   -.20024E-03
  21  Prefactor     .65570        .11401       -.24237E-06   -.25864E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4144
  Prefactor  = 5.6523
  Prefactor  = 12.0587
  Prefactor  = 32.3329
  Prefactor  = 1.75043
  Prefactor  = 4.74927
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 11.5794
  Prefactor  = 0.000100001
  norm       = 3.68053
  Prefactor  = 0.0001
  norm       = 0.00704598
  Prefactor  = 0.000100049
  norm       = 0.657348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49963
  Normalizat = 1.20429
  Prefactor  = 0.6557
 **********
 **   18 **HESSE 
 **********

 FCN=   6146.555     FROM HESSE     STATUS=OK           333 CALLS     2636 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.414        34.333        .76515E-04   -1.4660    
   2  Prefactor     5.6523        5.0735        .16149E-03   -1.5232    
   3  Prefactor     12.059        9.1909        .11536E-03   -1.5013    
   4  Prefactor     32.333        22.639        .70469E-04   -1.4570    
   5  Prefactor     1.7504        41.121        .15831E-02   -1.5443    
   6  Prefactor     4.7493        18.096        .18478E-03   -1.5272    
   7  Prefactor     .10000E-03    11.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.579        5.3846        .11575E-03   -1.5027    
  11  Prefactor     .10000E-03    163.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6805        3.3410        .12880E-03   -1.5324    
  13  Prefactor     .10000E-03    66.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .70460E-02    .79538        .16939E-01   -1.5691    
  15  Prefactor     .10005E-03    75.942        .38480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .65735        .70673        .67735E-03   -1.5546    
  17  Prefactor     .10000E-03    9.7659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3775        .17683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4996        16.644        .17480E-02   -1.5463    
  20  Normalizat    1.2043        .22697        .25206E-03   -.86470    
  21  Prefactor     .65570        .13532        .20203E-03   -1.0529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84416e-09
Minuit parameter uncertainties:
  1  34.3579
  2  5.0739
  3  9.19196
  4  22.6445
  5  16.9808
  6  18.1164
  7  1.42413e-05
  8  0.000517692
  9  5.27415e-06
  10  5.38482
  11  0.000673752
  12  3.3412
  13  0.000194659
  14  0.148659
  15  0.00385945
  16  0.706737
  17  5.5173e-06
  18  9.73051e-07
  19  9.99528
  20  0.227158
  21  0.135392
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.158e+01  5.385e+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:  6.557e-01  1.354e-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.204e+00  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.65
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 5.40e-08
Energy Flux (Fixed Index): 3.68e-05 +/- 1.71e-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) = 6144.73297564
delta logL = 1.82160833046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6144.71998874
delta logL = 1.83459522935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1716       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4353       1.0000          .0000       10.000    
     3 'Normalizat'    1.1062       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69919       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=   6144.720     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      277 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1713        5.2115        .56006E-04   -.37939E-03
   2  Index         3.4353        .78726        .34286E-02   -.90191E-04
   3  Normalizat    1.1062        .22708        .26077E-03   -.28640E-03
   4  Prefactor     .69919        .13670        .19608E-03   -.30448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1713
  Index      = 3.43534
  Normalizat = 1.10621
  Prefactor  = 0.699193
 **********
 **   18 **HESSE 
 **********

 FCN=   6144.720     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1713        4.0886        .22402E-05   -1.5299    
   2  Index         3.4353        .61832        .13714E-03   -.31828    
   3  Normalizat    1.1062        .22648        .52153E-04   -.89553    
   4  Prefactor     .69919        .13613        .39216E-04   -1.0356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49089e-10
Minuit parameter uncertainties:
  1  4.0889
  2  0.620077
  3  0.226675
  4  0.136193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/295475': 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) = 6144.71998873
delta logL = 1.83459523357

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  4.171e+00  4.089e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.435e+00  6.201e-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:  6.992e-01  1.362e-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.106e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.68
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 3.44 +/- 0.62
Photon Flux (Free Index): 1.94e-07 +/- 7.54e-08
Energy Flux (Free Index): 3.28e-05 +/- 1.25e-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/295475/cmap_HighResolution_285724801_285984001_4FGL_J2225.7-0457_daily_bin179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='3.28e-05', photon_flux_error='5.40e-08', dlogl='1.83e+00', energy_flux='3.68e-05', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-28 11:14:36.111543', photon_index_error2='0.62', photon_index2='3.44', ts='7.65', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='1.20', time_epoch_completed='1632852876.11', return_code='0', job_id='295475', GAL2='0.70', EG2='1.11', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='7.54e-08', ts2='11.68', photon_index='2.43' WHERE bin_id='179' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:14:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 295475: <4FGL_J2225.7-0457_daily_bin179> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin179> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:05:25 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:05: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:05:29 2021
Terminated at Tue Sep 28 11:14:36 2021
Results reported at Tue Sep 28 11:14:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin179 336.432 -4.9537 285724801 285984001 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 :                                   535.28 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   547 sec.
    Turnaround time :                            551 sec.

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

