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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1015
RA = 336.432, Dec = -4.9537
tmin = 502416001, tmax = 502675201
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='300174', job_status='RUN', time_executed='2021-09-28 11:23:38.956814', time_epoch_executed='1632853418.96' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300174

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300174/ft1_4FGL_J2225.7-0457_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300174/ft2_4FGL_J2225.7-0457_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300174/ft1_4FGL_J2225.7-0457_daily_bin1015.fits outfile=/scratch/kocevski/300174/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1015.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=502416001.0 tmax=502675201.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.57
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300174/ft2_4FGL_J2225.7-0457_daily_bin1015.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/300174/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1015.fits evtable="EVENTS" outfile="/scratch/kocevski/300174/ft1_filtered_4FGL_J2225.7-0457_daily_bin1015.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/300174/ft1_filtered_4FGL_J2225.7-0457_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/300174/ft2_4FGL_J2225.7-0457_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/300174/ltcube_502416001_502675201_4FGL_J2225.7-0457_daily_bin1015.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/300174/ft2_4FGL_J2225.7-0457_daily_bin1015.fits
.....................!
real 11.95
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300174/ft1_filtered_4FGL_J2225.7-0457_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/300174/ft2_4FGL_J2225.7-0457_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/300174/ltcube_502416001_502675201_4FGL_J2225.7-0457_daily_bin1015.fits outfile=/scratch/kocevski/300174/expmap_502416001_502675201_4FGL_J2225.7-0457_daily_bin1015.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/300174/ltcube_502416001_502675201_4FGL_J2225.7-0457_daily_bin1015.fits
.....................!
real 191.29
user 185.49
sys 5.49

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/300174/ft1_filtered_4FGL_J2225.7-0457_daily_bin1015.fits scfile=/scratch/kocevski/300174/ft2_4FGL_J2225.7-0457_daily_bin1015.fits outfile=/scratch/kocevski/300174/cmap_502416001_502675201_4FGL_J2225.7-0457_daily_bin1015.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.39
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300174/ft1_filtered_4FGL_J2225.7-0457_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/300174/ft2_4FGL_J2225.7-0457_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300174/Model_4FGL_J2225.7-0457_daily_bin1015.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/300174/ft1_filtered_4FGL_J2225.7-0457_daily_bin1015.fits.....................!
real 77.73
user 76.33
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.2134       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28184E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0285       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.191       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2899       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.721       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65008E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .26563E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.628       1.0000         .10000E-03   10000.    
    14 'norm      '    .28009       1.0000         .10000E-03   10000.    
    15 'Prefactor '    87.855       1.0000         .10000E-03   10000.    
    16 'norm      '    6.8665       1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.101       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    40.373       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92316       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85298       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=   8510.890     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2377 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7295        .21889E-06** at limit **
   2  Prefactor     6.2134        4.7820       -.39973E-07   -.32758E-03
   3  Prefactor     .10000E-03    3.9351        .79506E-07** at limit **
   4  Prefactor     .10000E-03    6.8427       -.13195E-07** at limit **
   5  Prefactor     9.0277        14.181        .41358E-06   -.50961E-04
   6  Prefactor     12.174        13.552       -.10835E-05   -.76344E-03
   7  Prefactor     8.2903        7.4678       -.66554E-07   -.65272E-04
   8  Prefactor     10.046        10.400        .48020E-07   -.91751E-04
   9  Prefactor     18.719        34.748        .41310E-05    .11516E-04
  10  Prefactor     .95394E-02    2.1406        .40368E-07   -.34438E-04
  11  Prefactor     .10000E-03    10.967       -.39823E-07** at limit **
  12  norm          .10000E-03    1.3663       -.20408E-06** at limit **
  13  Prefactor     15.902        83.568        .12498E-05    .90755E-05
  14  norm          .28013        .38224       -.77812E-07   -.91130E-03
  15  Prefactor     87.852        47.355        .56807E-05   -.16814E-03
  16  norm          6.8634        4.0277       -.17075E-05    .43503E-03
  17  Prefactor     44.109        37.398        .20953E-05   -.20803E-04
  18  Prefactor     .10000E-03    1.8132        .13943E-09** at limit **
  19  norm          40.370        13.548        .29254E-06   -.41056E-05
  20  Normalizat    .92300        .18754       -.16796E-05    .10186E-03
  21  Prefactor     .85324        .10839        .56623E-06   -.60452E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.21341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.0277
  Prefactor  = 12.174
  Prefactor  = 8.29032
  Prefactor  = 10.046
  Prefactor  = 18.7189
  Prefactor  = 0.00953936
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.9018
  norm       = 0.280134
  Prefactor  = 87.8519
  norm       = 6.86338
  Prefactor  = 44.1093
  Prefactor  = 0.0001
  norm       = 40.37
  Normalizat = 0.923003
  Prefactor  = 0.853237
 **********
 **   18 **HESSE 
 **********

 FCN=   8510.890     FROM HESSE     STATUS=OK           339 CALLS     2716 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2134        4.8101        .16105E-03   -1.5209    
   3  Prefactor     .10000E-03    26.137        .35411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0277        14.170        .13339E-03   -1.5107    
   6  Prefactor     12.174        14.443        .57365E-03   -1.5010    
   7  Prefactor     8.2903        7.4895        .13924E-03   -1.5132    
   8  Prefactor     10.046        11.274        .12692E-03   -1.5074    
   9  Prefactor     18.719        34.604        .92567E-04   -1.4842    
  10  Prefactor     .95394E-02    8.6476        .35889E-01   -1.5689    
  11  Prefactor     .10000E-03    10.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.4006        .19700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.902        82.599        .10132E-03   -1.4910    
  14  norm          .28013        .34418        .64759E-03   -1.5602    
  15  Prefactor     87.852        47.084        .42865E-04   -1.3831    
  16  norm          6.8634        4.0243        .58438E-04   -1.5184    
  17  Prefactor     44.109        37.247        .60370E-04   -1.4379    
  18  Prefactor     .10000E-03    1.8136        .12132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          40.370        13.551        .63085E-04   -1.4436    
  20  Normalizat    .92300        .22139        .30646E-03   -.95656    
  21  Prefactor     .85324        .12906        .20024E-03   -.97795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67097e-09
