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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin771
RA = 336.414, Dec = 21.3418
tmin = 439171201, tmax = 439430401
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='287749', job_status='RUN', time_executed='2021-09-28 10:46:06.727013', time_epoch_executed='1632851166.73' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287749

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287749/ft1_4FGL_J2225.6+2120_daily_bin771.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287749/ft2_4FGL_J2225.6+2120_daily_bin771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287749/ft1_4FGL_J2225.6+2120_daily_bin771.fits outfile=/scratch/kocevski/287749/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin771.fits ra=336.414 dec=21.3418 rad=12.0 tmin=439171201.0 tmax=439430401.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 5.57
user 5.31
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287749/ft1_filtered_4FGL_J2225.6+2120_daily_bin771.fits evtable="EVENTS" scfile=/scratch/kocevski/287749/ft2_4FGL_J2225.6+2120_daily_bin771.fits sctable="SC_DATA" expcube=/scratch/kocevski/287749/ltcube_439171201_439430401_4FGL_J2225.6+2120_daily_bin771.fits outfile=/scratch/kocevski/287749/expmap_439171201_439430401_4FGL_J2225.6+2120_daily_bin771.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/287749/ltcube_439171201_439430401_4FGL_J2225.6+2120_daily_bin771.fits
.....................!
real 191.75
user 185.72
sys 5.62

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/287749/ft1_filtered_4FGL_J2225.6+2120_daily_bin771.fits scfile=/scratch/kocevski/287749/ft2_4FGL_J2225.6+2120_daily_bin771.fits outfile=/scratch/kocevski/287749/cmap_439171201_439430401_4FGL_J2225.6+2120_daily_bin771.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.57
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.4106       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21684       1.0000         .10000E-03   10000.    
     6 'norm      '    .90989       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.069       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10888E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8765       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.362       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4526       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2691       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.811       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3195       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .52132E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82742       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92016       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=   5690.545     FROM MIGRAD    STATUS=CONVERGED   1111 CALLS     3833 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    71.745        .18142E-02** at limit **
   2  norm          8.4107        4.5141        .11122E-03    .53694E-03
   3  Prefactor     .10000E-03    14.294        .18142E-02** at limit **
   4  norm          .10000E-03    .57159        .55181E-03** at limit **
   5  Prefactor     .10027E-03    72.504        .18496    ** at limit **
   6  norm          .90988        1.6050        .12159E-03   -.14318E-02
   7  Prefactor     .10000E-03    6.8944        .18142E-02** at limit **
   8  norm          18.067        12.197        .94222E-04    .42798E-03
   9  Prefactor     .10001E-03    96.569        .36285E-03** at limit **
  10  Prefactor     .10000E-03    48.138        .18142E-02** at limit **
  11  Prefactor     .10000E-03    5.5422        .17341E-02** at limit **
  12  Prefactor     2.8762        .54692        .22943E-04   -.68985E-03
  13  Prefactor     23.362        19.503        .82873E-04   -.51909E-04
  14  norm          5.4525        2.1489        .65760E-04   -.18446E-03
  15  Prefactor     .10000E-03    53.226        .18142E-02** at limit **
  16  norm          3.2691        2.4480        .99356E-04   -.33640E-04
  17  Prefactor     17.894        63.336        .94903E-04    .25636E-04
  18  Prefactor     .10000E-03    11.324        .18142E-02** at limit **
  19  Prefactor     .10000E-03    13.682        .18142E-02** at limit **
  20  Prefactor     4.3192        .51982        .17233E-04    .33821E-02
  21  Prefactor     .10000E-03    4.3985        .15446E-02** at limit **
  22  Prefactor     .10000E-03    12.954        .18142E-02** at limit **
  23  Prefactor     .10000E-03    31.312        .12485    ** at limit **
  24  Normalizat    .82747        .39472        .46949E-03   -.12199E-03
  25  Prefactor     .92016        .17937        .20846E-03   -.46420E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.41072
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010027
  norm       = 0.909878
  Prefactor  = 0.0001
  norm       = 18.0674
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.87619
  Prefactor  = 23.362
  norm       = 5.45245
  Prefactor  = 0.0001
  norm       = 3.26908
  Prefactor  = 17.8939
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.31924
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100003
  Normalizat = 0.827473
  Prefactor  = 0.920161
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.545     FROM HESSE     STATUS=OK           421 CALLS     4254 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    71.745        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.4107        4.5141        .44489E-05   -1.5128    
   3  Prefactor     .10000E-03    14.294        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .57163        .11036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10027E-03    75.719        .17950       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .90988        1.6047        .48636E-05   -1.5517    
   7  Prefactor     .10000E-03    6.8945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.067        12.197        .37689E-05   -1.4858    
   9  Prefactor     .10001E-03    96.572        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.5423        .34681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8762        .54692        .45887E-05   -1.5369    
  13  Prefactor     23.362        19.503        .16575E-04   -1.4741    
  14  norm          5.4525        2.1489        .26304E-05   -1.5241    
  15  Prefactor     .10000E-03    53.243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2691        2.4480        .39743E-05   -1.5346    
  17  Prefactor     17.894        63.326        .37961E-05   -1.4862    
  18  Prefactor     .10000E-03    11.327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3192        .51981        .34465E-05   -1.5292    
  21  Prefactor     .10000E-03    4.3986        .30892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.955        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.782        .12649       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82747        .39499        .18780E-04   -.99058    
  25  Prefactor     .92016        .17954        .41692E-04   -.95440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75845e-09
