/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 239 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin65
RA = 336.414, Dec = 21.3418
tmin = 256176001, tmax = 256435201
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='284634', job_status='RUN', time_executed='2021-09-28 10:39:33.368623', time_epoch_executed='1632850773.37' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='65'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284634/ft1_4FGL_J2225.6+2120_daily_bin65.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284634/ft2_4FGL_J2225.6+2120_daily_bin65.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284634/ft1_4FGL_J2225.6+2120_daily_bin65.fits outfile=/scratch/kocevski/284634/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin65.fits ra=336.414 dec=21.3418 rad=12.0 tmin=256176001.0 tmax=256435201.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 1.44
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284634/ft1_filtered_4FGL_J2225.6+2120_daily_bin65.fits" evtable="EVENTS" scfile=/scratch/kocevski/284634/ft2_4FGL_J2225.6+2120_daily_bin65.fits sctable="SC_DATA" outfile=/scratch/kocevski/284634/ltcube_256176001_256435201_4FGL_J2225.6+2120_daily_bin65.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/284634/ft2_4FGL_J2225.6+2120_daily_bin65.fits
.....................!
real 12.59
user 12.27
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284634/ft1_filtered_4FGL_J2225.6+2120_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/284634/ft2_4FGL_J2225.6+2120_daily_bin65.fits sctable="SC_DATA" expcube=/scratch/kocevski/284634/ltcube_256176001_256435201_4FGL_J2225.6+2120_daily_bin65.fits outfile=/scratch/kocevski/284634/expmap_256176001_256435201_4FGL_J2225.6+2120_daily_bin65.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/284634/ltcube_256176001_256435201_4FGL_J2225.6+2120_daily_bin65.fits
.....................!
real 189.45
user 184.77
sys 4.28

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/284634/ft1_filtered_4FGL_J2225.6+2120_daily_bin65.fits scfile=/scratch/kocevski/284634/ft2_4FGL_J2225.6+2120_daily_bin65.fits outfile=/scratch/kocevski/284634/cmap_256176001_256435201_4FGL_J2225.6+2120_daily_bin65.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284634/ft1_filtered_4FGL_J2225.6+2120_daily_bin65.fits scfile=/scratch/kocevski/284634/ft2_4FGL_J2225.6+2120_daily_bin65.fits outfile=/scratch/kocevski/284634/cmap_HighResolution_256176001_256435201_4FGL_J2225.6+2120_daily_bin65.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4687       1.0000         .10000E-03   10000.    
     2 'norm      '    15.610       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8153       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .72121E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4001       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41423       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8425       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6874       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31284       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.9189       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9926       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2966       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84205       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=   7893.371     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2478 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1330        510.04       -.31883E-04   -.32305E-04
   2  norm          15.611        3.7772        .10119E-06   -.51013E-04
   3  Prefactor     .10000E-03    20.884       -.26440E-05** at limit **
   4  norm          .10000E-03    .50073        .22720E-06** at limit **
   5  Prefactor     .10000E-03    38.618       -.14218E-06** at limit **
   6  norm          1.8155        1.0608        .27096E-06    .25444E-03
   7  Prefactor     .10005E-03    8.8291        .65081E-06** at limit **
   8  norm          .10000E-03    2.5609        .11879E-06** at limit **
   9  Prefactor     .10000E-03    2.3864        .51062E-07** at limit **
  10  Prefactor     .10000E-03    21.923        .10796E-06** at limit **
  11  Prefactor     6.4043        11.927        .67101E-05    .24257E-03
  12  Prefactor     .41426        .17952        .40437E-07   -.20768E-03
  13  Prefactor     .10000E-03    3.7777        .70608E-07** at limit **
  14  norm          2.8428        1.3130       -.19892E-07   -.33753E-03
  15  Prefactor     .10000E-03    28.782        .95729E-07** at limit **
  16  norm          3.6879        2.0257       -.31308E-07   -.14697E-03
  17  Prefactor     .10000E-03    44.840        .95639E-06** at limit **
  18  Prefactor     .10000E-03    16.427        .39254E-06** at limit **
  19  Prefactor     .10000E-03    11.694        .19024E-06** at limit **
  20  Prefactor     .31288        .14421        .58816E-07    .11680E-03
  21  Prefactor     7.9176        10.753        .24262E-06   -.33059E-04
  22  Prefactor     3.9929        7.3692        .39357E-06    .12699E-04
  23  Prefactor     .10000E-03    82.983        .12259E-05** at limit **
  24  Normalizat    1.2961        .25158       -.83166E-05    .45007E-04
  25  Prefactor     .84226        .11964        .35144E-05   -.67105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.13298
  norm       = 15.6109
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.81554
  Prefactor  = 0.00010005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.40429
  Prefactor  = 0.414257
  Prefactor  = 0.0001
  norm       = 2.84276
  Prefactor  = 0.0001
  norm       = 3.6879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.312884
  Prefactor  = 7.91764
  Prefactor  = 3.99292
  Prefactor  = 0.000100001
  Normalizat = 1.2961
  Prefactor  = 0.842262
 **********
 **   18 **HESSE 
 **********

 FCN=   7893.371     FROM HESSE     STATUS=OK           421 CALLS     2899 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1330        536.12        .13024E-03   -1.5103    
   2  norm          15.611        3.7764        .79946E-04   -1.4918    
   3  Prefactor     .10000E-03    20.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .52418        .12285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8155        1.0614        .15501E-03   -1.5438    
   7  Prefactor     .10005E-03    53.886        .50433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.6006        .13879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3879        .13404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4043        12.048        .79326E-03   -1.5202    
  12  Prefactor     .41426        .17791        .23763E-04   -1.5579    
  13  Prefactor     .10000E-03    3.7894        .16864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8428        1.3106        .66213E-04   -1.5371    
  15  Prefactor     .10000E-03    29.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6879        2.0254        .90900E-04   -1.5324    
  17  Prefactor     .10000E-03    45.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .31288        .14293        .21642E-04   -1.5596    
  21  Prefactor     7.9176        10.749        .14249E-03   -1.5145    
  22  Prefactor     3.9929        7.3514        .20184E-03   -1.5308    
  23  Prefactor     .10000E-03    84.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2961        .27057        .32024E-03   -.83683    
  25  Prefactor     .84226        .13129        .19596E-03   -.98189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25385e-09
