/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 = 7387
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.7-0457_daily_bin356
RA = 336.432, Dec = -4.9537
tmin = 331603201, tmax = 331862401
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='296818', job_status='RUN', time_executed='2021-09-28 11:10:34.193340', time_epoch_executed='1632852634.19' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/296818

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/296818/ft1_4FGL_J2225.7-0457_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/296818/ft2_4FGL_J2225.7-0457_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/296818/ft1_4FGL_J2225.7-0457_daily_bin356.fits outfile=/scratch/kocevski/296818/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin356.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=331603201.0 tmax=331862401.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.31
user 3.13
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/296818/ft1_filtered_4FGL_J2225.7-0457_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/296818/ft2_4FGL_J2225.7-0457_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/296818/ltcube_331603201_331862401_4FGL_J2225.7-0457_daily_bin356.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/296818/ft2_4FGL_J2225.7-0457_daily_bin356.fits
.....................!
real 11.79
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/296818/ft1_filtered_4FGL_J2225.7-0457_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/296818/ft2_4FGL_J2225.7-0457_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/296818/ltcube_331603201_331862401_4FGL_J2225.7-0457_daily_bin356.fits outfile=/scratch/kocevski/296818/expmap_331603201_331862401_4FGL_J2225.7-0457_daily_bin356.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/296818/ltcube_331603201_331862401_4FGL_J2225.7-0457_daily_bin356.fits
.....................!
real 190.23
user 184.88
sys 5.03

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/296818/ft1_filtered_4FGL_J2225.7-0457_daily_bin356.fits scfile=/scratch/kocevski/296818/ft2_4FGL_J2225.7-0457_daily_bin356.fits outfile=/scratch/kocevski/296818/cmap_331603201_331862401_4FGL_J2225.7-0457_daily_bin356.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/296818/ft1_filtered_4FGL_J2225.7-0457_daily_bin356.fits scfile=/scratch/kocevski/296818/ft2_4FGL_J2225.7-0457_daily_bin356.fits outfile=/scratch/kocevski/296818/cmap_HighResolution_331603201_331862401_4FGL_J2225.7-0457_daily_bin356.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/296818/ft1_filtered_4FGL_J2225.7-0457_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/296818/ft2_4FGL_J2225.7-0457_daily_bin356.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/296818/Model_4FGL_J2225.7-0457_daily_bin356.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/296818/ft1_filtered_4FGL_J2225.7-0457_daily_bin356.fits....................!
real 62.13
user 60.83
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.671       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2661       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3441       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9685       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17184E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.777       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    85.403       1.0000         .10000E-03   10000.    
    12 'norm      '    11.568       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.257       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3641       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13833E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .33417       1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.440       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6802       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .41671       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1547       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=   6874.862     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2847 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.688        45.132       -.14074E-05   -.13183E-04
   2  Prefactor     8.2768        8.0517       -.74407E-06   -.24804E-04
   3  Prefactor     .47302        6.8012        .39910E-06   -.25989E-03
   4  Prefactor     7.3514        17.349       -.70676E-06   -.30303E-04
   5  Prefactor     .10000E-03    5.6971       -.25548E-06** at limit **
   6  Prefactor     5.9646        14.518       -.45306E-06   -.53236E-04
   7  Prefactor     .10000E-03    26.025       -.44105E-05** at limit **
   8  Prefactor     11.789        12.733       -.12350E-05   -.85262E-04
   9  Prefactor     .10000E-03    38.771       -.53950E-06** at limit **
  10  Prefactor     5.4083        4.9506        .60599E-06   -.10691E-03
  11  Prefactor     85.432        62.591       -.63557E-06    .32864E-05
  12  norm          11.569        4.5061       -.17592E-06   -.12575E-03
  13  Prefactor     36.645        101.06       -.79158E-05    .11751E-04
  14  norm          1.3641        .89540       -.11637E-06   -.28698E-03
  15  Prefactor     .10000E-03    10.960       -.51893E-06** at limit **
  16  norm          .33393        .65678        .96609E-06   -.13020E-03
  17  Prefactor     48.469        26.290       -.18217E-05   -.11248E-04
  18  Prefactor     .10000E-03    2.6198        .63166E-07** at limit **
  19  norm          4.6946        13.674       -.17049E-05   -.50517E-04
  20  Normalizat    .41617        .22864        .10937E-04    .10054E-04
  21  Prefactor     1.1549        .13716       -.29524E-05    .17235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6879
  Prefactor  = 8.27679
  Prefactor  = 0.47302
  Prefactor  = 7.35136
  Prefactor  = 0.0001
  Prefactor  = 5.96462
  Prefactor  = 0.0001
  Prefactor  = 11.7887
  Prefactor  = 0.0001
  Prefactor  = 5.4083
  Prefactor  = 85.4318
  norm       = 11.5687
  Prefactor  = 36.6449
  norm       = 1.36411
  Prefactor  = 0.000100001
  norm       = 0.333926
  Prefactor  = 48.4694
  Prefactor  = 0.0001
  norm       = 4.69458
  Normalizat = 0.416166
  Prefactor  = 1.1549
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.862     FROM HESSE     STATUS=OK           327 CALLS     3174 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.688        45.150        .98094E-04   -1.4891    
   2  Prefactor     8.2768        8.0344        .13944E-03   -1.5132    
   3  Prefactor     .47302        31.992        .40884E-02   -1.5570    
   4  Prefactor     7.3514        17.352        .14800E-03   -1.5166    
   5  Prefactor     .10000E-03    5.7042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9646        14.446        .16436E-03   -1.5219    
   7  Prefactor     .10000E-03    27.153        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.789        12.696        .11673E-03   -1.5021    
   9  Prefactor     .10000E-03    38.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.4083        4.9041        .15070E-03   -1.5243    
  11  Prefactor     85.432        62.544        .21735E-03   -1.3857    
  12  norm          11.569        4.4982        .99257E-04   -1.5028    
  13  Prefactor     36.645        100.23        .33279E-03   -1.4497    
  14  norm          1.3641        .88449        .60384E-04   -1.5474    
  15  Prefactor     .10000E-03    11.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .33393        .65127        .21148E-03   -1.5592    
  17  Prefactor     48.469        26.263        .57615E-04   -1.4314    
  18  Prefactor     .10000E-03    2.6211        .13106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6946        13.686        .18602E-03   -1.5275    
  20  Normalizat    .41617        .23234        .43075E-03   -1.1647    
  21  Prefactor     1.1549        .14249        .17226E-03   -.87731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40055e-10
