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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1599
RA = 336.414, Dec = 21.3418
tmin = 653788801, tmax = 654048001
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='293962', job_status='RUN', time_executed='2021-09-28 11:01:17.710050', time_epoch_executed='1632852077.71' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293962

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293962/ft1_4FGL_J2225.6+2120_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293962/ft2_4FGL_J2225.6+2120_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293962/ft1_4FGL_J2225.6+2120_daily_bin1599.fits outfile=/scratch/kocevski/293962/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1599.fits ra=336.414 dec=21.3418 rad=12.0 tmin=653788801.0 tmax=654048001.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.88
user 3.64
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293962/ft1_filtered_4FGL_J2225.6+2120_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/293962/ft2_4FGL_J2225.6+2120_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/293962/ltcube_653788801_654048001_4FGL_J2225.6+2120_daily_bin1599.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/293962/ft2_4FGL_J2225.6+2120_daily_bin1599.fits
.....................!
real 12.13
user 11.81
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293962/ft1_filtered_4FGL_J2225.6+2120_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/293962/ft2_4FGL_J2225.6+2120_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/293962/ltcube_653788801_654048001_4FGL_J2225.6+2120_daily_bin1599.fits outfile=/scratch/kocevski/293962/expmap_653788801_654048001_4FGL_J2225.6+2120_daily_bin1599.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/293962/ltcube_653788801_654048001_4FGL_J2225.6+2120_daily_bin1599.fits
.....................!
real 190.53
user 185.26
sys 4.89

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/293962/ft1_filtered_4FGL_J2225.6+2120_daily_bin1599.fits scfile=/scratch/kocevski/293962/ft2_4FGL_J2225.6+2120_daily_bin1599.fits outfile=/scratch/kocevski/293962/cmap_653788801_654048001_4FGL_J2225.6+2120_daily_bin1599.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .91039       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9447       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39973       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6453       1.0000         .10000E-03   10000.    
    14 'norm      '    3.8025       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6104       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.115       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2976       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.962       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7782       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .57116       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=   8414.683     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2902 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.043        .97039E-05** at limit **
   2  norm          .90850        1.7996       -.40426E-06   -.14591E-02
   3  Prefactor     .10000E-03    14.594       -.64608E-05** at limit **
   4  norm          .10000E-03    .46200        .19215E-08** at limit **
   5  Prefactor     .10000E-03    18.377        .69427E-05** at limit **
   6  norm          .10000E-03    .18160        .77042E-08** at limit **
   7  Prefactor     .10000E-03    5.2170        .36061E-08** at limit **
   8  norm          .10000E-03    1.7341       -.11722E-07** at limit **
   9  Prefactor     .10000E-03    11.566        .56245E-05** at limit **
  10  Prefactor     .10000E-03    65.328       -.11465E-04** at limit **
  11  Prefactor     6.9353        14.338       -.26316E-05   -.60298E-04
  12  Prefactor     .39972        .21055        .35780E-07   -.14375E-02
  13  Prefactor     7.6442        10.704       -.16832E-06   -.81315E-04
  14  norm          3.8023        1.4916       -.38696E-07   -.55938E-04
  15  Prefactor     .10000E-03    21.316       -.31692E-05** at limit **
  16  norm          3.6105        1.9866        .90323E-07    .22912E-03
  17  Prefactor     18.010        36.897       -.34374E-04    .22838E-04
  18  Prefactor     .10000E-03    8.0750       -.31630E-05** at limit **
  19  Prefactor     .10000E-03    8.3934        .46937E-05** at limit **
  20  Prefactor     1.2975        .23313        .23794E-06   -.40528E-02
  21  Prefactor     .10000E-03    6.9354       -.98685E-07** at limit **
  22  Prefactor     .10000E-03    9.8259       -.42812E-05** at limit **
  23  Prefactor     14.877        27.433        .22273E-04   -.44649E-05
  24  Normalizat    1.7785        .23788       -.61548E-06    .16144E-03
  25  Prefactor     .57112        .10641        .42956E-06    .60697E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.908496
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.93528
  Prefactor  = 0.399722
  Prefactor  = 7.64415
  norm       = 3.80229
  Prefactor  = 0.0001
  norm       = 3.61046
  Prefactor  = 18.0097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8768
  Normalizat = 1.77847
  Prefactor  = 0.571125
 **********
 **   18 **HESSE 
 **********

 FCN=   8414.683     FROM HESSE     STATUS=OK           421 CALLS     3323 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .90850        1.6584        .16591E-02   -1.5517    
   3  Prefactor     .10000E-03    14.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .47293        .60848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .18316        .38160E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.2234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7415        .11795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    65.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9353        14.496        .15224E-03   -1.5181    
  12  Prefactor     .39972        .20656        .28448E-04   -1.5582    
  13  Prefactor     7.6442        10.690        .14503E-03   -1.5155    
  14  norm          3.8023        1.4951        .66795E-04   -1.5318    
  15  Prefactor     .10000E-03    21.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6105        1.9875        .93003E-04   -1.5328    
  17  Prefactor     18.010        36.969        .94103E-04   -1.4859    
  18  Prefactor     .10000E-03    8.1285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2975        .23436        .17108E-04   -1.5480    
  21  Prefactor     .10000E-03    6.9857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.9226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.877        27.381        .10355E-03   -1.4936    
  24  Normalizat    1.7785        .29058        .29703E-03   -.70227    
  25  Prefactor     .57112        .12900        .22861E-03   -1.0882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00887e-10
