/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 95 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 = 7404
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin633
RA = 336.414, Dec = 21.3418
tmin = 403401601, tmax = 403660801
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='287537', job_status='RUN', time_executed='2021-09-28 10:47:26.876512', time_epoch_executed='1632851246.88' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287537

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287537/ft1_4FGL_J2225.6+2120_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287537/ft2_4FGL_J2225.6+2120_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287537/ft1_4FGL_J2225.6+2120_daily_bin633.fits outfile=/scratch/kocevski/287537/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin633.fits ra=336.414 dec=21.3418 rad=12.0 tmin=403401601.0 tmax=403660801.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.96
user 3.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287537/ft1_filtered_4FGL_J2225.6+2120_daily_bin633.fits" evtable="EVENTS" scfile=/scratch/kocevski/287537/ft2_4FGL_J2225.6+2120_daily_bin633.fits sctable="SC_DATA" outfile=/scratch/kocevski/287537/ltcube_403401601_403660801_4FGL_J2225.6+2120_daily_bin633.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/287537/ft2_4FGL_J2225.6+2120_daily_bin633.fits
.....................!
real 12.11
user 11.70
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287537/ft1_filtered_4FGL_J2225.6+2120_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/287537/ft2_4FGL_J2225.6+2120_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/287537/ltcube_403401601_403660801_4FGL_J2225.6+2120_daily_bin633.fits outfile=/scratch/kocevski/287537/expmap_403401601_403660801_4FGL_J2225.6+2120_daily_bin633.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/287537/ltcube_403401601_403660801_4FGL_J2225.6+2120_daily_bin633.fits
.....................!
real 189.07
user 183.89
sys 4.86

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/287537/ft1_filtered_4FGL_J2225.6+2120_daily_bin633.fits scfile=/scratch/kocevski/287537/ft2_4FGL_J2225.6+2120_daily_bin633.fits outfile=/scratch/kocevski/287537/cmap_403401601_403660801_4FGL_J2225.6+2120_daily_bin633.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.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10981E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.5939       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10960       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .77851       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7589       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.869       1.0000         .10000E-03   10000.    
    10 'Prefactor '    86.440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9005       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5429       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5408       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9371       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.787       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0858       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2645       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1368       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.507       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .28627E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3836       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68198       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=   8560.566     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2884 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.699        .63195E-06** at limit **
   2  norm          4.5938        2.5162        .54948E-07   -.67551E-04
   3  Prefactor     .10000E-03    33.306       -.17851E-06** at limit **
   4  norm          .10967        .72005        .96457E-06   -.96841E-03
   5  Prefactor     .10000E-03    17.235        .37438E-07** at limit **
   6  norm          .77863        .69491        .35254E-07   -.97341E-04
   7  Prefactor     3.7616        11.879        .82771E-05   -.55217E-03
   8  norm          .10000E-03    1.3768        .18087E-07** at limit **
   9  Prefactor     16.866        16.921        .30946E-07   -.25018E-04
  10  Prefactor     86.397        62.809       -.84795E-05   -.66135E-03
  11  Prefactor     6.9042        9.8065       -.18678E-06   -.22384E-04
  12  Prefactor     1.5430        .30497        .35936E-08   -.58852E-04
  13  Prefactor     7.5409        8.8647        .45618E-07   -.74601E-05
  14  norm          2.9375        1.1442        .51455E-07    .56400E-04
  15  Prefactor     .10000E-03    9.5879        .36524E-07** at limit **
  16  norm          .10000E-03    .53066        .15480E-07** at limit **
  17  Prefactor     12.782        15.841       -.24808E-07   -.12398E-04
  18  Prefactor     4.0869        7.5211        .14810E-06   -.54262E-04
  19  Prefactor     .10000E-03    8.9373        .21394E-07** at limit **
  20  Prefactor     2.2646        .27913        .12705E-08    .78159E-04
  21  Prefactor     7.1348        7.8510        .21171E-06    .71827E-04
  22  Prefactor     19.510        17.114        .18471E-06    .16257E-04
  23  Prefactor     .10011E-03    10.678       -.86956E-06** at limit **
  24  Normalizat    1.3833        .22567        .57922E-07   -.47724E-04
  25  Prefactor     .68205        .10545       -.70230E-06    .51982E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.59375
  Prefactor  = 0.0001
  norm       = 0.109665
  Prefactor  = 0.0001
  norm       = 0.778633
  Prefactor  = 3.76159
  norm       = 0.0001
  Prefactor  = 16.8657
  Prefactor  = 86.3966
  Prefactor  = 6.90419
  Prefactor  = 1.54295
  Prefactor  = 7.54091
  norm       = 2.93746
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7824
  Prefactor  = 4.08685
  Prefactor  = 0.0001
  Prefactor  = 2.26456
  Prefactor  = 7.13476
  Prefactor  = 19.5096
  Prefactor  = 0.000100108
  Normalizat = 1.38327
  Prefactor  = 0.682049
 **********
 **   18 **HESSE 
 **********

 FCN=   8560.566     FROM HESSE     STATUS=OK           435 CALLS     3319 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.5938        2.5138        .10426E-03   -1.5279    
   3  Prefactor     .10000E-03    33.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10967        .74936        .15305E-03   -1.5642    
   5  Prefactor     .10000E-03    17.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .77863        .67800        .70412E-04   -1.5531    
   7  Prefactor     3.7616        12.444        .10412E-02   -1.5320    
   8  norm          .10000E-03    1.3807        .10601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.866        17.027        .97516E-04   -1.4886    
  10  Prefactor     86.397        68.642        .21606E-03   -1.3846    
  11  Prefactor     6.9042        9.8320        .15273E-03   -1.5182    
  12  Prefactor     1.5430        .30695        .20946E-04   -1.5460    
  13  Prefactor     7.5409        8.8733        .14604E-03   -1.5159    
  14  norm          2.9375        1.1458        .59268E-04   -1.5365    
  15  Prefactor     .10000E-03    9.6112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .53487        .65801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.782        15.845        .11202E-03   -1.4993    
  18  Prefactor     4.0869        7.5128        .19945E-03   -1.5304    
  19  Prefactor     .10000E-03    8.9478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2646        .28101        .15880E-04   -1.5407    
  21  Prefactor     7.1348        7.8461        .15016E-03   -1.5174    
  22  Prefactor     19.510        17.157        .90684E-04   -1.4824    
  23  Prefactor     .10011E-03    75.500        .58022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3833        .26737        .32371E-03   -.81114    
  25  Prefactor     .68205        .12499        .21681E-03   -1.0423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17358e-09
