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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1475
RA = 336.414, Dec = 21.3418
tmin = 621648001, tmax = 621907201
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='293713', job_status='RUN', time_executed='2021-09-28 11:04:46.349315', time_epoch_executed='1632852286.35' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293713

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293713/ft1_4FGL_J2225.6+2120_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293713/ft2_4FGL_J2225.6+2120_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293713/ft1_4FGL_J2225.6+2120_daily_bin1475.fits outfile=/scratch/kocevski/293713/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1475.fits ra=336.414 dec=21.3418 rad=12.0 tmin=621648001.0 tmax=621907201.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.29
user 5.05
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/293713/ft2_4FGL_J2225.6+2120_daily_bin1475.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293713/ft2_4FGL_J2225.6+2120_daily_bin1475.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/293713/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1475.fits evtable="EVENTS" outfile="/scratch/kocevski/293713/ft1_filtered_4FGL_J2225.6+2120_daily_bin1475.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293713/ft1_filtered_4FGL_J2225.6+2120_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/293713/ft2_4FGL_J2225.6+2120_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/293713/ltcube_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.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/293713/ft2_4FGL_J2225.6+2120_daily_bin1475.fits
.....................!
real 12.45
user 12.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293713/ft1_filtered_4FGL_J2225.6+2120_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/293713/ft2_4FGL_J2225.6+2120_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/293713/ltcube_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.fits outfile=/scratch/kocevski/293713/expmap_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.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/293713/ltcube_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.fits
.....................!
real 191.61
user 186.72
sys 4.51

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J2225.6+2120 @ 336.414 21.3418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/293713/ft1_filtered_4FGL_J2225.6+2120_daily_bin1475.fits scfile=/scratch/kocevski/293713/ft2_4FGL_J2225.6+2120_daily_bin1475.fits outfile=/scratch/kocevski/293713/cmap_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.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.414 yref=21.3418 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293713/ft1_filtered_4FGL_J2225.6+2120_daily_bin1475.fits scfile=/scratch/kocevski/293713/ft2_4FGL_J2225.6+2120_daily_bin1475.fits outfile=/scratch/kocevski/293713/cmap_HighResolution_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.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.414 yref=21.3418 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/293713/ft1_filtered_4FGL_J2225.6+2120_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/293713/ft2_4FGL_J2225.6+2120_daily_bin1475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293713/Model_4FGL_J2225.6+2120_daily_bin1475.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/293713/ft1_filtered_4FGL_J2225.6+2120_daily_bin1475.fits.....................!
real 68.48
user 67.12
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293713/ft1_filtered_4FGL_J2225.6+2120_daily_bin1475.fits', '/scratch/kocevski/293713/ft2_4FGL_J2225.6+2120_daily_bin1475.fits', expMap='/scratch/kocevski/293713/expmap_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.fits', expCube='/scratch/kocevski/293713/ltcube_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293713/Model_4FGL_J2225.6+2120_daily_bin1475.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2225.6+2120'

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.284e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/293713/ft1_filtered_4FGL_J2225.6+2120_daily_bin1475.fits
Spacecraft file(s): /scratch/kocevski/293713/ft2_4FGL_J2225.6+2120_daily_bin1475.fits
Exposure map: /scratch/kocevski/293713/expmap_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.fits
Exposure cube: /scratch/kocevski/293713/ltcube_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293713/Model_4FGL_J2225.6+2120_daily_bin1475.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) = 6662.16032656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10348E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6358       1.0000         .10000E-03   10000.    
     4 'norm      '    .11202E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8296       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.019       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54589       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6660       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1162       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3677       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7491       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10815E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42648       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36881       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71886       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0491       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6662.128     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2947 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.183       -.22174E-05** at limit **
   2  norm          .10000E-03    .99583       -.18152E-06** at limit **
   3  Prefactor     1.4947        111.65        .39718E-04   -.57305E-04
   4  norm          .10000E-03    .72119        .10350E-06** at limit **
   5  Prefactor     .10000E-03    39.268       -.18219E-04** at limit **
   6  norm          .10000E-03    .32427       -.43333E-07** at limit **
   7  Prefactor     4.8315        15.873        .12907E-05   -.65024E-04
   8  norm          .10000E-03    1.7178       -.64274E-07** at limit **
   9  Prefactor     .10000E-03    21.609       -.69231E-05** at limit **
  10  Prefactor     .10000E-03    46.390        .20739E-04** at limit **
  11  Prefactor     13.002        19.522       -.29148E-06   -.27637E-04
  12  Prefactor     .54589        .20866        .10079E-07    .38771E-03
  13  Prefactor     4.6717        6.0470       -.20414E-06   -.47512E-05
  14  norm          3.1159        1.5489        .53867E-07   -.19281E-03
  15  Prefactor     .10000E-03    13.063       -.23882E-07** at limit **
  16  norm          1.3670        1.8283       -.10753E-06   -.61233E-03
  17  Prefactor     .10000E-03    23.231        .95154E-05** at limit **
  18  Prefactor     2.7611        9.8005        .18366E-05   -.14137E-03
  19  Prefactor     .10000E-03    10.102        .79724E-05** at limit **
  20  Prefactor     .42630        .19191        .22613E-07   -.94152E-03
  21  Prefactor     .17823        11.329       -.18760E-05    .38587E-03
  22  Prefactor     .10000E-03    10.047       -.75468E-05** at limit **
  23  Prefactor     .10000E-03    29.977        .13847E-05** at limit **
  24  Normalizat    .71890        .26714       -.17113E-05    .21245E-04
  25  Prefactor     1.0492        .12202       -.23701E-06    .14107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.49474
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.83146
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0021
  Prefactor  = 0.545889
  Prefactor  = 4.67174
  norm       = 3.11592
  Prefactor  = 0.0001
  norm       = 1.36704
  Prefactor  = 0.0001
  Prefactor  = 2.76106
  Prefactor  = 0.0001
  Prefactor  = 0.426303
  Prefactor  = 0.178232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.7189
  Prefactor  = 1.04925
 **********
 **   18 **HESSE 
 **********

 FCN=   6662.128     FROM HESSE     STATUS=OK           435 CALLS     3382 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0226        .15888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4947        108.60        .33050E-03   -1.5463    
   4  norm          .10000E-03    5.0421        .13329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .40850        .90218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8315        15.811        .18305E-03   -1.5268    
   8  norm          .10000E-03    1.7210        .10445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.092        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    46.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.002        19.692        .11101E-03   -1.4987    
  12  Prefactor     .54589        .20792        .22017E-04   -1.5560    
  13  Prefactor     4.6717        6.0447        .18631E-03   -1.5276    
  14  norm          3.1159        1.5433        .68209E-04   -1.5355    
  15  Prefactor     .10000E-03    13.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3670        1.7940        .12221E-03   -1.5474    
  17  Prefactor     .10000E-03    23.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7611        9.7178        .24553E-03   -1.5376    
  19  Prefactor     .10000E-03    10.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .42630        .18950        .22276E-04   -1.5577    
  21  Prefactor     .17823        17.845        .78433E-01   -1.5624    
  22  Prefactor     .10000E-03    10.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .71890        .30820        .40683E-03   -1.0315    
  25  Prefactor     1.0492        .14263        .16976E-03   -.91105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03134e-09
