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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1272
RA = 336.414, Dec = 21.3418
tmin = 569030401, tmax = 569289601
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='290944', job_status='RUN', time_executed='2021-09-28 10:57:38.384411', time_epoch_executed='1632851858.38' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290944

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290944/ft1_4FGL_J2225.6+2120_daily_bin1272.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290944/ft2_4FGL_J2225.6+2120_daily_bin1272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290944/ft1_4FGL_J2225.6+2120_daily_bin1272.fits outfile=/scratch/kocevski/290944/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1272.fits ra=336.414 dec=21.3418 rad=12.0 tmin=569030401.0 tmax=569289601.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.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/290944/ft2_4FGL_J2225.6+2120_daily_bin1272.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/290944/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1272.fits evtable="EVENTS" outfile="/scratch/kocevski/290944/ft1_filtered_4FGL_J2225.6+2120_daily_bin1272.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/290944/ft1_filtered_4FGL_J2225.6+2120_daily_bin1272.fits" evtable="EVENTS" scfile=/scratch/kocevski/290944/ft2_4FGL_J2225.6+2120_daily_bin1272.fits sctable="SC_DATA" outfile=/scratch/kocevski/290944/ltcube_569030401_569289601_4FGL_J2225.6+2120_daily_bin1272.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/290944/ft2_4FGL_J2225.6+2120_daily_bin1272.fits
.....................!
real 12.23
user 11.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290944/ft1_filtered_4FGL_J2225.6+2120_daily_bin1272.fits evtable="EVENTS" scfile=/scratch/kocevski/290944/ft2_4FGL_J2225.6+2120_daily_bin1272.fits sctable="SC_DATA" expcube=/scratch/kocevski/290944/ltcube_569030401_569289601_4FGL_J2225.6+2120_daily_bin1272.fits outfile=/scratch/kocevski/290944/expmap_569030401_569289601_4FGL_J2225.6+2120_daily_bin1272.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/290944/ltcube_569030401_569289601_4FGL_J2225.6+2120_daily_bin1272.fits
.....................!
real 191.77
user 185.72
sys 5.34

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/290944/ft1_filtered_4FGL_J2225.6+2120_daily_bin1272.fits scfile=/scratch/kocevski/290944/ft2_4FGL_J2225.6+2120_daily_bin1272.fits outfile=/scratch/kocevski/290944/cmap_569030401_569289601_4FGL_J2225.6+2120_daily_bin1272.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290944/ft1_filtered_4FGL_J2225.6+2120_daily_bin1272.fits scfile=/scratch/kocevski/290944/ft2_4FGL_J2225.6+2120_daily_bin1272.fits outfile=/scratch/kocevski/290944/cmap_HighResolution_569030401_569289601_4FGL_J2225.6+2120_daily_bin1272.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31769E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .18880E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .24759E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.767       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4611       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.746       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.039       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49527       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.291       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.195       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .97928       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7217       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .52104E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.457       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89176       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83049       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=   7922.015     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     2601 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    374.60        .59763E-04** at limit **
   2  norm          .10000E-03    .93852       -.29100E-06** at limit **
   3  Prefactor     .10000E-03    17.411       -.88177E-08** at limit **
   4  norm          .10000E-03    .25761       -.22470E-07** at limit **
   5  Prefactor     .10000E-03    32.054        .89958E-06** at limit **
   6  norm          .10296E-03    .35445       -.11945E-06** at limit **
   7  Prefactor     18.766        12.244       -.19581E-05    .64100E-05
   8  norm          .10000E-03    3.0904       -.88610E-07** at limit **
   9  Prefactor     6.4603        10.254       -.14207E-06   -.67665E-04
  10  Prefactor     22.728        36.248        .60724E-05    .11041E-05
  11  Prefactor     19.038        11.006        .13382E-05    .14167E-04
  12  Prefactor     .49518        .20241       -.37907E-07   -.43539E-03
  13  Prefactor     .10000E-03    5.2289       -.44419E-07** at limit **
  14  norm          3.0989        1.1396        .14515E-06   -.34740E-04
  15  Prefactor     10.290        14.610       -.76153E-05   -.20642E-04
  16  norm          .10000E-03    .43867        .67134E-07** at limit **
  17  Prefactor     .10000E-03    12.131       -.50573E-07** at limit **
  18  Prefactor     41.194        13.874       -.56172E-05    .11517E-04
  19  Prefactor     .10000E-03    26.717       -.12479E-05** at limit **
  20  Prefactor     .97943        .18574        .18401E-07    .13134E-02
  21  Prefactor     6.7213        6.3855        .23800E-06    .10360E-03
  22  Prefactor     .10246E-03    5.7118       -.37726E-06** at limit **
  23  Prefactor     25.454        19.460       -.47975E-05    .34613E-05
  24  Normalizat    .89178        .20977        .27964E-05    .59051E-04
  25  Prefactor     .83056        .10126        .17678E-06    .23651E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000102962
  Prefactor  = 18.766
  norm       = 0.0001
  Prefactor  = 6.46027
  Prefactor  = 22.7282
  Prefactor  = 19.0384
  Prefactor  = 0.495184
  Prefactor  = 0.0001
  norm       = 3.09895
  Prefactor  = 10.2897
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.1936
  Prefactor  = 0.0001
  Prefactor  = 0.979429
  Prefactor  = 6.72129
  Prefactor  = 0.000102459
  Prefactor  = 25.4541
  Normalizat = 0.891782
  Prefactor  = 0.830557
 **********
 **   18 **HESSE 
 **********

 FCN=   7922.015     FROM HESSE     STATUS=OK           447 CALLS     3048 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    374.99        .21365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.7891        .16537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .26183        .44104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10296E-03    .67721        .18555E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.766        12.246        .92455E-04   -1.4841    
   8  norm          .10000E-03    3.1491        .15273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4603        10.250        .15789E-03   -1.5200    
  10  Prefactor     22.728        36.237        .83986E-04   -1.4754    
  11  Prefactor     19.038        11.037        .91792E-04   -1.4835    
  12  Prefactor     .49518        .20067        .24032E-04   -1.5567    
  13  Prefactor     .10000E-03    5.2387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0989        1.1390        .54397E-04   -1.5356    
  15  Prefactor     10.290        14.626        .12490E-03   -1.5066    
  16  norm          .10000E-03    .44025        .57567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     41.194        13.890        .62455E-04   -1.4423    
  19  Prefactor     .10000E-03    27.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .97943        .18627        .15733E-04   -1.5510    
  21  Prefactor     6.7213        6.3886        .15477E-03   -1.5189    
  22  Prefactor     .10246E-03    8.5860        .68203E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.454        19.466        .79396E-04   -1.4698    
  24  Normalizat    .89178        .25029        .33968E-03   -.96750    
  25  Prefactor     .83056        .12172        .17858E-03   -.98612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90478e-10