Minuit parameter uncertainties:
  1  8.99956e-06
  2  1.65845
  3  2.8296e-05
  4  3.47057e-08
  5  2.16005e-06
  6  3.54451e-07
  7  4.39225e-06
  8  4.42846e-06
  9  3.08299e-06
  10  2.25621e-05
  11  14.5037
  12  0.206565
  13  10.6929
  14  1.4951
  15  5.46963e-08
  16  1.98758
  17  37.0156
  18  3.82074e-07
  19  2.03256e-05
  20  0.234355
  21  4.69381e-05
  22  1.14812e-05
  23  27.4042
  24  0.29086
  25  0.129067
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.935e+00  1.450e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  5.711e-01  1.291e-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.778e+00  2.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/293962/likelihoodResults_653788801_654048001_4FGL_J2225.6+2120_daily_bin1599.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) = 8414.67301009
delta logL = 0.00952109735408

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8414.67077785
delta logL = 0.011753333989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0868       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0715       1.0000          .0000       10.000    
     3 'Normalizat'    1.7716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57370       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8414.671     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      274 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0790        16.743        .81368E-03    .10433E-03
   2  Index         3.0739        2.0150        .10809E-01    .77194E-04
   3  Normalizat    1.7716        .28326        .29749E-03    .53502E-06
   4  Prefactor     .57374        .12929        .22814E-03   -.19933E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.07903
  Index      = 3.07394
  Normalizat = 1.77163
  Prefactor  = 0.573744
 **********
 **   18 **HESSE 
 **********

 FCN=   8414.671     FROM HESSE     STATUS=OK            27 CALLS      301 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0790        15.223        .16274E-03   -1.5215    
   2  Index         3.0739        1.8419        .21618E-02   -.39544    
   3  Normalizat    1.7716        .28389        .11900E-04   -.70407    
   4  Prefactor     .57374        .12945        .91254E-05   -1.0870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43703e-12
Minuit parameter uncertainties:
  1  15.2323
  2  1.89474
  3  0.284149
  4  0.129512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293962': 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) = 8414.67077678
delta logL = 0.0117544098321

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.079e+00  1.523e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.074e+00  1.895e+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:  5.737e-01  1.295e-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.772e+00  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/293962/cmap_HighResolution_653788801_654048001_4FGL_J2225.6+2120_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2021-09-28 11:14:40.396650', job_id='293962', GAL2='0.57', fit_tolerance='1e-08', EG2='1.77', EG='1.78', time_epoch_completed='1632852880.4', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='1.18e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1599' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:14:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 293962: <4FGL_J2225.6+2120_daily_bin1599> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1599 336.414 21.3418 653788801 654048001 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 :                                   800.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             341.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            821 sec.

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

