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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1098
RA = 336.414, Dec = 21.3418
tmin = 523929601, tmax = 524188801
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='289425', job_status='RUN', time_executed='2021-09-28 10:51:15.845031', time_epoch_executed='1632851475.85' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289425/ft1_4FGL_J2225.6+2120_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289425/ft2_4FGL_J2225.6+2120_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289425/ft1_4FGL_J2225.6+2120_daily_bin1098.fits outfile=/scratch/kocevski/289425/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1098.fits ra=336.414 dec=21.3418 rad=12.0 tmin=523929601.0 tmax=524188801.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.52
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289425/ft2_4FGL_J2225.6+2120_daily_bin1098.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/289425/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1098.fits evtable="EVENTS" outfile="/scratch/kocevski/289425/ft1_filtered_4FGL_J2225.6+2120_daily_bin1098.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/289425/ft1_filtered_4FGL_J2225.6+2120_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/289425/ft2_4FGL_J2225.6+2120_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/289425/ltcube_523929601_524188801_4FGL_J2225.6+2120_daily_bin1098.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/289425/ft2_4FGL_J2225.6+2120_daily_bin1098.fits
.....................!
real 12.64
user 12.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289425/ft1_filtered_4FGL_J2225.6+2120_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/289425/ft2_4FGL_J2225.6+2120_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/289425/ltcube_523929601_524188801_4FGL_J2225.6+2120_daily_bin1098.fits outfile=/scratch/kocevski/289425/expmap_523929601_524188801_4FGL_J2225.6+2120_daily_bin1098.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/289425/ltcube_523929601_524188801_4FGL_J2225.6+2120_daily_bin1098.fits
.....................!
real 190.24
user 185.19
sys 4.70

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/289425/ft1_filtered_4FGL_J2225.6+2120_daily_bin1098.fits scfile=/scratch/kocevski/289425/ft2_4FGL_J2225.6+2120_daily_bin1098.fits outfile=/scratch/kocevski/289425/cmap_523929601_524188801_4FGL_J2225.6+2120_daily_bin1098.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289425/ft1_filtered_4FGL_J2225.6+2120_daily_bin1098.fits scfile=/scratch/kocevski/289425/ft2_4FGL_J2225.6+2120_daily_bin1098.fits outfile=/scratch/kocevski/289425/cmap_HighResolution_523929601_524188801_4FGL_J2225.6+2120_daily_bin1098.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1554       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.025       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7158       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7429       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.5944       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .73618       1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.415       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .52861       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.618       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3746       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81231       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=   10108.00     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2880 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    121.81       -.10178E-03** at limit **
   2  norm          2.1541        2.8479       -.33220E-06   -.96119E-03
   3  Prefactor     .10000E-03    18.609       -.62475E-06** at limit **
   4  norm          .10000E-03    .36686        .18499E-07** at limit **
   5  Prefactor     31.017        47.604       -.91279E-05    .55814E-05
   6  norm          .10000E-03    .30750        .22134E-07** at limit **
   7  Prefactor     4.7098        16.091        .58699E-05   -.80948E-04
   8  norm          .10000E-03    2.0238        .81821E-07** at limit **
   9  Prefactor     .10000E-03    4.0060       -.62876E-06** at limit **
  10  Prefactor     .10000E-03    101.42        .76289E-04** at limit **
  11  Prefactor     .10000E-03    14.467       -.46491E-05** at limit **
  12  Prefactor     7.7429        .54801       -.10219E-07    .25421E-03
  13  Prefactor     .10000E-03    4.3454        .24869E-06** at limit **
  14  norm          3.5943        1.3157       -.79188E-07   -.51012E-03
  15  Prefactor     .10000E-03    7.3073       -.38400E-05** at limit **
  16  norm          .73671        1.1748       -.99188E-07   -.55716E-04
  17  Prefactor     59.414        40.849       -.97105E-06   -.25526E-05
  18  Prefactor     .10000E-03    3.6145       -.31698E-06** at limit **
  19  Prefactor     .10000E-03    6.5462        .44032E-05** at limit **
  20  Prefactor     .52857        .17298        .78739E-08   -.54283E-03
  21  Prefactor     15.617        10.765        .36073E-07   -.32598E-04
  22  Prefactor     .10000E-03    5.5207       -.17069E-05** at limit **
  23  Prefactor     .10000E-03    13.236        .55600E-05** at limit **
  24  Normalizat    1.3747        .22521        .92377E-07   -.20248E-04
  25  Prefactor     .81230        .10810        .92980E-07    .44601E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.15405
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.0173
  norm       = 0.0001
  Prefactor  = 4.70984
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.74294
  Prefactor  = 0.0001
  norm       = 3.59435
  Prefactor  = 0.0001
  norm       = 0.736714
  Prefactor  = 59.4138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.52857
  Prefactor  = 15.6175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37465
  Prefactor  = 0.812302
 **********
 **   18 **HESSE 
 **********

 FCN=   10108.00     FROM HESSE     STATUS=OK           425 CALLS     3305 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    121.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1541        2.8374        .18458E-03   -1.5414    
   3  Prefactor     .10000E-03    18.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .60931        .11820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.017        47.637        .71934E-04   -1.4594    
   6  norm          .10000E-03    .31471        .10878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7098        16.064        .18530E-03   -1.5274    
   8  norm          .10000E-03    2.0439        .13966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    101.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7429        .54879        .19075E-04   -1.5151    
  13  Prefactor     .10000E-03    4.3497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5943        1.3159        .66718E-04   -1.5329    
  15  Prefactor     .10000E-03    7.3139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .73671        .88123        .13388E-02   -1.5536    
  17  Prefactor     59.414        40.934        .52050E-04   -1.4165    
  18  Prefactor     .10000E-03    3.6204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.5513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .52857        .17322        .22155E-04   -1.5563    
  21  Prefactor     15.617        10.768        .10135E-03   -1.4917    
  22  Prefactor     .10000E-03    5.5477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3747        .26793        .36358E-03   -.81365    
  25  Prefactor     .81230        .12838        .22531E-03   -.99276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25731e-10
