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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1540
RA = 336.414, Dec = 21.3418
tmin = 638496001, tmax = 638755201
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='293866', job_status='RUN', time_executed='2021-09-28 11:03:15.559509', time_epoch_executed='1632852195.56' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293866/ft1_4FGL_J2225.6+2120_daily_bin1540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293866/ft2_4FGL_J2225.6+2120_daily_bin1540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293866/ft1_4FGL_J2225.6+2120_daily_bin1540.fits outfile=/scratch/kocevski/293866/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1540.fits ra=336.414 dec=21.3418 rad=12.0 tmin=638496001.0 tmax=638755201.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.23
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293866/ft2_4FGL_J2225.6+2120_daily_bin1540.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/293866/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1540.fits evtable="EVENTS" outfile="/scratch/kocevski/293866/ft1_filtered_4FGL_J2225.6+2120_daily_bin1540.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293866/ft1_filtered_4FGL_J2225.6+2120_daily_bin1540.fits" evtable="EVENTS" scfile=/scratch/kocevski/293866/ft2_4FGL_J2225.6+2120_daily_bin1540.fits sctable="SC_DATA" outfile=/scratch/kocevski/293866/ltcube_638496001_638755201_4FGL_J2225.6+2120_daily_bin1540.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/293866/ft2_4FGL_J2225.6+2120_daily_bin1540.fits
.....................!
real 16.17
user 15.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293866/ft1_filtered_4FGL_J2225.6+2120_daily_bin1540.fits evtable="EVENTS" scfile=/scratch/kocevski/293866/ft2_4FGL_J2225.6+2120_daily_bin1540.fits sctable="SC_DATA" expcube=/scratch/kocevski/293866/ltcube_638496001_638755201_4FGL_J2225.6+2120_daily_bin1540.fits outfile=/scratch/kocevski/293866/expmap_638496001_638755201_4FGL_J2225.6+2120_daily_bin1540.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/293866/ltcube_638496001_638755201_4FGL_J2225.6+2120_daily_bin1540.fits
.....................!
real 192.94
user 187.57
sys 4.78

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/293866/ft1_filtered_4FGL_J2225.6+2120_daily_bin1540.fits scfile=/scratch/kocevski/293866/ft2_4FGL_J2225.6+2120_daily_bin1540.fits outfile=/scratch/kocevski/293866/cmap_638496001_638755201_4FGL_J2225.6+2120_daily_bin1540.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293866/ft1_filtered_4FGL_J2225.6+2120_daily_bin1540.fits scfile=/scratch/kocevski/293866/ft2_4FGL_J2225.6+2120_daily_bin1540.fits outfile=/scratch/kocevski/293866/cmap_HighResolution_638496001_638755201_4FGL_J2225.6+2120_daily_bin1540.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    4.1131       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .31862       1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.536       1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2073       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4359       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    84.478       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18519       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .13385       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.518       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5803       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.655       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35900       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.238       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2334       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77591       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=   7610.642     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2555 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    73.349       -.16784E-04** at limit **
   2  norm          4.1126        2.6402       -.90262E-07   -.18554E-03
   3  Prefactor     .10000E-03    21.773       -.36955E-06** at limit **
   4  norm          .31857        1.0007       -.88981E-06   -.21390E-02
   5  Prefactor     36.536        30.949        .23718E-06   -.14025E-04
   6  norm          .10000E-03    .45086       -.30049E-07** at limit **
   7  Prefactor     2.2069        10.803       -.11134E-05   -.19759E-03
   8  norm          .10000E-03    1.9127       -.47227E-08** at limit **
   9  Prefactor     2.4372        24.318       -.16826E-05   -.94749E-04
  10  Prefactor     .10002E-03    68.776        .16046E-04** at limit **
  11  Prefactor     84.476        18.841       -.81698E-07    .57270E-04
  12  Prefactor     .18514        .19860       -.22336E-07   -.19585E-02
  13  Prefactor     .10000E-03    4.1083        .30349E-08** at limit **
  14  norm          .13354        .51350       -.49158E-06   -.11623E-02
  15  Prefactor     10.518        10.946        .52990E-06    .41276E-03
  16  norm          1.5800        1.4367       -.71865E-08    .79548E-04
  17  Prefactor     12.655        25.483       -.12717E-05   -.23033E-03
  18  Prefactor     .10000E-03    12.222        .14398E-06** at limit **
  19  Prefactor     .10000E-03    7.3065        .73877E-07** at limit **
  20  Prefactor     .35899        .15553       -.44728E-08   -.56184E-03
  21  Prefactor     21.237        14.133       -.10574E-08   -.22095E-05
  22  Prefactor     .10000E-03    5.5367       -.15399E-07** at limit **
  23  Prefactor     .10000E-03    8.5099       -.14158E-06** at limit **
  24  Normalizat    1.2335        .22392        .60513E-06    .13905E-03
  25  Prefactor     .77585        .10568        .27834E-06    .21838E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  norm       = 4.11256
  Prefactor  = 0.0001
  norm       = 0.318569
  Prefactor  = 36.536
  norm       = 0.0001
  Prefactor  = 2.20691
  norm       = 0.0001
  Prefactor  = 2.43723
  Prefactor  = 0.000100019
  Prefactor  = 84.4764
  Prefactor  = 0.185137
  Prefactor  = 0.0001
  norm       = 0.133542
  Prefactor  = 10.5184
  norm       = 1.58005
  Prefactor  = 12.6546
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.358995
  Prefactor  = 21.2371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23353
  Prefactor  = 0.775846
 **********
 **   18 **HESSE 
 **********

 FCN=   7610.642     FROM HESSE     STATUS=OK           431 CALLS     2986 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    67.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.1126        2.6412        .10870E-03   -1.5302    
   3  Prefactor     .10000E-03    21.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .31857        1.1153        .16208E-03   -1.5595    
   5  Prefactor     36.536        30.943        .66304E-04   -1.4498    
   6  norm          .10000E-03    .89839        .11333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2069        11.022        .27688E-03   -1.5411    
   8  norm          .10000E-03    1.9278        .11781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4372        23.172        .26217E-03   -1.5396    
  10  Prefactor     .10002E-03    63.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     84.476        18.939        .43706E-04   -1.3867    
  12  Prefactor     .18514        .18263        .35244E-03   -1.5622    
  13  Prefactor     .10000E-03    4.1157        .17267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .13354        .90114        .12007E-02   -1.5635    
  15  Prefactor     10.518        11.083        .61772E-03   -1.5059    
  16  norm          1.5800        1.4456        .96892E-04   -1.5457    
  17  Prefactor     12.655        25.853        .56301E-03   -1.4996    
  18  Prefactor     .10000E-03    12.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.3117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .35899        .15415        .21127E-04   -1.5588    
  21  Prefactor     21.237        14.142        .86914E-04   -1.4786    
  22  Prefactor     .10000E-03    5.5627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.5164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2335        .26740        .31863E-03   -.85573    
  25  Prefactor     .77585        .12695        .19138E-03   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79984e-09
