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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1414
RA = 336.414, Dec = 21.3418
tmin = 605836801, tmax = 606096001
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='293615', job_status='RUN', time_executed='2021-09-28 11:00:58.404786', time_epoch_executed='1632852058.4' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293615

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293615/ft1_4FGL_J2225.6+2120_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293615/ft2_4FGL_J2225.6+2120_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293615/ft1_4FGL_J2225.6+2120_daily_bin1414.fits outfile=/scratch/kocevski/293615/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1414.fits ra=336.414 dec=21.3418 rad=12.0 tmin=605836801.0 tmax=606096001.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.60
user 3.38
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293615/ft1_filtered_4FGL_J2225.6+2120_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/293615/ft2_4FGL_J2225.6+2120_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/293615/ltcube_605836801_606096001_4FGL_J2225.6+2120_daily_bin1414.fits outfile=/scratch/kocevski/293615/expmap_605836801_606096001_4FGL_J2225.6+2120_daily_bin1414.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/293615/ltcube_605836801_606096001_4FGL_J2225.6+2120_daily_bin1414.fits
.....................!
real 190.51
user 185.38
sys 4.75

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/293615/ft1_filtered_4FGL_J2225.6+2120_daily_bin1414.fits scfile=/scratch/kocevski/293615/ft2_4FGL_J2225.6+2120_daily_bin1414.fits outfile=/scratch/kocevski/293615/cmap_605836801_606096001_4FGL_J2225.6+2120_daily_bin1414.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.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.849       1.0000         .10000E-03   10000.    
     2 'norm      '    .42877       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.620       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10867E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13825       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .91225E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    69.425       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.521       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14630       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9062       1.0000         .10000E-03   10000.    
    14 'norm      '    2.1565       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .39736       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71360       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3331       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.9094       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63741       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1432       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=   7535.852     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3417 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.871        160.82        .74613E-05    .30494E-04
   2  norm          .42827        1.9926        .12621E-05   -.22882E-03
   3  Prefactor     21.621        30.167       -.35375E-05   -.36147E-03
   4  norm          .10000E-03    .21251        .62015E-09** at limit **
   5  Prefactor     .10000E-03    30.676       -.74294E-07** at limit **
   6  norm          .10913E-01    .37839        .10854E-06   -.13394E-03
   7  Prefactor     .10000E-03    25.904       -.12727E-06** at limit **
   8  norm          .13365        3.1557       -.42341E-06    .23202E-03
   9  Prefactor     .10000E-03    11.419        .14247E-06** at limit **
  10  Prefactor     69.376        86.958       -.73370E-05   -.28416E-03
  11  Prefactor     10.522        10.606        .63560E-07   -.24644E-04
  12  Prefactor     .14632        .14600        .22252E-07   -.41381E-03
  13  Prefactor     5.9061        6.1832       -.28454E-06   -.13789E-03
  14  norm          2.1563        1.0463        .68366E-07    .93768E-06
  15  Prefactor     .10000E-03    10.231        .32905E-07** at limit **
  16  norm          .39618        1.0251        .51724E-06    .22275E-03
  17  Prefactor     .10000E-03    8.2638        .17163E-07** at limit **
  18  Prefactor     .10000E-03    4.8611       -.19407E-07** at limit **
  19  Prefactor     .10000E-03    17.487       -.92423E-08** at limit **
  20  Prefactor     .71359        .16947       -.32333E-07   -.37254E-03
  21  Prefactor     .10000E-03    13.547        .25639E-06** at limit **
  22  Prefactor     4.3313        8.6808        .49444E-05   -.76725E-03
  23  Prefactor     7.9051        23.505        .45392E-05    .25356E-03
  24  Normalizat    .63740        .23082       -.79520E-06   -.91724E-04
  25  Prefactor     1.1433        .11737       -.36379E-07   -.20225E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.871
  norm       = 0.428271
  Prefactor  = 21.6207
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0109131
  Prefactor  = 0.0001
  norm       = 0.133649
  Prefactor  = 0.000100001
  Prefactor  = 69.3756
  Prefactor  = 10.5219
  Prefactor  = 0.146322
  Prefactor  = 5.90608
  norm       = 2.15632
  Prefactor  = 0.0001
  norm       = 0.396181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.713592
  Prefactor  = 0.0001
  Prefactor  = 4.3313
  Prefactor  = 7.90507
  Normalizat = 0.637398
  Prefactor  = 1.14331
 **********
 **   18 **HESSE 
 **********

 FCN=   7535.852     FROM HESSE     STATUS=OK           449 CALLS     3866 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.871        163.10        .10061E-03   -1.4911    
   2  norm          .42827        1.9251        .22703E-03   -1.5577    
   3  Prefactor     21.621        30.401        .86143E-04   -1.4778    
   4  norm          .10000E-03    .21252        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10913E-01    1.1931        .18270E-01   -1.5687    
   7  Prefactor     .10000E-03    26.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .13365        18.077        .29408E-02   -1.5635    
   9  Prefactor     .10000E-03    14.169        .78564E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     69.376        90.377        .48175E-04   -1.4040    
  11  Prefactor     10.522        10.598        .12353E-03   -1.5059    
  12  Prefactor     .14632        .13533        .31159E-03   -1.5631    
  13  Prefactor     5.9061        6.1871        .16524E-03   -1.5222    
  14  norm          2.1563        1.0465        .28054E-04   -1.5414    
  15  Prefactor     .10000E-03    10.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .39618        .89357        .13962E-02   -1.5582    
  17  Prefactor     .10000E-03    8.2663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.8921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .71359        .16939        .16543E-04   -1.5539    
  21  Prefactor     .10000E-03    13.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.3313        9.1456        .96757E-03   -1.5292    
  23  Prefactor     7.9051        23.881        .14257E-03   -1.5146    
  24  Normalizat    .63740        .25688        .40582E-03   -1.0642    
  25  Prefactor     1.1433        .13293        .16577E-03   -.88094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20396e-09