Minuit parameter uncertainties:
  1  1.4814e-06
  2  4.81037
  3  0.000156856
  4  3.60954e-06
  5  14.1753
  6  14.4474
  7  7.49033
  8  11.2761
  9  34.6411
  10  0.571495
  11  1.21907e-06
  12  7.55665e-05
  13  72.6417
  14  0.344179
  15  47.1041
  16  4.02442
  17  37.2666
  18  1.0408e-06
  19  13.5519
  20  0.22161
  21  0.129103
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  9.539e-03  5.715e-01  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.532e-01  1.291e-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:  9.230e-01  2.216e-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.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300174/likelihoodResults_502416001_502675201_4FGL_J2225.7-0457_daily_bin1015.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) = 8508.86030741
delta logL = 2.0294023478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8508.63650681
delta logL = 2.25320294765

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24924       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7546       1.0000          .0000       10.000    
     3 'Normalizat'    .77992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90534       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=   8508.636     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      263 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25073        1.6326        .52971E-02    .12854E-02
   2  Index         4.7525        2.3048        .11681        .17194E-03
   3  Normalizat    .77951        .48079E-01    .74669E-01   -.87345E-05
   4  Prefactor     .90538        .30340E-01    .45073E-01   -.53756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.250732
  Index      = 4.75248
  Normalizat = 0.779513
  Prefactor  = 0.905382
 **********
 **   18 **HESSE 
 **********

 FCN=   8508.636     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25073        3.4693        .23953E-04   -1.5608    
   2  Index         4.7525        3.6679        .44948E-02   -.49525E-01
   3  Normalizat    .77951        .19192        .33050E-03   -1.0083    
   4  Prefactor     .90538        .11926        .19477E-03   -.95953    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.54633e-07
Minuit parameter uncertainties:
  1  1.86508
  2  4.1194
  3  0.192086
  4  0.119296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300174': 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) = 8508.63649458
delta logL = 2.25321518224

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.507e-01  1.865e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  4.752e+00  4.119e+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:  9.054e-01  1.193e-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.795e-01  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 4.75 +/- 4.12
Photon Flux (Free Index): 1.12e-07 +/- 6.14e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.11e-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/300174/cmap_HighResolution_502416001_502675201_4FGL_J2225.7-0457_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', comment='SUCCESS', energy_flux2='1.52e-05', dlogl='2.25e+00', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-28 11:35:28.022553', photon_index_error2='4.12', photon_index2='4.75', ts='0.00', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='9.18e-08', energy_flux_error2='1.11e-05', EG='0.92', time_epoch_completed='1632854128.02', return_code='0', job_id='300174', GAL2='0.91', EG2='0.78', return_code2='102', photon_flux_error2='6.14e-08', ts2='4.91', photon_index='2.43' WHERE bin_id='1015' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:35:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 300174: <4FGL_J2225.7-0457_daily_bin1015> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1015 336.432 -4.9537 502416001 502675201 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 :                                   705.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

