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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin617
RA = 336.432, Dec = -4.9537
tmin = 399254401, tmax = 399513601
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='298442', job_status='RUN', time_executed='2021-09-28 11:15:33.045279', time_epoch_executed='1632852933.05' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298442

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298442/ft1_4FGL_J2225.7-0457_daily_bin617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298442/ft2_4FGL_J2225.7-0457_daily_bin617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298442/ft1_4FGL_J2225.7-0457_daily_bin617.fits outfile=/scratch/kocevski/298442/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin617.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=399254401.0 tmax=399513601.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 5.32
user 5.09
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/298442/ft2_4FGL_J2225.7-0457_daily_bin617.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/298442/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin617.fits evtable="EVENTS" outfile="/scratch/kocevski/298442/ft1_filtered_4FGL_J2225.7-0457_daily_bin617.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/298442/ft1_filtered_4FGL_J2225.7-0457_daily_bin617.fits" evtable="EVENTS" scfile=/scratch/kocevski/298442/ft2_4FGL_J2225.7-0457_daily_bin617.fits sctable="SC_DATA" outfile=/scratch/kocevski/298442/ltcube_399254401_399513601_4FGL_J2225.7-0457_daily_bin617.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/298442/ft2_4FGL_J2225.7-0457_daily_bin617.fits
.....................!
real 12.40
user 12.07
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298442/ft1_filtered_4FGL_J2225.7-0457_daily_bin617.fits evtable="EVENTS" scfile=/scratch/kocevski/298442/ft2_4FGL_J2225.7-0457_daily_bin617.fits sctable="SC_DATA" expcube=/scratch/kocevski/298442/ltcube_399254401_399513601_4FGL_J2225.7-0457_daily_bin617.fits outfile=/scratch/kocevski/298442/expmap_399254401_399513601_4FGL_J2225.7-0457_daily_bin617.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/298442/ltcube_399254401_399513601_4FGL_J2225.7-0457_daily_bin617.fits
.....................!
real 192.82
user 187.72
sys 4.76

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/298442/ft1_filtered_4FGL_J2225.7-0457_daily_bin617.fits scfile=/scratch/kocevski/298442/ft2_4FGL_J2225.7-0457_daily_bin617.fits outfile=/scratch/kocevski/298442/cmap_399254401_399513601_4FGL_J2225.7-0457_daily_bin617.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298442/ft1_filtered_4FGL_J2225.7-0457_daily_bin617.fits scfile=/scratch/kocevski/298442/ft2_4FGL_J2225.7-0457_daily_bin617.fits outfile=/scratch/kocevski/298442/cmap_HighResolution_399254401_399513601_4FGL_J2225.7-0457_daily_bin617.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    5.0195       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7122       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.639       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.477       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4370       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.3568       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.141       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0845       1.0000         .10000E-03   10000.    
    19 'norm      '    14.064       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .63854       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0350       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=   9423.215     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2211 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9906       -.39251E-06** at limit **
   2  Prefactor     5.0196        4.0523       -.42353E-07   -.38979E-03
   3  Prefactor     9.7117        7.2211        .11877E-06    .36283E-05
   4  Prefactor     .10000E-03    13.547        .53454E-07** at limit **
   5  Prefactor     .10000E-03    7.4217        .69320E-06** at limit **
   6  Prefactor     .10000E-03    6.8411       -.22271E-06** at limit **
   7  Prefactor     23.639        9.9384        .14663E-06    .10985E-03
   8  Prefactor     .10000E-03    3.9282       -.19733E-07** at limit **
   9  Prefactor     58.474        53.098       -.52311E-06   -.47746E-04
  10  Prefactor     3.4365        3.2179        .20868E-06   -.21295E-03
  11  Prefactor     .10005E-03    108.54       -.10594E-04** at limit **
  12  norm          4.3567        2.6476        .68403E-07   -.17061E-03
  13  Prefactor     .10004E-03    101.57        .92227E-05** at limit **
  14  norm          .10000E-03    .32073        .12401E-07** at limit **
  15  Prefactor     .10000E-03    3.4455       -.17581E-07** at limit **
  16  norm          .10000E-03    .24006       -.86544E-08** at limit **
  17  Prefactor     26.140        17.209       -.38414E-06   -.28807E-04
  18  Prefactor     5.0846        7.2448        .30798E-05   -.62999E-03
  19  norm          14.064        10.929        .22305E-06    .63713E-04
  20  Normalizat    .63856        .16179       -.28328E-06   -.35735E-04
  21  Prefactor     1.0350        .99033E-01   -.12027E-06   -.25126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.01959
  Prefactor  = 9.71172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6387
  Prefactor  = 0.0001
  Prefactor  = 58.4736
  Prefactor  = 3.43652
  Prefactor  = 0.000100046
  norm       = 4.35668
  Prefactor  = 0.000100036
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.1404
  Prefactor  = 5.08455
  norm       = 14.064
  Normalizat = 0.638557
  Prefactor  = 1.03496
 **********
 **   18 **HESSE 
 **********

 FCN=   9423.215     FROM HESSE     STATUS=OK           317 CALLS     2528 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.0196        4.0691        .16801E-03   -1.5260    
   3  Prefactor     9.7117        7.2177        .12859E-03   -1.5085    
   4  Prefactor     .10000E-03    13.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.8908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.639        9.9635        .82387E-04   -1.4735    
   8  Prefactor     .10000E-03    3.9515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     58.474        53.118        .52464E-04   -1.4177    
  10  Prefactor     3.4365        3.2051        .15841E-03   -1.5337    
  11  Prefactor     .10005E-03    118.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3567        2.6412        .11547E-03   -1.5290    
  13  Prefactor     .10004E-03    109.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .72227        .10634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.4553        .17579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .24341        .92050E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.140        17.071        .78351E-04   -1.4685    
  18  Prefactor     5.0846        7.5781        .89156E-03   -1.5257    
  19  norm          14.064        10.931        .10680E-03   -1.4958    
  20  Normalizat    .63856        .18596        .33009E-03   -1.0637    
  21  Prefactor     1.0350        .11494        .17144E-03   -.91573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28728e-09