Minuit parameter uncertainties:
  1  141.296
  2  3.77648
  3  5.16819e-05
  4  3.61656e-06
  5  3.39649e-05
  6  1.06142
  7  0.0032906
  8  2.40771e-06
  9  2.67761e-06
  10  2.54548e-05
  11  12.0529
  12  0.177911
  13  2.57689e-06
  14  1.31065
  15  3.2515e-05
  16  2.02543
  17  0.000225399
  18  6.92687e-05
  19  1.28229e-05
  20  0.14293
  21  10.752
  22  7.35308
  23  0.00045236
  24  0.270865
  25  0.131338
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.404e+00  1.205e+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:  8.423e-01  1.313e-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.296e+00  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/284634/likelihoodResults_256176001_256435201_4FGL_J2225.6+2120_daily_bin65.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) = 7893.29271017
delta logL = 0.0785734872497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7893.2821231
delta logL = 0.0891605634361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0949       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3360       1.0000          .0000       10.000    
     3 'Normalizat'    1.2811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84732       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.

 FCN=   7893.282     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      211 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0949        192.17        .44531E-02   -.76229E-03
   2  Index         3.3360        6.6530        .32698       -.72682E-04
   3  Normalizat    1.2811        .51997E-01    .72732E-01   -.52667E-04
   4  Prefactor     .84733        .26492E-01    .44330E-01   -.84444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.09494
  Index      = 3.33603
  Normalizat = 1.28113
  Prefactor  = 0.847327
 **********
 **   18 **HESSE 
 **********

 FCN=   7893.282     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0949        11.083        .17813E-03   -1.5256    
   2  Index         3.3360        1.4309        .11349E-01   -.33926    
   3  Normalizat    1.2811        .26244        .32185E-03   -.84131    
   4  Prefactor     .84733        .13010        .19543E-03   -.98007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15821e-09
Minuit parameter uncertainties:
  1  11.0873
  2  1.45381
  3  0.262708
  4  0.13015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284634': 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) = 7893.28212309
delta logL = 0.0891605646493

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  5.095e+00  1.109e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.336e+00  1.454e+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.473e-01  1.302e-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.281e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
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/284634/cmap_HighResolution_256176001_256435201_4FGL_J2225.6+2120_daily_bin65.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-28 10:51:38.693407', job_id='284634', GAL2='0.85', fit_tolerance='1e-08', EG2='1.28', EG='1.30', time_epoch_completed='1632851498.69', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.92e-02', ts2='0.54', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='65' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:51:38 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin65 336.414 21.3418 256176001 256435201 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            980 sec.

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