Minuit parameter uncertainties:
  1  102.116
  2  1.81591
  3  30.4227
  4  2.40584e-08
  5  9.1472e-06
  6  0.227171
  7  0.000133755
  8  3.10851
  9  0.000174369
  10  90.5562
  11  10.6003
  12  0.135328
  13  6.18775
  14  1.04651
  15  1.65577e-06
  16  0.893603
  17  1.56748e-06
  18  6.97426e-06
  19  6.21973e-06
  20  0.169393
  21  2.68252e-05
  22  9.14854
  23  23.9095
  24  0.257364
  25  0.132964
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.052e+01  1.060e+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.143e+00  1.330e-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.374e-01  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 4.31e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 9.58e-06 +/- 9.65e-06

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

Saving results to:
/scratch/kocevski/293615/likelihoodResults_605836801_606096001_4FGL_J2225.6+2120_daily_bin1414.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) = 7535.70847077
delta logL = 0.143719403524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7535.70605501
delta logL = 0.146135164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.344       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2812       1.0000          .0000       10.000    
     3 'Normalizat'    .66094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1349       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=   7535.706     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      247 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.347        12.335        .11894E-03   -.24478E-03
   2  Index         2.2816        .92797        .13688E-01   -.55899E-04
   3  Normalizat    .66092        .24761        .39892E-03   -.64632E-03
   4  Prefactor     1.1349        .13104        .16630E-03   -.12451E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3467
  Index      = 2.28163
  Normalizat = 0.660915
  Prefactor  = 1.13489
 **********
 **   18 **HESSE 
 **********

 FCN=   7535.706     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.347        12.519        .47578E-05   -1.5034    
   2  Index         2.2816        .94164        .54753E-03   -.57481    
   3  Normalizat    .66092        .24792        .15957E-04   -1.0546    
   4  Prefactor     1.1349        .13113        .33259E-04   -.88359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01292e-09
Minuit parameter uncertainties:
  1  12.5219
  2  0.949729
  3  0.248342
  4  0.131164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293615': 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) = 7535.70605488
delta logL = 0.146135287428

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.135e+01  1.252e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.282e+00  9.497e-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.135e+00  1.312e-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.609e-01  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 336.414 21.342
Photon Index (Free Index): 2.28 +/- 0.95
Photon Flux (Free Index): 2.92e-08 +/- 4.34e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.31e-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/293615/cmap_HighResolution_605836801_606096001_4FGL_J2225.6+2120_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='4.31e-08', energy_flux2='1.14e-05', photon_flux_error='4.34e-08', dlogl='1.46e-01', energy_flux='9.58e-06', photon_flux2='2.92e-08', job_status='DONE', time_completed='2021-09-28 11:14:03.854810', photon_index_error2='0.95', photon_index2='2.28', ts='1.58', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.31e-05', EG='0.64', time_epoch_completed='1632852843.85', return_code='0', job_id='293615', GAL2='1.13', EG2='0.66', return_code2='0', energy_flux_error='9.65e-06', photon_flux_error2='4.34e-08', ts2='1.84', photon_index='2.81' WHERE bin_id='1414' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:14:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 293615: <4FGL_J2225.6+2120_daily_bin1414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1414 336.414 21.3418 605836801 606096001 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 :                                   785.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

