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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin654
RA = 336.432, Dec = -4.9537
tmin = 408844801, tmax = 409104001
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='298497', job_status='RUN', time_executed='2021-09-28 11:15:43.066383', time_epoch_executed='1632852943.07' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298497

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298497/ft1_4FGL_J2225.7-0457_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298497/ft2_4FGL_J2225.7-0457_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298497/ft1_4FGL_J2225.7-0457_daily_bin654.fits outfile=/scratch/kocevski/298497/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin654.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=408844801.0 tmax=409104001.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.33
user 4.10
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/298497/ft2_4FGL_J2225.7-0457_daily_bin654.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/298497/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/298497/ft1_filtered_4FGL_J2225.7-0457_daily_bin654.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/298497/ft1_filtered_4FGL_J2225.7-0457_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/298497/ft2_4FGL_J2225.7-0457_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/298497/ltcube_408844801_409104001_4FGL_J2225.7-0457_daily_bin654.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/298497/ft2_4FGL_J2225.7-0457_daily_bin654.fits
.....................!
real 11.50
user 11.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298497/ft1_filtered_4FGL_J2225.7-0457_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/298497/ft2_4FGL_J2225.7-0457_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/298497/ltcube_408844801_409104001_4FGL_J2225.7-0457_daily_bin654.fits outfile=/scratch/kocevski/298497/expmap_408844801_409104001_4FGL_J2225.7-0457_daily_bin654.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/298497/ltcube_408844801_409104001_4FGL_J2225.7-0457_daily_bin654.fits
.....................!
real 190.47
user 185.70
sys 4.46

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/298497/ft1_filtered_4FGL_J2225.7-0457_daily_bin654.fits scfile=/scratch/kocevski/298497/ft2_4FGL_J2225.7-0457_daily_bin654.fits outfile=/scratch/kocevski/298497/cmap_408844801_409104001_4FGL_J2225.7-0457_daily_bin654.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298497/ft1_filtered_4FGL_J2225.7-0457_daily_bin654.fits scfile=/scratch/kocevski/298497/ft2_4FGL_J2225.7-0457_daily_bin654.fits outfile=/scratch/kocevski/298497/cmap_HighResolution_408844801_409104001_4FGL_J2225.7-0457_daily_bin654.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=336.432 yref=-4.9537 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/298497/ft1_filtered_4FGL_J2225.7-0457_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/298497/ft2_4FGL_J2225.7-0457_daily_bin654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/298497/Model_4FGL_J2225.7-0457_daily_bin654.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/298497/ft1_filtered_4FGL_J2225.7-0457_daily_bin654.fits........................!
real 22.13
user 20.91
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    246.80       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12670E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24881E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30154E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .89671E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35358E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    65.885       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10859E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7308       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4091       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36719E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    11.619       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39249       1.0000         .10000E-03   10000.    
    14 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24275E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10172E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13264E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.164       1.0000         .10000E-03   10000.    
    19 'norm      '    47.847       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10010E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1832       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=   1184.308     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2035 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     245.83        189.32       -.14665E-03   -.10190E-04
   2  Prefactor     .10000E-03    35.272       -.21707E-06** at limit **
   3  Prefactor     .10000E-03    42.352        .93440E-08** at limit **
   4  Prefactor     .10000E-03    59.848        .77956E-07** at limit **
   5  Prefactor     .10000E-03    41.579       -.13281E-06** at limit **
   6  Prefactor     .10000E-03    41.833       -.97420E-07** at limit **
   7  Prefactor     65.522        35.218       -.14854E-05   -.13810E-03
   8  Prefactor     .10000E-03    17.533       -.30596E-07** at limit **
   9  Prefactor     24.763        278.07       -.19964E-04   -.68175E-05
  10  Prefactor     3.3538        9.8319       -.98132E-06   -.10903E-03
  11  Prefactor     .10000E-03    35.928       -.10813E-06** at limit **
  12  norm          11.407        9.9639       -.66024E-06   -.64458E-03
  13  Prefactor     .10000E-03    122.18        .15370E-06** at limit **
  14  norm          .10000E-03    1.8930       -.68481E-06** at limit **
  15  Prefactor     .10000E-03    77.618       -.14681E-05** at limit **
  16  norm          .10000E-03    1.0013       -.13036E-06** at limit **
  17  Prefactor     .10000E-03    23.041       -.66778E-07** at limit **
  18  Prefactor     44.345        29.023       -.75655E-06   -.50051E-04
  19  norm          47.242        58.697       -.36887E-05   -.57308E-04
  20  Normalizat    .10000E-01    1.0103        .10420E-04** at limit **
  21  Prefactor     1.1802        .25538        .76839E-05   -.37769E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 245.83
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.5216
  Prefactor  = 0.0001
  Prefactor  = 24.763
  Prefactor  = 3.35378
  Prefactor  = 0.0001
  norm       = 11.4072
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.3453
  norm       = 47.2417
  Normalizat = 0.01
  Prefactor  = 1.18023
 **********
 **   18 **HESSE 
 **********

 FCN=   1184.308     FROM HESSE     STATUS=OK           305 CALLS     2340 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     245.83        189.25        .12891E-03   -1.2559    
   2  Prefactor     .10000E-03    36.358        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.496        .20023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.848        .18346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.597        .18275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.839        .19643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     65.522        34.514        .49444E-04   -1.4087    
   8  Prefactor     .10000E-03    17.551        .14078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.763        277.29        .13566E-03   -1.4712    
  10  Prefactor     3.3538        9.8150        .17759E-03   -1.5342    
  11  Prefactor     .10000E-03    35.929        .19599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.407        9.8812        .46709E-03   -1.5032    
  13  Prefactor     .10000E-03    122.19        .21647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9072        .89097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    79.832        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0286        .66994E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.063        .16139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.345        29.006        .60328E-04   -1.4375    
  19  norm          47.242        58.194        .57969E-04   -1.4332    
  20  Normalizat    .10000E-01    6.4648        .13467E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1802        .19172        .16869E-03   -.86942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19157e-09
