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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1107
RA = 336.432, Dec = -4.9537
tmin = 526262401, tmax = 526521601
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='300316', job_status='RUN', time_executed='2021-09-28 11:24:14.073015', time_epoch_executed='1632853454.07' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300316

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300316/ft1_4FGL_J2225.7-0457_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300316/ft2_4FGL_J2225.7-0457_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300316/ft1_4FGL_J2225.7-0457_daily_bin1107.fits outfile=/scratch/kocevski/300316/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1107.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=526262401.0 tmax=526521601.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.03
user 3.81
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300316/ft1_filtered_4FGL_J2225.7-0457_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/300316/ft2_4FGL_J2225.7-0457_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/300316/ltcube_526262401_526521601_4FGL_J2225.7-0457_daily_bin1107.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/300316/ft2_4FGL_J2225.7-0457_daily_bin1107.fits
.....................!
real 12.02
user 11.65
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300316/ft1_filtered_4FGL_J2225.7-0457_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/300316/ft2_4FGL_J2225.7-0457_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/300316/ltcube_526262401_526521601_4FGL_J2225.7-0457_daily_bin1107.fits outfile=/scratch/kocevski/300316/expmap_526262401_526521601_4FGL_J2225.7-0457_daily_bin1107.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/300316/ltcube_526262401_526521601_4FGL_J2225.7-0457_daily_bin1107.fits
.....................!
real 191.51
user 185.91
sys 5.28

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/300316/ft1_filtered_4FGL_J2225.7-0457_daily_bin1107.fits scfile=/scratch/kocevski/300316/ft2_4FGL_J2225.7-0457_daily_bin1107.fits outfile=/scratch/kocevski/300316/cmap_526262401_526521601_4FGL_J2225.7-0457_daily_bin1107.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.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300316/ft1_filtered_4FGL_J2225.7-0457_daily_bin1107.fits scfile=/scratch/kocevski/300316/ft2_4FGL_J2225.7-0457_daily_bin1107.fits outfile=/scratch/kocevski/300316/cmap_HighResolution_526262401_526521601_4FGL_J2225.7-0457_daily_bin1107.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/300316/ft1_filtered_4FGL_J2225.7-0457_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/300316/ft2_4FGL_J2225.7-0457_daily_bin1107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300316/Model_4FGL_J2225.7-0457_daily_bin1107.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/300316/ft1_filtered_4FGL_J2225.7-0457_daily_bin1107.fits....................!
real 67.49
user 66.21
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1846       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.934       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.171       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.410       1.0000         .10000E-03   10000.    
     9 'Prefactor '    120.86       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5000       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .89456       1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.538       1.0000         .10000E-03   10000.    
    16 'norm      '    .11808E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .68522       1.0000         .10000E-03   10000.    
    19 'norm      '    11.414       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5262       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79845       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=   7066.195     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2232 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1811        36.193        .53874E-06    .20328E-04
   2  Prefactor     11.936        8.3210        .12772E-06    .17200E-03
   3  Prefactor     .10000E-03    4.5580       -.20001E-06** at limit **
   4  Prefactor     .10000E-03    7.4556       -.13271E-06** at limit **
   5  Prefactor     .10000E-03    5.2511       -.12423E-06** at limit **
   6  Prefactor     .10000E-03    11.575       -.33724E-06** at limit **
   7  Prefactor     10.166        16.427        .57593E-06    .15914E-03
   8  Prefactor     10.408        11.404        .22389E-06    .15423E-03
   9  Prefactor     120.95        120.47        .22255E-07    .16425E-03
  10  Prefactor     .10000E-03    3.7767       -.14709E-06** at limit **
  11  Prefactor     .10000E-03    15.020        .12253E-07** at limit **
  12  norm          5.4985        4.5688        .38270E-06    .89780E-03
  13  Prefactor     .10000E-03    52.601       -.15421E-06** at limit **
  14  norm          .89450        .66075        .99753E-07    .18304E-02
  15  Prefactor     45.599        21.075        .13071E-05    .89808E-03
  16  norm          .10000E-03    1.1993        .23793E-05** at limit **
  17  Prefactor     13.889        36.725        .24196E-05    .25636E-03
  18  Prefactor     .63840        31.628        .13216E-04   -.52500E-03
  19  norm          11.416        12.652        .22930E-06    .96458E-04
  20  Normalizat    1.5261        .23414       -.16119E-05    .34155E-03
  21  Prefactor     .79854        .12771        .10925E-05    .54870E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.18108
  Prefactor  = 11.9362
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1661
  Prefactor  = 10.4078
  Prefactor  = 120.954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.49851
  Prefactor  = 0.0001
  norm       = 0.894497
  Prefactor  = 45.5986
  norm       = 0.000100003
  Prefactor  = 13.8885
  Prefactor  = 0.638402
  norm       = 11.4162
  Normalizat = 1.52607
  Prefactor  = 0.798541
 **********
 **   18 **HESSE 
 **********

 FCN=   7066.195     FROM HESSE     STATUS=OK           313 CALLS     2545 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1811        36.200        .19701E-03   -1.5299    
   2  Prefactor     11.936        8.3348        .11596E-03   -1.5017    
   3  Prefactor     .10000E-03    4.5757        .17531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.166        16.563        .12564E-03   -1.5070    
   8  Prefactor     10.408        11.400        .12419E-03   -1.5063    
   9  Prefactor     120.95        120.44        .18303E-03   -1.3504    
  10  Prefactor     .10000E-03    3.8277        .15905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.4985        4.5860        .15004E-03   -1.5239    
  13  Prefactor     .10000E-03    52.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .89450        .65741        .57006E-04   -1.5519    
  15  Prefactor     45.599        21.439        .59415E-04   -1.4356    
  16  norm          .10000E-03    1.4412        .14173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.889        37.187        .10742E-03   -1.4962    
  18  Prefactor     .63840        71.637        .46387E-02   -1.5548    
  19  norm          11.416        12.681        .11858E-03   -1.5032    
  20  Normalizat    1.5261        .27848        .28850E-03   -.77048    
  21  Prefactor     .79854        .15143        .22731E-03   -.99782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09688e-08