Minuit parameter uncertainties:
  1  0.000166166
  2  4.51425
  3  0.000139482
  4  4.10123e-06
  5  0.0090479
  6  1.60482
  7  9.27308e-06
  8  12.1988
  9  0.0013945
  10  3.54198e-05
  11  3.83988e-05
  12  0.546922
  13  19.5086
  14  2.14891
  15  0.000232002
  16  2.44807
  17  63.5658
  18  0.000102657
  19  0.000185723
  20  0.519815
  21  8.55865e-06
  22  0.000490122
  23  0.000577017
  24  0.396373
  25  0.179652
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  3.840e-05  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:  9.202e-01  1.797e-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:  8.275e-01  3.964e-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: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287749/likelihoodResults_439171201_439430401_4FGL_J2225.6+2120_daily_bin771.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) = 5690.5460203
delta logL = -0.000852885058521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5690.54516738
delta logL = 3.9914084482e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7980       1.0000          .0000       10.000    
     3 'Normalizat'    .82752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92014       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=   5690.545     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      255 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.902        .17462E-01** at limit **
   2  Index         2.2281        6.8557        .50000       -.59276E-07
   3  Normalizat    .82747        .23185E-01    .46949E-03   -.14849E-03
   4  Prefactor     .92016        .10903E-01    .20846E-03   -.29893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22806
  Normalizat = 0.827469
  Prefactor  = 0.920163
 **********
 **   18 **HESSE 
 **********

 FCN=   5690.545     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    471.91        .18970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2281        5.9368        .50000       -.58763    
   3  Normalizat    .82747        .72165E-01    .18780E-04   -.99058    
   4  Prefactor     .92016        .33939E-01    .41692E-04   -.95440    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.42187e-10
Minuit parameter uncertainties:
  1  5.17912e-05
  2  1309.82
  3  0.0721733
  4  0.0339394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287749': 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) = 5690.54516593
delta logL = 1.48928302224e-06

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  5.179e-05  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.228e+00  1.310e+03  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:  9.202e-01  3.394e-02  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:  8.275e-01  7.217e-02  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/287749/cmap_HighResolution_439171201_439430401_4FGL_J2225.6+2120_daily_bin771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.68e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-28 10:58:09.267173', job_id='287749', GAL2='0.92', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632851889.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='771' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:58:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 287749: <4FGL_J2225.6+2120_daily_bin771> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin771> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:45:52 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:45:54 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:45:54 2021
Terminated at Tue Sep 28 10:58:10 2021
Results reported at Tue Sep 28 10:58:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin771 336.414 21.3418 439171201 439430401 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 :                                   719.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            738 sec.

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

