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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1223
RA = 336.414, Dec = 21.3418
tmin = 556329601, tmax = 556588801
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='290836', job_status='RUN', time_executed='2021-09-28 10:58:26.413097', time_epoch_executed='1632851906.41' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290836/ft1_4FGL_J2225.6+2120_daily_bin1223.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290836/ft2_4FGL_J2225.6+2120_daily_bin1223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290836/ft1_4FGL_J2225.6+2120_daily_bin1223.fits outfile=/scratch/kocevski/290836/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1223.fits ra=336.414 dec=21.3418 rad=12.0 tmin=556329601.0 tmax=556588801.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.73
user 3.51
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/290836/ft2_4FGL_J2225.6+2120_daily_bin1223.fits sctable="SC_DATA" expcube=/scratch/kocevski/290836/ltcube_556329601_556588801_4FGL_J2225.6+2120_daily_bin1223.fits outfile=/scratch/kocevski/290836/expmap_556329601_556588801_4FGL_J2225.6+2120_daily_bin1223.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/290836/ltcube_556329601_556588801_4FGL_J2225.6+2120_daily_bin1223.fits
.....................!
real 191.98
user 186.91
sys 4.71

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/290836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1223.fits scfile=/scratch/kocevski/290836/ft2_4FGL_J2225.6+2120_daily_bin1223.fits outfile=/scratch/kocevski/290836/cmap_556329601_556588801_4FGL_J2225.6+2120_daily_bin1223.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1223.fits scfile=/scratch/kocevski/290836/ft2_4FGL_J2225.6+2120_daily_bin1223.fits outfile=/scratch/kocevski/290836/cmap_HighResolution_556329601_556588801_4FGL_J2225.6+2120_daily_bin1223.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/290836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1223.fits evtable="EVENTS" scfile=/scratch/kocevski/290836/ft2_4FGL_J2225.6+2120_daily_bin1223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/290836/Model_4FGL_J2225.6+2120_daily_bin1223.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/290836/ft1_filtered_4FGL_J2225.6+2120_daily_bin1223.fits.....................!
real 45.08
user 43.74
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.440       1.0000         .10000E-03   10000.    
     4 'norm      '    .14230E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.975       1.0000         .10000E-03   10000.    
     8 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7629       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1376       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.016       1.0000         .10000E-03   10000.    
    14 'norm      '    9.5307       1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.391       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.061       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .74476       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5222       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    47.245       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0243       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72699       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=   3568.725     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2916 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    131.97       -.17497E-04** at limit **
   2  norm          .10000E-03    3.4492       -.19020E-05** at limit **
   3  Prefactor     59.485        83.590       -.66899E-05    .61679E-04
   4  norm          .10000E-03    58.838       -.37187E-04** at limit **
   5  Prefactor     .10000E-03    87.305       -.14106E-05** at limit **
   6  norm          .10000E-03    .70520       -.33401E-06** at limit **
   7  Prefactor     12.973        25.890       -.56341E-06    .16293E-04
   8  norm          .10000E-03    5.3253       -.61976E-09** at limit **
   9  Prefactor     7.7642        25.345       -.11168E-04    .12477E-03
  10  Prefactor     .10005E-03    207.92        .27470E-04** at limit **
  11  Prefactor     .10000E-03    39.104       -.29496E-05** at limit **
  12  Prefactor     1.1375        .34986        .97818E-07   -.27842E-03
  13  Prefactor     13.016        10.752        .13402E-06    .10126E-03
  14  norm          9.5289        5.2557       -.43501E-07    .33450E-04
  15  Prefactor     39.396        64.958       -.12268E-05   -.13054E-04
  16  norm          .10000E-03    1.6270       -.30555E-07** at limit **
  17  Prefactor     .10000E-03    12.466        .29980E-07** at limit **
  18  Prefactor     16.061        14.264       -.28068E-06    .59399E-04
  19  Prefactor     .10000E-03    7.8680        .81382E-08** at limit **
  20  Prefactor     .74479        .21343       -.41846E-07    .16283E-02
  21  Prefactor     4.5217        32.620       -.27985E-05    .42102E-05
  22  Prefactor     .10000E-03    8.4580       -.62743E-07** at limit **
  23  Prefactor     47.242        50.998       -.68295E-07    .37741E-04
  24  Normalizat    1.0244        .35130        .36261E-05    .17422E-03
  25  Prefactor     .72696        .15958        .10626E-05    .48864E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 59.4851
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9725
  norm       = 0.0001
  Prefactor  = 7.76425
  Prefactor  = 0.000100054
  Prefactor  = 0.000100002
  Prefactor  = 1.13755
  Prefactor  = 13.0164
  norm       = 9.52892
  Prefactor  = 39.3959
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0614
  Prefactor  = 0.0001
  Prefactor  = 0.744793
  Prefactor  = 4.52166
  Prefactor  = 0.0001
  Prefactor  = 47.2417
  Normalizat = 1.02445
  Prefactor  = 0.726958
 **********
 **   18 **HESSE 
 **********

 FCN=   3568.725     FROM HESSE     STATUS=OK           423 CALLS     3339 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    133.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.4520        .10790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     59.485        83.401        .52039E-04   -1.4164    
   4  norm          .10000E-03    56.761        .31911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    87.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .71579        .48923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.973        25.889        .11120E-03   -1.4987    
   8  norm          .10000E-03    5.3982        .13459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7642        25.792        .71961E-03   -1.5151    
  10  Prefactor     .10005E-03    213.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    39.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1375        .35362        .16485E-04   -1.5495    
  13  Prefactor     13.016        10.772        .11103E-03   -1.4986    
  14  norm          9.5289        5.2695        .90630E-04   -1.5090    
  15  Prefactor     39.396        65.126        .63864E-04   -1.4452    
  16  norm          .10000E-03    1.7076        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.061        14.263        .99938E-04   -1.4906    
  19  Prefactor     .10000E-03    7.8731        .16366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .74479        .21482        .13755E-04   -1.5535    
  21  Prefactor     4.5217        32.491        .18932E-03   -1.5283    
  22  Prefactor     .10000E-03    8.5987        .16962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     47.242        50.995        .58336E-04   -1.4332    
  24  Normalizat    1.0244        .40437        .36976E-03   -.92216    
  25  Prefactor     .72696        .18424        .20817E-03   -1.0248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14558e-09
