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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1485
RA = 336.432, Dec = -4.9537
tmin = 624240001, tmax = 624499201
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='301841', job_status='RUN', time_executed='2021-09-28 11:27:28.669111', time_epoch_executed='1632853648.67' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/301841

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/301841/ft1_4FGL_J2225.7-0457_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/301841/ft2_4FGL_J2225.7-0457_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/301841/ft1_4FGL_J2225.7-0457_daily_bin1485.fits outfile=/scratch/kocevski/301841/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1485.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=624240001.0 tmax=624499201.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.46
user 3.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/301841/ft2_4FGL_J2225.7-0457_daily_bin1485.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/301841/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1485.fits evtable="EVENTS" outfile="/scratch/kocevski/301841/ft1_filtered_4FGL_J2225.7-0457_daily_bin1485.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/301841/ft1_filtered_4FGL_J2225.7-0457_daily_bin1485.fits" evtable="EVENTS" scfile=/scratch/kocevski/301841/ft2_4FGL_J2225.7-0457_daily_bin1485.fits sctable="SC_DATA" outfile=/scratch/kocevski/301841/ltcube_624240001_624499201_4FGL_J2225.7-0457_daily_bin1485.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/301841/ft2_4FGL_J2225.7-0457_daily_bin1485.fits
.....................!
real 11.94
user 11.51
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/301841/ft1_filtered_4FGL_J2225.7-0457_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/301841/ft2_4FGL_J2225.7-0457_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/301841/ltcube_624240001_624499201_4FGL_J2225.7-0457_daily_bin1485.fits outfile=/scratch/kocevski/301841/expmap_624240001_624499201_4FGL_J2225.7-0457_daily_bin1485.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/301841/ltcube_624240001_624499201_4FGL_J2225.7-0457_daily_bin1485.fits
.....................!
real 192.50
user 186.99
sys 5.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/301841/ft1_filtered_4FGL_J2225.7-0457_daily_bin1485.fits scfile=/scratch/kocevski/301841/ft2_4FGL_J2225.7-0457_daily_bin1485.fits outfile=/scratch/kocevski/301841/cmap_624240001_624499201_4FGL_J2225.7-0457_daily_bin1485.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/301841/ft1_filtered_4FGL_J2225.7-0457_daily_bin1485.fits scfile=/scratch/kocevski/301841/ft2_4FGL_J2225.7-0457_daily_bin1485.fits outfile=/scratch/kocevski/301841/cmap_HighResolution_624240001_624499201_4FGL_J2225.7-0457_daily_bin1485.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.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.036       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8102       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    63.169       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.300       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.058       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.354       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11179E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6009       1.0000         .10000E-03   10000.    
    12 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3411       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12791E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0377       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.272       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.070       1.0000         .10000E-03   10000.    
    19 'norm      '    126.34       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .73595       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0767       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=   6096.721     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2205 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.038        37.485        .27579E-05   -.78768E-06
   2  Prefactor     3.8157        10.121       -.40796E-05   -.22049E-03
   3  Prefactor     .10000E-03    5.0078       -.15659E-06** at limit **
   4  Prefactor     .10000E-03    34.453        .12043E-04** at limit **
   5  Prefactor     63.167        25.392       -.20979E-05   -.22289E-04
   6  Prefactor     .10000E-03    8.2185        .38841E-08** at limit **
   7  Prefactor     41.303        23.267        .24880E-05    .57936E-04
   8  Prefactor     25.062        14.520        .20906E-06   -.37780E-05
   9  Prefactor     36.305        69.160       -.75252E-04   -.33606E-05
  10  Prefactor     .10000E-03    3.0340       -.10035E-07** at limit **
  11  Prefactor     3.5940        552.92       -.35076E-04   -.41127E-05
  12  norm          .10000E-03    2.7290        .44155E-06** at limit **
  13  Prefactor     .10000E-03    36.106       -.11100E-04** at limit **
  14  norm          1.3417        1.1746        .63674E-06   -.14113E-03
  15  Prefactor     .10001E-03    14.742        .11068E-05** at limit **
  16  norm          1.0386        .95552        .16871E-05    .20528E-03
  17  Prefactor     35.249        34.202       -.27669E-04   -.10669E-03
  18  Prefactor     22.071        13.380        .23961E-05   -.53776E-04
  19  norm          126.35        26.028        .20737E-05   -.15061E-04
  20  Normalizat    .73554        .26256        .91047E-05   -.13393E-03
  21  Prefactor     1.0769        .15004       -.53893E-06    .37996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0383
  Prefactor  = 3.81566
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 63.1667
  Prefactor  = 0.0001
  Prefactor  = 41.3028
  Prefactor  = 25.0622
  Prefactor  = 36.305
  Prefactor  = 0.0001
  Prefactor  = 3.59401
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.34173
  Prefactor  = 0.000100005
  norm       = 1.03865
  Prefactor  = 35.2494
  Prefactor  = 22.0713
  norm       = 126.345
  Normalizat = 0.735537
  Prefactor  = 1.07691
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.721     FROM HESSE     STATUS=OK           317 CALLS     2522 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.038        37.484        .78509E-04   -1.4687    
   2  Prefactor     3.8157        10.081        .20678E-03   -1.5317    
   3  Prefactor     .10000E-03    5.0191        .17063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     63.167        25.382        .50489E-04   -1.4117    
   6  Prefactor     .10000E-03    8.2288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.303        23.303        .62376E-04   -1.4422    
   8  Prefactor     25.062        14.513        .80023E-04   -1.4706    
   9  Prefactor     36.305        69.096        .66469E-04   -1.4502    
  10  Prefactor     .10000E-03    3.0643        .13247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5940        550.37        .21294E-03   -1.5329    
  12  norm          .10000E-03    2.7813        .12585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3417        1.1690        .37846E-04   -1.5476    
  15  Prefactor     .10001E-03    14.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0386        .97378        .65333E-03   -1.5504    
  17  Prefactor     35.249        34.196        .67477E-04   -1.4520    
  18  Prefactor     22.071        13.377        .85262E-04   -1.4768    
  19  norm          126.35        26.021        .17907E-03   -1.3455    
  20  Normalizat    .73554        .29525        .38812E-03   -1.0251    
  21  Prefactor     1.0769        .17060        .20151E-03   -.90208    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18686e-10
