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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1415
RA = 336.414, Dec = 21.3418
tmin = 606096001, tmax = 606355201
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='293616', job_status='RUN', time_executed='2021-09-28 11:03:14.356788', time_epoch_executed='1632852194.36' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293616

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293616/ft1_4FGL_J2225.6+2120_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293616/ft2_4FGL_J2225.6+2120_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293616/ft1_4FGL_J2225.6+2120_daily_bin1415.fits outfile=/scratch/kocevski/293616/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1415.fits ra=336.414 dec=21.3418 rad=12.0 tmin=606096001.0 tmax=606355201.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 3.65
user 3.42
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293616/ft1_filtered_4FGL_J2225.6+2120_daily_bin1415.fits" evtable="EVENTS" scfile=/scratch/kocevski/293616/ft2_4FGL_J2225.6+2120_daily_bin1415.fits sctable="SC_DATA" outfile=/scratch/kocevski/293616/ltcube_606096001_606355201_4FGL_J2225.6+2120_daily_bin1415.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/293616/ft2_4FGL_J2225.6+2120_daily_bin1415.fits
.....................!
real 11.59
user 11.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293616/ft1_filtered_4FGL_J2225.6+2120_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/293616/ft2_4FGL_J2225.6+2120_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/293616/ltcube_606096001_606355201_4FGL_J2225.6+2120_daily_bin1415.fits outfile=/scratch/kocevski/293616/expmap_606096001_606355201_4FGL_J2225.6+2120_daily_bin1415.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/293616/ltcube_606096001_606355201_4FGL_J2225.6+2120_daily_bin1415.fits
.....................!
real 189.19
user 184.57
sys 4.33

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/293616/ft1_filtered_4FGL_J2225.6+2120_daily_bin1415.fits scfile=/scratch/kocevski/293616/ft2_4FGL_J2225.6+2120_daily_bin1415.fits outfile=/scratch/kocevski/293616/cmap_606096001_606355201_4FGL_J2225.6+2120_daily_bin1415.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293616/ft1_filtered_4FGL_J2225.6+2120_daily_bin1415.fits scfile=/scratch/kocevski/293616/ft2_4FGL_J2225.6+2120_daily_bin1415.fits outfile=/scratch/kocevski/293616/cmap_HighResolution_606096001_606355201_4FGL_J2225.6+2120_daily_bin1415.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1981       1.0000         .10000E-03   10000.    
     4 'norm      '    .64844       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.027       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28749E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.755       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .29740       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1196       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9548       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.4353       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.312       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.224       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.252       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23129       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.953       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0571       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96941       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=   8177.649     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2931 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.496       -.16677E-06** at limit **
   2  norm          .10000E-03    .58515       -.15617E-06** at limit **
   3  Prefactor     7.1949        25.307        .10001E-05    .68297E-04
   4  norm          .64842        .90901        .59378E-06    .20617E-02
   5  Prefactor     .10000E-03    15.788       -.15308E-06** at limit **
   6  norm          .10000E-03    .59394       -.46171E-06** at limit **
   7  Prefactor     26.028        21.241        .21586E-06    .75616E-04
   8  norm          .10000E-03    1.3824       -.11200E-06** at limit **
   9  Prefactor     .10028E-03    9.4768        .24460E-05** at limit **
  10  Prefactor     30.928        102.51       -.13647E-05    .11204E-04
  11  Prefactor     6.2684        10.993        .55181E-06    .96174E-04
  12  Prefactor     .29731        .19629        .53363E-07   -.69648E-04
  13  Prefactor     5.1191        6.2950       -.46950E-07   -.16010E-04
  14  norm          2.9547        1.2404        .77660E-07    .48796E-03
  15  Prefactor     .10000E-03    5.4182        .38758E-08** at limit **
  16  norm          2.4352        1.4242       -.36056E-07   -.75946E-04
  17  Prefactor     47.289        33.780        .34252E-06    .40616E-05
  18  Prefactor     15.226        11.015        .18369E-06    .68942E-04
  19  Prefactor     19.247        21.155        .23535E-06    .11429E-04
  20  Prefactor     .23133        .16165       -.59905E-07   -.16272E-02
  21  Prefactor     .10000E-03    6.8630       -.25901E-06** at limit **
  22  Prefactor     .10000E-03    10.168       -.23785E-06** at limit **
  23  Prefactor     25.952        22.525       -.49642E-08    .14495E-04
  24  Normalizat    1.0568        .23058       -.13724E-05    .19128E-03
  25  Prefactor     .96948        .11169        .11150E-05    .32877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.19494
  norm       = 0.648415
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.0282
  norm       = 0.0001
  Prefactor  = 0.000100285
  Prefactor  = 30.9276
  Prefactor  = 6.26837
  Prefactor  = 0.297312
  Prefactor  = 5.11911
  norm       = 2.95474
  Prefactor  = 0.0001
  norm       = 2.43519
  Prefactor  = 47.2891
  Prefactor  = 15.226
  Prefactor  = 19.2474
  Prefactor  = 0.231333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.9522
  Normalizat = 1.05683
  Prefactor  = 0.969479
 **********
 **   18 **HESSE 
 **********

 FCN=   8177.649     FROM HESSE     STATUS=OK           439 CALLS     3370 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .59036        .67544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1949        25.303        .14951E-03   -1.5171    
   4  norm          .64842        .89613        .10818E-02   -1.5547    
   5  Prefactor     .10000E-03    15.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1687        .12707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.028        21.208        .78523E-04   -1.4687    
   8  norm          .10000E-03    1.3886        .10384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10028E-03    44.403        .45847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.928        102.11        .36124E-03   -1.4595    
  11  Prefactor     6.2684        10.997        .16034E-03   -1.5207    
  12  Prefactor     .29731        .18739        .30553E-03   -1.5599    
  13  Prefactor     5.1191        6.2941        .17769E-03   -1.5255    
  14  norm          2.9547        1.2368        .61941E-04   -1.5364    
  15  Prefactor     .10000E-03    5.4211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.4352        1.4291        .80017E-04   -1.5396    
  17  Prefactor     47.289        33.677        .58295E-04   -1.4332    
  18  Prefactor     15.226        11.016        .10265E-03   -1.4927    
  19  Prefactor     19.247        21.105        .91282E-04   -1.4830    
  20  Prefactor     .23133        .15643        .27170E-03   -1.5612    
  21  Prefactor     .10000E-03    6.9305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.952        22.519        .78634E-04   -1.4689    
  24  Normalizat    1.0568        .26691        .34487E-03   -.91150    
  25  Prefactor     .96948        .12937        .18360E-03   -.93754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58903e-09
