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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1560
RA = 336.414, Dec = 21.3418
tmin = 643680001, tmax = 643939201
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='293900', job_status='RUN', time_executed='2021-09-28 11:01:13.481530', time_epoch_executed='1632852073.48' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1560'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293900/ft1_4FGL_J2225.6+2120_daily_bin1560.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293900/ft2_4FGL_J2225.6+2120_daily_bin1560.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293900/ft1_4FGL_J2225.6+2120_daily_bin1560.fits outfile=/scratch/kocevski/293900/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1560.fits ra=336.414 dec=21.3418 rad=12.0 tmin=643680001.0 tmax=643939201.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.50
user 3.28
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293900/ft1_filtered_4FGL_J2225.6+2120_daily_bin1560.fits evtable="EVENTS" scfile=/scratch/kocevski/293900/ft2_4FGL_J2225.6+2120_daily_bin1560.fits sctable="SC_DATA" expcube=/scratch/kocevski/293900/ltcube_643680001_643939201_4FGL_J2225.6+2120_daily_bin1560.fits outfile=/scratch/kocevski/293900/expmap_643680001_643939201_4FGL_J2225.6+2120_daily_bin1560.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/293900/ltcube_643680001_643939201_4FGL_J2225.6+2120_daily_bin1560.fits
.....................!
real 191.27
user 185.92
sys 4.98

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/293900/ft1_filtered_4FGL_J2225.6+2120_daily_bin1560.fits scfile=/scratch/kocevski/293900/ft2_4FGL_J2225.6+2120_daily_bin1560.fits outfile=/scratch/kocevski/293900/cmap_643680001_643939201_4FGL_J2225.6+2120_daily_bin1560.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.62
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293900/ft1_filtered_4FGL_J2225.6+2120_daily_bin1560.fits scfile=/scratch/kocevski/293900/ft2_4FGL_J2225.6+2120_daily_bin1560.fits outfile=/scratch/kocevski/293900/cmap_HighResolution_643680001_643939201_4FGL_J2225.6+2120_daily_bin1560.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20976E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2488       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .90565E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14490       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2130       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26185E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .57321E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.2780       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0940       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9368       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32277       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7092       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3205       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .65172       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2156       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9678.062     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2561 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10095E-03    248.03         .0000    ** at limit **
   2  norm          .10000E-03    .54790         .0000    ** at limit **
   3  Prefactor     .10000E-03    19.910         .0000    ** at limit **
   4  norm          1.2486        1.2177         .0000        .11790E-02
   5  Prefactor     .10000E-03    14.812         .0000    ** at limit **
   6  norm          .10000E-03    .21828         .0000    ** at limit **
   7  Prefactor     .10000E-03    7.4967         .0000    ** at limit **
   8  norm          .10000E-03    1.5594         .0000    ** at limit **
   9  Prefactor     .10017E-03    7.2102         .0000    ** at limit **
  10  Prefactor     .10000E-03    62.086         .0000    ** at limit **
  11  Prefactor     5.2104        9.2678         .0000       -.98421E-03
  12  Prefactor     .26271E-01    .84898E-01     .0000        .72729E-02
  13  Prefactor     .10000E-03    2.1235         .0000    ** at limit **
  14  norm          .57490E-01    .41446         .0000        .33666E-02
  15  Prefactor     .10000E-03    7.4342         .0000    ** at limit **
  16  norm          6.2779        2.1581         .0000       -.13417E-03
  17  Prefactor     .10000E-03    8.4173         .0000    ** at limit **
  18  Prefactor     3.0912        8.8554         .0000        .55664E-02
  19  Prefactor     1.9346        26.524         .0000        .33241E-02
  20  Prefactor     .32273        .13339         .0000        .91342E-03
  21  Prefactor     .10000E-03    4.4403         .0000    ** at limit **
  22  Prefactor     7.7067        10.007         .0000       -.89453E-04
  23  Prefactor     3.3085        42.923         .0000       -.93600E-04
  24  Normalizat    .65214        .21504         .0000       -.39856E-04
  25  Prefactor     1.2155        .10598         .0000       -.16410E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100946
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.24863
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100174
  Prefactor  = 0.0001
  Prefactor  = 5.21044
  Prefactor  = 0.0262706
  Prefactor  = 0.0001
  norm       = 0.0574902
  Prefactor  = 0.0001
  norm       = 6.27787
  Prefactor  = 0.0001
  Prefactor  = 3.09124
  Prefactor  = 1.93462
  Prefactor  = 0.322735
  Prefactor  = 0.0001
  Prefactor  = 7.70673
  Prefactor  = 3.30846
  Normalizat = 0.652138
  Prefactor  = 1.2155
 **********
 **   18 **HESSE 
 **********

 FCN=   9678.062     FROM HESSE     STATUS=OK           441 CALLS     3002 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10095E-03    248.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .55407        .71092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2486        1.1977        .10292E-03   -1.5484    
   5  Prefactor     .10000E-03    14.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .22758        .89696E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.740        .51584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5750        .11994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10017E-03    10.523        .74282E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    62.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2104        9.2255        .17606E-03   -1.5251    
  12  Prefactor     .26271E-01    .94874E-01    .47823E-03   -1.5676    
  13  Prefactor     .10000E-03    2.1245        .14000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .57490E-01    1.0912        .12195E-02   -1.5660    
  15  Prefactor     .10000E-03    7.4473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2779        2.1553        .80849E-04   -1.5207    
  17  Prefactor     .10000E-03    8.4210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0912        8.8175        .11528E-02   -1.5356    
  19  Prefactor     1.9346        26.397        .14918E-02   -1.5430    
  20  Prefactor     .32273        .13135        .21176E-04   -1.5594    
  21  Prefactor     .10000E-03    4.4592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.7067        9.9757        .14443E-03   -1.5153    
  23  Prefactor     3.3085        42.798        .22215E-03   -1.5344    
  24  Normalizat    .65214        .23534        .42017E-03   -1.0581    
  25  Prefactor     1.2155        .11900        .16602E-03   -.85856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92181e-08
