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


Performing analysis on: 4FGL_J2225.7-0457_daily_bin1330
RA = 336.432, Dec = -4.9537
tmin = 584064001, tmax = 584323201
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='300665', job_status='RUN', time_executed='2021-09-28 11:23:17.426591', time_epoch_executed='1632853397.43' WHERE source_name='4FGL J2225.7-0457' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300665/ft1_4FGL_J2225.7-0457_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300665/ft2_4FGL_J2225.7-0457_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300665/ft1_4FGL_J2225.7-0457_daily_bin1330.fits outfile=/scratch/kocevski/300665/ft1_filteredMKT_4FGL_J2225.7-0457_daily_bin1330.fits ra=336.432 dec=-4.9537 rad=12.0 tmin=584064001.0 tmax=584323201.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.83
user 4.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300665/ft1_filtered_4FGL_J2225.7-0457_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/300665/ft2_4FGL_J2225.7-0457_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/300665/ltcube_584064001_584323201_4FGL_J2225.7-0457_daily_bin1330.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/300665/ft2_4FGL_J2225.7-0457_daily_bin1330.fits
.....................!
real 11.68
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300665/ft1_filtered_4FGL_J2225.7-0457_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/300665/ft2_4FGL_J2225.7-0457_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/300665/ltcube_584064001_584323201_4FGL_J2225.7-0457_daily_bin1330.fits outfile=/scratch/kocevski/300665/expmap_584064001_584323201_4FGL_J2225.7-0457_daily_bin1330.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/300665/ltcube_584064001_584323201_4FGL_J2225.7-0457_daily_bin1330.fits
.....................!
real 190.57
user 185.13
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/300665/ft1_filtered_4FGL_J2225.7-0457_daily_bin1330.fits scfile=/scratch/kocevski/300665/ft2_4FGL_J2225.7-0457_daily_bin1330.fits outfile=/scratch/kocevski/300665/cmap_584064001_584323201_4FGL_J2225.7-0457_daily_bin1330.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300665/ft1_filtered_4FGL_J2225.7-0457_daily_bin1330.fits scfile=/scratch/kocevski/300665/ft2_4FGL_J2225.7-0457_daily_bin1330.fits outfile=/scratch/kocevski/300665/cmap_HighResolution_584064001_584323201_4FGL_J2225.7-0457_daily_bin1330.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300665/ft1_filtered_4FGL_J2225.7-0457_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/300665/ft2_4FGL_J2225.7-0457_daily_bin1330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300665/Model_4FGL_J2225.7-0457_daily_bin1330.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/300665/ft1_filtered_4FGL_J2225.7-0457_daily_bin1330.fits.....................!
real 75.43
user 73.61
sys 1.58

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    6.8328       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .79295E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.383       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12705E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9106       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.084       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0009       1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.309       1.0000         .10000E-03   10000.    
    16 'norm      '    8.7631       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    12.438       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .94439       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0299       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=   8748.037     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2227 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.941       -.24220E-06** at limit **
   2  Prefactor     6.8321        5.5601       -.44909E-06   -.21182E-03
   3  Prefactor     .10000E-03    7.2452       -.85334E-07** at limit **
   4  Prefactor     .10000E-03    32.943       -.20919E-04** at limit **
   5  Prefactor     .10000E-03    8.6702       -.41622E-06** at limit **
   6  Prefactor     .10000E-03    8.9931        .21224E-07** at limit **
   7  Prefactor     23.381        10.925       -.38879E-06   -.37378E-04
   8  Prefactor     .10001E-03    6.4905        .22666E-06** at limit **
   9  Prefactor     .10000E-03    30.560        .14664E-04** at limit **
  10  Prefactor     4.9136        4.3409       -.48685E-06   -.69169E-03
  11  Prefactor     40.051        69.149       -.39151E-04   -.12811E-04
  12  norm          .10000E-03    1.1449       -.32147E-07** at limit **
  13  Prefactor     .10000E-03    41.947        .21664E-04** at limit **
  14  norm          1.0012        .79538        .48405E-06    .81378E-03
  15  Prefactor     57.338        36.984        .69220E-05   -.98968E-05
  16  norm          8.7598        3.2370       -.13047E-05    .19910E-02
  17  Prefactor     .10000E-03    38.383       -.15262E-04** at limit **
  18  Prefactor     .10000E-03    3.0660       -.13245E-07** at limit **
  19  norm          12.437        9.8373       -.12211E-05   -.35730E-04
  20  Normalizat    .94435        .19352        .12257E-05    .54958E-04
  21  Prefactor     1.0300        .11776        .48045E-06    .15251E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.83205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 23.3812
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 4.91364
  Prefactor  = 40.0506
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00122
  Prefactor  = 57.3376
  norm       = 8.7598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4367
  Normalizat = 0.944351
  Prefactor  = 1.03004
 **********
 **   18 **HESSE 
 **********

 FCN=   8748.037     FROM HESSE     STATUS=OK           325 CALLS     2552 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.8321        5.5602        .15349E-03   -1.5185    
   3  Prefactor     .10000E-03    7.3230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2251        .88990E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.0262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.381        10.942        .82837E-04   -1.4741    
   8  Prefactor     .10001E-03    31.053        .42639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9136        4.1306        .16432E-03   -1.5265    
  11  Prefactor     40.051        69.157        .63311E-04   -1.4441    
  12  norm          .10000E-03    1.1655        .97665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0012        .76674        .69530E-03   -1.5508    
  15  Prefactor     57.338        39.604        .52992E-04   -1.4192    
  16  norm          8.7598        3.4648        .52231E-04   -1.5116    
  17  Prefactor     .10000E-03    38.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0730        .15994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          12.437        9.8457        .11358E-03   -1.5003    
  20  Normalizat    .94435        .22647        .33033E-03   -.94919    
  21  Prefactor     1.0300        .13890        .20184E-03   -.91735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06096e-09
