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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1008
RA = 336.414, Dec = 21.3418
tmin = 500601601, tmax = 500860801
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='289276', job_status='RUN', time_executed='2021-09-28 10:53:00.132657', time_epoch_executed='1632851580.13' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289276/ft1_4FGL_J2225.6+2120_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289276/ft2_4FGL_J2225.6+2120_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289276/ft1_4FGL_J2225.6+2120_daily_bin1008.fits outfile=/scratch/kocevski/289276/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1008.fits ra=336.414 dec=21.3418 rad=12.0 tmin=500601601.0 tmax=500860801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.38
user 4.94
sys 0.22

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289276/ft1_filtered_4FGL_J2225.6+2120_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/289276/ft2_4FGL_J2225.6+2120_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/289276/ltcube_500601601_500860801_4FGL_J2225.6+2120_daily_bin1008.fits outfile=/scratch/kocevski/289276/expmap_500601601_500860801_4FGL_J2225.6+2120_daily_bin1008.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/289276/ltcube_500601601_500860801_4FGL_J2225.6+2120_daily_bin1008.fits
.....................!
real 190.49
user 185.26
sys 4.91

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/289276/ft1_filtered_4FGL_J2225.6+2120_daily_bin1008.fits scfile=/scratch/kocevski/289276/ft2_4FGL_J2225.6+2120_daily_bin1008.fits outfile=/scratch/kocevski/289276/cmap_500601601_500860801_4FGL_J2225.6+2120_daily_bin1008.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289276/ft1_filtered_4FGL_J2225.6+2120_daily_bin1008.fits scfile=/scratch/kocevski/289276/ft2_4FGL_J2225.6+2120_daily_bin1008.fits outfile=/scratch/kocevski/289276/cmap_HighResolution_500601601_500860801_4FGL_J2225.6+2120_daily_bin1008.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.812       1.0000         .10000E-03   10000.    
     2 'norm      '    16.455       1.0000         .10000E-03   10000.    
     3 'Prefactor '    77.996       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22381E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.8084       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .20126E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.150       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0142       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.202       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4457       1.0000         .10000E-03   10000.    
    14 'norm      '    5.8916       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11368E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.7176       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.564       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11943E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9729       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7246       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .86162       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.789       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6933       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .56153       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=   6749.820     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     3000 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.908        175.60        .81084E-04   -.32044E-05
   2  norm          16.448        6.3938       -.28377E-05   -.16437E-04
   3  Prefactor     78.143        67.557        .24073E-04   -.50247E-05
   4  norm          .10000E-03    .54138        .20612E-07** at limit **
   5  Prefactor     .10000E-03    62.949        .24591E-05** at limit **
   6  norm          1.8086        1.3849       -.32954E-06   -.32417E-03
   7  Prefactor     .10000E-03    7.0258       -.91672E-07** at limit **
   8  norm          .10000E-03    11.921        .17595E-06** at limit **
   9  Prefactor     .10000E-03    45.162       -.37279E-04** at limit **
  10  Prefactor     25.326        67.254        .65381E-04   -.44655E-05
  11  Prefactor     9.0087        15.402        .21386E-06   -.31629E-04
  12  Prefactor     12.201        .99302        .23960E-06    .48804E-02
  13  Prefactor     1.4867        72.059       -.48659E-04   -.48056E-04
  14  norm          5.8921        1.9743       -.15691E-06   -.12887E-02
  15  Prefactor     .10000E-03    37.825        .36402E-04** at limit **
  16  norm          5.7178        3.1134        .20898E-06    .78566E-04
  17  Prefactor     47.620        41.926       -.43423E-04    .40553E-04
  18  Prefactor     .10000E-03    11.397        .14368E-06** at limit **
  19  Prefactor     .10000E-03    29.197       -.13211E-04** at limit **
  20  Prefactor     3.9726        .47854        .25049E-06   -.11155E-02
  21  Prefactor     3.7613        11.141       -.12016E-04   -.13078E-03
  22  Prefactor     .86955        9.6238       -.60684E-06   -.14806E-03
  23  Prefactor     12.794        23.002       -.42721E-06   -.78079E-05
  24  Normalizat    1.6930        .32189       -.15840E-05    .61095E-04
  25  Prefactor     .56157        .14411       -.22819E-05    .44055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.9076
  norm       = 16.4482
  Prefactor  = 78.1427
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.80863
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3255
  Prefactor  = 9.00873
  Prefactor  = 12.2011
  Prefactor  = 1.48672
  norm       = 5.89208
  Prefactor  = 0.0001
  norm       = 5.71783
  Prefactor  = 47.62
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.97259
  Prefactor  = 3.76134
  Prefactor  = 0.869553
  Prefactor  = 12.7937
  Normalizat = 1.69297
  Prefactor  = 0.56157
 **********
 **   18 **HESSE 
 **********

 FCN=   6749.820     FROM HESSE     STATUS=OK           429 CALLS     3429 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.908        175.57        .21684E-03   -1.3852    
   2  norm          16.448        6.3975        .98735E-04   -1.4897    
   3  Prefactor     78.143        67.564        .45471E-04   -1.3938    
   4  norm          .10000E-03    .55580        .11803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    63.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.8086        1.3821        .81139E-04   -1.5439    
   7  Prefactor     .10000E-03    7.0295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.326        67.213        .79877E-04   -1.4701    
  11  Prefactor     9.0087        15.468        .13350E-03   -1.5108    
  12  Prefactor     12.201        .99261        .22088E-04   -1.5009    
  13  Prefactor     1.4867        73.730        .35855E-03   -1.5464    
  14  norm          5.8921        1.9781        .63813E-04   -1.5222    
  15  Prefactor     .10000E-03    38.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.7178        3.1138        .10387E-03   -1.5230    
  17  Prefactor     47.620        41.909        .29070E-03   -1.4327    
  18  Prefactor     .10000E-03    11.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9726        .47895        .18397E-04   -1.5309    
  21  Prefactor     3.7613        11.146        .20923E-03   -1.5320    
  22  Prefactor     .86955        48.142        .48675E-02   -1.5521    
  23  Prefactor     12.794        23.034        .11201E-03   -1.4992    
  24  Normalizat    1.6930        .38677        .39760E-03   -.72491    
  25  Prefactor     .56157        .17181        .30074E-03   -1.0923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41011e-10
