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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1228
RA = 185.046, Dec = 34.5383
tmin = 557625601, tmax = 557884801
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='497207', job_status='RUN', time_executed='2021-09-05 08:16:36.031964', time_epoch_executed='1630854996.03' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497207

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497207/ft1_4FGL_J1220.1+3432_daily_bin1228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497207/ft2_4FGL_J1220.1+3432_daily_bin1228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497207/ft1_4FGL_J1220.1+3432_daily_bin1228.fits outfile=/scratch/kocevski/497207/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1228.fits ra=185.046 dec=34.5383 rad=12.0 tmin=557625601.0 tmax=557884801.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.62
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/497207/ft2_4FGL_J1220.1+3432_daily_bin1228.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/497207/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1228.fits evtable="EVENTS" outfile="/scratch/kocevski/497207/ft1_filtered_4FGL_J1220.1+3432_daily_bin1228.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/497207/ft1_filtered_4FGL_J1220.1+3432_daily_bin1228.fits" evtable="EVENTS" scfile=/scratch/kocevski/497207/ft2_4FGL_J1220.1+3432_daily_bin1228.fits sctable="SC_DATA" outfile=/scratch/kocevski/497207/ltcube_557625601_557884801_4FGL_J1220.1+3432_daily_bin1228.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/497207/ft2_4FGL_J1220.1+3432_daily_bin1228.fits
.....................!
real 11.85
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497207/ft1_filtered_4FGL_J1220.1+3432_daily_bin1228.fits evtable="EVENTS" scfile=/scratch/kocevski/497207/ft2_4FGL_J1220.1+3432_daily_bin1228.fits sctable="SC_DATA" expcube=/scratch/kocevski/497207/ltcube_557625601_557884801_4FGL_J1220.1+3432_daily_bin1228.fits outfile=/scratch/kocevski/497207/expmap_557625601_557884801_4FGL_J1220.1+3432_daily_bin1228.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/497207/ltcube_557625601_557884801_4FGL_J1220.1+3432_daily_bin1228.fits
.....................!
real 191.60
user 186.16
sys 4.50

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/497207/ft1_filtered_4FGL_J1220.1+3432_daily_bin1228.fits scfile=/scratch/kocevski/497207/ft2_4FGL_J1220.1+3432_daily_bin1228.fits outfile=/scratch/kocevski/497207/cmap_557625601_557884801_4FGL_J1220.1+3432_daily_bin1228.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.86
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497207/ft1_filtered_4FGL_J1220.1+3432_daily_bin1228.fits scfile=/scratch/kocevski/497207/ft2_4FGL_J1220.1+3432_daily_bin1228.fits outfile=/scratch/kocevski/497207/cmap_HighResolution_557625601_557884801_4FGL_J1220.1+3432_daily_bin1228.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.66
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6803       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .82424E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10183E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.866       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1812       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .29615E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    157.39       1.0000         .10000E-03   10000.    
    12 'Prefactor '    98.702       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3832       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7072       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18171E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9000       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.484       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.712       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.997       1.0000         .10000E-03   10000.    
    23 'Prefactor '    180.72       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5658       1.0000         .10000E-03   10000.    
    25 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14299E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .35003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    15.859       1.0000         .10000E-03   10000.    
    29 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.1946       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2433       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .95469       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=   2751.827     FROM MIGRAD    STATUS=CONVERGED    879 CALLS     4562 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6481        12.408       -.39750E-06   -.31580E-04
   2  Prefactor     .10001E-03    205.38       -.15226E-05** at limit **
   3  Prefactor     .10000E-03    42.558        .45890E-06** at limit **
   4  norm          .10000E-03    5.3728       -.51400E-06** at limit **
   5  Prefactor     .10000E-03    25.255       -.23451E-05** at limit **
   6  Prefactor     17.867        18.735       -.15925E-06   -.23290E-04
   7  Prefactor     .10000E-03    148.50        .37132E-05** at limit **
   8  norm          3.1807        3.4760        .15576E-06    .10684E-04
   9  Prefactor     .10000E-03    84.200       -.21283E-05** at limit **
  10  norm          .10000E-03    119.53       -.38459E-05** at limit **
  11  Prefactor     157.36        122.52        .14291E-05    .49460E-05
  12  Prefactor     98.717        130.55       -.74636E-06    .21394E-04
  13  norm          5.3831        3.7922       -.28466E-07    .15534E-03
  14  Prefactor     .10000E-03    43.364        .13663E-05** at limit **
  15  norm          2.7058        4.5402        .12219E-05    .12445E-02
  16  Prefactor     .10000E-03    5.9611        .34535E-07** at limit **
  17  Prefactor     .10001E-03    23.903       -.12562E-04** at limit **
  18  Prefactor     1.8998        3.0754       -.22534E-07    .34220E-03
  19  Prefactor     .10000E-03    8.2870       -.10095E-06** at limit **
  20  norm          20.482        12.413       -.37105E-07    .32905E-04
  21  Prefactor     12.709        17.214        .13376E-06    .85882E-04
  22  Prefactor     16.992        27.130        .99237E-06    .12293E-04
  23  Prefactor     180.68        148.05        .16367E-05    .40755E-06
  24  Prefactor     2.5635        16.729       -.37414E-05    .54448E-06
  25  norm          .10000E-03    2.9627        .37153E-06** at limit **
  26  Prefactor     .10000E-03    79.215        .12738E-05** at limit **
  27  Prefactor     .10001E-03    112.26        .67131E-05** at limit **
  28  norm          15.858        10.321        .17055E-06   -.72183E-04
  29  norm          .10000E-03    2.4498        .22729E-06** at limit **
  30  norm          .10000E-03    2.9182        .53512E-07** at limit **
  31  Prefactor     6.1927        8.2741       -.50691E-06    .35755E-04
  32  Normalizat    1.2437        .32422        .67173E-06    .31074E-03
  33  Prefactor     .95430        .35979       -.22884E-06   -.93262E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.64808
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8671
  Prefactor  = 0.0001
  norm       = 3.18073
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 157.361
  Prefactor  = 98.7174
  norm       = 5.38308
  Prefactor  = 0.0001
  norm       = 2.70578
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 1.89982
  Prefactor  = 0.0001
  norm       = 20.4816
  Prefactor  = 12.7095
  Prefactor  = 16.9917
  Prefactor  = 180.681
  Prefactor  = 2.56348
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  norm       = 15.8576
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.19266
  Normalizat = 1.24366
  Prefactor  = 0.954304
 **********
 **   18 **HESSE 
 **********

 FCN=   2751.827     FROM HESSE     STATUS=OK           695 CALLS     5257 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6481        12.406        .12880E-03   -1.5087    
   2  Prefactor     .10001E-03    205.51        .20884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.3722        .11852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.867        18.736        .94756E-04   -1.4862    
   7  Prefactor     .10000E-03    148.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1807        3.4647        .89931E-04   -1.5351    
   9  Prefactor     .10000E-03    84.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    122.78        .42790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     157.36        122.50        .16069E-03   -1.3192    
  12  Prefactor     98.717        130.42        .20231E-03   -1.3718    
  13  norm          5.3831        3.7882        .82132E-04   -1.5244    
  14  Prefactor     .10000E-03    43.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7058        4.2733        .12957E-03   -1.5379    
  16  Prefactor     .10000E-03    5.9662        .12509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    24.423        .17970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8998        3.0440        .11136E-03   -1.5432    
  19  Prefactor     .10000E-03    8.3012        .14744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.482        12.406        .88497E-04   -1.4803    
  21  Prefactor     12.709        17.187        .11235E-03   -1.4995    
  22  Prefactor     16.992        26.946        .97149E-04   -1.4883    
  23  Prefactor     180.68        148.32        .15014E-03   -1.3011    
  24  Prefactor     2.5635        16.449        .25484E-03   -1.5388    
  25  norm          .10000E-03    2.9630        .88066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    79.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    116.59        .42647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          15.858        10.254        .10057E-03   -1.4911    
  29  norm          .10000E-03    2.4599        .80116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    2.9213        .87513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     6.1927        8.3080        .15671E-03   -1.5210    
  32  Normalizat    1.2437        .37372        .26859E-03   -.85264    
  33  Prefactor     .95430        .40919        .35017E-03   -.94269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59053e-09
