/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 75 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1220.1+3432_daily_bin37
RA = 185.046, Dec = 34.5383
tmin = 248918401, tmax = 249177601
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='488073', job_status='RUN', time_executed='2021-09-05 07:48:10.578989', time_epoch_executed='1630853290.58' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488073

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488073/ft1_4FGL_J1220.1+3432_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488073/ft2_4FGL_J1220.1+3432_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488073/ft1_4FGL_J1220.1+3432_daily_bin37.fits outfile=/scratch/kocevski/488073/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin37.fits ra=185.046 dec=34.5383 rad=12.0 tmin=248918401.0 tmax=249177601.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 6.45
user 1.76
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/488073/ft2_4FGL_J1220.1+3432_daily_bin37.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/488073/ft2_4FGL_J1220.1+3432_daily_bin37.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/488073/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/488073/ft1_filtered_4FGL_J1220.1+3432_daily_bin37.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 3.79
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488073/ft1_filtered_4FGL_J1220.1+3432_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/488073/ft2_4FGL_J1220.1+3432_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/488073/ltcube_248918401_249177601_4FGL_J1220.1+3432_daily_bin37.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/488073/ft2_4FGL_J1220.1+3432_daily_bin37.fits
.....................!
real 14.64
user 12.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488073/ft1_filtered_4FGL_J1220.1+3432_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/488073/ft2_4FGL_J1220.1+3432_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/488073/ltcube_248918401_249177601_4FGL_J1220.1+3432_daily_bin37.fits outfile=/scratch/kocevski/488073/expmap_248918401_249177601_4FGL_J1220.1+3432_daily_bin37.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/488073/ltcube_248918401_249177601_4FGL_J1220.1+3432_daily_bin37.fits
.....................!
real 197.57
user 188.74
sys 4.97

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1220.1+3432 @ 185.046 34.5383

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/488073/ft1_filtered_4FGL_J1220.1+3432_daily_bin37.fits scfile=/scratch/kocevski/488073/ft2_4FGL_J1220.1+3432_daily_bin37.fits outfile=/scratch/kocevski/488073/cmap_248918401_249177601_4FGL_J1220.1+3432_daily_bin37.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=185.046 yref=34.5383 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488073/ft1_filtered_4FGL_J1220.1+3432_daily_bin37.fits scfile=/scratch/kocevski/488073/ft2_4FGL_J1220.1+3432_daily_bin37.fits outfile=/scratch/kocevski/488073/cmap_HighResolution_248918401_249177601_4FGL_J1220.1+3432_daily_bin37.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=185.046 yref=34.5383 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.78
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/488073/ft1_filtered_4FGL_J1220.1+3432_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/488073/ft2_4FGL_J1220.1+3432_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/488073/Model_4FGL_J1220.1+3432_daily_bin37.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/488073/ft1_filtered_4FGL_J1220.1+3432_daily_bin37.fits.....................!
real 48.84
user 45.86
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/488073/ft1_filtered_4FGL_J1220.1+3432_daily_bin37.fits', '/scratch/kocevski/488073/ft2_4FGL_J1220.1+3432_daily_bin37.fits', expMap='/scratch/kocevski/488073/expmap_248918401_249177601_4FGL_J1220.1+3432_daily_bin37.fits', expCube='/scratch/kocevski/488073/ltcube_248918401_249177601_4FGL_J1220.1+3432_daily_bin37.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/488073/Model_4FGL_J1220.1+3432_daily_bin37.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1220.1+3432'

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.941e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/488073/ft1_filtered_4FGL_J1220.1+3432_daily_bin37.fits
Spacecraft file(s): /scratch/kocevski/488073/ft2_4FGL_J1220.1+3432_daily_bin37.fits
Exposure map: /scratch/kocevski/488073/expmap_248918401_249177601_4FGL_J1220.1+3432_daily_bin37.fits
Exposure cube: /scratch/kocevski/488073/ltcube_248918401_249177601_4FGL_J1220.1+3432_daily_bin37.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/488073/Model_4FGL_J1220.1+3432_daily_bin37.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) = 5063.18066531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5197       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0263       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4984       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.6440       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6644       1.0000         .10000E-03   10000.    
    10 'norm      '    9.3319       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.621       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.6840       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10928E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2124       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.959       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .92504       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2912       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.324       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.352       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11533E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.030       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.7889       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    9.2663       1.0000         .10000E-03   10000.    
    29 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .95127       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .90499       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .90833       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5063.140     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     4606 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5191        1.9083        .11250E-06    .17329E-03
   2  Prefactor     .10000E-03    28.753       -.22940E-05** at limit **
   3  Prefactor     .10000E-03    14.246       -.39049E-06** at limit **
   4  norm          .10000E-03    .72105        .43977E-08** at limit **
   5  Prefactor     7.0225        15.127       -.34057E-07    .12389E-04
   6  Prefactor     4.4984        4.8385        .88379E-06   -.16490E-04
   7  Prefactor     .10000E-03    14.473       -.19333E-06** at limit **
   8  norm          2.6438        1.0709        .11153E-07   -.75873E-04
   9  Prefactor     2.6654        42.041        .70967E-05   -.56537E-05
  10  norm          9.3316        9.0385        .92099E-08   -.17901E-04
  11  Prefactor     31.622        26.073       -.20436E-06   -.80900E-05
  12  Prefactor     .10000E-03    20.877        .18436E-05** at limit **
  13  norm          6.6839        1.7939       -.24910E-07    .95680E-05
  14  Prefactor     .10000E-03    48.378        .10349E-05** at limit **
  15  norm          4.2121        2.9334        .17443E-06   -.23240E-03
  16  Prefactor     12.960        9.9689        .11523E-06   -.77332E-05
  17  Prefactor     .92659        2.0482       -.17182E-06   -.26086E-03
  18  Prefactor     2.2909        2.4974        .49882E-07    .70712E-04
  19  Prefactor     .10000E-03    4.6504        .29298E-07** at limit **
  20  norm          .10000E-03    1.9360        .17710E-07** at limit **
  21  Prefactor     27.322        13.551        .10830E-06    .26984E-04
  22  Prefactor     14.337        23.519        .14620E-05   -.77224E-06
  23  Prefactor     .10000E-03    47.095        .11018E-07** at limit **
  24  Prefactor     .10000E-03    7.6496       -.52996E-06** at limit **
  25  norm          11.029        6.4780       -.17269E-06   -.85584E-04
  26  Prefactor     2.7799        69.884        .34948E-05    .59444E-05
  27  Prefactor     .10000E-03    8.5858        .11140E-06** at limit **
  28  norm          9.2661        6.2181       -.77791E-07   -.30967E-04
  29  norm          .10000E-03    3.5325       -.11565E-06** at limit **
  30  norm          .94585        5.8659        .27344E-06   -.61804E-04
  31  Prefactor     .10000E-03    2.7245       -.74160E-07** at limit **
  32  Normalizat    .90500        .19200       -.62871E-06    .13451E-04
  33  Prefactor     .90831        .22153       -.42133E-06   -.19201E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51906
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.02246
  Prefactor  = 4.49837
  Prefactor  = 0.0001
  norm       = 2.64379
  Prefactor  = 2.66545
  norm       = 9.33157
  Prefactor  = 31.6223
  Prefactor  = 0.0001
  norm       = 6.68389
  Prefactor  = 0.0001
  norm       = 4.21206
  Prefactor  = 12.9595
  Prefactor  = 0.926591
  Prefactor  = 2.29088
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.3222
  Prefactor  = 14.3371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0287
  Prefactor  = 2.77994
  Prefactor  = 0.0001
  norm       = 9.26609
  norm       = 0.0001
  norm       = 0.945853
  Prefactor  = 0.0001
  Normalizat = 0.905004
  Prefactor  = 0.908307
 **********
 **   18 **HESSE 
 **********

 FCN=   5063.140     FROM HESSE     STATUS=OK           703 CALLS     5309 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5191        1.8840        .10617E-03   -1.5461    
   2  Prefactor     .10000E-03    28.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .72593        .58968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.0225        15.109        .15134E-03   -1.5178    
   6  Prefactor     4.4984        4.8266        .77015E-03   -1.5284    
   7  Prefactor     .10000E-03    14.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6438        1.0712        .45056E-04   -1.5383    
   9  Prefactor     2.6654        42.068        .12485E-02   -1.5381    
  10  norm          9.3316        9.0425        .13119E-03   -1.5097    
  11  Prefactor     31.622        26.108        .71255E-04   -1.4583    
  12  Prefactor     .10000E-03    20.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.6839        1.7936        .46943E-04   -1.5191    
  14  Prefactor     .10000E-03    48.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2121        2.9570        .91708E-04   -1.5297    
  16  Prefactor     12.960        9.9792        .11127E-03   -1.4988    
  17  Prefactor     .92659        1.7982        .13796E-02   -1.5515    
  18  Prefactor     2.2909        2.4672        .10910E-03   -1.5405    
  19  Prefactor     .10000E-03    4.7179        .14982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9477        .96668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     27.322        13.537        .76641E-04   -1.4662    
  22  Prefactor     14.337        23.502        .10573E-03   -1.4950    
  23  Prefactor     .10000E-03    47.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.9808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.029        6.4149        .12063E-03   -1.5044    
  26  Prefactor     2.7799        67.735        .24364E-03   -1.5374    
  27  Prefactor     .10000E-03    8.6027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          9.2661        6.1987        .13166E-03   -1.5099    
  29  norm          .10000E-03    3.5713        .25810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .94585        5.6374        .32610E-03   -1.5513    
  31  Prefactor     .10000E-03    2.7488        .11457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .90500        .22440        .24675E-03   -.96285    
  33  Prefactor     .90831        .25857        .29605E-03   -.95851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04026e-11