Minuit parameter uncertainties:
  1  4.85008e-05
  2  4.06934
  3  7.21838
  4  5.75982e-06
  5  7.81525e-05
  6  2.78526e-05
  7  9.96423
  8  1.69624e-06
  9  53.1607
  10  3.20522
  11  0.00466642
  12  2.6413
  13  0.00398234
  14  3.15284e-06
  15  3.53814e-08
  16  1.06221e-07
  17  17.0743
  18  7.57948
  19  10.9324
  20  0.186142
  21  0.114969
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  3.437e+00  3.205e+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.035e+00  1.150e-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:  6.386e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.45e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.02e-05

TS (Fixed Index): 1.50
Ra Dec: 336.432 -4.954
Photon Flux Upper Limit: 9.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/298442/likelihoodResults_399254401_399513601_4FGL_J2225.7-0457_daily_bin617.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) = 9423.15518664
delta logL = 0.0594112659583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9423.14982715
delta logL = 0.0647707523967

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3953       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8522       1.0000          .0000       10.000    
     3 'Normalizat'    .62160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0429       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=   9423.150     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      245 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3907        32.773        .66150E-02    .15170E-02
   2  Index         2.8519        2.9863        .22468        .16591E-03
   3  Normalizat    .62127        .38673E-01    .75531E-01   -.37094E-04
   4  Prefactor     1.0431        .24028E-01    .40343E-01   -.13516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.39065
  Index      = 2.85187
  Normalizat = 0.62127
  Prefactor  = 1.04308
 **********
 **   18 **HESSE 
 **********

 FCN=   9423.150     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3907        8.1310        .12342E-03   -1.5399    
   2  Index         2.8519        2.4250        .77771E-02   -.44408    
   3  Normalizat    .62127        .19567        .33438E-03   -1.0709    
   4  Prefactor     1.0431        .12417        .17086E-03   -.91307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66451e-10
Minuit parameter uncertainties:
  1  8.13472
  2  2.55997
  3  0.195893
  4  0.124207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298442': 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) = 9423.14981987
delta logL = 0.0647780325944

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.391e+00  8.135e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  2.852e+00  2.560e+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.043e+00  1.242e-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:  6.213e-01  1.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 2.85 +/- 2.56
Photon Flux (Free Index): 4.42e-08 +/- 4.59e-08
Energy Flux (Free Index): 9.57e-06 +/- 1.28e-05

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/298442/cmap_HighResolution_399254401_399513601_4FGL_J2225.7-0457_daily_bin617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.73e-03', comment='SUCCESS', photon_flux='3.45e-08', energy_flux2='9.57e-06', photon_flux_error='3.21e-08', dlogl='6.48e-02', energy_flux='1.09e-05', photon_flux2='4.42e-08', job_status='DONE', time_completed='2021-09-28 11:27:46.038282', photon_index_error2='2.56', photon_index2='2.85', ts='1.50', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='9.99e-08', energy_flux_error2='1.28e-05', EG='0.64', time_epoch_completed='1632853666.04', return_code='0', job_id='298442', GAL2='1.04', EG2='0.62', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.59e-08', ts2='1.65', photon_index='2.43' WHERE bin_id='617' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:27:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 298442: <4FGL_J2225.7-0457_daily_bin617> in cluster <slac> Done

Job <4FGL_J2225.7-0457_daily_bin617> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:15:20 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:15:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:15:22 2021
Terminated at Tue Sep 28 11:27:46 2021
Results reported at Tue Sep 28 11:27:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin617 336.432 -4.9537 399254401 399513601 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 :                                   731.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             345.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            746 sec.

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

