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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1240
RA = 336.414, Dec = 21.3418
tmin = 560736001, tmax = 560995201
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='290898', job_status='RUN', time_executed='2021-09-28 10:58:47.509087', time_epoch_executed='1632851927.51' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290898/ft1_4FGL_J2225.6+2120_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290898/ft2_4FGL_J2225.6+2120_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290898/ft1_4FGL_J2225.6+2120_daily_bin1240.fits outfile=/scratch/kocevski/290898/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1240.fits ra=336.414 dec=21.3418 rad=12.0 tmin=560736001.0 tmax=560995201.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.78
user 3.53
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290898/ft1_filtered_4FGL_J2225.6+2120_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/290898/ft2_4FGL_J2225.6+2120_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/290898/ltcube_560736001_560995201_4FGL_J2225.6+2120_daily_bin1240.fits outfile=/scratch/kocevski/290898/expmap_560736001_560995201_4FGL_J2225.6+2120_daily_bin1240.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/290898/ltcube_560736001_560995201_4FGL_J2225.6+2120_daily_bin1240.fits
.....................!
real 190.02
user 185.68
sys 4.01

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/290898/ft1_filtered_4FGL_J2225.6+2120_daily_bin1240.fits scfile=/scratch/kocevski/290898/ft2_4FGL_J2225.6+2120_daily_bin1240.fits outfile=/scratch/kocevski/290898/cmap_560736001_560995201_4FGL_J2225.6+2120_daily_bin1240.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290898/ft1_filtered_4FGL_J2225.6+2120_daily_bin1240.fits scfile=/scratch/kocevski/290898/ft2_4FGL_J2225.6+2120_daily_bin1240.fits outfile=/scratch/kocevski/290898/cmap_HighResolution_560736001_560995201_4FGL_J2225.6+2120_daily_bin1240.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11120E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .39877E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    80.571       1.0000         .10000E-03   10000.    
     4 'norm      '    .11067E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10782E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    32.412       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.020       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13875E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.421       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33355       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0696       1.0000         .10000E-03   10000.    
    14 'norm      '    4.7324       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.773       1.0000         .10000E-03   10000.    
    16 'norm      '    7.2195       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.226       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1239       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .98501       1.0000         .10000E-03   10000.    
    23 'Prefactor '    102.04       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83672       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .54265       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=   3129.820     FROM MIGRAD    STATUS=CONVERGED   1054 CALLS     3921 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    233.26        .18142E-02** at limit **
   2  norm          .10000E-03    13.124        .50788E-01** at limit **
   3  Prefactor     80.674        109.99        .22372E-03   -.12120E-04
   4  norm          .10000E-03    26.324        .18142E-02** at limit **
   5  Prefactor     .10000E-03    74.174        .18142E-02** at limit **
   6  norm          .10000E-03    1.5084        .13138E-03** at limit **
   7  Prefactor     .10000E-03    132.41        .18142E-02** at limit **
   8  norm          32.404        16.151        .70383E-04   -.58150E-05
   9  Prefactor     37.018        33.565        .65870E-04    .18985E-05
  10  Prefactor     .10000E-03    438.20        .18142E-02** at limit **
  11  Prefactor     22.403        41.758        .84593E-04    .15119E-04
  12  Prefactor     .33368        .36941        .29346E-04   -.67155E-03
  13  Prefactor     2.0520        20.970        .28716E-03    .22685E-04
  14  norm          4.7433        9.1568        .84824E-03    .11151E-04
  15  Prefactor     22.326        336.40        .41968E-03    .10375E-04
  16  norm          7.2239        5.4489        .10764E-03    .40134E-04
  17  Prefactor     .10000E-03    34.356        .18142E-02** at limit **
  18  Prefactor     .10000E-03    43.351        .18142E-02** at limit **
  19  Prefactor     18.242        41.632        .93815E-04    .69074E-05
  20  Prefactor     7.1234        .69861        .12818E-04    .39867E-03
  21  Prefactor     .10000E-03    20.470        .18142E-02** at limit **
  22  Prefactor     .99259        84.807        .48630E-02    .34049E-04
  23  Prefactor     102.02        94.825        .19901E-03    .37989E-05
  24  Normalizat    .83849        .64171        .55581E-03    .51238E-05
  25  Prefactor     .54200        .26616        .30894E-03   -.77277E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 80.6739
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 32.4042
  Prefactor  = 37.0175
  Prefactor  = 0.0001
  Prefactor  = 22.4034
  Prefactor  = 0.333682
  Prefactor  = 2.05203
  norm       = 4.74326
  Prefactor  = 22.326
  norm       = 7.2239
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.2417
  Prefactor  = 7.12344
  Prefactor  = 0.0001
  Prefactor  = 0.992589
  Prefactor  = 102.02
  Normalizat = 0.838494
  Prefactor  = 0.542004
 **********
 **   18 **HESSE 
 **********

 FCN=   3129.820     FROM HESSE     STATUS=OK           415 CALLS     4336 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    233.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.614        .52100E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     80.674        109.89        .89488E-05   -1.3909    
   4  norm          .10000E-03    26.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    74.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.5084        .26276E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    132.44        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          32.404        16.148        .28153E-05   -1.4569    
   9  Prefactor     37.018        33.551        .26348E-05   -1.4490    
  10  Prefactor     .10000E-03    438.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     22.403        41.743        .33837E-05   -1.4761    
  12  Prefactor     .33368        .36916        .11739E-05   -1.5592    
  13  Prefactor     2.0520        20.943        .11486E-04   -1.5421    
  14  norm          4.7433        9.1693        .33930E-04   -1.5272    
  15  Prefactor     22.326        337.34        .16787E-04   -1.4763    
  16  norm          7.2239        5.4474        .43057E-05   -1.5170    
  17  Prefactor     .10000E-03    34.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.242        41.630        .37526E-05   -1.4854    
  20  Prefactor     7.1234        .69626        .51273E-06   -1.5174    
  21  Prefactor     .10000E-03    20.471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .99259        83.862        .19452E-03   -1.5509    
  23  Prefactor     102.02        94.810        .79603E-05   -1.3684    
  24  Normalizat    .83849        .64203        .22232E-04   -.98656    
  25  Prefactor     .54200        .26617        .12358E-04   -1.1009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16117e-11
