/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 121 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 = 7483
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin82
RA = 336.414, Dec = 21.3418
tmin = 260582401, tmax = 260841601
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='284666', job_status='RUN', time_executed='2021-09-28 10:37:34.633848', time_epoch_executed='1632850654.63' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='82'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284666

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284666/ft1_4FGL_J2225.6+2120_daily_bin82.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284666/ft2_4FGL_J2225.6+2120_daily_bin82.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284666/ft1_4FGL_J2225.6+2120_daily_bin82.fits outfile=/scratch/kocevski/284666/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin82.fits ra=336.414 dec=21.3418 rad=12.0 tmin=260582401.0 tmax=260841601.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.65
user 1.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284666/ft1_filtered_4FGL_J2225.6+2120_daily_bin82.fits" evtable="EVENTS" scfile=/scratch/kocevski/284666/ft2_4FGL_J2225.6+2120_daily_bin82.fits sctable="SC_DATA" outfile=/scratch/kocevski/284666/ltcube_260582401_260841601_4FGL_J2225.6+2120_daily_bin82.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/284666/ft2_4FGL_J2225.6+2120_daily_bin82.fits
.....................!
real 13.80
user 13.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284666/ft1_filtered_4FGL_J2225.6+2120_daily_bin82.fits evtable="EVENTS" scfile=/scratch/kocevski/284666/ft2_4FGL_J2225.6+2120_daily_bin82.fits sctable="SC_DATA" expcube=/scratch/kocevski/284666/ltcube_260582401_260841601_4FGL_J2225.6+2120_daily_bin82.fits outfile=/scratch/kocevski/284666/expmap_260582401_260841601_4FGL_J2225.6+2120_daily_bin82.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/284666/ltcube_260582401_260841601_4FGL_J2225.6+2120_daily_bin82.fits
.....................!
real 190.87
user 185.04
sys 5.38

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/284666/ft1_filtered_4FGL_J2225.6+2120_daily_bin82.fits scfile=/scratch/kocevski/284666/ft2_4FGL_J2225.6+2120_daily_bin82.fits outfile=/scratch/kocevski/284666/cmap_260582401_260841601_4FGL_J2225.6+2120_daily_bin82.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    19.204       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17365E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1778       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.3424       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5545       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7937       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26936E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74723       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.0532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7777       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.069       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14322       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9713       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7979       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6100       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76780       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0872       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=   9054.009     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2528 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.087       -.15130E-04** at limit **
   2  norm          19.200        3.7756        .46881E-07    .79710E-03
   3  Prefactor     .10000E-03    95.223       -.24778E-04** at limit **
   4  norm          2.1777        1.0969       -.13432E-08   -.27152E-04
   5  Prefactor     .10000E-03    24.625        .10830E-05** at limit **
   6  norm          2.3422        1.0079        .81463E-08    .28652E-03
   7  Prefactor     7.5636        10.873        .32607E-06   -.50192E-05
   8  norm          3.7953        4.1001       -.49580E-07   -.49841E-04
   9  Prefactor     .10000E-03    3.6479       -.19937E-07** at limit **
  10  Prefactor     .10000E-03    67.699        .38862E-04** at limit **
  11  Prefactor     .10002E-03    6.7166       -.21129E-06** at limit **
  12  Prefactor     .74718        .20618        .32226E-08    .10671E-04
  13  Prefactor     .10000E-03    10.345        .89340E-07** at limit **
  14  norm          6.0530        1.5561       -.40320E-08   -.22112E-03
  15  Prefactor     .10000E-03    13.564       -.16619E-06** at limit **
  16  norm          1.7778        1.2479        .33908E-08    .31535E-04
  17  Prefactor     39.067        23.795       -.25132E-06   -.26322E-05
  18  Prefactor     .10000E-03    3.5125       -.27783E-07** at limit **
  19  Prefactor     .10000E-03    6.9392        .24171E-07** at limit **
  20  Prefactor     .14322        .90078E-01   -.48802E-08   -.17361E-03
  21  Prefactor     5.9708        9.2397       -.21132E-07   -.18794E-04
  22  Prefactor     1.7958        2.5345        .90582E-06   -.23130E-02
  23  Prefactor     6.6058        16.337        .11411E-06   -.15495E-03
  24  Normalizat    .76810        .22446       -.37814E-06    .64466E-04
  25  Prefactor     1.0871        .11342        .90006E-07    .15620E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 19.1999
  Prefactor  = 0.0001
  norm       = 2.17773
  Prefactor  = 0.0001
  norm       = 2.34221
  Prefactor  = 7.5636
  norm       = 3.79526
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100022
  Prefactor  = 0.747178
  Prefactor  = 0.0001
  norm       = 6.05295
  Prefactor  = 0.0001
  norm       = 1.77784
  Prefactor  = 39.0674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.143217
  Prefactor  = 5.97079
  Prefactor  = 1.79583
  Prefactor  = 6.60583
  Normalizat = 0.768098
  Prefactor  = 1.08708
 **********
 **   18 **HESSE 
 **********

 FCN=   9054.009     FROM HESSE     STATUS=OK           433 CALLS     2961 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.200        3.7735        .78488E-04   -1.4831    
   3  Prefactor     .10000E-03    97.216        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1777        1.0958        .68625E-04   -1.5413    
   5  Prefactor     .10000E-03    24.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3422        1.0058        .60176E-04   -1.5402    
   7  Prefactor     7.5636        10.820        .14591E-03   -1.5158    
   8  norm          3.7953        4.0887        .19332E-03   -1.5318    
   9  Prefactor     .10000E-03    3.6526        .17747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    68.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    89.531        .46471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .74718        .20590        .21726E-04   -1.5535    
  13  Prefactor     .10000E-03    10.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.0530        1.5560        .57553E-04   -1.5216    
  15  Prefactor     .10000E-03    13.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7778        1.2497        .86793E-04   -1.5441    
  17  Prefactor     39.067        23.788        .64125E-04   -1.4457    
  18  Prefactor     .10000E-03    3.5224        .17413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .14322        .87442E-01    .21816E-03   -1.5632    
  21  Prefactor     5.9708        9.2314        .16432E-03   -1.5219    
  22  Prefactor     1.7958        6.7655        .15591E-02   -1.5440    
  23  Prefactor     6.6058        16.393        .78042E-03   -1.5194    
  24  Normalizat    .76810        .24962        .41195E-03   -1.0126    
  25  Prefactor     1.0871        .12923        .18428E-03   -.89881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4114e-08
