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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1369
RA = 336.414, Dec = 21.3418
tmin = 594172801, tmax = 594432001
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='293539', job_status='RUN', time_executed='2021-09-28 11:00:41.399903', time_epoch_executed='1632852041.4' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293539

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293539/ft1_4FGL_J2225.6+2120_daily_bin1369.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293539/ft2_4FGL_J2225.6+2120_daily_bin1369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293539/ft1_4FGL_J2225.6+2120_daily_bin1369.fits outfile=/scratch/kocevski/293539/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1369.fits ra=336.414 dec=21.3418 rad=12.0 tmin=594172801.0 tmax=594432001.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 4.14
user 3.91
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293539/ft1_filtered_4FGL_J2225.6+2120_daily_bin1369.fits" evtable="EVENTS" scfile=/scratch/kocevski/293539/ft2_4FGL_J2225.6+2120_daily_bin1369.fits sctable="SC_DATA" outfile=/scratch/kocevski/293539/ltcube_594172801_594432001_4FGL_J2225.6+2120_daily_bin1369.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/293539/ft2_4FGL_J2225.6+2120_daily_bin1369.fits
.....................!
real 12.07
user 11.75
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293539/ft1_filtered_4FGL_J2225.6+2120_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/293539/ft2_4FGL_J2225.6+2120_daily_bin1369.fits sctable="SC_DATA" expcube=/scratch/kocevski/293539/ltcube_594172801_594432001_4FGL_J2225.6+2120_daily_bin1369.fits outfile=/scratch/kocevski/293539/expmap_594172801_594432001_4FGL_J2225.6+2120_daily_bin1369.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/293539/ltcube_594172801_594432001_4FGL_J2225.6+2120_daily_bin1369.fits
.....................!
real 191.04
user 185.36
sys 5.36

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/293539/ft1_filtered_4FGL_J2225.6+2120_daily_bin1369.fits scfile=/scratch/kocevski/293539/ft2_4FGL_J2225.6+2120_daily_bin1369.fits outfile=/scratch/kocevski/293539/cmap_594172801_594432001_4FGL_J2225.6+2120_daily_bin1369.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/293539/ft1_filtered_4FGL_J2225.6+2120_daily_bin1369.fits scfile=/scratch/kocevski/293539/ft2_4FGL_J2225.6+2120_daily_bin1369.fits outfile=/scratch/kocevski/293539/cmap_HighResolution_594172801_594432001_4FGL_J2225.6+2120_daily_bin1369.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/293539/ft1_filtered_4FGL_J2225.6+2120_daily_bin1369.fits evtable="EVENTS" scfile=/scratch/kocevski/293539/ft2_4FGL_J2225.6+2120_daily_bin1369.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293539/Model_4FGL_J2225.6+2120_daily_bin1369.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/293539/ft1_filtered_4FGL_J2225.6+2120_daily_bin1369.fits.....................!
real 80.50
user 79.01
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    149.70       1.0000         .10000E-03   10000.    
     2 'norm      '    .10285E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11985E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .52376       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .45289E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    82.455       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1018       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55822       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.0811       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2644       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.520       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .46934       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9979       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.003       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98097       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89117       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=   7839.759     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3005 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     149.67        120.69        .39872E-05    .88061E-04
   2  norm          .10000E-03    1.2194       -.75935E-06** at limit **
   3  Prefactor     .10000E-03    17.441       -.87082E-06** at limit **
   4  norm          .10000E-03    .69534        .56444E-07** at limit **
   5  Prefactor     .10000E-03    17.249       -.21022E-06** at limit **
   6  norm          .52373        .68537       -.17095E-07   -.50639E-04
   7  Prefactor     .10000E-03    4.0458        .88537E-07** at limit **
   8  norm          .10000E-03    4.7324       -.43910E-07** at limit **
   9  Prefactor     .10000E-03    9.4002       -.23281E-06** at limit **
  10  Prefactor     82.481        137.49       -.23180E-05    .16091E-04
  11  Prefactor     4.1019        9.0169        .25748E-05    .74532E-05
  12  Prefactor     .55800        .21203       -.47321E-08    .24547E-03
  13  Prefactor     .10000E-03    2.4609        .63656E-08** at limit **
  14  norm          6.0812        1.8036        .71058E-08   -.27699E-03
  15  Prefactor     .10000E-03    15.518        .62079E-06** at limit **
  16  norm          3.2645        1.9459       -.94239E-08    .24393E-04
  17  Prefactor     .10000E-03    7.1488        .13791E-07** at limit **
  18  Prefactor     16.520        14.375        .15506E-08    .30391E-04
  19  Prefactor     .10000E-03    4.4204        .49146E-07** at limit **
  20  Prefactor     .46935        .15414       -.17590E-07    .26408E-03
  21  Prefactor     .10000E-03    12.068       -.15207E-06** at limit **
  22  Prefactor     2.9988        8.8183        .44837E-05   -.43679E-04
  23  Prefactor     14.005        29.266        .15570E-07    .12581E-04
  24  Normalizat    .98099        .22956       -.12831E-05    .25490E-03
  25  Prefactor     .89109        .10506        .57133E-06    .65538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 149.668
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.523729
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 82.4809
  Prefactor  = 4.10189
  Prefactor  = 0.557997
  Prefactor  = 0.0001
  norm       = 6.08122
  Prefactor  = 0.0001
  norm       = 3.26452
  Prefactor  = 0.0001
  Prefactor  = 16.5203
  Prefactor  = 0.0001
  Prefactor  = 0.469349
  Prefactor  = 0.0001
  Prefactor  = 2.99881
  Prefactor  = 14.0052
  Normalizat = 0.980993
  Prefactor  = 0.891088
 **********
 **   18 **HESSE 
 **********

 FCN=   7839.759     FROM HESSE     STATUS=OK           429 CALLS     3434 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     149.67        121.37        .16470E-03   -1.3255    
   2  norm          .10000E-03    5.0910        .18057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.6113        .14112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .52373        .58979        .80445E-03   -1.5563    
   7  Prefactor     .10000E-03    4.0480        .17394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    56.638        .50293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     82.481        137.39        .44234E-04   -1.3889    
  11  Prefactor     4.1019        9.0185        .99526E-03   -1.5303    
  12  Prefactor     .55800        .20478        .23281E-04   -1.5559    
  13  Prefactor     .10000E-03    2.4613        .13565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.0812        1.8010        .60317E-04   -1.5215    
  15  Prefactor     .10000E-03    15.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2645        1.9437        .90281E-04   -1.5347    
  17  Prefactor     .10000E-03    7.1498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.520        14.341        .98540E-04   -1.4895    
  19  Prefactor     .10000E-03    4.4212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .46935        .15343        .18932E-04   -1.5571    
  21  Prefactor     .10000E-03    12.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.9988        8.8849        .11722E-02   -1.5362    
  23  Prefactor     14.005        29.243        .10704E-03   -1.4959    
  24  Normalizat    .98099        .26466        .35862E-03   -.93670    
  25  Prefactor     .89109        .12430        .18376E-03   -.96453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29229e-10
