/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 114 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 = 7468
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin423
RA = 336.414, Dec = 21.3418
tmin = 348969601, tmax = 349228801
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='286224', job_status='RUN', time_executed='2021-09-28 10:42:43.374816', time_epoch_executed='1632850963.37' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286224/ft1_4FGL_J2225.6+2120_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286224/ft2_4FGL_J2225.6+2120_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286224/ft1_4FGL_J2225.6+2120_daily_bin423.fits outfile=/scratch/kocevski/286224/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin423.fits ra=336.414 dec=21.3418 rad=12.0 tmin=348969601.0 tmax=349228801.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.77
user 3.54
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286224/ft1_filtered_4FGL_J2225.6+2120_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/286224/ft2_4FGL_J2225.6+2120_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/286224/ltcube_348969601_349228801_4FGL_J2225.6+2120_daily_bin423.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/286224/ft2_4FGL_J2225.6+2120_daily_bin423.fits
.....................!
real 15.84
user 12.69
sys 2.90

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286224/ft1_filtered_4FGL_J2225.6+2120_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/286224/ft2_4FGL_J2225.6+2120_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/286224/ltcube_348969601_349228801_4FGL_J2225.6+2120_daily_bin423.fits outfile=/scratch/kocevski/286224/expmap_348969601_349228801_4FGL_J2225.6+2120_daily_bin423.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/286224/ltcube_348969601_349228801_4FGL_J2225.6+2120_daily_bin423.fits
.....................!
real 205.09
user 187.89
sys 15.52

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/286224/ft1_filtered_4FGL_J2225.6+2120_daily_bin423.fits scfile=/scratch/kocevski/286224/ft2_4FGL_J2225.6+2120_daily_bin423.fits outfile=/scratch/kocevski/286224/cmap_348969601_349228801_4FGL_J2225.6+2120_daily_bin423.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.56
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286224/ft1_filtered_4FGL_J2225.6+2120_daily_bin423.fits scfile=/scratch/kocevski/286224/ft2_4FGL_J2225.6+2120_daily_bin423.fits outfile=/scratch/kocevski/286224/cmap_HighResolution_348969601_349228801_4FGL_J2225.6+2120_daily_bin423.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12275E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9497       1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.597       1.0000         .10000E-03   10000.    
     4 'norm      '    5.7645       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11635E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.192       1.0000         .10000E-03   10000.    
     8 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.233       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4750       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .86447       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8705       1.0000         .10000E-03   10000.    
    14 'norm      '    .36624       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2841       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7072       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .36928E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .81453E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9591       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4740       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.754       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0213       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0444       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=   7382.096     FROM MIGRAD    STATUS=CONVERGED   1068 CALLS     3043 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    104.34        .18142E-02** at limit **
   2  norm          1.9495        2.0394        .12011E-03   -.67583E-04
   3  Prefactor     42.590        33.450        .61423E-04   -.29244E-04
   4  norm          5.7646        1.7732        .61324E-04    .66740E-05
   5  Prefactor     .10000E-03    30.162        .18142E-02** at limit **
   6  norm          .10000E-03    1.4867        .14370E-02** at limit **
   7  Prefactor     21.194        14.766        .87008E-04    .12544E-04
   8  norm          .10000E-03    2.8925        .14160E-02** at limit **
   9  Prefactor     .10000E-03    4.5861        .17955E-02** at limit **
  10  Prefactor     13.358        49.254        .11011E-03   -.21785E-04
  11  Prefactor     2.4799        12.119        .25989E-03   -.22966E-04
  12  Prefactor     .86454        .25376        .22398E-04   -.96948E-04
  13  Prefactor     7.8735        8.5617        .14293E-03   -.41250E-04
  14  norm          .36741        .94968        .12355E-03    .17943E-03
  15  Prefactor     2.2358        31.938        .27165E-03    .30760E-04
  16  norm          2.7076        1.6647        .84777E-04    .93870E-06
  17  Prefactor     .10000E-03    24.949        .12342    ** at limit **
  18  Prefactor     .10000E-03    3.2222        .15043E-02** at limit **
  19  Prefactor     .10000E-03    7.5922        .18142E-02** at limit **
  20  Prefactor     .81397E-01    .74074E-01    .21317E-04    .15519E-03
  21  Prefactor     8.9637        13.658        .13391E-03    .22074E-04
  22  Prefactor     3.4843        8.8765        .21695E-03   -.19913E-05
  23  Prefactor     19.768        19.773        .90115E-04   -.15139E-05
  24  Normalizat    1.0207        .27565        .35535E-03   -.28602E-04
  25  Prefactor     1.0446        .13965        .18463E-03    .86206E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.94952
  Prefactor  = 42.5899
  norm       = 5.76457
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.194
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3579
  Prefactor  = 2.47989
  Prefactor  = 0.864537
  Prefactor  = 7.87346
  norm       = 0.367406
  Prefactor  = 2.23577
  norm       = 2.70757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0813969
  Prefactor  = 8.96373
  Prefactor  = 3.48432
  Prefactor  = 19.7676
  Normalizat = 1.02066
  Prefactor  = 1.04459
 **********
 **   18 **HESSE 
 **********

 FCN=   7382.096     FROM HESSE     STATUS=OK           411 CALLS     3454 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    104.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9495        2.0393        .48043E-05   -1.5429    
   3  Prefactor     42.590        33.441        .24569E-05   -1.4402    
   4  norm          5.7646        1.7731        .24529E-05   -1.5228    
   5  Prefactor     .10000E-03    30.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4915        .28739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.194        14.765        .34803E-05   -1.4787    
   8  norm          .10000E-03    2.8935        .28319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5863        .35910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.358        49.252        .44045E-05   -1.4977    
  11  Prefactor     2.4799        12.113        .10396E-04   -1.5393    
  12  Prefactor     .86454        .25376        .89591E-06   -1.5522    
  13  Prefactor     7.8735        8.5617        .28585E-04   -1.5147    
  14  norm          .36741        .94884        .49421E-05   -1.5587    
  15  Prefactor     2.2358        31.883        .10866E-04   -1.5409    
  16  norm          2.7076        1.6647        .33911E-05   -1.5379    
  17  Prefactor     .10000E-03    24.405        .12547       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2225        .30086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.5929        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .81397E-01    .74072E-01    .85268E-06   -1.5651    
  21  Prefactor     8.9637        13.657        .53563E-05   -1.5109    
  22  Prefactor     3.4843        8.8759        .86782E-05   -1.5335    
  23  Prefactor     19.768        19.771        .36046E-05   -1.4818    
  24  Normalizat    1.0207        .27580        .14214E-04   -.92342    
  25  Prefactor     1.0446        .13977        .73852E-05   -.91258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98293e-11