Minuit parameter uncertainties:
  1  0.00238857
  2  2.64127
  3  2.44968e-05
  4  1.11534
  5  30.9564
  6  3.09828e-06
  7  9.86657
  8  8.75411e-07
  9  15.0375
  10  0.0022206
  11  18.9403
  12  0.182628
  13  8.83539e-07
  14  0.693556
  15  11.0849
  16  1.44564
  17  25.8762
  18  2.18734e-05
  19  3.36487e-06
  20  0.154151
  21  14.1444
  22  2.25227e-06
  23  4.65923e-06
  24  0.267697
  25  0.126995
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  8.448e+01  1.894e+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:  7.758e-01  1.270e-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:  1.234e+00  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 46.25
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 3.46e-07 +/- 7.75e-08
Energy Flux (Fixed Index): 7.70e-05 +/- 1.72e-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) = 7610.51173721
delta logL = 0.130229718326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7610.44265083
delta logL = 0.19931610497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    92.679       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6455       1.0000          .0000       10.000    
     3 'Normalizat'    1.2595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76601       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.

 FCN=   7610.443     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      220 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     92.705        49.261        .10436E-02    .11047E-03
   2  Index         2.6449        .51373        .94746E-01    .12562E-03
   3  Normalizat    1.2594        .21906        .71404E-01    .21744E-04
   4  Prefactor     .76598        .10588        .43273E-01    .21527E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 92.7049
  Index      = 2.64494
  Normalizat = 1.25936
  Prefactor  = 0.765975
 **********
 **   18 **HESSE 
 **********

 FCN=   7610.443     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     92.705        24.018        .41744E-04   -1.3779    
   2  Index         2.6449        .25836        .40653E-02   -.49044    
   3  Normalizat    1.2594        .26333        .31596E-03   -.84788    
   4  Prefactor     .76598        .12662        .19244E-03   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10322e-11
Minuit parameter uncertainties:
  1  24.0207
  2  0.258507
  3  0.263611
  4  0.126665
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293866': 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) = 7610.44264716
delta logL = 0.199319768099

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  9.270e+01  2.402e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.645e+00  2.585e-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:  7.660e-01  1.267e-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:  1.259e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 46.18
Ra Dec: 336.414 21.342
Photon Index (Free Index): 2.64 +/- 0.26
Photon Flux (Free Index): 3.24e-07 +/- 8.16e-08
Energy Flux (Free Index): 8.17e-05 +/- 2.05e-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/293866/cmap_HighResolution_638496001_638755201_4FGL_J2225.6+2120_daily_bin1540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.46e-07', energy_flux2='8.17e-05', photon_flux_error='7.75e-08', dlogl='1.99e-01', energy_flux='7.70e-05', photon_flux2='3.24e-07', job_status='DONE', time_completed='2021-09-28 11:14:11.629941', photon_index_error2='0.26', photon_index2='2.64', ts='46.25', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.05e-05', EG='1.23', time_epoch_completed='1632852851.63', return_code='0', job_id='293866', GAL2='0.77', EG2='1.26', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='8.16e-08', ts2='46.18', photon_index='2.81' WHERE bin_id='1540' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:14:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 293866: <4FGL_J2225.6+2120_daily_bin1540> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1540 336.414 21.3418 638496001 638755201 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 :                                   653.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