Minuit parameter uncertainties:
  1  0.000179017
  2  2.51389
  3  7.38541e-05
  4  0.573084
  5  2.68574e-06
  6  0.678011
  7  12.4525
  8  1.03866e-07
  9  17.0319
  10  68.7049
  11  9.83429
  12  0.306948
  13  8.87485
  14  1.1458
  15  4.36807e-06
  16  2.33542e-07
  17  15.8502
  18  7.51448
  19  1.36021e-06
  20  0.281013
  21  7.84722
  22  17.161
  23  0.00572328
  24  0.267636
  25  0.125042
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.904e+00  9.834e+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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  6.820e-01  1.250e-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.383e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.67
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287537/likelihoodResults_403401601_403660801_4FGL_J2225.6+2120_daily_bin633.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) = 8560.36012023
delta logL = 0.20625834087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8560.34756191
delta logL = 0.218816660357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2943       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1138       1.0000          .0000       10.000    
     3 'Normalizat'    1.4024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67456       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=   8560.348     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      246 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2915        10.418        .13920E-03   -.21479E-03
   2  Index         2.1139        .85125        .14331E-01    .31436E-04
   3  Normalizat    1.4023        .25209        .32176E-03    .37382E-03
   4  Prefactor     .67458        .12316        .21781E-03    .48054E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.29149
  Index      = 2.11392
  Normalizat = 1.40231
  Prefactor  = 0.674581
 **********
 **   18 **HESSE 
 **********

 FCN=   8560.348     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2915        10.556        .55681E-05   -1.5132    
   2  Index         2.1139        .86293        .57326E-03   -.61532    
   3  Normalizat    1.4023        .25235        .64353E-04   -.80562    
   4  Prefactor     .67458        .12326        .43561E-04   -1.0453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8998e-10
Minuit parameter uncertainties:
  1  10.5588
  2  0.869491
  3  0.252572
  4  0.123312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287537': 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) = 8560.34756172
delta logL = 0.218816844874

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  8.291e+00  1.056e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.114e+00  8.695e-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:  6.746e-01  1.233e-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.402e+00  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 336.414 21.342
Photon Index (Free Index): 2.11 +/- 0.87
Photon Flux (Free Index): 1.90e-08 +/- 2.90e-08
Energy Flux (Free Index): 1.01e-05 +/- 1.54e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/287537/cmap_HighResolution_403401601_403660801_4FGL_J2225.6+2120_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='2.19e-01', photon_flux2='1.90e-08', job_status='DONE', time_completed='2021-09-28 11:01:27.730136', photon_index_error2='0.87', photon_index2='2.11', ts='0.67', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.54e-05', EG='1.38', time_epoch_completed='1632852087.73', return_code='0', job_id='287537', GAL2='0.67', EG2='1.40', return_code2='0', photon_flux_error2='2.90e-08', ts2='1.10', photon_index='2.81' WHERE bin_id='633' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:01:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 287537: <4FGL_J2225.6+2120_daily_bin633> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin633 336.414 21.3418 403401601 403660801 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 :                                   840.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            956 sec.

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

