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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1403
RA = 336.432, Dec = -4.9537
tmin = 602985601, tmax = 603244801
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='300777', job_status='RUN', time_executed='2021-09-28 11:23:35.508481', time_epoch_executed='1632853415.51' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300777

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300777/ft1_4FGL_J2225.7-0457_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300777/ft2_4FGL_J2225.7-0457_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300777/ft1_4FGL_J2225.7-0457_daily_bin1403.fits outfile=/scratch/kocevski/300777/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1403.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=602985601.0 tmax=603244801.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.01
user 2.81
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300777/ft2_4FGL_J2225.7-0457_daily_bin1403.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/300777/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/300777/ft1_filtered_4FGL_J2225.7-0457_daily_bin1403.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300777/ft1_filtered_4FGL_J2225.7-0457_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/300777/ft2_4FGL_J2225.7-0457_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/300777/ltcube_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.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/300777/ft2_4FGL_J2225.7-0457_daily_bin1403.fits
.....................!
real 12.21
user 11.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300777/ft1_filtered_4FGL_J2225.7-0457_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/300777/ft2_4FGL_J2225.7-0457_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/300777/ltcube_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.fits outfile=/scratch/kocevski/300777/expmap_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.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/300777/ltcube_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.fits
.....................!
real 191.53
user 186.84
sys 4.38

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/300777/ft1_filtered_4FGL_J2225.7-0457_daily_bin1403.fits scfile=/scratch/kocevski/300777/ft2_4FGL_J2225.7-0457_daily_bin1403.fits outfile=/scratch/kocevski/300777/cmap_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300777/ft1_filtered_4FGL_J2225.7-0457_daily_bin1403.fits scfile=/scratch/kocevski/300777/ft2_4FGL_J2225.7-0457_daily_bin1403.fits outfile=/scratch/kocevski/300777/cmap_HighResolution_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300777/ft1_filtered_4FGL_J2225.7-0457_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/300777/ft2_4FGL_J2225.7-0457_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300777/Model_4FGL_J2225.7-0457_daily_bin1403.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/300777/ft1_filtered_4FGL_J2225.7-0457_daily_bin1403.fits......................!
real 31.66
user 30.45
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/300777/ft1_filtered_4FGL_J2225.7-0457_daily_bin1403.fits', '/scratch/kocevski/300777/ft2_4FGL_J2225.7-0457_daily_bin1403.fits', expMap='/scratch/kocevski/300777/expmap_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.fits', expCube='/scratch/kocevski/300777/ltcube_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/300777/Model_4FGL_J2225.7-0457_daily_bin1403.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/300777/ft1_filtered_4FGL_J2225.7-0457_daily_bin1403.fits
Spacecraft file(s): /scratch/kocevski/300777/ft2_4FGL_J2225.7-0457_daily_bin1403.fits
Exposure map: /scratch/kocevski/300777/expmap_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.fits
Exposure cube: /scratch/kocevski/300777/ltcube_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/300777/Model_4FGL_J2225.7-0457_daily_bin1403.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2099.84278094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.952       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11051E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47971E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.534       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11961E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15444E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    27.889       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .96763E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    11.666       1.0000         .10000E-03   10000.    
    17 'Prefactor '    62.920       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.182       1.0000         .10000E-03   10000.    
    19 'norm      '    6.1630       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .21075       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3706       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=   2096.692     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     3892 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    140.57        .18142E-02** at limit **
   2  Prefactor    10000.0        1870.8        .18142E-02** at limit **
   3  Prefactor     25.965        55.094        .78635E-04   -.45324E-04
   4  Prefactor     .10000E-03    46.021        .18142E-02** at limit **
   5  Prefactor     .10003E-03    630.47        .41391E-02** at limit **
   6  Prefactor     .10001E-03    189.68        .12595    ** at limit **
   7  Prefactor     .10000E-03    104.77        .18142E-02** at limit **
   8  Prefactor     17.562        58.865        .95649E-04    .12421E-04
   9  Prefactor     .10000E-03    709.20        .18142E-02** at limit **
  10  Prefactor     .10000E-03    10.896        .14724E-02** at limit **
  11  Prefactor     .10000E-03    391.61        .18142E-02** at limit **
  12  norm          27.893        23.434        .75862E-04    .11989E-05
  13  Prefactor     .10000E-03    98.988        .18142E-02** at limit **
  14  norm          .10000E-03    1.2467        .49778E-03** at limit **
  15  Prefactor     .10060E-03    359.99        .10493    ** at limit **
  16  norm          11.648        8.3598        .55395E-04    .11320E-02
  17  Prefactor     62.943        76.931        .50588E-04    .78858E-04
  18  Prefactor     15.181        15.662        .10279E-03    .25217E-04
  19  norm          6.2026        34.656        .16171E-03    .67841E-05
  20  Normalizat    .21033        .53345        .74389E-03   -.12226E-06
  21  Prefactor     1.3707        .30075        .18300E-03   -.10900E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 25.9646
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 17.5619
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 27.8929
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100601
  norm       = 11.6484
  Prefactor  = 62.9434
  Prefactor  = 15.1809
  norm       = 6.20256
  Normalizat = 0.21033
  Prefactor  = 1.37068
 **********
 **   18 **HESSE 
 **********

 FCN=   2096.692     FROM HESSE     STATUS=OK           315 CALLS     4207 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    140.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        1870.6        .36285E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.965        55.175        .31454E-05   -1.4688    
   4  Prefactor     .10000E-03    46.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    632.72        .82781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    205.95        .12036       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    104.77        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.562        58.848        .38260E-05   -1.4870    
   9  Prefactor     .10000E-03    709.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.896        .29448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    391.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          27.893        23.430        .30345E-05   -1.4651    
  13  Prefactor     .10000E-03    98.989        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2468        .99557E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10060E-03    346.96        .10671       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.648        8.3267        .11079E-04   -1.5025    
  17  Prefactor     62.943        76.931        .10118E-04   -1.4120    
  18  Prefactor     15.181        15.662        .41117E-05   -1.4929    
  19  norm          6.2026        34.600        .64685E-05   -1.5210    
  20  Normalizat    .21033        .53180        .29756E-04   -1.2866    
  21  Prefactor     1.3707        .30008        .36600E-04   -.81229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25962e-09
