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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1103
RA = 336.432, Dec = -4.9537
tmin = 525225601, tmax = 525484801
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='300310', job_status='RUN', time_executed='2021-09-28 11:24:06.709734', time_epoch_executed='1632853446.71' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300310/ft1_4FGL_J2225.7-0457_daily_bin1103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300310/ft2_4FGL_J2225.7-0457_daily_bin1103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300310/ft1_4FGL_J2225.7-0457_daily_bin1103.fits outfile=/scratch/kocevski/300310/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1103.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=525225601.0 tmax=525484801.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.08
user 3.84
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300310/ft2_4FGL_J2225.7-0457_daily_bin1103.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/300310/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1103.fits evtable="EVENTS" outfile="/scratch/kocevski/300310/ft1_filtered_4FGL_J2225.7-0457_daily_bin1103.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/300310/ft1_filtered_4FGL_J2225.7-0457_daily_bin1103.fits" evtable="EVENTS" scfile=/scratch/kocevski/300310/ft2_4FGL_J2225.7-0457_daily_bin1103.fits sctable="SC_DATA" outfile=/scratch/kocevski/300310/ltcube_525225601_525484801_4FGL_J2225.7-0457_daily_bin1103.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/300310/ft2_4FGL_J2225.7-0457_daily_bin1103.fits
.....................!
real 12.23
user 11.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300310/ft1_filtered_4FGL_J2225.7-0457_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/300310/ft2_4FGL_J2225.7-0457_daily_bin1103.fits sctable="SC_DATA" expcube=/scratch/kocevski/300310/ltcube_525225601_525484801_4FGL_J2225.7-0457_daily_bin1103.fits outfile=/scratch/kocevski/300310/expmap_525225601_525484801_4FGL_J2225.7-0457_daily_bin1103.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/300310/ltcube_525225601_525484801_4FGL_J2225.7-0457_daily_bin1103.fits
.....................!
real 189.84
user 185.49
sys 3.96

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/300310/ft1_filtered_4FGL_J2225.7-0457_daily_bin1103.fits scfile=/scratch/kocevski/300310/ft2_4FGL_J2225.7-0457_daily_bin1103.fits outfile=/scratch/kocevski/300310/cmap_525225601_525484801_4FGL_J2225.7-0457_daily_bin1103.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300310/ft1_filtered_4FGL_J2225.7-0457_daily_bin1103.fits scfile=/scratch/kocevski/300310/ft2_4FGL_J2225.7-0457_daily_bin1103.fits outfile=/scratch/kocevski/300310/cmap_HighResolution_525225601_525484801_4FGL_J2225.7-0457_daily_bin1103.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300310/ft1_filtered_4FGL_J2225.7-0457_daily_bin1103.fits evtable="EVENTS" scfile=/scratch/kocevski/300310/ft2_4FGL_J2225.7-0457_daily_bin1103.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300310/Model_4FGL_J2225.7-0457_daily_bin1103.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/300310/ft1_filtered_4FGL_J2225.7-0457_daily_bin1103.fits.....................!
real 69.66
user 68.28
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16459E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.266       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9867       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.640       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.127       1.0000         .10000E-03   10000.    
    12 'norm      '    5.5264       1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.255       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2703       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7211       1.0000         .10000E-03   10000.    
    16 'norm      '    5.5630       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2542       1.0000         .10000E-03   10000.    
    19 'norm      '    18.815       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .33967       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2910       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=   7998.035     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2246 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.630        .17345E-06** at limit **
   2  Prefactor     .10000E-03    2.3610        .10116E-06** at limit **
   3  Prefactor     .10000E-03    8.9635        .25474E-06** at limit **
   4  Prefactor     .10000E-03    13.336        .46277E-07** at limit **
   5  Prefactor     .10000E-03    13.436        .70740E-06** at limit **
   6  Prefactor     20.266        16.938       -.58468E-06   -.15135E-03
   7  Prefactor     2.9885        5.7373       -.53876E-06   -.46279E-03
   8  Prefactor     11.643        8.7772       -.14557E-07   -.13747E-03
   9  Prefactor     .10000E-03    23.284       -.18227E-07** at limit **
  10  Prefactor     .10000E-03    2.4616        .28343E-06** at limit **
  11  Prefactor     30.123        30.245       -.11909E-05   -.20525E-04
  12  norm          5.5263        3.4888        .44231E-06   -.36591E-03
  13  Prefactor     57.238        65.656       -.16086E-04   -.12445E-03
  14  norm          2.2703        .81354        .11440E-07   -.16472E-03
  15  Prefactor     4.7301        63.393        .10950E-04   -.95287E-04
  16  norm          5.5639        3.0622       -.73721E-06    .98250E-03
  17  Prefactor     .10000E-03    33.043       -.34927E-06** at limit **
  18  Prefactor     3.2541        4.8661       -.19594E-06   -.23304E-03
  19  norm          18.818        10.759        .37067E-08   -.58968E-05
  20  Normalizat    .33965        .22240       -.22517E-05   -.17388E-03
  21  Prefactor     1.2910        .14297        .77725E-06   -.27750E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 20.2657
  Prefactor  = 2.98851
  Prefactor  = 11.6428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1228
  norm       = 5.52634
  Prefactor  = 57.2383
  norm       = 2.27031
  Prefactor  = 4.73011
  norm       = 5.56394
  Prefactor  = 0.0001
  Prefactor  = 3.25408
  norm       = 18.8184
  Normalizat = 0.339647
  Prefactor  = 1.29103
 **********
 **   18 **HESSE 
 **********

 FCN=   7998.035     FROM HESSE     STATUS=OK           319 CALLS     2565 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3982        .13410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.2841        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    139.28        .57774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.266        15.765        .88972E-04   -1.4807    
   7  Prefactor     2.9885        5.7389        .23491E-03   -1.5362    
   8  Prefactor     11.643        8.6964        .11742E-03   -1.5025    
   9  Prefactor     .10000E-03    23.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5301        .27363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.123        30.224        .72995E-04   -1.4610    
  12  norm          5.5263        3.4602        .12269E-03   -1.5238    
  13  Prefactor     57.238        65.548        .53017E-04   -1.4193    
  14  norm          2.2703        .81031        .46314E-04   -1.5407    
  15  Prefactor     4.7301        77.024        .18519E-03   -1.5273    
  16  norm          5.5639        3.4233        .46716E-04   -1.5236    
  17  Prefactor     .10000E-03    33.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2541        4.8582        .22451E-03   -1.5347    
  19  norm          18.818        10.728        .92336E-04   -1.4840    
  20  Normalizat    .33965        .21156        .47221E-03   -1.2055    
  21  Prefactor     1.2910        .14013        .17146E-03   -.83574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33229e-09