Minuit parameter uncertainties:
  1  37.5176
  2  10.0855
  3  9.76688e-06
  4  0.000271996
  5  25.386
  6  4.0619e-06
  7  23.308
  8  14.5147
  9  69.2491
  10  1.37928e-05
  11  89.8025
  12  6.11647e-05
  13  4.75564e-06
  14  1.16906
  15  0.000558306
  16  0.973795
  17  34.2148
  18  13.3791
  19  26.0232
  20  0.295897
  21  0.170689
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.379e-05  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.077e+00  1.707e-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:  7.355e-01  2.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 9.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/301841/likelihoodResults_624240001_624499201_4FGL_J2225.7-0457_daily_bin1485.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): 102
logL (Free Index) = 6096.7226402
delta logL = -0.00155366334729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6096.10189709
delta logL = 0.619189448069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10762       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0851       1.0000          .0000       10.000    
     3 'Normalizat'    .63725       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1135       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.

 FCN=   6096.102     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      284 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10718        1.6668        .52903E-02    .22494E-02
   2  Index         5.0870        3.1781        .12624        .12022E-03
   3  Normalizat    .63767        .52226E-01    .93546E-01    .16484E-04
   4  Prefactor     1.1134        .32430E-01    .37095E-01   -.14908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.107185
  Index      = 5.08701
  Normalizat = 0.637672
  Prefactor  = 1.11343
 **********
 **   18 **HESSE 
 **********

 FCN=   6096.102     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      317 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10718        4.8061        .24150E-03   -1.5643    
   2  Index         5.0870        7.5246        .64432E-02    .17403E-01
   3  Normalizat    .63767        .20840        .41450E-03   -1.0641    
   4  Prefactor     1.1134        .12730        .19847E-03   -.89039    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.83323e-08
Minuit parameter uncertainties:
  1  1.43491
  2  7.32501
  3  0.208662
  4  0.127338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/301841': 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): 102
logL (Free Index) = 6096.10189377
delta logL = 0.619192775344

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.072e-01  1.435e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  5.087e+00  7.325e+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.113e+00  1.273e-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:  6.377e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 5.09 +/- 7.33
Photon Flux (Free Index): 8.73e-08 +/- 8.12e-08
Energy Flux (Free Index): 1.15e-05 +/- 1.36e-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/301841/cmap_HighResolution_624240001_624499201_4FGL_J2225.7-0457_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-03', comment='SUCCESS', energy_flux2='1.15e-05', dlogl='6.19e-01', photon_flux2='8.73e-08', job_status='DONE', time_completed='2021-09-28 11:36:57.439655', photon_index_error2='7.33', photon_index2='5.09', ts='-0.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='9.80e-08', energy_flux_error2='1.36e-05', EG='0.74', time_epoch_completed='1632854217.44', return_code='0', job_id='301841', GAL2='1.11', EG2='0.64', return_code2='102', photon_flux_error2='8.12e-08', ts2='1.35', photon_index='2.43' WHERE bin_id='1485' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:36:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 301841: <4FGL_J2225.7-0457_daily_bin1485> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1485 336.432 -4.9537 624240001 624499201 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 :                                   565.17 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             290.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            701 sec.

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

