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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin756
RA = 336.432, Dec = -4.9537
tmin = 435283201, tmax = 435542401
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='298647', job_status='RUN', time_executed='2021-09-28 11:15:52.753708', time_epoch_executed='1632852952.75' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298647

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298647/ft1_4FGL_J2225.7-0457_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298647/ft2_4FGL_J2225.7-0457_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298647/ft1_4FGL_J2225.7-0457_daily_bin756.fits outfile=/scratch/kocevski/298647/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin756.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=435283201.0 tmax=435542401.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.31
user 4.97
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/298647/ft1_filtered_4FGL_J2225.7-0457_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/298647/ft2_4FGL_J2225.7-0457_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/298647/ltcube_435283201_435542401_4FGL_J2225.7-0457_daily_bin756.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/298647/ft2_4FGL_J2225.7-0457_daily_bin756.fits
.....................!
real 12.32
user 11.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298647/ft1_filtered_4FGL_J2225.7-0457_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/298647/ft2_4FGL_J2225.7-0457_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/298647/ltcube_435283201_435542401_4FGL_J2225.7-0457_daily_bin756.fits outfile=/scratch/kocevski/298647/expmap_435283201_435542401_4FGL_J2225.7-0457_daily_bin756.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/298647/ltcube_435283201_435542401_4FGL_J2225.7-0457_daily_bin756.fits
.....................!
real 191.65
user 187.32
sys 4.01

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/298647/ft1_filtered_4FGL_J2225.7-0457_daily_bin756.fits scfile=/scratch/kocevski/298647/ft2_4FGL_J2225.7-0457_daily_bin756.fits outfile=/scratch/kocevski/298647/cmap_435283201_435542401_4FGL_J2225.7-0457_daily_bin756.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298647/ft1_filtered_4FGL_J2225.7-0457_daily_bin756.fits scfile=/scratch/kocevski/298647/ft2_4FGL_J2225.7-0457_daily_bin756.fits outfile=/scratch/kocevski/298647/cmap_HighResolution_435283201_435542401_4FGL_J2225.7-0457_daily_bin756.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/298647/ft1_filtered_4FGL_J2225.7-0457_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/298647/ft2_4FGL_J2225.7-0457_daily_bin756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/298647/Model_4FGL_J2225.7-0457_daily_bin756.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/298647/ft1_filtered_4FGL_J2225.7-0457_daily_bin756.fits.....................!
real 64.39
user 63.11
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6776       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6200       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.1925       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24571E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9872       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.9915       1.0000         .10000E-03   10000.    
    13 'Prefactor '    81.480       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10659E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12686E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.830       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.561       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0698       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92393       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=   6414.155     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2226 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.667        .16621E-06** at limit **
   2  Prefactor     5.6784        5.8607       -.17273E-06   -.77273E-04
   3  Prefactor     .10000E-03    4.1101        .27229E-06** at limit **
   4  Prefactor     3.6164        15.470       -.47776E-05   -.29363E-03
   5  Prefactor     14.979        12.178       -.19851E-06   -.32403E-04
   6  Prefactor     .10000E-03    10.311        .34785E-06** at limit **
   7  Prefactor     9.1921        15.105       -.26260E-06   -.19962E-04
   8  Prefactor     .10056E-03    15.471       -.32984E-05** at limit **
   9  Prefactor     .10000E-03    28.124        .51753E-07** at limit **
  10  Prefactor     2.9876        4.7355       -.79321E-06   -.12693E-03
  11  Prefactor     .10000E-03    46.570        .10434E-05** at limit **
  12  norm          4.9895        5.3727       -.10719E-06   -.48336E-04
  13  Prefactor     81.625        97.465       -.25395E-05   -.12246E-03
  14  norm          .10000E-03    .54571        .39401E-06** at limit **
  15  Prefactor     .10000E-03    59.438       -.20208E-05** at limit **
  16  norm          .10000E-03    1.8672        .99897E-07** at limit **
  17  Prefactor     49.944        54.491        .11163E-05    .14079E-03
  18  Prefactor     .10000E-03    8.5981       -.28319E-07** at limit **
  19  norm          21.565        15.477       -.48132E-07   -.68295E-05
  20  Normalizat    1.0696        .23383        .13074E-05    .31340E-04
  21  Prefactor     .92402        .12841       -.65468E-06    .10729E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.67839
  Prefactor  = 0.0001
  Prefactor  = 3.61635
  Prefactor  = 14.9789
  Prefactor  = 0.0001
  Prefactor  = 9.19211
  Prefactor  = 0.000100561
  Prefactor  = 0.0001
  Prefactor  = 2.98758
  Prefactor  = 0.000100001
  norm       = 4.98954
  Prefactor  = 81.6246
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 49.9437
  Prefactor  = 0.0001
  norm       = 21.5653
  Normalizat = 1.06964
  Prefactor  = 0.924016
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.155     FROM HESSE     STATUS=OK           321 CALLS     2547 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6784        5.8577        .16858E-03   -1.5231    
   3  Prefactor     .10000E-03    4.1279        .15863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6164        16.087        .10618E-02   -1.5328    
   5  Prefactor     14.979        12.175        .10347E-03   -1.4934    
   6  Prefactor     .10000E-03    10.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.1921        15.155        .13219E-03   -1.5102    
   8  Prefactor     .10056E-03    54.361        .37740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.9876        4.5669        .19786E-03   -1.5362    
  11  Prefactor     .10000E-03    46.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.9895        5.3696        .17437E-03   -1.5261    
  13  Prefactor     81.625        99.064        .22248E-03   -1.3899    
  14  norm          .10000E-03    .93318        .10979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    59.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8863        .16187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     49.944        53.966        .28405E-03   -1.4293    
  18  Prefactor     .10000E-03    8.6021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.565        15.476        .86261E-04   -1.4779    
  20  Normalizat    1.0696        .27463        .30964E-03   -.90733    
  21  Prefactor     .92402        .15296        .19404E-03   -.95307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11764e-08
