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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1600
RA = 336.414, Dec = 21.3418
tmin = 654048001, tmax = 654307201
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='293963', job_status='RUN', time_executed='2021-09-28 11:03:00.778374', time_epoch_executed='1632852180.78' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293963

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293963/ft1_4FGL_J2225.6+2120_daily_bin1600.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293963/ft2_4FGL_J2225.6+2120_daily_bin1600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293963/ft1_4FGL_J2225.6+2120_daily_bin1600.fits outfile=/scratch/kocevski/293963/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1600.fits ra=336.414 dec=21.3418 rad=12.0 tmin=654048001.0 tmax=654307201.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.64
user 3.42
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293963/ft1_filtered_4FGL_J2225.6+2120_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/293963/ft2_4FGL_J2225.6+2120_daily_bin1600.fits sctable="SC_DATA" expcube=/scratch/kocevski/293963/ltcube_654048001_654307201_4FGL_J2225.6+2120_daily_bin1600.fits outfile=/scratch/kocevski/293963/expmap_654048001_654307201_4FGL_J2225.6+2120_daily_bin1600.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/293963/ltcube_654048001_654307201_4FGL_J2225.6+2120_daily_bin1600.fits
.....................!
real 190.59
user 185.25
sys 5.02

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/293963/ft1_filtered_4FGL_J2225.6+2120_daily_bin1600.fits scfile=/scratch/kocevski/293963/ft2_4FGL_J2225.6+2120_daily_bin1600.fits outfile=/scratch/kocevski/293963/cmap_654048001_654307201_4FGL_J2225.6+2120_daily_bin1600.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293963/ft1_filtered_4FGL_J2225.6+2120_daily_bin1600.fits scfile=/scratch/kocevski/293963/ft2_4FGL_J2225.6+2120_daily_bin1600.fits outfile=/scratch/kocevski/293963/cmap_HighResolution_654048001_654307201_4FGL_J2225.6+2120_daily_bin1600.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/293963/ft1_filtered_4FGL_J2225.6+2120_daily_bin1600.fits evtable="EVENTS" scfile=/scratch/kocevski/293963/ft2_4FGL_J2225.6+2120_daily_bin1600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293963/Model_4FGL_J2225.6+2120_daily_bin1600.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/293963/ft1_filtered_4FGL_J2225.6+2120_daily_bin1600.fits.....................!
real 89.39
user 88.02
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.340       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1752       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11746E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .49887       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .44936       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27599E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.037       1.0000         .10000E-03   10000.    
    10 'Prefactor '    143.78       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.221       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31675       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1601       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8517       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1396       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .60240       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.178       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2726       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91385       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=   8772.240     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2992 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.218        97.517       -.64019E-06   -.37651E-04
   2  norm          1.1712        2.5677        .34347E-06   -.46397E-04
   3  Prefactor     .10000E-03    34.024       -.18096E-05** at limit **
   4  norm          .49895        .79075        .40436E-06    .11547E-02
   5  Prefactor     .10000E-03    35.407       -.72677E-07** at limit **
   6  norm          .44929        .97112        .48663E-06   -.68054E-04
   7  Prefactor     .10011E-03    16.953        .16337E-05** at limit **
   8  norm          .10000E-03    3.1544       -.11681E-07** at limit **
   9  Prefactor     15.025        15.944        .33570E-06   -.15464E-04
  10  Prefactor     143.85        119.21       -.12957E-05   -.23104E-04
  11  Prefactor     12.226        11.156       -.12073E-06   -.12707E-03
  12  Prefactor     .31684        .18091        .33721E-07   -.15280E-03
  13  Prefactor     .10000E-03    6.8460        .12769E-07** at limit **
  14  norm          1.1596        1.1589        .27295E-06   -.11736E-03
  15  Prefactor     2.8481        27.183        .13800E-06   -.11819E-04
  16  norm          1.1395        .96586       -.11923E-07    .41739E-04
  17  Prefactor     .10000E-03    21.078        .28035E-07** at limit **
  18  Prefactor     12.036        8.7967        .11134E-06   -.23018E-04
  19  Prefactor     .10000E-03    8.2646       -.19954E-08** at limit **
  20  Prefactor     .60236        .17509        .25416E-07   -.40446E-03
  21  Prefactor     15.175        12.976        .27407E-06   -.19746E-04
  22  Prefactor     .10000E-03    16.614        .34069E-08** at limit **
  23  Prefactor     .10000E-03    8.4507        .52267E-08** at limit **
  24  Normalizat    1.2728        .25056       -.36347E-05   -.69841E-04
  25  Prefactor     .91387        .11273        .10187E-05   -.52544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.2176
  norm       = 1.17122
  Prefactor  = 0.0001
  norm       = 0.498954
  Prefactor  = 0.0001
  norm       = 0.449286
  Prefactor  = 0.000100109
  norm       = 0.0001
  Prefactor  = 15.0248
  Prefactor  = 143.846
  Prefactor  = 12.2259
  Prefactor  = 0.316844
  Prefactor  = 0.0001
  norm       = 1.15957
  Prefactor  = 2.8481
  norm       = 1.1395
  Prefactor  = 0.0001
  Prefactor  = 12.0363
  Prefactor  = 0.0001
  Prefactor  = 0.602359
  Prefactor  = 15.175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27279
  Prefactor  = 0.91387
 **********
 **   18 **HESSE 
 **********

 FCN=   8772.240     FROM HESSE     STATUS=OK           443 CALLS     3435 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.218        97.466        .26262E-03   -1.4180    
   2  norm          1.1712        2.5424        .20770E-03   -1.5492    
   3  Prefactor     .10000E-03    33.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .49895        .71827        .11248E-02   -1.5567    
   5  Prefactor     .10000E-03    35.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .44929        .95618        .12776E-03   -1.5574    
   7  Prefactor     .10011E-03    20.222        .98211E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.1906        .16237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.025        15.882        .10329E-03   -1.4933    
  10  Prefactor     143.85        119.79        .16801E-03   -1.3303    
  11  Prefactor     12.226        11.239        .11459E-03   -1.5009    
  12  Prefactor     .31684        .17830        .27930E-04   -1.5595    
  13  Prefactor     .10000E-03    6.9108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1596        1.1205        .91284E-04   -1.5493    
  15  Prefactor     2.8481        26.532        .24076E-03   -1.5370    
  16  norm          1.1395        .97713        .82516E-04   -1.5494    
  17  Prefactor     .10000E-03    21.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.036        8.7928        .11546E-03   -1.5014    
  19  Prefactor     .10000E-03    8.2729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .60236        .17425        .20048E-04   -1.5553    
  21  Prefactor     15.175        12.984        .10280E-03   -1.4929    
  22  Prefactor     .10000E-03    16.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.4584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2728        .27749        .34454E-03   -.84382    
  25  Prefactor     .91387        .12875        .19588E-03   -.95658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.70942e-10
