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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1508
RA = 336.432, Dec = -4.9537
tmin = 630201601, tmax = 630460801
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='301879', job_status='RUN', time_executed='2021-09-28 11:29:29.409109', time_epoch_executed='1632853769.41' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/301879

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/301879/ft1_4FGL_J2225.7-0457_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/301879/ft2_4FGL_J2225.7-0457_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/301879/ft1_4FGL_J2225.7-0457_daily_bin1508.fits outfile=/scratch/kocevski/301879/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1508.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=630201601.0 tmax=630460801.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.69
user 3.46
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/301879/ft2_4FGL_J2225.7-0457_daily_bin1508.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/301879/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1508.fits evtable="EVENTS" outfile="/scratch/kocevski/301879/ft1_filtered_4FGL_J2225.7-0457_daily_bin1508.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/301879/ft1_filtered_4FGL_J2225.7-0457_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/301879/ft2_4FGL_J2225.7-0457_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/301879/ltcube_630201601_630460801_4FGL_J2225.7-0457_daily_bin1508.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/301879/ft2_4FGL_J2225.7-0457_daily_bin1508.fits
.....................!
real 12.06
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/301879/ft1_filtered_4FGL_J2225.7-0457_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/301879/ft2_4FGL_J2225.7-0457_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/301879/ltcube_630201601_630460801_4FGL_J2225.7-0457_daily_bin1508.fits outfile=/scratch/kocevski/301879/expmap_630201601_630460801_4FGL_J2225.7-0457_daily_bin1508.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/301879/ltcube_630201601_630460801_4FGL_J2225.7-0457_daily_bin1508.fits
.....................!
real 190.12
user 185.16
sys 4.66

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/301879/ft1_filtered_4FGL_J2225.7-0457_daily_bin1508.fits scfile=/scratch/kocevski/301879/ft2_4FGL_J2225.7-0457_daily_bin1508.fits outfile=/scratch/kocevski/301879/cmap_630201601_630460801_4FGL_J2225.7-0457_daily_bin1508.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=336.432 yref=-4.9537 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/301879/ft1_filtered_4FGL_J2225.7-0457_daily_bin1508.fits scfile=/scratch/kocevski/301879/ft2_4FGL_J2225.7-0457_daily_bin1508.fits outfile=/scratch/kocevski/301879/cmap_HighResolution_630201601_630460801_4FGL_J2225.7-0457_daily_bin1508.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/301879/ft1_filtered_4FGL_J2225.7-0457_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/301879/ft2_4FGL_J2225.7-0457_daily_bin1508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/301879/Model_4FGL_J2225.7-0457_daily_bin1508.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/301879/ft1_filtered_4FGL_J2225.7-0457_daily_bin1508.fits.....................!
real 82.77
user 81.48
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4269       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.592       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5936       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.375       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.395       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.691       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    56.561       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8700       1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.139       1.0000         .10000E-03   10000.    
    16 'norm      '    .27047E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.525       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    51.063       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0409       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .88505       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=   9336.523     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2383 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.396        .22542E-05** at limit **
   2  Prefactor     11.444        6.2802        .29250E-06    .18735E-03
   3  Prefactor     4.4277        8.8774        .55556E-07   -.39232E-04
   4  Prefactor     .10000E-03    6.8497       -.39805E-07** at limit **
   5  Prefactor     10.595        12.926        .58730E-06    .52055E-04
   6  Prefactor     7.5856        16.416       -.82870E-06   -.73392E-04
   7  Prefactor     10.374        9.6913        .12751E-05   -.11544E-03
   8  Prefactor     11.395        9.6340        .26816E-06   -.71229E-04
   9  Prefactor     42.687        41.421       -.18507E-05   -.11881E-03
  10  Prefactor     .10000E-03    1.5735        .14460E-06** at limit **
  11  Prefactor     .10000E-03    38.958       -.65906E-06** at limit **
  12  norm          .10000E-03    1.3162        .21777E-06** at limit **
  13  Prefactor     56.555        50.449       -.25442E-05   -.16524E-03
  14  norm          1.8699        .85006       -.25162E-07    .21250E-03
  15  Prefactor     75.178        20.091        .23414E-06    .13908E-02
  16  norm          .10115E-03    .56835       -.30406E-06** at limit **
  17  Prefactor     52.537        34.447       -.11212E-05    .31838E-03
  18  Prefactor     .10000E-03    2.3758        .21225E-07** at limit **
  19  norm          51.063        15.259        .32398E-06    .11650E-03
  20  Normalizat    1.0409        .19343       -.85142E-06   -.37400E-05
  21  Prefactor     .88508        .11113        .17307E-06   -.90955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 11.4445
  Prefactor  = 4.42769
  Prefactor  = 0.0001
  Prefactor  = 10.595
  Prefactor  = 7.58562
  Prefactor  = 10.3744
  Prefactor  = 11.3947
  Prefactor  = 42.6871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 56.5546
  norm       = 1.8699
  Prefactor  = 75.1781
  norm       = 0.000101147
  Prefactor  = 52.5372
  Prefactor  = 0.0001
  norm       = 51.0633
  Normalizat = 1.04087
  Prefactor  = 0.885078
 **********
 **   18 **HESSE 
 **********

 FCN=   9336.523     FROM HESSE     STATUS=OK           329 CALLS     2712 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.444        6.3043        .11842E-03   -1.5031    
   3  Prefactor     4.4277        8.8820        .19140E-03   -1.5287    
   4  Prefactor     .10000E-03    6.8602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.595        12.896        .12311E-03   -1.5057    
   6  Prefactor     7.5856        16.376        .14553E-03   -1.5157    
   7  Prefactor     10.374        9.9782        .62198E-03   -1.5064    
   8  Prefactor     11.395        9.3477        .11868E-03   -1.5033    
   9  Prefactor     42.687        41.668        .61355E-04   -1.4400    
  10  Prefactor     .10000E-03    10.760        .22296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.6299        .20790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.555        51.142        .53339E-04   -1.4202    
  14  norm          1.8699        .84688        .57480E-04   -1.5434    
  15  Prefactor     75.178        25.865        .46321E-04   -1.3972    
  16  norm          .10115E-03    2.7301        .19450E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     52.537        34.393        .55340E-04   -1.4257    
  18  Prefactor     .10000E-03    2.3786        .14545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          51.063        15.310        .56123E-04   -1.4278    
  20  Normalizat    1.0409        .22869        .31373E-03   -.91673    
  21  Prefactor     .88508        .13257        .20844E-03   -.96664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10964e-09