Minuit parameter uncertainties:
  1  2.46078e-05
  2  5.85833
  3  2.41723e-05
  4  15.2613
  5  12.1766
  6  5.5953e-05
  7  15.1611
  8  0.0110508
  9  1.73712e-06
  10  4.5674
  11  0.000387781
  12  5.37008
  13  99.2651
  14  8.56761e-07
  15  0.000599295
  16  5.77099e-05
  17  54.0184
  18  9.84264e-07
  19  15.4793
  20  0.274993
  21  0.153033
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  2.988e+00  4.567e+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:  9.240e-01  1.530e-01  0.000e+00  1.000e+01 ( 1.000e+00)
474        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
475        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
472   Normalization:  1.070e+00  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/298647/likelihoodResults_435283201_435542401_4FGL_J2225.7-0457_daily_bin756.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) = 6413.41248268
delta logL = 0.742375993997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6413.38566165
delta logL = 0.769197018702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0204       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9923       1.0000          .0000       10.000    
     3 'Normalizat'    .96391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96448       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=   6413.386     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      254 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0204        9.5987        .12749E-01    .19552E-02
   2  Index         3.9924        2.6150        .15356        .67627E-04
   3  Normalizat    .96391        .50078E-01    .73218E-01   -.93166E-04
   4  Prefactor     .96447        .29560E-01    .45822E-01   -.20270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.02042
  Index      = 3.99237
  Normalizat = 0.96391
  Prefactor  = 0.96447
 **********
 **   18 **HESSE 
 **********

 FCN=   6413.386     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      285 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0204        25.980        .57736E-04   -1.5506    
   2  Index         3.9924        6.9756        .52468E-02   -.20292    
   3  Normalizat    .96391        .26287        .32398E-03   -.94250    
   4  Prefactor     .96447        .15587        .19031E-03   -.93923    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.2988e-08
Minuit parameter uncertainties:
  1  10.3021
  2  6.07035
  3  0.263219
  4  0.155941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298647': 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) = 6413.38566162
delta logL = 0.769197051698

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  1.020e+00  1.030e+01  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  3.992e+00  6.070e+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:  9.645e-01  1.559e-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:  9.639e-01  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 3.99 +/- 6.07
Photon Flux (Free Index): 1.21e-07 +/- 9.85e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.85e-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/298647/cmap_HighResolution_435283201_435542401_4FGL_J2225.7-0457_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='1.81e-05', dlogl='7.69e-01', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-28 11:25:43.614765', photon_index_error2='6.07', photon_index2='3.99', ts='0.61', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='1.85e-05', EG='1.07', time_epoch_completed='1632853543.61', return_code='0', job_id='298647', GAL2='0.96', EG2='0.96', return_code2='102', photon_flux_error2='9.85e-08', ts2='2.34', photon_index='2.43' WHERE bin_id='756' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:25:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 298647: <4FGL_J2225.7-0457_daily_bin756> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin756 336.432 -4.9537 435283201 435542401 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 :                                   588.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   606 sec.
    Turnaround time :                            608 sec.

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

