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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1497
RA = 336.432, Dec = -4.9537
tmin = 627350401, tmax = 627609601
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='301860', job_status='RUN', time_executed='2021-09-28 11:25:29.979981', time_epoch_executed='1632853529.98' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1497'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/301860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/301860/ft1_4FGL_J2225.7-0457_daily_bin1497.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/301860/ft2_4FGL_J2225.7-0457_daily_bin1497.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/301860/ft1_4FGL_J2225.7-0457_daily_bin1497.fits outfile=/scratch/kocevski/301860/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1497.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=627350401.0 tmax=627609601.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 2.72
user 2.52
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/301860/ft2_4FGL_J2225.7-0457_daily_bin1497.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/301860/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1497.fits evtable="EVENTS" outfile="/scratch/kocevski/301860/ft1_filtered_4FGL_J2225.7-0457_daily_bin1497.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/301860/ft1_filtered_4FGL_J2225.7-0457_daily_bin1497.fits" evtable="EVENTS" scfile=/scratch/kocevski/301860/ft2_4FGL_J2225.7-0457_daily_bin1497.fits sctable="SC_DATA" outfile=/scratch/kocevski/301860/ltcube_627350401_627609601_4FGL_J2225.7-0457_daily_bin1497.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/301860/ft2_4FGL_J2225.7-0457_daily_bin1497.fits
.....................!
real 12.56
user 12.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/301860/ft1_filtered_4FGL_J2225.7-0457_daily_bin1497.fits evtable="EVENTS" scfile=/scratch/kocevski/301860/ft2_4FGL_J2225.7-0457_daily_bin1497.fits sctable="SC_DATA" expcube=/scratch/kocevski/301860/ltcube_627350401_627609601_4FGL_J2225.7-0457_daily_bin1497.fits outfile=/scratch/kocevski/301860/expmap_627350401_627609601_4FGL_J2225.7-0457_daily_bin1497.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/301860/ltcube_627350401_627609601_4FGL_J2225.7-0457_daily_bin1497.fits
.....................!
real 192.76
user 187.01
sys 5.35

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 148 point sources and 0 extended sources

Setting source of interest to:
4FGL J2225.7-0457 @ 336.432 -4.9537

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/301860/ft1_filtered_4FGL_J2225.7-0457_daily_bin1497.fits scfile=/scratch/kocevski/301860/ft2_4FGL_J2225.7-0457_daily_bin1497.fits outfile=/scratch/kocevski/301860/cmap_627350401_627609601_4FGL_J2225.7-0457_daily_bin1497.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.50
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/301860/ft1_filtered_4FGL_J2225.7-0457_daily_bin1497.fits scfile=/scratch/kocevski/301860/ft2_4FGL_J2225.7-0457_daily_bin1497.fits outfile=/scratch/kocevski/301860/cmap_HighResolution_627350401_627609601_4FGL_J2225.7-0457_daily_bin1497.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/301860/ft1_filtered_4FGL_J2225.7-0457_daily_bin1497.fits evtable="EVENTS" scfile=/scratch/kocevski/301860/ft2_4FGL_J2225.7-0457_daily_bin1497.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/301860/Model_4FGL_J2225.7-0457_daily_bin1497.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/301860/ft1_filtered_4FGL_J2225.7-0457_daily_bin1497.fits.....................!
real 71.24
user 69.77
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.2397       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1320       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1913       1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.406       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8950       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.876       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9408       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2889       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24899E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.1054       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34693       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9104       1.0000         .10000E-03   10000.    
    19 'norm      '    39.858       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82007       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99859       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7889.677     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1861 TOTAL
                     EDM=   .48E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.357        .18907E-05** at limit **
   2  Prefactor     6.2395        5.0061        .25504E-06   -.13095E-04
   3  Prefactor     5.1318        7.2978       -.18385E-06    .17193E-04
   4  Prefactor     .10000E-03    18.598       -.32425E-06** at limit **
   5  Prefactor     4.1911        1.2216       -.24119E-07    .37680E-04
   6  Prefactor     65.401        1.5845       -.29622E-07   -.99362E-03
   7  Prefactor     3.8951        1.0954       -.18398E-07   -.81140E-04
   8  Prefactor     .10000E-03    4.9432       -.39515E-06** at limit **
   9  Prefactor     49.881        1.5312        .62593E-07   -.40803E-03
  10  Prefactor     .10000E-03    1.4177       -.46440E-06** at limit **
  11  Prefactor     .10000E-03    47.555        .45326E-06** at limit **
  12  norm          2.9412        2.9655       -.49586E-07    .94019E-05
  13  Prefactor     .10000E-03    33.324        .17226E-06** at limit **
  14  norm          2.2889        .93895       -.19750E-07   -.35895E-05
  15  Prefactor     .10000E-03    55.888        .16010E-05** at limit **
  16  norm          8.1133        1.9682        .35410E-06   -.19648E-03
  17  Prefactor     .20147        925.47       -.23151E-04    .20638E-05
  18  Prefactor     7.9122        7.7480        .41941E-06   -.18732E-04
  19  norm          39.858        1.0170       -.67243E-08   -.55039E-05
  20  Normalizat    .82013        .22489        .15592E-06    .59940E-05
  21  Prefactor     .99858        .14042       -.39965E-06    .15312E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.2395
  Prefactor  = 5.13184
  Prefactor  = 0.0001
  Prefactor  = 4.19111
  Prefactor  = 65.4007
  Prefactor  = 3.89507
  Prefactor  = 0.0001
  Prefactor  = 49.881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.94117
  Prefactor  = 0.0001
  norm       = 2.2889
  Prefactor  = 0.0001
  norm       = 8.11328
  Prefactor  = 0.201466
  Prefactor  = 7.9122
  norm       = 39.8575
  Normalizat = 0.82013
  Prefactor  = 0.998576
 **********
 **   18 **HESSE 
 **********

 FCN=   7889.677     FROM HESSE     STATUS=OK           371 CALLS     2232 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.2395        5.0289        .40176E-02   -1.5208    
   3  Prefactor     5.1318        7.4318        .44367E-02   -1.5255    
   4  Prefactor     .10000E-03    18.494        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1911        10.541        .49213E-02   -1.5298    
   6  Prefactor     65.401        22.401        .12406E-02   -1.4089    
   7  Prefactor     3.8951        9.8793        .51110E-02   -1.5313    
   8  Prefactor     .10000E-03    4.8963        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     49.881        78.402        .14196E-02   -1.4294    
  10  Prefactor     .10000E-03    1.4008        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    47.573        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9412        3.0267        .59211E-02   -1.5365    
  13  Prefactor     .10000E-03    33.540        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2889        .94116        .67833E-02   -1.5405    
  15  Prefactor     .10000E-03    55.601        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.1133        1.9284        .35206E-02   -1.5138    
  17  Prefactor     .20147        25.309        .12936       -1.5618    
  18  Prefactor     7.9122        7.7724        .35641E-02   -1.5145    
  19  norm          39.858        14.331        .15872E-02   -1.4444    
  20  Normalizat    .82013        .19942        .76488E-01   -.99326    
  21  Prefactor     .99858        .11928        .46249E-01   -.92777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14388e-08