Minuit parameter uncertainties:
  1  97.7341
  2  2.54268
  3  7.29273e-05
  4  0.718285
  5  6.11374e-05
  6  0.95621
  7  0.00297395
  8  4.91792e-06
  9  15.8867
  10  119.995
  11  11.2413
  12  0.178305
  13  1.55744e-07
  14  1.1205
  15  17.3957
  16  0.977142
  17  1.21385e-05
  18  8.79372
  19  2.74177e-06
  20  0.174254
  21  12.9864
  22  2.31326e-05
  23  6.62339e-06
  24  0.277817
  25  0.128795
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.223e+01  1.124e+01  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.139e-01  1.288e-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.273e+00  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 1.11e-05 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/293963/likelihoodResults_654048001_654307201_4FGL_J2225.6+2120_daily_bin1600.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) = 8771.33812178
delta logL = 0.901806418555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8771.02074594
delta logL = 1.2191822572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24335E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9994       1.0000          .0000       10.000    
     3 'Normalizat'    1.1701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95636       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=   8771.021     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      537 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24300E-02    .20035E-02    .27954E-04** at limit **
   2  Index        10.0000        1.1489        .39920    ** at limit **
   3  Normalizat    1.1708        .27105        .35685E-03   -.53522E-04
   4  Prefactor     .95593        .13136        .19214E-03   -.19644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00242999
  Index      = 10
  Normalizat = 1.1708
  Prefactor  = 0.955931
 **********
 **   18 **HESSE 
 **********

 FCN=   8771.021     FROM HESSE     STATUS=OK            31 CALLS      568 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24300E-02    .17907E-02    .11181E-05   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .82309        .44648        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1708        .27222        .14274E-04   -.87510    
   4  Prefactor     .95593        .13171        .38428E-04   -.94213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31535e-11
Minuit parameter uncertainties:
  1  0.00179069
  2  5.09382e-05
  3  0.272552
  4  0.131759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293963': 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) = 8771.02073383
delta logL = 1.21919436712

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.430e-03  1.791e-03  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  1.000e+01  5.094e-05  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.559e-01  1.318e-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.171e+00  2.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.73
Ra Dec: 336.414 21.342
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.25e-07 +/- 8.94e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.01e-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/293963/cmap_HighResolution_654048001_654307201_4FGL_J2225.6+2120_daily_bin1600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='1.40e-05', photon_flux_error='4.60e-08', dlogl='1.22e+00', energy_flux='1.11e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-28 11:17:07.149805', photon_index_error2='0.00', photon_index2='10.00', ts='1.99', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.01e-05', EG='1.27', time_epoch_completed='1632853027.15', return_code='0', job_id='293963', GAL2='0.96', EG2='1.17', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='8.94e-08', ts2='4.73', photon_index='2.81' WHERE bin_id='1600' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:17:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 293963: <4FGL_J2225.6+2120_daily_bin1600> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1600 336.414 21.3418 654048001 654307201 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 :                                   844.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   965 sec.
    Turnaround time :                            967 sec.

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