Minuit parameter uncertainties:
  1  1.88406
  2  2.40793e-05
  3  3.97571e-06
  4  1.63547e-07
  5  15.1174
  6  4.82701
  7  3.22324e-06
  8  1.07122
  9  21.1956
  10  9.04385
  11  26.1173
  12  1.881e-05
  13  1.79364
  14  2.31187e-05
  15  2.95709
  16  9.98049
  17  1.79835
  18  2.46728
  19  3.62549e-06
  20  1.12677e-06
  21  13.5383
  22  23.5168
  23  1.3412e-06
  24  4.47511e-05
  25  6.4153
  26  27.4788
  27  8.46625e-06
  28  6.19914
  29  1.16685e-05
  30  4.61869
  31  5.02034e-06
  32  0.224637
  33  0.258917
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.296e+01  9.980e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.107e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.083e-01  2.589e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  9.050e-01  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.82
Ra Dec: 185.046 34.538
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 4.43e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 1.84e-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) = 5063.09500655
delta logL = 0.0453676162097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5063.09349809
delta logL = 0.0468760713138

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.110       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3033       1.0000          .0000       10.000    
     3 'Normalizat'    .88998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91800       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+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=   5063.093     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      290 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.108        11.518        .12019E-03    .14670E-02
   2  Index         2.3029        .67984        .59550E-02    .34078E-03
   3  Normalizat    .88999        .21988        .24858E-03   -.53216E-03
   4  Prefactor     .91806        .25793        .29461E-03   -.62279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1078
  Index      = 2.30285
  Normalizat = 0.889991
  Prefactor  = 0.918062
 **********
 **   18 **HESSE 
 **********

 FCN=   5063.093     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.108        10.710        .24039E-04   -1.5041    
   2  Index         2.3029        .63110        .23820E-03   -.56976    
   3  Normalizat    .88999        .21929        .49715E-04   -.96813    
   4  Prefactor     .91806        .25771        .58922E-04   -.95513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62445e-09
