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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1349
RA = 336.414, Dec = 21.3418
tmin = 588988801, tmax = 589248001
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='293416', job_status='RUN', time_executed='2021-09-28 11:03:06.409478', time_epoch_executed='1632852186.41' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293416

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293416/ft1_4FGL_J2225.6+2120_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293416/ft2_4FGL_J2225.6+2120_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293416/ft1_4FGL_J2225.6+2120_daily_bin1349.fits outfile=/scratch/kocevski/293416/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1349.fits ra=336.414 dec=21.3418 rad=12.0 tmin=588988801.0 tmax=589248001.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.16
user 2.94
sys 0.20

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293416/ft1_filtered_4FGL_J2225.6+2120_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/293416/ft2_4FGL_J2225.6+2120_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/293416/ltcube_588988801_589248001_4FGL_J2225.6+2120_daily_bin1349.fits outfile=/scratch/kocevski/293416/expmap_588988801_589248001_4FGL_J2225.6+2120_daily_bin1349.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/293416/ltcube_588988801_589248001_4FGL_J2225.6+2120_daily_bin1349.fits
.....................!
real 189.72
user 184.79
sys 4.56

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/293416/ft1_filtered_4FGL_J2225.6+2120_daily_bin1349.fits scfile=/scratch/kocevski/293416/ft2_4FGL_J2225.6+2120_daily_bin1349.fits outfile=/scratch/kocevski/293416/cmap_588988801_589248001_4FGL_J2225.6+2120_daily_bin1349.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=336.414 yref=21.3418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293416/ft1_filtered_4FGL_J2225.6+2120_daily_bin1349.fits scfile=/scratch/kocevski/293416/ft2_4FGL_J2225.6+2120_daily_bin1349.fits outfile=/scratch/kocevski/293416/cmap_HighResolution_588988801_589248001_4FGL_J2225.6+2120_daily_bin1349.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=336.414 yref=21.3418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .38856       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15018E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5055       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6285       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2925       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.753       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22065       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.814       1.0000         .10000E-03   10000.    
    14 'norm      '    8.3435       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.883       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2139       1.0000         .10000E-03   10000.    
    17 'Prefactor '    49.221       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.253       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.642       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .39831       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2902       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.9739       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.606       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83655       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0649       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=   8491.656     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2921 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.488        .13991E-04** at limit **
   2  norm          .36829        1.4621       -.34518E-06    .12848E-04
   3  Prefactor     .10001E-03    99.656       -.35249E-04** at limit **
   4  norm          2.5050        1.3200       -.94125E-07   -.51683E-03
   5  Prefactor     2.6303        62.298        .12766E-05   -.22272E-04
   6  norm          1.2926        1.1554       -.35209E-07    .24559E-03
   7  Prefactor     .10000E-03    25.508        .83250E-06** at limit **
   8  norm          .10000E-03    2.5941       -.95075E-07** at limit **
   9  Prefactor     .10000E-03    11.131        .28859E-07** at limit **
  10  Prefactor     .10000E-03    33.795       -.31390E-05** at limit **
  11  Prefactor     13.751        11.337       -.15467E-06   -.98829E-06
  12  Prefactor     .22033        .33815       -.26879E-07   -.23416E-02
  13  Prefactor     18.817        24.115        .15372E-05   -.63117E-05
  14  norm          8.3432        1.7068       -.34618E-08   -.26653E-04
  15  Prefactor     29.875        21.047       -.15484E-05   -.23438E-05
  16  norm          2.2137        1.8740        .26966E-07    .28797E-04
  17  Prefactor     49.196        42.036       -.22836E-04    .10813E-04
  18  Prefactor     42.253        18.551       -.85260E-07   -.31304E-04
  19  Prefactor     38.628        37.602       -.12031E-04    .87545E-05
  20  Prefactor     .39832        .23078        .41394E-06   -.26487E-03
  21  Prefactor     8.2875        10.129        .89418E-06   -.56503E-04
  22  Prefactor     9.9734        17.845        .10107E-05   -.28145E-04
  23  Prefactor     11.603        19.251       -.67428E-06   -.15025E-04
  24  Normalizat    .83682        .26136        .13770E-05    .13067E-03
  25  Prefactor     1.0649        .12092        .37896E-06    .37181E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.368293
  Prefactor  = 0.000100007
  norm       = 2.50504
  Prefactor  = 2.63035
  norm       = 1.29261
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7515
  Prefactor  = 0.220334
  Prefactor  = 18.8173
  norm       = 8.34322
  Prefactor  = 29.8753
  norm       = 2.21373
  Prefactor  = 49.1957
  Prefactor  = 42.2531
  Prefactor  = 38.6282
  Prefactor  = 0.398325
  Prefactor  = 8.28755
  Prefactor  = 9.97339
  Prefactor  = 11.6033
  Normalizat = 0.836821
  Prefactor  = 1.06493
 **********
 **   18 **HESSE 
 **********

 FCN=   8491.656     FROM HESSE     STATUS=OK           443 CALLS     3364 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .36829        6.2782        .20873E-02   -1.5587    
   3  Prefactor     .10001E-03    102.39        .40940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5050        1.3156        .72698E-04   -1.5391    
   5  Prefactor     2.6303        62.411        .25153E-03   -1.5384    
   6  norm          1.2926        1.1545        .38935E-04   -1.5481    
   7  Prefactor     .10000E-03    25.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.6060        .14491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.751        11.355        .10801E-03   -1.4966    
  12  Prefactor     .22033        .31806        .60064E-03   -1.5614    
  13  Prefactor     18.817        23.972        .92338E-04   -1.4840    
  14  norm          8.3432        1.7089        .50124E-04   -1.5130    
  15  Prefactor     29.875        21.073        .73292E-04   -1.4614    
  16  norm          2.2137        1.8773        .11077E-03   -1.5410    
  17  Prefactor     49.196        42.007        .28579E-03   -1.4304    
  18  Prefactor     42.253        18.509        .61671E-04   -1.4407    
  19  Prefactor     38.628        37.566        .64477E-04   -1.4464    
  20  Prefactor     .39832        .22536        .30333E-04   -1.5582    
  21  Prefactor     8.2875        10.116        .13924E-03   -1.5132    
  22  Prefactor     9.9734        17.802        .12688E-03   -1.5076    
  23  Prefactor     11.603        19.247        .11759E-03   -1.5027    
  24  Normalizat    .83682        .29433        .43948E-03   -.98717    
  25  Prefactor     1.0649        .13869        .19031E-03   -.90595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21667e-10