Minuit parameter uncertainties:
  1  0.000275469
  2  6.30464
  3  8.88461
  4  4.63462e-07
  5  12.8992
  6  16.3859
  7  9.97976
  8  9.34893
  9  41.6962
  10  7.90654e-05
  11  8.65328e-05
  12  9.75373e-05
  13  51.1815
  14  0.84689
  15  25.8687
  16  0.00353927
  17  34.4055
  18  2.92048e-06
  19  15.3108
  20  0.228905
  21  0.132618
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  7.907e-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:  8.851e-01  1.326e-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.041e+00  2.289e-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: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/301879/likelihoodResults_630201601_630460801_4FGL_J2225.7-0457_daily_bin1508.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) = 9336.52323686
delta logL = -0.000441945650891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9336.52279558
delta logL = -6.67741915095e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11594E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3816       1.0000          .0000       10.000    
     3 'Normalizat'    1.0410       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88503       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=   9336.523     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      240 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5807        .65337E-01** at limit **
   2  Index         2.3322        6.0564        .50000        .35973E-04
   3  Normalizat    1.0409        .59008E-02    .70905E-01    .20449E-03
   4  Prefactor     .88508        .36651E-02    .44814E-01    .39556E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.33215
  Normalizat = 1.04087
  Prefactor  = 0.88508
 **********
 **   18 **HESSE 
 **********

 FCN=   9336.523     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1070.9        .23236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3322        7.3075        .50000       -.56282    
   3  Normalizat    1.0409        .46796E-01    .31373E-03   -.91673    
   4  Prefactor     .88508        .29097E-01    .20844E-03   -.96664    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.95387e-08
Minuit parameter uncertainties:
  1  0.00235143
  2  39.1668
  3  0.0467978
  4  0.0290975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/301879': 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) = 9336.5227941
delta logL = 8.14654413261e-07

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  2.351e-03  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.332e+00  3.917e+01  0.000e+00  1.000e+01 (-1.000e+00)
238        Scale:  7.735e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  8.851e-01  2.910e-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:  1.041e+00  4.680e-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/301879/cmap_HighResolution_630201601_630460801_4FGL_J2225.7-0457_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-28 11:41:39.190231', job_id='301879', GAL2='0.89', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632854499.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1508' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:41:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 301879: <4FGL_J2225.7-0457_daily_bin1508> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1508 336.432 -4.9537 630201601 630460801 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 :                                   727.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             244.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