Minuit parameter uncertainties:
  1  3.83547e-05
  2  3.45133e-06
  3  25.3412
  4  0.896151
  5  1.96803e-05
  6  2.30913e-05
  7  21.2141
  8  3.91455e-06
  9  0.00711848
  10  102.699
  11  11.0008
  12  0.187391
  13  6.29491
  14  1.23681
  15  1.24485e-06
  16  1.42908
  17  33.6901
  18  11.0172
  19  21.1127
  20  0.156435
  21  2.17619e-05
  22  1.61409e-05
  23  22.5264
  24  0.26725
  25  0.129408
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.268e+00  1.100e+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:  9.695e-01  1.294e-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.057e+00  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293616/likelihoodResults_606096001_606355201_4FGL_J2225.6+2120_daily_bin1415.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) = 8177.60364502
delta logL = 0.0454723128569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8177.44699288
delta logL = 0.202124455424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16116E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9226       1.0000          .0000       10.000    
     3 'Normalizat'    1.0203       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98601       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=   8177.447     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      345 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16368E-01    .32428        .31313E-02    .97463E-02
   2  Index         7.9111        7.8734        .25362        .10984E-03
   3  Normalizat    1.0205        .38785E-01    .79143E-01    .31251E-04
   4  Prefactor     .98589        .19952E-01    .46092E-01    .90631E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0163683
  Index      = 7.9111
  Normalizat = 1.02052
  Prefactor  = 0.985889
 **********
 **   18 **HESSE 
 **********

 FCN=   8177.447     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      380 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16368E-01    1.2421        .14642E-03   -1.5682    
   2  Index         7.9111        8.2578        .15743E-01    .62146    
   3  Normalizat    1.0205        .16012        .35031E-03   -.92346    
   4  Prefactor     .98589        .81023E-01    .18229E-03   -.93201    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78649e-07
Minuit parameter uncertainties:
  1  0.284311
  2  12.0245
  3  0.160192
  4  0.0810331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293616': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8177.44699054
delta logL = 0.202126792901

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.637e-02  2.843e-01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  7.911e+00  1.202e+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:  9.859e-01  8.103e-02  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.021e+00  1.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.40
Ra Dec: 336.414 21.342

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/293616/cmap_HighResolution_606096001_606355201_4FGL_J2225.6+2120_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-28 11:16:29.561224', job_id='293616', GAL2='0.99', fit_tolerance='1e-08', EG2='1.02', EG='1.06', time_epoch_completed='1632852989.56', return_code2='102', ts='0.40', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.02e-01', ts2='0.86', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1415' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 293616: <4FGL_J2225.6+2120_daily_bin1415> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1415 336.414 21.3418 606096001 606355201 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 :                                   792.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

