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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1484
RA = 336.414, Dec = 21.3418
tmin = 623980801, tmax = 624240001
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='293770', job_status='RUN', time_executed='2021-09-28 11:03:34.798064', time_epoch_executed='1632852214.8' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293770/ft1_4FGL_J2225.6+2120_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293770/ft2_4FGL_J2225.6+2120_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293770/ft1_4FGL_J2225.6+2120_daily_bin1484.fits outfile=/scratch/kocevski/293770/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1484.fits ra=336.414 dec=21.3418 rad=12.0 tmin=623980801.0 tmax=624240001.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.01
user 3.75
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293770/ft2_4FGL_J2225.6+2120_daily_bin1484.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/293770/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1484.fits evtable="EVENTS" outfile="/scratch/kocevski/293770/ft1_filtered_4FGL_J2225.6+2120_daily_bin1484.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.50
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293770/ft1_filtered_4FGL_J2225.6+2120_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/293770/ft2_4FGL_J2225.6+2120_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/293770/ltcube_623980801_624240001_4FGL_J2225.6+2120_daily_bin1484.fits outfile=/scratch/kocevski/293770/expmap_623980801_624240001_4FGL_J2225.6+2120_daily_bin1484.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/293770/ltcube_623980801_624240001_4FGL_J2225.6+2120_daily_bin1484.fits
.....................!
real 190.64
user 185.29
sys 4.96

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/293770/ft1_filtered_4FGL_J2225.6+2120_daily_bin1484.fits scfile=/scratch/kocevski/293770/ft2_4FGL_J2225.6+2120_daily_bin1484.fits outfile=/scratch/kocevski/293770/cmap_623980801_624240001_4FGL_J2225.6+2120_daily_bin1484.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293770/ft1_filtered_4FGL_J2225.6+2120_daily_bin1484.fits scfile=/scratch/kocevski/293770/ft2_4FGL_J2225.6+2120_daily_bin1484.fits outfile=/scratch/kocevski/293770/cmap_HighResolution_623980801_624240001_4FGL_J2225.6+2120_daily_bin1484.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.56
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293770/ft1_filtered_4FGL_J2225.6+2120_daily_bin1484.fits', '/scratch/kocevski/293770/ft2_4FGL_J2225.6+2120_daily_bin1484.fits', expMap='/scratch/kocevski/293770/expmap_623980801_624240001_4FGL_J2225.6+2120_daily_bin1484.fits', expCube='/scratch/kocevski/293770/ltcube_623980801_624240001_4FGL_J2225.6+2120_daily_bin1484.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293770/Model_4FGL_J2225.6+2120_daily_bin1484.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/293770/ft1_filtered_4FGL_J2225.6+2120_daily_bin1484.fits
Spacecraft file(s): /scratch/kocevski/293770/ft2_4FGL_J2225.6+2120_daily_bin1484.fits
Exposure map: /scratch/kocevski/293770/expmap_623980801_624240001_4FGL_J2225.6+2120_daily_bin1484.fits
Exposure cube: /scratch/kocevski/293770/ltcube_623980801_624240001_4FGL_J2225.6+2120_daily_bin1484.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293770/Model_4FGL_J2225.6+2120_daily_bin1484.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) = 8352.70720927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30648E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8056       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.122       1.0000         .10000E-03   10000.    
     4 'norm      '    .38819E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5390       1.0000         .10000E-03   10000.    
     6 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8791       1.0000         .10000E-03   10000.    
     8 'norm      '    6.2462       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.888       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39466       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2862       1.0000         .10000E-03   10000.    
    14 'norm      '    .85267       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11437E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.795       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32620       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.387       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.228       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83762       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0604       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=   8352.640     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2979 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10033E-03    966.05       -.25719E-03** at limit **
   2  norm          1.8040        2.1426       -.38665E-05   -.14864E-02
   3  Prefactor     26.158        32.864        .43331E-04    .44416E-03
   4  norm          .28948E-01    .47037       -.19743E-07    .82859E-03
   5  Prefactor     6.5660        74.372        .77111E-04    .63332E-05
   6  norm          .10000E-03    .30671       -.49408E-06** at limit **
   7  Prefactor     6.8804        12.170       -.72190E-07   -.93068E-04
   8  norm          6.2485        4.4632       -.13554E-05   -.74111E-04
   9  Prefactor     .10000E-03    4.0769       -.30393E-07** at limit **
  10  Prefactor     .10000E-03    33.472        .14961E-04** at limit **
  11  Prefactor     27.895        13.767        .59196E-06    .50034E-05
  12  Prefactor     .39474        .18186        .79872E-07   -.61053E-03
  13  Prefactor     7.2866        7.5233        .30761E-06    .24219E-04
  14  norm          .85316        .81003        .20266E-06   -.52288E-03
  15  Prefactor     .10000E-03    5.7908        .23725E-05** at limit **
  16  norm          .10004E-03    .85031       -.24374E-06** at limit **
  17  Prefactor     .10000E-03    26.200       -.11951E-04** at limit **
  18  Prefactor     16.800        11.521        .14001E-05    .88865E-04
  19  Prefactor     .10000E-03    11.732       -.42858E-05** at limit **
  20  Prefactor     .32626        .14630        .12395E-06    .66149E-03
  21  Prefactor     .10000E-03    4.8206        .33556E-06** at limit **
  22  Prefactor     13.391        12.081        .88329E-06   -.29166E-04
  23  Prefactor     27.219        20.955       -.76638E-06   -.23171E-04
  24  Normalizat    .83784        .22793       -.10072E-04    .36491E-03
  25  Prefactor     1.0600        .11053       -.15080E-06    .63069E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100327
  norm       = 1.80399
  Prefactor  = 26.1584
  norm       = 0.0289478
  Prefactor  = 6.566
  norm       = 0.000100001
  Prefactor  = 6.88045
  norm       = 6.24849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8955
  Prefactor  = 0.394744
  Prefactor  = 7.28663
  norm       = 0.853164
  Prefactor  = 0.0001
  norm       = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 16.8
  Prefactor  = 0.0001
  Prefactor  = 0.326263
  Prefactor  = 0.0001
  Prefactor  = 13.391
  Prefactor  = 27.2194
  Normalizat = 0.837836
  Prefactor  = 1.06001
 **********
 **   18 **HESSE 
 **********

 FCN=   8352.640     FROM HESSE     STATUS=OK           439 CALLS     3418 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10033E-03    989.32        .21381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8040        2.1233        .13251E-03   -1.5439    
   3  Prefactor     26.158        33.006        .78380E-04   -1.4685    
   4  norm          .28948E-01    6.6190        .12049E-02   -1.5674    
   5  Prefactor     6.5660        73.030        .15694E-03   -1.5195    
   6  norm          .10000E-03    .52919        .97891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.8804        12.160        .15297E-03   -1.5183    
   8  norm          6.2485        4.4582        .15705E-03   -1.5208    
   9  Prefactor     .10000E-03    4.0875        .18020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.895        13.838        .75862E-04   -1.4651    
  12  Prefactor     .39474        .17992        .25262E-04   -1.5582    
  13  Prefactor     7.2866        7.5261        .14859E-03   -1.5168    
  14  norm          .85316        .77129        .77107E-03   -1.5523    
  15  Prefactor     .10000E-03    5.7987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10004E-03    9.6923        .15798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.800        11.157        .97730E-04   -1.4888    
  19  Prefactor     .10000E-03    11.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .32626        .14355        .21877E-04   -1.5594    
  21  Prefactor     .10000E-03    4.8514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.391        12.055        .10947E-03   -1.4976    
  23  Prefactor     27.219        20.966        .76775E-04   -1.4664    
  24  Normalizat    .83784        .26271        .37483E-03   -.98680    
  25  Prefactor     1.0600        .12957        .17553E-03   -.90755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.89593e-09
