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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin770
RA = 336.414, Dec = 21.3418
tmin = 438912001, tmax = 439171201
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='287747', job_status='RUN', time_executed='2021-09-28 10:49:35.814635', time_epoch_executed='1632851375.81' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287747

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287747/ft1_4FGL_J2225.6+2120_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287747/ft2_4FGL_J2225.6+2120_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287747/ft1_4FGL_J2225.6+2120_daily_bin770.fits outfile=/scratch/kocevski/287747/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin770.fits ra=336.414 dec=21.3418 rad=12.0 tmin=438912001.0 tmax=439171201.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 6.10
user 5.84
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287747/ft1_filtered_4FGL_J2225.6+2120_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/287747/ft2_4FGL_J2225.6+2120_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/287747/ltcube_438912001_439171201_4FGL_J2225.6+2120_daily_bin770.fits outfile=/scratch/kocevski/287747/expmap_438912001_439171201_4FGL_J2225.6+2120_daily_bin770.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/287747/ltcube_438912001_439171201_4FGL_J2225.6+2120_daily_bin770.fits
.....................!
real 190.68
user 185.82
sys 4.40

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/287747/ft1_filtered_4FGL_J2225.6+2120_daily_bin770.fits scfile=/scratch/kocevski/287747/ft2_4FGL_J2225.6+2120_daily_bin770.fits outfile=/scratch/kocevski/287747/cmap_438912001_439171201_4FGL_J2225.6+2120_daily_bin770.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287747/ft1_filtered_4FGL_J2225.6+2120_daily_bin770.fits scfile=/scratch/kocevski/287747/ft2_4FGL_J2225.6+2120_daily_bin770.fits outfile=/scratch/kocevski/287747/cmap_HighResolution_438912001_439171201_4FGL_J2225.6+2120_daily_bin770.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/287747/ft1_filtered_4FGL_J2225.6+2120_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/287747/ft2_4FGL_J2225.6+2120_daily_bin770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287747/Model_4FGL_J2225.6+2120_daily_bin770.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/287747/ft1_filtered_4FGL_J2225.6+2120_daily_bin770.fits.....................!
real 59.05
user 57.54
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37233E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.674       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.6005       1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.250       1.0000         .10000E-03   10000.    
     8 'norm      '    11.676       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.441       1.0000         .10000E-03   10000.    
    10 'Prefactor '    192.96       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8757       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9026       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.810       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9800       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.287       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15505E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.127       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1716       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8407       1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.810       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1081       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86207       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=   4807.553     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2932 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    300.90        .81641E-05** at limit **
   2  norm          3.0615        3.3281        .18962E-07    .21325E-04
   3  Prefactor     25.696        78.202        .48703E-06   -.52504E-05
   4  norm          .10000E-03    .87410        .18596E-08** at limit **
   5  Prefactor     .10000E-03    58.511       -.46831E-05** at limit **
   6  norm          2.6000        3.0763       -.65565E-06   -.37358E-04
   7  Prefactor     70.262        50.452       -.16955E-06   -.26594E-04
   8  norm          11.676        14.963        .80021E-06    .14463E-04
   9  Prefactor     13.442        28.470       -.19320E-06    .11567E-05
  10  Prefactor     192.94        207.98        .67120E-06    .87116E-05
  11  Prefactor     .10000E-03    74.277        .16883E-05** at limit **
  12  Prefactor     3.8757        .68661       -.99040E-08    .20075E-03
  13  Prefactor     .10000E-03    13.490       -.43027E-07** at limit **
  14  norm          1.9025        1.7414       -.32005E-07    .80866E-05
  15  Prefactor     30.816        41.057       -.62785E-06   -.99719E-06
  16  norm          1.9795        2.9950       -.67298E-06   -.72081E-04
  17  Prefactor     37.295        49.313       -.70300E-06   -.14908E-04
  18  Prefactor     .10000E-03    108.80       -.20752E-04** at limit **
  19  Prefactor     34.136        48.728       -.88751E-06   -.15120E-04
  20  Prefactor     5.1716        .63067        .72471E-08   -.23763E-03
  21  Prefactor     9.8405        15.822       -.36427E-05    .52864E-04
  22  Prefactor     53.810        27.039       -.12751E-06   -.25800E-05
  23  Prefactor     .10000E-03    41.182        .12893E-05** at limit **
  24  Normalizat    1.1082        .42479        .16225E-05   -.21746E-04
  25  Prefactor     .86199        .18187        .46838E-06    .57293E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 3.06152
  Prefactor  = 25.6955
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.59996
  Prefactor  = 70.2616
  norm       = 11.6764
  Prefactor  = 13.4417
  Prefactor  = 192.942
  Prefactor  = 0.0001
  Prefactor  = 3.87571
  Prefactor  = 0.0001
  norm       = 1.90255
  Prefactor  = 30.8159
  norm       = 1.97946
  Prefactor  = 37.2952
  Prefactor  = 0.0001
  Prefactor  = 34.1357
  Prefactor  = 5.17157
  Prefactor  = 9.84047
  Prefactor  = 53.8099
  Prefactor  = 0.0001
  Normalizat = 1.10823
  Prefactor  = 0.861993
 **********
 **   18 **HESSE 
 **********

 FCN=   4807.553     FROM HESSE     STATUS=OK           433 CALLS     3365 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    304.17        .21296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0615        3.3223        .12571E-03   -1.5358    
   3  Prefactor     25.696        77.906        .79060E-04   -1.4694    
   4  norm          .10000E-03    .88398        .63281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    59.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.6000        3.0499        .11603E-03   -1.5385    
   7  Prefactor     70.262        50.583        .47894E-04   -1.4030    
   8  norm          11.676        14.978        .11724E-03   -1.5024    
   9  Prefactor     13.442        28.552        .10925E-03   -1.4975    
  10  Prefactor     192.94        208.15        .14539E-03   -1.2921    
  11  Prefactor     .10000E-03    75.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8757        .68972        .22576E-04   -1.5314    
  13  Prefactor     .10000E-03    13.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9025        1.7306        .82853E-04   -1.5432    
  15  Prefactor     30.816        40.997        .72184E-04   -1.4597    
  16  norm          1.9795        2.9169        .14024E-03   -1.5427    
  17  Prefactor     37.295        49.400        .65634E-04   -1.4486    
  18  Prefactor     .10000E-03    106.59        .58749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.136        48.853        .68596E-04   -1.4539    
  20  Prefactor     5.1716        .63456        .17576E-04   -1.5253    
  21  Prefactor     9.8405        15.828        .63870E-03   -1.5080    
  22  Prefactor     53.810        27.068        .54679E-04   -1.4240    
  23  Prefactor     .10000E-03    41.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1082        .48376        .48145E-03   -.89488    
  25  Prefactor     .86199        .21093        .24958E-03   -.97482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22227e-10