Minuit parameter uncertainties:
  1  10.7123
  2  0.633491
  3  0.219509
  4  0.258052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488073': 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) = 5063.09349731
delta logL = 0.0468768558285

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.111e+01  1.071e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.303e+00  6.335e-01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.181e-01  2.581e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.900e-01  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.89
Ra Dec: 185.046 34.538
Photon Index (Free Index): 2.30 +/- 0.63
Photon Flux (Free Index): 5.61e-08 +/- 5.42e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/488073/cmap_HighResolution_248918401_249177601_4FGL_J1220.1+3432_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.43e-08', energy_flux2='2.11e-05', photon_flux_error='3.41e-08', dlogl='4.69e-02', energy_flux='2.39e-05', photon_flux2='5.61e-08', job_status='DONE', time_completed='2021-09-05 08:01:05.396791', photon_index_error2='0.63', photon_index2='2.30', ts='4.82', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.91', time_epoch_completed='1630854065.4', return_code='0', job_id='488073', GAL2='0.92', EG2='0.89', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='5.42e-08', ts2='4.89', photon_index='2.11' WHERE bin_id='37' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:01:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 488073: <4FGL_J1220.1+3432_daily_bin37> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin37> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 07:46:32 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:46:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 07:46:33 2021
Terminated at Sun Sep  5 08:01:06 2021
Results reported at Sun Sep  5 08:01:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin37 185.046 34.5383 248918401 249177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1220.1+3432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   753.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             272.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