Minuit parameter uncertainties:
  1  0.000258804
  2  3.77355
  3  0.00016733
  4  1.09578
  5  1.87351e-05
  6  1.00583
  7  10.8227
  8  4.08905
  9  1.57947e-07
  10  0.000767366
  11  0.00284251
  12  0.205905
  13  1.34583e-06
  14  1.556
  15  4.8691e-07
  16  1.24973
  17  23.7941
  18  4.11674e-07
  19  8.73591e-07
  20  0.087442
  21  9.23363
  22  6.76839
  23  16.4045
  24  0.249988
  25  0.129265
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.843e-03  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:  1.087e+00  1.293e-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:  7.681e-01  2.500e-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: 9.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284666/likelihoodResults_260582401_260841601_4FGL_J2225.6+2120_daily_bin82.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) = 9054.00949062
delta logL = -5.12297192472e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9054.00949059
delta logL = -5.11985417688e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96319E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8110       1.0000          .0000       10.000    
     3 'Normalizat'    .76802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0871       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=   9054.009     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      229 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.2037        .90716E-01** at limit **
   2  Index         2.7119        6.2770        .50000        .37025E-05
   3  Normalizat    .76810        .21594E-02    .92986E-01    .49416E-04
   4  Prefactor     1.0871        .11366E-02    .38098E-01    .99646E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.71191
  Normalizat = 0.768098
  Prefactor  = 1.08708
 **********
 **   18 **HESSE 
 **********

 FCN=   9054.009     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      272 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1.9120        .74042E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7119        5.4152        .50000       -.47531    
   3  Normalizat    .76810        .23372E-02    .41195E-03   -1.0126    
   4  Prefactor     1.0871        .12336E-02    .18428E-03   -.89881    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.02406e-09
Minuit parameter uncertainties:
  1  0.000284287
  2  64.7263
  3  0.00233721
  4  0.00123364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284666': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9054.00943924
delta logL = 1.50948835653e-07

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.843e-04  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.712e+00  6.473e+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:  1.087e+00  1.234e-03  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:  7.681e-01  2.337e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 336.414 21.342

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.89e-03', job_status='DONE', photon_flux_upper_limit='9.95e-08', time_completed='2021-09-28 10:50:49.911130', job_id='284666', GAL2='1.09', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632851449.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='82' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:50:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 284666: <4FGL_J2225.6+2120_daily_bin82> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin82 336.414 21.3418 260582401 260841601 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 :                                   795.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            928 sec.

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