Minuit parameter uncertainties:
  1  24.6249
  2  8.33561
  3  3.39839e-05
  4  2.97606e-05
  5  2.2066e-05
  6  8.07429e-05
  7  16.5703
  8  11.4026
  9  120.683
  10  2.54237e-05
  11  1.22168e-05
  12  4.58634
  13  7.01798e-06
  14  0.657419
  15  21.4429
  16  0.000126287
  17  37.2491
  18  13.5409
  19  12.6835
  20  0.278765
  21  0.15151
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  2.542e-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:  7.985e-01  1.515e-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.526e+00  2.788e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300316/likelihoodResults_526262401_526521601_4FGL_J2225.7-0457_daily_bin1107.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) = 7066.19620138
delta logL = -0.00124524138209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7066.1949566
delta logL = -4.53540451417e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4318       1.0000          .0000       10.000    
     3 'Normalizat'    1.5259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79864       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7066.195     FROM MIGRAD    STATUS=FAILED        85 CALLS      238 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10043E-03    331.99        .15925E-02** at limit **
   2  Index         2.4842        5.6241        .50000       -.10235E-04
   3  Normalizat    1.5261        .58514E-01    .28850E-03    .12263E-03
   4  Prefactor     .79854        .34864E-01    .22731E-03    .14894E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7066.195     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      390 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10043E-03    331.99        .32602E-03** at limit **
   2  Index         2.4842        5.6241        .25047E-04   -.10235E-04
   3  Normalizat    1.5261        .58514E-01    .56476E-06    .12263E-03
   4  Prefactor     .79854        .34864E-01    .27323E-06    .14894E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7066.195     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      431 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8510        .31849E-03** at limit **
   2  Index         2.6324        6.2671        .50000        .11566E-06
   3  Normalizat    1.5261        .24894        .57699E-04   -.64981E-04
   4  Prefactor     .79854        .14839        .90922E-05   -.88776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.63243
  Normalizat = 1.52607
  Prefactor  = 0.798539
 **********
 **   18 **HESSE 
 **********

 FCN=   7066.195     FROM HESSE     STATUS=OK            29 CALLS      460 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9563        .63699E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6324        6.0493        .50000       -.49328    
   3  Normalizat    1.5261        .24912        .11540E-04   -.77048    
   4  Prefactor     .79854        .14853        .18184E-05   -.99782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82203e-11
Minuit parameter uncertainties:
  1  5.94002e-06
  2  172.823
  3  0.249324
  4  0.148606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300316': 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) = 7066.1949558
delta logL = 3.38137397193e-07

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  5.940e-06  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.632e+00  1.728e+02  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:  7.985e-01  1.486e-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.526e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 336.432 -4.954

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/300316/cmap_HighResolution_526262401_526521601_4FGL_J2225.7-0457_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.99e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-28 11:34:37.115959', job_id='300316', GAL2='0.80', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1632854077.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1107' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:34:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 300316: <4FGL_J2225.7-0457_daily_bin1107> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1107 336.432 -4.9537 526262401 526521601 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 :                                   620.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             297.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