Minuit parameter uncertainties:
  1  3.60311e-05
  2  5.02927
  3  7.43313
  4  4.79305e-06
  5  10.5456
  6  22.4039
  7  9.88346
  8  2.66836e-06
  9  78.5652
  10  1.74902e-06
  11  0.000100196
  12  3.02689
  13  1.18911e-05
  14  0.941169
  15  5.98443e-05
  16  1.92838
  17  4.51703
  18  7.77336
  19  14.3318
  20  0.199594
  21  0.119315
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.749e-06  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:  9.986e-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:  8.201e-01  1.996e-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: 5.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/301860/likelihoodResults_627350401_627609601_4FGL_J2225.7-0457_daily_bin1497.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) = 7889.68060336
delta logL = -0.00335450251168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7889.67724884
delta logL = 1.18943717098e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4223       1.0000          .0000       10.000    
     3 'Normalizat'    .82013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99857       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=   7889.677     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    48.252        .10266E-02** at limit **
   2  Index         2.4025        5.2523        .50000        .15293E-04
   3  Normalizat    .82013        .28700E-01    .33856E-03   -.30221E-04
   4  Prefactor     .99858        .18256E-01    .19554E-03   -.15291E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100086
  Index      = 2.40247
  Normalizat = 0.82013
  Prefactor  = 0.998576
 **********
 **   18 **HESSE 
 **********

 FCN=   7889.677     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    185.06        .20532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4025        6.1764        .50000       -.54627    
   3  Normalizat    .82013        .66452E-01    .13542E-04   -.99326    
   4  Prefactor     .99858        .42242E-01    .78217E-05   -.92777    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.16608e-08
Minuit parameter uncertainties:
  1  0.00800682
  2  789.351
  3  0.066459
  4  0.0422435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/301860': 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) = 7889.67724879
delta logL = 6.21957951807e-08

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.001e-04  8.007e-03  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.402e+00  7.894e+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:  9.986e-01  4.224e-02  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  8.201e-01  6.646e-02  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/301860/cmap_HighResolution_627350401_627609601_4FGL_J2225.7-0457_daily_bin1497.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-03', job_status='DONE', photon_flux_upper_limit='5.81e-08', time_completed='2021-09-28 11:35:51.784208', job_id='301860', GAL2='1.00', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632854151.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.22e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1497' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:35:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 301860: <4FGL_J2225.7-0457_daily_bin1497> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1497 336.432 -4.9537 627350401 627609601 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 :                                   618.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             329.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            633 sec.

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

