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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1351
RA = 336.414, Dec = 21.3418
tmin = 589507201, tmax = 589766401
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='293419', job_status='RUN', time_executed='2021-09-28 11:02:27.800382', time_epoch_executed='1632852147.8' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293419/ft1_4FGL_J2225.6+2120_daily_bin1351.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293419/ft2_4FGL_J2225.6+2120_daily_bin1351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293419/ft1_4FGL_J2225.6+2120_daily_bin1351.fits outfile=/scratch/kocevski/293419/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1351.fits ra=336.414 dec=21.3418 rad=12.0 tmin=589507201.0 tmax=589766401.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 2.90
user 2.71
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293419/ft2_4FGL_J2225.6+2120_daily_bin1351.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/293419/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1351.fits evtable="EVENTS" outfile="/scratch/kocevski/293419/ft1_filtered_4FGL_J2225.6+2120_daily_bin1351.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293419/ft1_filtered_4FGL_J2225.6+2120_daily_bin1351.fits evtable="EVENTS" scfile=/scratch/kocevski/293419/ft2_4FGL_J2225.6+2120_daily_bin1351.fits sctable="SC_DATA" expcube=/scratch/kocevski/293419/ltcube_589507201_589766401_4FGL_J2225.6+2120_daily_bin1351.fits outfile=/scratch/kocevski/293419/expmap_589507201_589766401_4FGL_J2225.6+2120_daily_bin1351.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/293419/ltcube_589507201_589766401_4FGL_J2225.6+2120_daily_bin1351.fits
.....................!
real 190.92
user 185.74
sys 4.74

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/293419/ft1_filtered_4FGL_J2225.6+2120_daily_bin1351.fits scfile=/scratch/kocevski/293419/ft2_4FGL_J2225.6+2120_daily_bin1351.fits outfile=/scratch/kocevski/293419/cmap_589507201_589766401_4FGL_J2225.6+2120_daily_bin1351.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.61
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293419/ft1_filtered_4FGL_J2225.6+2120_daily_bin1351.fits scfile=/scratch/kocevski/293419/ft2_4FGL_J2225.6+2120_daily_bin1351.fits outfile=/scratch/kocevski/293419/cmap_HighResolution_589507201_589766401_4FGL_J2225.6+2120_daily_bin1351.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=336.414 yref=21.3418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    303.83       1.0000         .10000E-03   10000.    
     2 'norm      '    .23041E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15684E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7581       1.0000         .10000E-03   10000.    
     6 'norm      '    .20370       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8457       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7357       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .65299       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.2652       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.283       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2283       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.499       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0556       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.301       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0116       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90123       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=   8042.618     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3045 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     303.73        178.41        .55126E-05    .56480E-05
   2  norm          .10200E-03    1.8086        .21124E-06** at limit **
   3  Prefactor     .10000E-03    77.175        .12412E-05** at limit **
   4  norm          .10000E-03    .39181        .86690E-07** at limit **
   5  Prefactor     1.5304        279.70        .33136E-05   -.31988E-05
   6  norm          .20438        .79371       -.66612E-07   -.25036E-03
   7  Prefactor     9.8453        11.954        .22791E-06   -.48924E-05
   8  norm          3.7340        6.1931        .18309E-05    .45595E-04
   9  Prefactor     .10000E-03    35.443       -.13674E-05** at limit **
  10  Prefactor     .10000E-03    21.027        .16588E-05** at limit **
  11  Prefactor     .10000E-03    4.6222        .63901E-07** at limit **
  12  Prefactor     .65293        .35199        .37510E-07    .61702E-03
  13  Prefactor     .10000E-03    22.711       -.22116E-05** at limit **
  14  norm          5.2651        1.3561        .12058E-07   -.38406E-04
  15  Prefactor     16.283        16.681        .11523E-06   -.19193E-05
  16  norm          3.2283        1.9437       -.16809E-08   -.30890E-05
  17  Prefactor     .10000E-03    12.513        .58928E-08** at limit **
  18  Prefactor     14.498        14.996        .50621E-07   -.39892E-05
  19  Prefactor     .10000E-03    28.900        .19863E-05** at limit **
  20  Prefactor     1.0555        .24292       -.10089E-08   -.39821E-03
  21  Prefactor     24.301        15.079        .11677E-06   -.28088E-05
  22  Prefactor     .10000E-03    5.0343       -.27430E-08** at limit **
  23  Prefactor     .10000E-03    18.424       -.22950E-06** at limit **
  24  Normalizat    1.0117        .24651       -.12048E-05   -.10748E-04
  25  Prefactor     .90121        .11361        .22465E-06   -.23051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 303.733
  norm       = 0.000102003
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.53036
  norm       = 0.20438
  Prefactor  = 9.84526
  norm       = 3.73395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.652931
  Prefactor  = 0.0001
  norm       = 5.26513
  Prefactor  = 16.283
  norm       = 3.22827
  Prefactor  = 0.0001
  Prefactor  = 14.4976
  Prefactor  = 0.0001
  Prefactor  = 1.05553
  Prefactor  = 24.3005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01168
  Prefactor  = 0.901207
 **********
 **   18 **HESSE 
 **********

 FCN=   8042.618     FROM HESSE     STATUS=OK           443 CALLS     3488 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     303.73        183.14        .11652E-03   -1.2204    
   2  norm          .10200E-03    4.6595        .36669E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    77.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .60069        .10803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5304        283.89        .31606E-03   -1.5461    
   6  norm          .20438        3.0706        .14378E-02   -1.5618    
   7  Prefactor     9.8453        11.955        .63853E-03   -1.5080    
   8  norm          3.7340        6.2227        .10445E-02   -1.5321    
   9  Prefactor     .10000E-03    35.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.6302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .65293        .34321        .37669E-03   -1.5546    
  13  Prefactor     .10000E-03    22.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2651        1.3573        .49551E-04   -1.5249    
  15  Prefactor     16.283        16.684        .99255E-04   -1.4901    
  16  norm          3.2283        1.9452        .91906E-04   -1.5349    
  17  Prefactor     .10000E-03    12.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.498        15.006        .10519E-03   -1.4946    
  19  Prefactor     .10000E-03    28.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0555        .24263        .20308E-04   -1.5502    
  21  Prefactor     24.301        15.076        .81259E-04   -1.4722    
  22  Prefactor     .10000E-03    5.0432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0117        .29111        .37922E-03   -.92640    
  25  Prefactor     .90121        .13631        .19096E-03   -.96099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82567e-08