Minuit parameter uncertainties:
  1  0.00118405
  2  5.15451e-05
  3  4.55833e-05
  4  8.03161e-07
  5  4.77655e-05
  6  0.00283278
  7  12.2472
  8  1.40928e-05
  9  10.2532
  10  36.2716
  11  11.0383
  12  0.20067
  13  2.066e-06
  14  1.13901
  15  14.6312
  16  5.84208e-06
  17  1.96405e-06
  18  13.8908
  19  3.56649e-05
  20  0.186268
  21  6.38924
  22  0.00919118
  23  19.4712
  24  0.250615
  25  0.121762
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.904e+01  1.104e+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:  8.306e-01  1.218e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  8.918e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.08
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 7.80e-08 +/- 4.52e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.01e-05

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) = 7921.7536771
delta logL = 0.261192795823

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7921.75341365
delta logL = 0.261456245898

Fit tolerance = 1e-08

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

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

 FCN=   7921.753     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      268 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.297        371.27        .20733E-02    .36922E-03
   2  Index         2.4452        6.1213        .20730        .46603E-04
   3  Normalizat    .90844        .13836        .76099E-01    .85027E-04
   4  Prefactor     .82366        .79011E-01    .44025E-01   -.35662E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2974
  Index      = 2.44523
  Normalizat = 0.908443
  Prefactor  = 0.823663
 **********
 **   18 **HESSE 
 **********

 FCN=   7921.753     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.297        13.729        .41465E-03   -1.4742    
   2  Index         2.4452        .47366        .79858E-02   -.53629    
   3  Normalizat    .90844        .23856        .33679E-03   -.96164    
   4  Prefactor     .82366        .12093        .17920E-03   -.98862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85016e-11
Minuit parameter uncertainties:
  1  13.7307
  2  0.474629
  3  0.238834
  4  0.120974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290944': 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) = 7921.75340412
delta logL = 0.261465784098

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.330e+01  1.373e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.445e+00  4.746e-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:  8.237e-01  1.210e-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:  9.084e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.54
Ra Dec: 336.414 21.342
Photon Index (Free Index): 2.45 +/- 0.47
Photon Flux (Free Index): 6.83e-08 +/- 4.27e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.39e-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/290944/cmap_HighResolution_569030401_569289601_4FGL_J2225.6+2120_daily_bin1272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.80e-08', energy_flux2='2.11e-05', photon_flux_error='4.52e-08', dlogl='2.61e-01', energy_flux='1.73e-05', photon_flux2='6.83e-08', job_status='DONE', time_completed='2021-09-28 11:09:13.914947', photon_index_error2='0.47', photon_index2='2.45', ts='5.08', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='0.89', time_epoch_completed='1632852553.92', return_code='0', job_id='290944', GAL2='0.82', EG2='0.91', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.27e-08', ts2='5.54', photon_index='2.81' WHERE bin_id='1272' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:09:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 290944: <4FGL_J2225.6+2120_daily_bin1272> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1272> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:55:32 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:55:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:55:33 2021
Terminated at Tue Sep 28 11:09:14 2021
Results reported at Tue Sep 28 11:09:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1272 336.414 21.3418 569030401 569289601 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 :                                   688.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