Minuit parameter uncertainties:
  1  0.000185027
  2  2.83754
  3  5.91742e-05
  4  2.83657e-06
  5  47.6953
  6  9.10782e-07
  7  16.079
  8  3.95302e-07
  9  5.06332e-07
  10  0.000243168
  11  1.6263e-05
  12  0.548792
  13  2.9489e-07
  14  1.31596
  15  1.47022e-06
  16  0.881242
  17  40.9532
  18  8.17522e-08
  19  1.72388e-07
  20  0.173218
  21  10.7693
  22  1.11466e-06
  23  7.75897e-06
  24  0.268203
  25  0.128427
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.626e-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:  8.123e-01  1.284e-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.375e+00  2.682e-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.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/289425/likelihoodResults_523929601_524188801_4FGL_J2225.6+2120_daily_bin1098.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) = 10108.0022579
delta logL = -0.000323904816469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10108.0019341
delta logL = -9.71213012235e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11040E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8993       1.0000          .0000       10.000    
     3 'Normalizat'    1.3750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81214       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=   10106.66     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      274 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12599        3.7545        .55948E-02   -.13724E-01
   2  Index         6.9241        8.0124        .22348        .34507E-03
   3  Normalizat    1.2439        .24254        .85610E-01   -.24902E-03
   4  Prefactor     .85640        .96442E-01    .43875E-01   -.52340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.125989
  Index      = 6.92414
  Normalizat = 1.24393
  Prefactor  = 0.856405
 **********
 **   18 **HESSE 
 **********

 FCN=   10106.66     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12599        .69891        .25973E-03   -1.5779    
   2  Index         6.9241        3.0184        .89759E-02    .39502    
   3  Normalizat    1.2439        .27214        .37910E-03   -.85256    
   4  Prefactor     .85640        .13192        .22011E-03   -.97681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56483e-09
Minuit parameter uncertainties:
  1  0.593257
  2  3.29012
  3  0.272449
  4  0.13197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289425': 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) = 10106.6583049
delta logL = 1.34362901766

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.260e-01  5.933e-01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  6.924e+00  3.290e+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.564e-01  1.320e-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.244e+00  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 336.414 21.342
Photon Index (Free Index): 6.92 +/- 3.29
Photon Flux (Free Index): 8.71e-08 +/- 7.87e-07
Energy Flux (Free Index): 1.04e-05 +/- 9.35e-05

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/289425/cmap_HighResolution_523929601_524188801_4FGL_J2225.6+2120_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.11e-03', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='1.34e+00', photon_flux2='8.71e-08', job_status='DONE', time_completed='2021-09-28 11:06:52.601370', photon_index_error2='3.29', photon_index2='6.92', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='9.35e-05', EG='1.37', time_epoch_completed='1632852412.6', return_code='0', job_id='289425', GAL2='0.86', EG2='1.24', return_code2='0', photon_flux_error2='7.87e-07', ts2='2.89', photon_index='2.81' WHERE bin_id='1098' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:06:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 289425: <4FGL_J2225.6+2120_daily_bin1098> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1098> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 10:51:02 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:51:04 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:51:04 2021
Terminated at Tue Sep 28 11:06:53 2021
Results reported at Tue Sep 28 11:06:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1098 336.414 21.3418 523929601 524188801 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 :                                   933.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

