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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1202
RA = 336.414, Dec = 21.3418
tmin = 550886401, tmax = 551145601
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='290805', job_status='RUN', time_executed='2021-09-28 10:55:39.278069', time_epoch_executed='1632851739.28' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290805

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290805/ft1_4FGL_J2225.6+2120_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290805/ft2_4FGL_J2225.6+2120_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290805/ft1_4FGL_J2225.6+2120_daily_bin1202.fits outfile=/scratch/kocevski/290805/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1202.fits ra=336.414 dec=21.3418 rad=12.0 tmin=550886401.0 tmax=551145601.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.75
user 3.50
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290805/ft1_filtered_4FGL_J2225.6+2120_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/290805/ft2_4FGL_J2225.6+2120_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/290805/ltcube_550886401_551145601_4FGL_J2225.6+2120_daily_bin1202.fits outfile=/scratch/kocevski/290805/expmap_550886401_551145601_4FGL_J2225.6+2120_daily_bin1202.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/290805/ltcube_550886401_551145601_4FGL_J2225.6+2120_daily_bin1202.fits
.....................!
real 190.08
user 185.11
sys 4.64

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290805/ft1_filtered_4FGL_J2225.6+2120_daily_bin1202.fits scfile=/scratch/kocevski/290805/ft2_4FGL_J2225.6+2120_daily_bin1202.fits outfile=/scratch/kocevski/290805/cmap_HighResolution_550886401_551145601_4FGL_J2225.6+2120_daily_bin1202.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/290805/ft1_filtered_4FGL_J2225.6+2120_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/290805/ft2_4FGL_J2225.6+2120_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/290805/Model_4FGL_J2225.6+2120_daily_bin1202.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/290805/ft1_filtered_4FGL_J2225.6+2120_daily_bin1202.fits......................!
real 39.75
user 38.04
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    130.30       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8124       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .37648       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0625       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.753       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1713       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3292       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.672       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.290       1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.563       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .56337       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1608       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=   3132.551     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2871 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     130.30        167.43        .18108E-05   -.24901E-05
   2  norm          2.8126        3.0968       -.73132E-07   -.18429E-03
   3  Prefactor     .10000E-03    13.738        .41590E-05** at limit **
   4  norm          .37710        1.3306       -.39637E-06   -.88134E-03
   5  Prefactor     .10000E-03    44.328        .40307E-04** at limit **
   6  norm          .10000E-03    .79486        .46451E-07** at limit **
   7  Prefactor     .10000E-03    7.7604        .11917E-06** at limit **
   8  norm          .10000E-03    12.001       -.70514E-05** at limit **
   9  Prefactor     .10000E-03    15.106        .49072E-05** at limit **
  10  Prefactor     .10000E-03    55.360        .15099E-04** at limit **
  11  Prefactor     .10000E-03    15.817        .14049E-05** at limit **
  12  Prefactor     1.0625        .42783       -.18731E-07    .72659E-04
  13  Prefactor     30.755        27.167        .91857E-06   -.38941E-05
  14  norm          3.1716        2.0897        .34414E-07   -.62054E-05
  15  Prefactor     .10000E-03    16.353       -.18328E-05** at limit **
  16  norm          .10000E-03    1.6173       -.78895E-07** at limit **
  17  Prefactor     .10000E-03    29.208       -.18560E-04** at limit **
  18  Prefactor     .10001E-03    65.691       -.47450E-04** at limit **
  19  Prefactor     .10000E-03    10.359        .20002E-05** at limit **
  20  Prefactor     1.3292        .36315       -.82736E-09    .24238E-02
  21  Prefactor     14.671        15.206        .13692E-06    .12116E-03
  22  Prefactor     11.290        17.964       -.64758E-07    .16535E-04
  23  Prefactor     44.567        48.664        .37878E-05    .23830E-04
  24  Normalizat    .56312        .39405       -.60351E-06    .15459E-03
  25  Prefactor     1.1609        .20326        .14916E-07    .39076E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 130.304
  norm       = 2.81257
  Prefactor  = 0.0001
  norm       = 0.377101
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.06251
  Prefactor  = 30.7546
  norm       = 3.1716
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 1.32924
  Prefactor  = 14.6713
  Prefactor  = 11.2902
  Prefactor  = 44.5671
  Normalizat = 0.56312
  Prefactor  = 1.16091
 **********
 **   18 **HESSE 
 **********

 FCN=   3132.551     FROM HESSE     STATUS=OK           417 CALLS     3288 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     130.30        167.41        .35273E-04   -1.3420    
   2  norm          2.8126        3.0846        .99890E-04   -1.5373    
   3  Prefactor     .10000E-03    13.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .37710        1.2910        .11706E-02   -1.5585    
   5  Prefactor     .10000E-03    44.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .81017        .48627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7635        .15229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    55.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0625        .42824        .21864E-04   -1.5502    
  13  Prefactor     30.755        27.259        .72251E-04   -1.4598    
  14  norm          3.1716        2.0838        .62675E-04   -1.5352    
  15  Prefactor     .10000E-03    16.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6230        .69500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    66.621        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.360        .17596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3292        .36322        .16553E-04   -1.5477    
  21  Prefactor     14.671        15.199        .10457E-03   -1.4942    
  22  Prefactor     11.290        17.967        .11923E-03   -1.5036    
  23  Prefactor     44.567        48.617        .60058E-04   -1.4372    
  24  Normalizat    .56312        .42200        .46488E-03   -1.0957    
  25  Prefactor     1.1609        .22179        .17602E-03   -.87543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.811e-10
