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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin906
RA = 185.046, Dec = 34.5383
tmin = 474163201, tmax = 474422401
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='494136', job_status='RUN', time_executed='2021-09-05 08:07:22.756297', time_epoch_executed='1630854442.76' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494136

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494136/ft1_4FGL_J1220.1+3432_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494136/ft2_4FGL_J1220.1+3432_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494136/ft1_4FGL_J1220.1+3432_daily_bin906.fits outfile=/scratch/kocevski/494136/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin906.fits ra=185.046 dec=34.5383 rad=12.0 tmin=474163201.0 tmax=474422401.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 5.71
user 5.43
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/494136/ft2_4FGL_J1220.1+3432_daily_bin906.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/494136/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin906.fits evtable="EVENTS" outfile="/scratch/kocevski/494136/ft1_filtered_4FGL_J1220.1+3432_daily_bin906.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.51
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494136/ft1_filtered_4FGL_J1220.1+3432_daily_bin906.fits" evtable="EVENTS" scfile=/scratch/kocevski/494136/ft2_4FGL_J1220.1+3432_daily_bin906.fits sctable="SC_DATA" outfile=/scratch/kocevski/494136/ltcube_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.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/494136/ft2_4FGL_J1220.1+3432_daily_bin906.fits
.....................!
real 12.57
user 12.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494136/ft1_filtered_4FGL_J1220.1+3432_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/494136/ft2_4FGL_J1220.1+3432_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/494136/ltcube_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.fits outfile=/scratch/kocevski/494136/expmap_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.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/494136/ltcube_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.fits
.....................!
real 190.38
user 185.26
sys 4.77

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/494136/ft1_filtered_4FGL_J1220.1+3432_daily_bin906.fits scfile=/scratch/kocevski/494136/ft2_4FGL_J1220.1+3432_daily_bin906.fits outfile=/scratch/kocevski/494136/cmap_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494136/ft1_filtered_4FGL_J1220.1+3432_daily_bin906.fits scfile=/scratch/kocevski/494136/ft2_4FGL_J1220.1+3432_daily_bin906.fits outfile=/scratch/kocevski/494136/cmap_HighResolution_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/494136/ft1_filtered_4FGL_J1220.1+3432_daily_bin906.fits', '/scratch/kocevski/494136/ft2_4FGL_J1220.1+3432_daily_bin906.fits', expMap='/scratch/kocevski/494136/expmap_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.fits', expCube='/scratch/kocevski/494136/ltcube_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/494136/Model_4FGL_J1220.1+3432_daily_bin906.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/494136/ft1_filtered_4FGL_J1220.1+3432_daily_bin906.fits
Spacecraft file(s): /scratch/kocevski/494136/ft2_4FGL_J1220.1+3432_daily_bin906.fits
Exposure map: /scratch/kocevski/494136/expmap_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.fits
Exposure cube: /scratch/kocevski/494136/ltcube_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/494136/Model_4FGL_J1220.1+3432_daily_bin906.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) = 2404.43358141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90877E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .40588       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5903       1.0000         .10000E-03   10000.    
     7 'Prefactor '    95.340       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.666       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11085E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.6453       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .60034       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8451       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0172       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3338       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.722       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    216.87       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.196       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    9.8594       1.0000         .10000E-03   10000.    
    29 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    21.142       1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.7887       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.7026       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .27072E-01   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2404.429     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     4608 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10082E-03    333.54       -.42398E-04** at limit **
   2  Prefactor     12.636        1.4381        .18918E-06   -.23338E-02
   3  Prefactor     .10006E-03    8.8105       -.88494E-06** at limit **
   4  norm          .42070        .91906        .97181E-06   -.42965E-03
   5  Prefactor     .10000E-03    3.5422       -.15698E-06** at limit **
   6  Prefactor     6.5937        1.0739        .16735E-06    .20407E-03
   7  Prefactor     95.314        6.3282       -.70750E-06    .93352E-02
   8  norm          2.1430        1.8842       -.41974E-06   -.27117E-03
   9  Prefactor     .10043E-03    8.0476       -.14114E-05** at limit **
  10  norm          .10000E-03    3.7581       -.33421E-06** at limit **
  11  Prefactor     28.648        4.0193       -.82056E-06    .14296E-02
  12  Prefactor     .10003E-03    56.666       -.36893E-05** at limit **
  13  norm          3.6460        2.5587       -.25134E-06   -.19982E-03
  14  Prefactor     .10026E-03    17.182       -.24755E-05** at limit **
  15  norm          .60797        2.5299       -.20582E-06   -.52992E-03
  16  Prefactor     .10003E-03    4.1730       -.33848E-06** at limit **
  17  Prefactor     6.8361        3.1180       -.14255E-06   -.15498E-02
  18  Prefactor     9.0158        4.0638       -.15970E-07    .50895E-02
  19  Prefactor     .10003E-03    3.7986       -.11589E-05** at limit **
  20  norm          5.3353        2.1317        .64906E-07    .70088E-03
  21  Prefactor     13.724        1.0407       -.41845E-07   -.22306E-03
  22  Prefactor     .10055E-03    9.0705       -.94645E-06** at limit **
  23  Prefactor     216.88        1.0969        .34430E-07   -.89067E-03
  24  Prefactor     .10000E-03    2.8221       -.36708E-06** at limit **
  25  norm          14.198        1.0121       -.92090E-08   -.31970E-04
  26  Prefactor     .10010E-03    25.899        .98470E-06** at limit **
  27  Prefactor     .10001E-03    7.6941        .17825E-05** at limit **
  28  norm          9.8635        1.0195       -.16704E-07    .11317E-03
  29  norm          .10000E-03    3.6124       -.10374E-05** at limit **
  30  norm          21.145        1.0622       -.45637E-07   -.83826E-03
  31  Prefactor     2.7909        1.0615        .82495E-08    .20569E-03
  32  Normalizat    1.7026        .34471        .16766E-05    .65186E-04
  33  Prefactor     .27029E-01    1.2959       -.84095E-05    .71907E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100818
  Prefactor  = 12.6363
  Prefactor  = 0.000100055
  norm       = 0.4207
  Prefactor  = 0.000100001
  Prefactor  = 6.5937
  Prefactor  = 95.3137
  norm       = 2.14303
  Prefactor  = 0.000100431
  norm       = 0.000100001
  Prefactor  = 28.6478
  Prefactor  = 0.000100028
  norm       = 3.64604
  Prefactor  = 0.000100255
  norm       = 0.607974
  Prefactor  = 0.000100029
  Prefactor  = 6.83615
  Prefactor  = 9.01585
  Prefactor  = 0.000100028
  norm       = 5.33535
  Prefactor  = 13.7237
  Prefactor  = 0.000100548
  Prefactor  = 216.875
  Prefactor  = 0.0001
  norm       = 14.1975
  Prefactor  = 0.000100103
  Prefactor  = 0.000100008
  norm       = 9.86351
  norm       = 0.0001
  norm       = 21.1453
  Prefactor  = 2.79091
  Normalizat = 1.70259
  Prefactor  = 0.0270294
 **********
 **   18 **HESSE 
 **********

 FCN=   2404.429     FROM HESSE     STATUS=NOT POSDEF   779 CALLS     5387 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10082E-03    3.3736        .59459E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.636        538.31        .28171E-02   -1.4997    
   3  Prefactor     .10006E-03    8.5073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .42070        9.5714        .35304E-01   -1.5578    
   5  Prefactor     .10000E-03    6.3151        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5937        8.9673        .39080E-02   -1.5194    
   7  Prefactor     95.314        101.75        .10291E-02   -1.3752    
   8  norm          2.1430        1.9383        .70376E-02   -1.5415    
   9  Prefactor     .10043E-03    10.792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.2867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.648        47.823        .18707E-02   -1.4637    
  12  Prefactor     .10003E-03    50.273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.6460        3.2897        .52896E-02   -1.5326    
  14  Prefactor     .10026E-03    17.161        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .60797        9.5185        .41173E-01   -1.5552    
  16  Prefactor     .10003E-03    5.3536        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8361        5.8551        .38338E-02   -1.5185    
  18  Prefactor     9.0158        5.6028        .33368E-02   -1.5107    
  19  Prefactor     .10003E-03    5.3741        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3353        5.5455        .43505E-02   -1.5246    
  21  Prefactor     13.724        12.747        .27032E-02   -1.4967    
  22  Prefactor     .10055E-03    12.433        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     216.88        173.49        .68653E-03   -1.2752    
  24  Prefactor     .10000E-03    2.4741        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.198        8.7106        .26577E-02   -1.4954    
  26  Prefactor     .10010E-03    23.639        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    7.1936        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          9.8635        10.913        .31904E-02   -1.5080    
  29  norm          .10000E-03    3.1521        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          21.145        12.902        .21777E-02   -1.4788    
  31  Prefactor     2.7909        8.8053        .60913E-02   -1.5374    
  32  Normalizat    1.7026        1.8029        .46627E-01   -.72234    
  33  Prefactor     .27029E-01    9.9836        .22130       -1.4668    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.34428e-06