Minuit parameter uncertainties:
  1  12.4096
  2  0.00211267
  3  1.13549e-06
  4  4.80978e-05
  5  6.08728e-05
  6  18.742
  7  0.000150374
  8  3.46488
  9  0.000102181
  10  0.00132025
  11  122.697
  12  130.8
  13  3.7884
  14  9.9814e-05
  15  4.27373
  16  6.33708e-06
  17  0.0007178
  18  3.04426
  19  2.45644e-06
  20  12.4071
  21  17.1935
  22  26.9651
  23  148.629
  24  12.9921
  25  2.28477e-05
  26  0.000258676
  27  0.00250146
  28  10.2552
  29  4.3212e-06
  30  2.3097e-06
  31  8.3095
  32  0.374533
  33  0.410524
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  6.337e-06  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.543e-01  4.105e-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:  1.244e+00  3.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/497207/likelihoodResults_557625601_557884801_4FGL_J1220.1+3432_daily_bin1228.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) = 2751.82773308
delta logL = -0.000768301209064

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2751.82696474
delta logL = 4.17267074226e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0960       1.0000          .0000       10.000    
     3 'Normalizat'    1.2437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95431       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=   2751.827     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      249 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1034.4        .12577E-02** at limit **
   2  Index         2.0842        6.0074        .50000        .15656E-04
   3  Normalizat    1.2436        .14532        .26858E-03    .90794E-05
   4  Prefactor     .95432        .16897        .35017E-03    .60712E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.08422
  Normalizat = 1.24364
  Prefactor  = 0.954321
 **********
 **   18 **HESSE 
 **********

 FCN=   2751.827     FROM HESSE     STATUS=OK            29 CALLS      278 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.9766        .25154E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0842        6.0214        .50000       -.62261    
   3  Normalizat    1.2436        .34243        .10743E-04   -.85265    
   4  Prefactor     .95432        .39776        .14007E-04   -.94268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58778e-10
Minuit parameter uncertainties:
  1  0.000203968
  2  4.37396
  3  0.343048
  4  0.398988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497207': 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) = 2751.82696469
delta logL = 9.0848061518e-08

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  2.040e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.084e+00  4.374e+00  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.543e-01  3.990e-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:  1.244e+00  3.430e-01  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/497207/cmap_HighResolution_557625601_557884801_4FGL_J1220.1+3432_daily_bin1228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.81e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-05 08:26:46.270948', job_id='497207', GAL2='0.95', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630855606.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1228' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:26:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 497207: <4FGL_J1220.1+3432_daily_bin1228> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin1228> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 08:15:47 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:15:49 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:15:49 2021
Terminated at Sun Sep  5 08:26:46 2021
Results reported at Sun Sep  5 08:26:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1228 185.046 34.5383 557625601 557884801 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 :                                   595.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            659 sec.

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