Minuit parameter uncertainties:
  1  0.0365992
  2  2.12335
  3  33.0291
  4  0.874037
  5  43.8632
  6  3.32994e-05
  7  12.1644
  8  4.45846
  9  1.41472e-05
  10  5.94628e-05
  11  13.8394
  12  0.179923
  13  7.52708
  14  0.771299
  15  1.64835e-05
  16  0.00131473
  17  0.000115158
  18  11.1579
  19  2.96889e-05
  20  0.143547
  21  3.11801e-05
  22  12.0577
  23  20.9718
  24  0.263106
  25  0.129604
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.790e+01  1.384e+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.060e+00  1.296e-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:  8.378e-01  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.28
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 5.67e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.26e-05

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) = 8352.24945036
delta logL = 0.390445805177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8352.22091737
delta logL = 0.41897879257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.997       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3691       1.0000          .0000       10.000    
     3 'Normalizat'    .78459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0796       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=   8352.221     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      303 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.988        16.110        .44783E-03   -.25132E-04
   2  Index         3.3680        .74167        .62870E-02    .50617E-03
   3  Normalizat    .78519        .25752        .38598E-03   -.14727E-04
   4  Prefactor     1.0795        .13080        .17412E-03   -.35650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9878
  Index      = 3.36799
  Normalizat = 0.785193
  Prefactor  = 1.07952
 **********
 **   18 **HESSE 
 **********

 FCN=   8352.221     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.988        14.630        .17913E-04   -1.4814    
   2  Index         3.3680        .67320        .12574E-02   -.33249    
   3  Normalizat    .78519        .25760        .15439E-04   -1.0062    
   4  Prefactor     1.0795        .13079        .69648E-05   -.90124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9656e-13
Minuit parameter uncertainties:
  1  14.6327
  2  0.675499
  3  0.257996
  4  0.13083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293770': 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) = 8352.22090429
delta logL = 0.418991872923

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.999e+01  1.463e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.368e+00  6.755e-01  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.080e+00  1.308e-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.852e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.39
Ra Dec: 336.414 21.342
Photon Index (Free Index): 3.37 +/- 0.68
Photon Flux (Free Index): 1.47e-07 +/- 7.03e-08
Energy Flux (Free Index): 2.54e-05 +/- 1.14e-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/293770/cmap_HighResolution_623980801_624240001_4FGL_J2225.6+2120_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='2.54e-05', photon_flux_error='5.67e-08', dlogl='4.19e-01', energy_flux='2.54e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-28 11:15:49.697828', photon_index_error2='0.68', photon_index2='3.37', ts='7.28', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.84', time_epoch_completed='1632852949.7', return_code='0', job_id='293770', GAL2='1.08', EG2='0.79', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='7.03e-08', ts2='8.39', photon_index='2.81' WHERE bin_id='1484' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:15:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 293770: <4FGL_J2225.6+2120_daily_bin1484> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1484 336.414 21.3418 623980801 624240001 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 :                                   730.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            907 sec.

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