Minuit parameter uncertainties:
  1  7.37092e-06
  2  0.000185416
  3  110.171
  4  4.88322e-06
  5  5.50211e-06
  6  1.60566e-06
  7  0.000269468
  8  16.1506
  9  33.5686
  10  0.000406562
  11  41.7973
  12  0.369167
  13  13.1168
  14  9.17204
  15  174.76
  16  5.44777
  17  3.98947e-06
  18  1.01903e-05
  19  41.6961
  20  0.696264
  21  3.31994e-05
  22  18.2729
  23  94.9513
  24  0.647985
  25  0.266784
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.240e+01  4.180e+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:  5.420e-01  2.668e-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.385e-01  6.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/290898/likelihoodResults_560736001_560995201_4FGL_J2225.6+2120_daily_bin1240.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) = 3129.81973077
delta logL = 2.95921317957e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3129.81972817
delta logL = 3.21899015034e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.321       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8233       1.0000          .0000       10.000    
     3 'Normalizat'    .83844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54197       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=   3129.820     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      273 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.296        43.785        .84781E-04    .44251E-05
   2  Index         2.8222        1.3770        .13624E-01    .55757E-04
   3  Normalizat    .83820        .56261        .55592E-03   -.36810E-06
   4  Prefactor     .54212        .25642        .30891E-03    .20241E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2962
  Index      = 2.82218
  Normalizat = 0.838198
  Prefactor  = 0.542121
 **********
 **   18 **HESSE 
 **********

 FCN=   3129.820     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.296        42.967        .33912E-05   -1.4763    
   2  Index         2.8222        1.3523        .27248E-02   -.45066    
   3  Normalizat    .83820        .56310        .22237E-04   -.98667    
   4  Prefactor     .54212        .25658        .12356E-04   -1.1008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.705e-13
Minuit parameter uncertainties:
  1  43.0271
  2  1.37355
  3  0.567101
  4  0.257133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290898': 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) = 3129.81972722
delta logL = 3.31406558871e-05

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.230e+01  4.303e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.822e+00  1.374e+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:  5.421e-01  2.571e-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.382e-01  5.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
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/290898/cmap_HighResolution_560736001_560995201_4FGL_J2225.6+2120_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-02', job_status='DONE', photon_flux_upper_limit='5.25e-07', time_completed='2021-09-28 11:07:35.676147', job_id='290898', GAL2='0.54', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632852455.68', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='3.31e-05', ts2='0.38', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1240' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:07:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 290898: <4FGL_J2225.6+2120_daily_bin1240> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1240> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:55:28 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:55:29 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:55:29 2021
Terminated at Tue Sep 28 11:07:36 2021
Results reported at Tue Sep 28 11:07:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1240 336.414 21.3418 560736001 560995201 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 :                                   527.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            728 sec.

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