Minuit parameter uncertainties:
  1  189.728
  2  0.000148683
  3  0.000133849
  4  1.11391e-06
  5  3.95904e-05
  6  1.4086e-05
  7  34.5243
  8  6.66943e-06
  9  166.715
  10  9.81968
  11  8.96514e-06
  12  9.88262
  13  6.19188e-05
  14  0.000115246
  15  0.00105811
  16  1.3482e-05
  17  5.57939e-05
  18  29.0149
  19  58.2636
  20  5.43736e-05
  21  0.191835
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  3.354e+00  9.820e+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

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  1.180e+00  1.918e-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.000e-02  5.437e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 3.85e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/298497/likelihoodResults_408844801_409104001_4FGL_J2225.7-0457_daily_bin654.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) = 1184.0489287
delta logL = 0.258933271112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1183.98992093
delta logL = 0.3179410431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6004       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5683       1.0000          .0000       10.000    
     3 'Normalizat'    .10014E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1738       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=   1183.990     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      226 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6002        10.223        .39050E-02    .66593E-03
   2  Index         1.5682        .73284        .16629       -.82482E-05
   3  Normalizat    .10000E-01    1.0906        .23923    ** at limit **
   4  Prefactor     1.1738        .26612        .35281E-01    .28724E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.60018
  Index      = 1.56821
  Normalizat = 0.01
  Prefactor  = 1.17379
 **********
 **   18 **HESSE 
 **********

 FCN=   1183.990     FROM HESSE     STATUS=OK            39 CALLS      265 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6002        10.759        .13245E-03   -1.5194    
   2  Index         1.5682        .83657        .67744E-02   -.75647    
   3  Normalizat    .10000E-01    6.2621        .16503       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1738        .29746        .16879E-03   -.87142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57786e-10
Minuit parameter uncertainties:
  1  10.7618
  2  0.844133
  3  2.07066e-05
  4  0.297882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298497': 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) = 1183.98992035
delta logL = 0.317941626056

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  6.600e+00  1.076e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.568e+00  8.441e-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:  1.174e+00  2.979e-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.000e-02  2.071e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/298497/cmap_HighResolution_408844801_409104001_4FGL_J2225.7-0457_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-02', job_status='DONE', photon_flux_upper_limit='3.85e-07', time_completed='2021-09-28 11:21:41.902629', job_id='298497', GAL2='1.17', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632853301.9', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.18e-01', ts2='0.79', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='654' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:21:41 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin654 336.432 -4.9537 408844801 409104001 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 :                                   358.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             365.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   375 sec.
    Turnaround time :                            378 sec.

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