Minuit parameter uncertainties:
  1  45.2423
  2  8.03542
  3  7.78367
  4  17.3638
  5  4.8208e-06
  6  14.4549
  7  7.76545e-05
  8  12.699
  9  5.04185e-06
  10  4.90448
  11  62.5927
  12  4.49831
  13  100.693
  14  0.884496
  15  0.000178281
  16  0.651285
  17  26.2697
  18  1.80989e-06
  19  13.695
  20  0.232885
  21  0.142539
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  5.408e+00  4.904e+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.155e+00  1.425e-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:  4.162e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.54
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.42e-08 +/- 4.91e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.56e-05

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

Saving results to:
/scratch/kocevski/296818/likelihoodResults_331603201_331862401_4FGL_J2225.7-0457_daily_bin356.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) = 6874.7037127
delta logL = 0.15801988209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6874.69006969
delta logL = 0.1716628963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3854       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0340       1.0000          .0000       10.000    
     3 'Normalizat'    .37793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1720       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=   6874.690     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3839        49.003        .54976E-02    .13096E-02
   2  Index         3.0340        6.4834        .13399        .24848E-03
   3  Normalizat    .37797        .75236E-01    .10177        .11046E-04
   4  Prefactor     1.1719        .41398E-01    .35330E-01   -.11108E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.38387
  Index      = 3.034
  Normalizat = 0.377973
  Prefactor  = 1.17191
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.690     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3839        8.6411        .10297E-03   -1.5340    
   2  Index         3.0340        1.8938        .73369E-02   -.40411    
   3  Normalizat    .37797        .24059        .45093E-03   -1.1846    
   4  Prefactor     1.1719        .15084        .17111E-03   -.87200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91168e-10
Minuit parameter uncertainties:
  1  8.64425
  2  1.95193
  3  0.24125
  4  0.150898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/296818': 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) = 6874.69006932
delta logL = 0.171663264844

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  3.384e+00  8.644e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.034e+00  1.952e+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.172e+00  1.509e-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.780e-01  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 3.03 +/- 1.95
Photon Flux (Free Index): 8.27e-08 +/- 7.64e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.29e-05

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/296818/cmap_HighResolution_331603201_331862401_4FGL_J2225.7-0457_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='5.42e-08', energy_flux2='1.62e-05', photon_flux_error='4.91e-08', dlogl='1.72e-01', energy_flux='1.72e-05', photon_flux2='8.27e-08', job_status='DONE', time_completed='2021-09-28 11:21:02.293977', photon_index_error2='1.95', photon_index2='3.03', ts='2.54', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.29e-05', EG='0.42', time_epoch_completed='1632853262.29', return_code='0', job_id='296818', GAL2='1.17', EG2='0.38', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='7.64e-08', ts2='2.98', photon_index='2.43' WHERE bin_id='356' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:21:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 296818: <4FGL_J2225.7-0457_daily_bin356> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin356> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:10:17 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:10:19 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:10:19 2021
Terminated at Tue Sep 28 11:21:03 2021
Results reported at Tue Sep 28 11:21:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin356 336.432 -4.9537 331603201 331862401 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 :                                   627.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             385.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            646 sec.

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