Minuit parameter uncertainties:
  1  0.00270724
  2  3.32249
  3  78.2173
  4  3.76062e-06
  5  0.000539965
  6  3.05005
  7  50.614
  8  14.9828
  9  28.5808
  10  208.954
  11  0.000213122
  12  0.689717
  13  5.36594e-06
  14  1.73061
  15  41.0348
  16  2.91714
  17  49.4543
  18  0.000324339
  19  48.9105
  20  0.634565
  21  15.8348
  22  27.0743
  23  3.1717e-05
  24  0.485711
  25  0.211132
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.131e-04  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:  8.620e-01  2.111e-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.108e+00  4.857e-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: 2.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287747/likelihoodResults_438912001_439171201_4FGL_J2225.6+2120_daily_bin770.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) = 4807.55304641
delta logL = -6.32339815638e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4807.5529834
delta logL = -2.29071702051e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7594       1.0000          .0000       10.000    
     3 'Normalizat'    1.1082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86200       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=   4807.553     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      288 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    149.45        .36285E-03** at limit **
   2  Index         2.8752        6.4348        .50000       -.21344E-04
   3  Normalizat    1.1082        .43964        .48145E-03    .67510E-04
   4  Prefactor     .86199        .20619        .24958E-03   -.22776E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100068
  Index      = 2.87517
  Normalizat = 1.10823
  Prefactor  = 0.86199
 **********
 **   18 **HESSE 
 **********

 FCN=   4807.553     FROM HESSE     STATUS=OK            29 CALLS      317 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    128.15        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8752        6.4171        .50000       -.43892    
   3  Normalizat    1.1082        .44008        .19258E-04   -.89488    
   4  Prefactor     .86199        .20639        .99832E-05   -.97482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54767e-10
Minuit parameter uncertainties:
  1  0.00591891
  2  4.54288
  3  0.441545
  4  0.206578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287747': 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) = 4807.55298288
delta logL = 2.9090733733e-07

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.001e-04  5.919e-03  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.875e+00  4.543e+00  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:  8.620e-01  2.066e-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.108e+00  4.415e-01  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/287747/cmap_HighResolution_438912001_439171201_4FGL_J2225.6+2120_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-02', job_status='DONE', photon_flux_upper_limit='2.74e-07', time_completed='2021-09-28 10:59:59.021250', job_id='287747', GAL2='0.86', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632851999.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='770' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:59:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 287747: <4FGL_J2225.6+2120_daily_bin770> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin770> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:45:51 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:45:53 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:45:53 2021
Terminated at Tue Sep 28 10:59:59 2021
Results reported at Tue Sep 28 10:59:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin770 336.414 21.3418 438912001 439171201 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 :                                   622.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            848 sec.

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