Minuit parameter uncertainties:
  1  0.0308227
  2  4.98925e-08
  3  2.49315e-05
  4  1.19775
  5  2.31522e-05
  6  2.54792e-08
  7  0.000189642
  8  6.33441e-07
  9  0.00270564
  10  0.000327716
  11  9.22799
  12  0.0948744
  13  7.42672e-07
  14  0.5005
  15  2.61187e-05
  16  2.15535
  17  3.07697e-05
  18  8.82118
  19  14.2997
  20  0.131351
  21  2.37097e-06
  22  9.97788
  23  23.8194
  24  0.235704
  25  0.119022
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  5.210e+00  9.228e+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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.215e+00  1.190e-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:  6.521e-01  2.357e-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: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293900/likelihoodResults_643680001_643939201_4FGL_J2225.6+2120_daily_bin1560.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) = 9678.05843144
delta logL = 0.00326624450099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9678.05779872
delta logL = 0.00389896448542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9120       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9346       1.0000          .0000       10.000    
     3 'Normalizat'    .64980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2164       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=   9678.058     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      257 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9137        9.9878        .18148E-03    .12817E-03
   2  Index         2.9346        1.4780        .12239E-01    .42642E-04
   3  Normalizat    .64982        .22711        .42089E-03    .89526E-03
   4  Prefactor     1.2164        .11827        .16597E-03    .18893E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.91367
  Index      = 2.93458
  Normalizat = 0.649819
  Prefactor  = 1.21638
 **********
 **   18 **HESSE 
 **********

 FCN=   9678.058     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9137        9.5626        .72592E-05   -1.5265    
   2  Index         2.9346        1.4164        .48958E-03   -.42584    
   3  Normalizat    .64982        .22730        .16835E-04   -1.0591    
   4  Prefactor     1.2164        .11832        .33194E-04   -.85829    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61023e-09
Minuit parameter uncertainties:
  1  9.56561
  2  1.4403
  3  0.227633
  4  0.118347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293900': 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) = 9678.05779869
delta logL = 0.00389899294714

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  4.914e+00  9.566e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.935e+00  1.440e+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:  1.216e+00  1.183e-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:  6.498e-01  2.276e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/293900/cmap_HighResolution_643680001_643939201_4FGL_J2225.6+2120_daily_bin1560.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-28 11:15:07.345648', job_id='293900', GAL2='1.22', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632852907.35', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='3.90e-03', ts2='0.40', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1560' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:15:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 293900: <4FGL_J2225.6+2120_daily_bin1560> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1560 336.414 21.3418 643680001 643939201 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 :                                   831.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             361.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            854 sec.

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