Minuit parameter uncertainties:
  1  0.00319592
  2  8.08072e-05
  3  83.5652
  4  0.000524973
  5  2.51445e-05
  6  5.62173e-06
  7  25.9111
  8  2.14992e-05
  9  25.8292
  10  0.00679747
  11  0.000498475
  12  0.353623
  13  10.7739
  14  5.26976
  15  65.2442
  16  1.56592e-05
  17  1.01529e-05
  18  14.2664
  19  1.701e-05
  20  0.214819
  21  24.26
  22  6.89536e-05
  23  51.042
  24  0.40559
  25  0.184399
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  7.270e-01  1.844e-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.024e+00  4.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/290836/likelihoodResults_556329601_556588801_4FGL_J2225.6+2120_daily_bin1223.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) = 3568.72559718
delta logL = -0.000119908308079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3568.72547927
delta logL = -2.00057684197e-06

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 'Index     '    2.1776       1.0000          .0000       10.000    
     3 'Normalizat'    1.0245       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72696       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=   3568.700     FROM MIGRAD    STATUS=CONVERGED    172 CALLS      359 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0861        85.412        .18142E-01    .70829E-03
   2  Index         4.5299        3.7979        .49562        .17152E-04
   3  Normalizat    .99463        .37147E-01    .36976E-03    .95312E-05
   4  Prefactor     .73555        .18005E-01    .20817E-03    .45520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.08615
  Index      = 4.52986
  Normalizat = 0.994627
  Prefactor  = 0.735552
 **********
 **   18 **HESSE 
 **********

 FCN=   3568.700     FROM HESSE     STATUS=OK            29 CALLS      388 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0861        27.687        .25335E-03   -1.5500    
   2  Index         4.5299        7.2404        .11878E-01   -.94167E-01
   3  Normalizat    .99463        .39738        .14791E-04   -.93211    
   4  Prefactor     .73555        .18622        .83266E-05   -1.0215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79613e-11
Minuit parameter uncertainties:
  1  10.9727
  2  6.65293
  3  0.398574
  4  0.18638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290836': 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) = 3568.69959764
delta logL = 0.0258796277831

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.086e+00  1.097e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  4.530e+00  6.653e+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:  7.356e-01  1.864e-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:  9.946e-01  3.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/290836/cmap_HighResolution_556329601_556588801_4FGL_J2225.6+2120_daily_bin1223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-02', job_status='DONE', photon_flux_upper_limit='2.28e-07', time_completed='2021-09-28 11:06:56.982448', job_id='290836', GAL2='0.74', fit_tolerance='1e-08', EG2='0.99', EG='1.02', time_epoch_completed='1632852416.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.59e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1223' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:06:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 290836: <4FGL_J2225.6+2120_daily_bin1223> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1223> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:55:26 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:55:27 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:55:27 2021
Terminated at Tue Sep 28 11:06:57 2021
Results reported at Tue Sep 28 11:06:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1223 336.414 21.3418 556329601 556588801 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 :                                   509.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            691 sec.

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