Minuit parameter uncertainties:
  1  176.644
  2  6.39781
  3  67.6306
  4  1.18621e-06
  5  0.000274325
  6  1.3821
  7  1.82432e-05
  8  5.03536e-05
  9  0.000166971
  10  67.4153
  11  15.4745
  12  0.992612
  13  20.9662
  14  1.97813
  15  0.000171982
  16  3.11389
  17  41.9352
  18  6.11849e-05
  19  0.000101428
  20  0.478955
  21  11.1522
  22  12.9505
  23  23.0498
  24  0.387459
  25  0.171974
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  9.009e+00  1.547e+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.616e-01  1.720e-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.693e+00  3.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/289276/likelihoodResults_500601601_500860801_4FGL_J2225.6+2120_daily_bin1008.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) = 6749.786329
delta logL = 0.0337372161421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6749.78095475
delta logL = 0.0391114673212

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.663       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4616       1.0000          .0000       10.000    
     3 'Normalizat'    1.7008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55865       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=   6749.781     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      253 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.664        17.671        .12270E-03   -.67546E-03
   2  Index         2.4626        1.1511        .16364E-01   -.16997E-03
   3  Normalizat    1.7011        .36803        .39682E-03    .12019E-03
   4  Prefactor     .55843        .16965        .30148E-03    .12980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6644
  Index      = 2.46261
  Normalizat = 1.70111
  Prefactor  = 0.558429
 **********
 **   18 **HESSE 
 **********

 FCN=   6749.781     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.664        17.552        .24539E-04   -1.5055    
   2  Index         2.4626        1.1437        .65458E-03   -.53226    
   3  Normalizat    1.7011        .36845        .79363E-04   -.72274    
   4  Prefactor     .55843        .16979        .12059E-04   -1.0937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28837e-09
Minuit parameter uncertainties:
  1  17.5604
  2  1.15762
  3  0.369048
  4  0.169948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289276': 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) = 6749.78095332
delta logL = 0.0391128980791

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.066e+01  1.756e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.463e+00  1.158e+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.584e-01  1.699e-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.701e+00  3.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
Ra Dec: 336.414 21.342

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/289276/cmap_HighResolution_500601601_500860801_4FGL_J2225.6+2120_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-02', job_status='DONE', photon_flux_upper_limit='2.00e-07', time_completed='2021-09-28 11:05:52.372916', job_id='289276', GAL2='0.56', fit_tolerance='1e-08', EG2='1.70', EG='1.69', time_epoch_completed='1632852352.37', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='3.91e-02', ts2='0.56', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1008' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:05:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 289276: <4FGL_J2225.6+2120_daily_bin1008> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1008> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 10:50:48 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:50:50 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:50:50 2021
Terminated at Tue Sep 28 11:05:52 2021
Results reported at Tue Sep 28 11:05:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1008 336.414 21.3418 500601601 500860801 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 :                                   770.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