Minuit parameter uncertainties:
  1  1.02858e-05
  2  3.04115
  3  0.00166925
  4  1.31561
  5  25.6549
  6  1.1545
  7  5.89896e-05
  8  5.34966e-07
  9  6.80953e-06
  10  1.12721e-05
  11  11.3565
  12  0.318066
  13  23.9844
  14  1.70887
  15  21.0779
  16  1.87738
  17  42.0326
  18  18.512
  19  37.5893
  20  0.225356
  21  10.1177
  22  17.8117
  23  19.2575
  24  0.294895
  25  0.138734
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.375e+01  1.136e+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:  1.065e+00  1.387e-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.368e-01  2.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.96
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 5.64e-08 +/- 4.65e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/293416/likelihoodResults_588988801_589248001_4FGL_J2225.6+2120_daily_bin1349.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) = 8491.2522098
delta logL = 0.403681147543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8491.24397226
delta logL = 0.411918684697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.207       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1160       1.0000          .0000       10.000    
     3 'Normalizat'    .87270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0525       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=   8491.244     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.207        12.135        .26566E-02   -.61099E-03
   2  Index         2.1160        .51152        .25162        .22754E-04
   3  Normalizat    .87278        .24605        .97268E-01    .40826E-03
   4  Prefactor     1.0525        .11897        .39768E-01    .91091E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2068
  Index      = 2.11602
  Normalizat = 0.872784
  Prefactor  = 1.05249
 **********
 **   18 **HESSE 
 **********

 FCN=   8491.244     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.207        12.395        .10627E-03   -1.4954    
   2  Index         2.1160        .66285        .10797E-01   -.61480    
   3  Normalizat    .87278        .28253        .43097E-03   -.97423    
   4  Prefactor     1.0525        .13682        .19124E-03   -.91000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3472e-10
Minuit parameter uncertainties:
  1  12.3968
  2  0.665797
  3  0.283006
  4  0.136868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293416': 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) = 8491.24397181
delta logL = 0.411919135344

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.421e+01  1.240e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.116e+00  6.658e-01  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:  1.052e+00  1.369e-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.728e-01  2.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.75
Ra Dec: 336.414 21.342
Photon Index (Free Index): 2.12 +/- 0.67
Photon Flux (Free Index): 3.25e-08 +/- 3.55e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.85e-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/293416/cmap_HighResolution_588988801_589248001_4FGL_J2225.6+2120_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='5.64e-08', energy_flux2='1.73e-05', photon_flux_error='4.65e-08', dlogl='4.12e-01', energy_flux='1.25e-05', photon_flux2='3.25e-08', job_status='DONE', time_completed='2021-09-28 11:16:24.145230', photon_index_error2='0.67', photon_index2='2.12', ts='2.96', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.85e-05', EG='0.84', time_epoch_completed='1632852984.15', return_code='0', job_id='293416', GAL2='1.05', EG2='0.87', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='3.55e-08', ts2='3.75', photon_index='2.81' WHERE bin_id='1349' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 293416: <4FGL_J2225.6+2120_daily_bin1349> in cluster <slac> Done

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

Your job looked like:

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

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