Minuit parameter uncertainties:
  1  5.72609e-06
  2  5.56062
  3  1.20851e-05
  4  7.18812e-05
  5  0.000355449
  6  7.11191e-06
  7  10.9425
  8  0.00093795
  9  9.08119e-06
  10  4.13085
  11  69.2958
  12  3.54646e-06
  13  2.84786e-05
  14  0.766747
  15  39.6225
  16  3.46488
  17  0.000150042
  18  2.08982e-06
  19  9.84699
  20  0.226699
  21  0.138948
Done.

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

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  4.914e+00  4.131e+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.030e+00  1.389e-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.444e-01  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 336.432 -4.954
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/300665/likelihoodResults_584064001_584323201_4FGL_J2225.7-0457_daily_bin1330.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) = 8747.68970473
delta logL = 0.347582125194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8747.68451974
delta logL = 0.352767110478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4324       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7685       1.0000          .0000       10.000    
     3 'Normalizat'    .97566       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0185       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=   8747.685     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      217 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4157        11.135        .43101E-02    .37934E-03
   2  Index         1.7666        .92934        .27319       -.68920E-04
   3  Normalizat    .97535        .18759        .73563E-01    .10723E-03
   4  Prefactor     1.0187        .11985        .42288E-01    .11306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.41574
  Index      = 1.76658
  Normalizat = 0.975352
  Prefactor  = 1.01874
 **********
 **   18 **HESSE 
 **********

 FCN=   8747.685     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4157        5.8147        .17241E-03   -1.5242    
   2  Index         1.7666        .71675        .93749E-02   -.70323    
   3  Normalizat    .97535        .21739        .32550E-03   -.93861    
   4  Prefactor     1.0187        .13812        .20276E-03   -.92108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90208e-09
Minuit parameter uncertainties:
  1  5.81533
  2  0.721041
  3  0.217589
  4  0.138169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300665': 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) = 8747.68451374
delta logL = 0.352773111192

Extracting fit parameters...

4FGL J2225.7-0457
   Spectrum: PowerLaw
236    Prefactor:  5.416e+00  5.815e+00  1.000e-04  1.000e+04 ( 1.000e-12)
237        Index:  1.767e+00  7.210e-01  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.019e+00  1.382e-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.754e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 336.432 -4.954
Photon Index (Free Index): 1.77 +/- 0.72
Photon Flux (Free Index): 2.61e-08 +/- 3.84e-08
Energy Flux (Free Index): 3.46e-05 +/- 4.65e-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/300665/cmap_HighResolution_584064001_584323201_4FGL_J2225.7-0457_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='3.46e-05', photon_flux_error='4.14e-08', dlogl='3.53e-01', energy_flux='1.56e-05', photon_flux2='2.61e-08', job_status='DONE', time_completed='2021-09-28 11:34:38.614482', photon_index_error2='0.72', photon_index2='1.77', ts='1.90', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='4.65e-05', EG='0.94', time_epoch_completed='1632854078.61', return_code='0', job_id='300665', GAL2='1.02', EG2='0.98', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='3.84e-08', ts2='2.58', photon_index='2.43' WHERE bin_id='1330' AND source_name='4FGL J2225.7-0457' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:34:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 300665: <4FGL_J2225.7-0457_daily_bin1330> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.7-0457_daily_bin1330 336.432 -4.9537 584064001 584323201 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 :                                   678.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             303.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