Minuit parameter uncertainties:
  1  183.488
  2  0.00611032
  3  0.000563524
  4  4.63598e-07
  5  41.8891
  6  1.58411
  7  11.9581
  8  6.2238
  9  1.27385e-05
  10  1.20199e-06
  11  1.47846e-06
  12  0.343216
  13  7.67684e-06
  14  1.35733
  15  16.6884
  16  1.94519
  17  4.05589e-07
  18  15.0099
  19  1.00601e-05
  20  0.242633
  21  15.0788
  22  5.47395e-07
  23  8.70668e-06
  24  0.291566
  25  0.136358
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.478e-06  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.012e-01  1.364e-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.012e+00  2.916e-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: 8.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293419/likelihoodResults_589507201_589766401_4FGL_J2225.6+2120_daily_bin1351.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) = 8042.61949424
delta logL = -0.00102847652761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8042.6184658
delta logL = -2.68973963102e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8073       1.0000          .0000       10.000    
     3 'Normalizat'    1.0116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90123       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=   8042.618     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10021E-03    183.76        .18142E-02** at limit **
   2  Index         2.7665        6.2669        .50000        .54124E-05
   3  Normalizat    1.0117        .38131E-01    .37922E-03   -.15589E-05
   4  Prefactor     .90121        .18360E-01    .19096E-03   -.10121E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100206
  Index      = 2.76647
  Normalizat = 1.01168
  Prefactor  = 0.901207
 **********
 **   18 **HESSE 
 **********

 FCN=   8042.618     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10021E-03    668.69        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7665        6.0224        .50000       -.46308    
   3  Normalizat    1.0117        .89727E-01    .15169E-04   -.92640    
   4  Prefactor     .90121        .43207E-01    .76385E-05   -.96099    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85759e-08
Minuit parameter uncertainties:
  1  0.0237364
  2  2115.43
  3  0.0897401
  4  0.0432083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293419': 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) = 8042.61846573
delta logL = 4.18776835431e-08

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.002e-04  2.374e-02  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.766e+00  2.115e+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:  9.012e-01  4.321e-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.012e+00  8.974e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/293419/cmap_HighResolution_589507201_589766401_4FGL_J2225.6+2120_daily_bin1351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-28 11:15:31.148017', job_id='293419', GAL2='0.90', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1632852931.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1351' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:15:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 293419: <4FGL_J2225.6+2120_daily_bin1351> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1351 336.414 21.3418 589507201 589766401 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 :                                   782.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            911 sec.

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