Minuit parameter uncertainties:
  1  0.00332221
  2  166.577
  3  0.00137107
  4  4.01357
  5  0.000157967
  6  8.96917
  7  101.942
  8  1.93833
  9  0.00431203
  10  0.000176148
  11  47.8874
  12  0.00238111
  13  3.28985
  14  0.00418785
  15  4.81174
  16  0.000791652
  17  5.85558
  18  5.60308
  19  0.000772495
  20  5.54608
  21  12.7494
  22  0.00522208
  23  173.904
  24  6.97065e-06
  25  8.71133
  26  0.00312397
  27  0.000471291
  28  10.9154
  29  2.34465e-05
  30  12.9034
  31  8.80939
  32  1.88084
  33  1.71
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2404.42937551

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  7.917e-04  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:  2.703e-02  1.710e+00  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:  1.703e+00  1.881e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494136/likelihoodResults_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.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): 102
logL (Free Index) = 2404.43009306
delta logL = -0.000717552796687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2404.42937547
delta logL = 3.66949279851e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0906       1.0000          .0000       10.000    
     3 'Normalizat'    1.7026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .27060E-01   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=   2404.429     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      260 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10081E-03    72.050        .11983E-02** at limit **
   2  Index         2.0477        6.8433        .50000        .21149E-04
   3  Normalizat    1.7026        .24511E-01    .20608E-03    .40271E-04
   4  Prefactor     .27030E-01    .27400E-01    .12012E-01    .15187E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100812
  Index      = 2.04773
  Normalizat = 1.70259
  Prefactor  = 0.0270299
 **********
 **   18 **HESSE 
 **********

 FCN=   2404.429     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      291 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10081E-03    300.28        .23967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0477        5.1535        .50000       -.63162    
   3  Normalizat    1.7026        .52411E-01    .82434E-05   -.72234    
   4  Prefactor     .27030E-01    .58573E-01    .48046E-03   -1.4668    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.60559e-08
Minuit parameter uncertainties:
  1  0.0313811
  2  489.622
  3  0.0524125
  4  0.0586979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494136': 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): 102
logL (Free Index) = 2404.42937523
delta logL = 2.72327270068e-07

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.008e-04  3.138e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.048e+00  4.896e+02  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:  2.703e-02  5.870e-02  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:  1.703e+00  5.241e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.046 34.538

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/494136/cmap_HighResolution_474163201_474422401_4FGL_J1220.1+3432_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', job_status='DONE', photon_flux_upper_limit='9.05e-08', time_completed='2021-09-05 08:17:50.396831', job_id='494136', GAL2='0.03', fit_tolerance='1e-08', EG2='1.70', EG='1.70', time_epoch_completed='1630855070.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.03', dlogl='2.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='906' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:17:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 494136: <4FGL_J1220.1+3432_daily_bin906> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin906> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Sep  5 08:05:49 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:05:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 08:05:51 2021
Terminated at Sun Sep  5 08:17:51 2021
Results reported at Sun Sep  5 08:17:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin906 185.046 34.5383 474163201 474422401 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 :                                   621.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            722 sec.

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