Minuit parameter uncertainties:
  1  168.021
  2  3.08475
  3  5.55977e-07
  4  1.29114
  5  7.07857e-06
  6  1.05117e-06
  7  1.13901e-06
  8  6.5319e-05
  9  5.05745e-07
  10  1.86935e-06
  11  2.27521e-05
  12  0.428237
  13  27.2703
  14  2.08389
  15  5.39459e-08
  16  6.67738e-06
  17  1.1975e-05
  18  0.00149356
  19  1.33198e-06
  20  0.36322
  21  15.2033
  22  17.9755
  23  48.66
  24  0.424436
  25  0.221972
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.275e-05  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.161e+00  2.220e-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:  5.631e-01  4.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/290805/likelihoodResults_550886401_551145601_4FGL_J2225.6+2120_daily_bin1202.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): 102
logL (Free Index) = 3132.55137332
delta logL = -0.000299748681755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3132.55107487
delta logL = -1.29190220832e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5051       1.0000          .0000       10.000    
     3 'Normalizat'    .56311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1609       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=   3132.551     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      296 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.374        .18142E-01** at limit **
   2  Index         2.7576        7.0746        .50000        .44827E-06
   3  Normalizat    .56312        .13239E-01    .46488E-03    .33239E-03
   4  Prefactor     1.1609        .70523E-02    .17602E-03    .96441E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.75764
  Normalizat = 0.563119
  Prefactor  = 1.16091
 **********
 **   18 **HESSE 
 **********

 FCN=   3132.551     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    403.85        .21608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7576        5.3002        .50000       -.46505    
   3  Normalizat    .56312        .45052E-01    .18595E-04   -1.0957    
   4  Prefactor     1.1609        .24000E-01    .35204E-04   -.87543    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20946e-08
Minuit parameter uncertainties:
  1  0.000298534
  2  1385.15
  3  0.0450552
  4  0.0240001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290805': 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) = 3132.55107357
delta logL = 9.72659108811e-09

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.985e-04  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.758e+00  1.385e+03  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.161e+00  2.400e-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:  5.631e-01  4.506e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 336.414 21.342

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/290805/cmap_HighResolution_550886401_551145601_4FGL_J2225.6+2120_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', job_status='DONE', photon_flux_upper_limit='1.77e-07', time_completed='2021-09-28 11:03:54.961857', job_id='290805', GAL2='1.16', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1632852234.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='9.73e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1202' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:03:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 290805: <4FGL_J2225.6+2120_daily_bin1202> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1202> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:55:23 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:55:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:55:25 2021
Terminated at Tue Sep 28 11:03:55 2021
Results reported at Tue Sep 28 11:03:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1202 336.414 21.3418 550886401 551145601 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 :                                   494.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   510 sec.
    Turnaround time :                            512 sec.

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