Minuit parameter uncertainties:
  1  4.54371e-06
  2  3.65367e-06
  3  3.968e-06
  4  4.31065e-06
  5  0.000949677
  6  15.7683
  7  5.73995
  8  8.6973
  9  3.16146e-07
  10  1.97302e-05
  11  30.2394
  12  3.46036
  13  65.6311
  14  0.810312
  15  38.2329
  16  3.42343
  17  0.000154571
  18  4.85877
  19  10.7287
  20  0.212063
  21  0.140174
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  1.973e-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.291e+00  1.402e-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:  3.396e-01  2.121e-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.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/300310/likelihoodResults_525225601_525484801_4FGL_J2225.7-0457_daily_bin1103.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) = 7998.03647745
delta logL = -0.00188653889018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7998.03459309
delta logL = -2.17442448047e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11483E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3945       1.0000          .0000       10.000    
     3 'Normalizat'    .33971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2910       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=   7998.035     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      263 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.719        .28443E-02** at limit **
   2  Index         2.0687        6.3852        .50000        .55622E-06
   3  Normalizat    .33965        .14512E-01    .47221E-03   -.15649E-05
   4  Prefactor     1.2910        .99252E-02    .17146E-03   -.20887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06874
  Normalizat = 0.339649
  Prefactor  = 1.29103
 **********
 **   18 **HESSE 
 **********

 FCN=   7998.035     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    171.21        .56887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0687        5.8241        .50000       -.62643    
   3  Normalizat    .33965        .32921E-01    .18888E-04   -1.2055    
   4  Prefactor     1.2910        .22516E-01    .68583E-05   -.83574    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.21443e-09
Minuit parameter uncertainties:
  1  8.39549e-05
  2  434.818
  3  0.0329232
  4  0.0225163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300310': 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) = 7998.03458624
delta logL = 4.66999154014e-06

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.000e-04  8.395e-05  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.069e+00  4.348e+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:  1.291e+00  2.252e-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:  3.396e-01  3.292e-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/300310/cmap_HighResolution_525225601_525484801_4FGL_J2225.7-0457_daily_bin1103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-03', job_status='DONE', photon_flux_upper_limit='7.03e-08', time_completed='2021-09-28 11:34:51.867040', job_id='300310', GAL2='1.29', fit_tolerance='1e-08', EG2='0.34', EG='0.34', time_epoch_completed='1632854091.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='4.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1103' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:34:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 300310: <4FGL_J2225.7-0457_daily_bin1103> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin1103> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:20:38 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:20:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:20:40 2021
Terminated at Tue Sep 28 11:34:54 2021
Results reported at Tue Sep 28 11:34:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1103 336.432 -4.9537 525225601 525484801 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 :                                   643.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             229.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            856 sec.

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