Minuit parameter uncertainties:
  1  121.575
  2  0.000109461
  3  8.82093e-05
  4  8.0439e-06
  5  2.70522e-06
  6  0.589797
  7  1.2715e-05
  8  3.06416e-06
  9  0.000481813
  10  137.922
  11  9.02148
  12  0.204784
  13  5.83665e-07
  14  1.801
  15  6.48852e-05
  16  1.94377
  17  1.47012e-06
  18  14.3444
  19  2.24582e-06
  20  0.153428
  21  1.9052e-05
  22  8.88882
  23  29.2731
  24  0.265012
  25  0.12434
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.911e-01  1.243e-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.810e-01  2.650e-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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293539/likelihoodResults_594172801_594432001_4FGL_J2225.6+2120_daily_bin1369.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) = 7839.72462685
delta logL = 0.0341087396991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7839.72192731
delta logL = 0.036808285533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7308       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2955       1.0000          .0000       10.000    
     3 'Normalizat'    .98813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88837       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=   7839.722     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      275 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7305        9.5738        .18500E-03    .36626E-04
   2  Index         2.2953        1.6201        .11991E-01    .86325E-05
   3  Normalizat    .98811        .25077        .35742E-03   -.38297E-04
   4  Prefactor     .88838        .12328        .18400E-03    .10084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.73048
  Index      = 2.29532
  Normalizat = 0.988112
  Prefactor  = 0.888376
 **********
 **   18 **HESSE 
 **********

 FCN=   7839.722     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7305        9.6163        .73999E-05   -1.5273    
   2  Index         2.2953        1.6277        .47964E-03   -.57155    
   3  Normalizat    .98811        .25100        .14297E-04   -.93430    
   4  Prefactor     .88838        .12338        .36799E-04   -.96548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14928e-11
Minuit parameter uncertainties:
  1  9.61948
  2  1.67132
  3  0.251296
  4  0.123414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293539': 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) = 7839.7219273
delta logL = 0.0368082947907

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  4.730e+00  9.619e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.295e+00  1.671e+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.884e-01  1.234e-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.881e-01  2.513e-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/293539/cmap_HighResolution_594172801_594432001_4FGL_J2225.6+2120_daily_bin1369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-28 11:13:37.892385', job_id='293539', GAL2='0.89', fit_tolerance='1e-08', EG2='0.99', EG='0.98', time_epoch_completed='1632852817.89', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.68e-02', ts2='0.33', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1369' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:13:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 293539: <4FGL_J2225.6+2120_daily_bin1369> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1369 336.414 21.3418 594172801 594432001 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 :                                   771.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