Minuit parameter uncertainties:
  1  0.000100995
  2  0.013123
  3  55.2835
  4  5.25413e-05
  5  0.00861067
  6  0.0031904
  7  0.000139888
  8  59.0437
  9  0.00280008
  10  1.03709e-05
  11  0.00198587
  12  23.4376
  13  7.32391e-05
  14  1.3166e-06
  15  0.0290483
  16  8.32753
  17  77.0524
  18  15.6665
  19  29.325
  20  0.545486
  21  0.300457
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.037e-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:  1.371e+00  3.005e-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:  2.103e-01  5.455e-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: 3.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300777/likelihoodResults_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.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) = 2096.69236476
delta logL = -0.000434731536188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2096.69193444
delta logL = -4.41144584329e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4412       1.0000          .0000       10.000    
     3 'Normalizat'    .20886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3715       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=   2096.692     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1681.2        .90712E-02** at limit **
   2  Index         2.4572        5.3278        .50000       -.13290E-04
   3  Normalizat    .21031        .18099        .17018       -.14663E-03
   4  Prefactor     1.3707        .10950        .31467E-01   -.41868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.45724
  Normalizat = 0.21031
  Prefactor  = 1.37069
 **********
 **   18 **HESSE 
 **********

 FCN=   2096.692     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.112        .14877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4572        6.1931        .50000       -.53350    
   3  Normalizat    .21031        .45974        .74391E-03   -1.2866    
   4  Prefactor     1.3707        .28316        .18300E-03   -.81229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3533e-09
Minuit parameter uncertainties:
  1  6.33921e-05
  2  5.19185
  3  0.468429
  4  0.283486
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300777': 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) = 2096.69192993
delta logL = 9.62290869211e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
473    Prefactor:  1.371e+00  2.835e-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:  2.103e-01  4.684e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/300777/cmap_HighResolution_602985601_603244801_4FGL_J2225.7-0457_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-02', job_status='DONE', photon_flux_upper_limit='3.48e-07', time_completed='2021-09-28 11:30:40.872743', job_id='300777', GAL2='1.37', fit_tolerance='1e-08', EG2='0.21', EG='0.21', time_epoch_completed='1632853840.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='9.62e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1403' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:30:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 300777: <4FGL_J2225.7-0457_daily_bin1403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1403 336.432 -4.9537 602985601 603244801 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 :                                   423.42 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   561 sec.
    Turnaround time :                            562 sec.

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