Minuit parameter uncertainties:
  1  9.12501e-05
  2  2.26035e-05
  3  25.5287
  4  1.6146e-05
  5  1.93091e-05
  6  4.94339e-06
  7  15.8245
  8  9.14837e-07
  9  0.000131283
  10  6.42935e-06
  11  19.7019
  12  0.207922
  13  6.04546
  14  1.54334
  15  6.27481e-06
  16  1.79404
  17  3.62966e-06
  18  9.72339
  19  1.53366e-06
  20  0.189496
  21  3.56693
  22  2.13597e-05
  23  5.25164e-05
  24  0.30895
  25  0.142678
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.300e+01  1.970e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.049e+00  1.427e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  7.189e-01  3.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 2.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.63e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293713/likelihoodResults_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.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) = 6661.50509396
delta logL = 0.622995193593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6661.50245998
delta logL = 0.625629167631

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4047       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9027       1.0000          .0000       10.000    
     3 'Normalizat'    .62082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0816       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6661.502     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      321 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4175        17.641        .65340E-03    .16148E-03
   2  Index         3.9024        1.4187        .74227E-02    .36349E-03
   3  Normalizat    .62002        .30440        .43608E-03    .10793E-04
   4  Prefactor     1.0820        .14476        .16742E-03    .32119E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.41746
  Index      = 3.90235
  Normalizat = 0.62002
  Prefactor  = 1.08195
 **********
 **   18 **HESSE 
 **********

 FCN=   6661.502     FROM HESSE     STATUS=OK            27 CALLS      348 TOTAL
                     EDM=   .69E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4175        13.922        .13068E-03   -1.5094    
   2  Index         3.9024        1.1236        .14845E-02   -.22133    
   3  Normalizat    .62002        .30498        .17443E-04   -1.0714    
   4  Prefactor     1.0820        .14495        .66969E-05   -.90045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91988e-13
Minuit parameter uncertainties:
  1  13.9269
  2  1.1338
  3  0.30581
  4  0.145003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293713': 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) = 6661.50245603
delta logL = 0.625633122136

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  9.417e+00  1.393e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.902e+00  1.134e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.082e+00  1.450e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  6.200e-01  3.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 336.414 21.342
Photon Index (Free Index): 3.90 +/- 1.13
Photon Flux (Free Index): 1.28e-07 +/- 1.07e-07
Energy Flux (Free Index): 1.96e-05 +/- 1.62e-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/293713/cmap_HighResolution_621648001_621907201_4FGL_J2225.6+2120_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', comment='SUCCESS', energy_flux2='1.96e-05', dlogl='6.26e-01', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-28 11:16:33.243157', photon_index_error2='1.13', photon_index2='3.90', ts='0.58', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='2.06e-07', energy_flux_error2='1.62e-05', EG='0.72', time_epoch_completed='1632852993.24', return_code='0', job_id='293713', GAL2='1.08', EG2='0.62', return_code2='0', photon_flux_error2='1.07e-07', ts2='2.10', photon_index='2.81' WHERE bin_id='1475' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 293713: <4FGL_J2225.6+2120_daily_bin1475> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1475> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:00:41 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:00:43 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:00:43 2021
Terminated at Tue Sep 28 11:16:34 2021
Results reported at Tue Sep 28 11:16:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1475 336.414 21.3418 621648001 621907201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2225.6+2120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   703.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