Minuit parameter uncertainties:
  1  3.71365e-05
  2  2.03934
  3  33.4558
  4  1.77315
  5  5.30398e-06
  6  3.56577e-06
  7  14.7674
  8  2.91798e-06
  9  9.04987e-07
  10  49.4022
  11  10.9649
  12  0.253761
  13  8.56302
  14  0.948883
  15  16.8963
  16  1.66471
  17  0.000175543
  18  2.22112e-06
  19  1.88674e-06
  20  0.0740717
  21  13.6613
  22  8.8793
  23  19.7776
  24  0.27619
  25  0.139815
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.480e+00  1.096e+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.045e+00  1.398e-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.021e+00  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/286224/likelihoodResults_348969601_349228801_4FGL_J2225.6+2120_daily_bin423.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) = 7382.09408214
delta logL = 0.0014714453082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7382.09391005
delta logL = 0.00164353496621

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6695       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6938       1.0000          .0000       10.000    
     3 'Normalizat'    1.0220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0442       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7382.094     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      281 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6969        14.229        .12472E-02   -.76041E-04
   2  Index         2.7001        1.8931        .22906E-01    .18317E-04
   3  Normalizat    1.0212        .26556        .35526E-03   -.10983E-03
   4  Prefactor     1.0443        .13862        .18465E-03   -.66753E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6969
  Index      = 2.70012
  Normalizat = 1.02123
  Prefactor  = 1.04431
 **********
 **   18 **HESSE 
 **********

 FCN=   7382.094     FROM HESSE     STATUS=OK            27 CALLS      308 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6969        12.877        .49888E-04   -1.5380    
   2  Index         2.7001        1.8091        .91623E-03   -.47797    
   3  Normalizat    1.0212        .26590        .14210E-04   -.92323    
   4  Prefactor     1.0443        .13875        .36930E-04   -.91267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44278e-10
Minuit parameter uncertainties:
  1  11.7902
  2  1.86331
  3  0.266242
  4  0.138799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286224': 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) = 7382.09389454
delta logL = 0.00165903887228

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.697e+00  1.179e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.700e+00  1.863e+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.044e+00  1.388e-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.021e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/286224/cmap_HighResolution_348969601_349228801_4FGL_J2225.6+2120_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-28 10:56:47.207154', job_id='286224', GAL2='1.04', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632851807.21', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.66e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='423' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:56:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 286224: <4FGL_J2225.6+2120_daily_bin423> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin423> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Sep 28 10:40:38 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:40:40 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:40:40 2021
Terminated at Tue Sep 28 10:56:48 2021
Results reported at Tue Sep 28 10:56:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin423 336.414 21.3418 348969601 349228801 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 :                                   842.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

