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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin267
RA = 185.046, Dec = 34.5383
tmin = 308534401, tmax = 308793601
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='488400', job_status='RUN', time_executed='2021-09-05 07:48:26.609423', time_epoch_executed='1630853306.61' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488400

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488400/ft1_4FGL_J1220.1+3432_daily_bin267.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488400/ft2_4FGL_J1220.1+3432_daily_bin267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488400/ft1_4FGL_J1220.1+3432_daily_bin267.fits outfile=/scratch/kocevski/488400/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin267.fits ra=185.046 dec=34.5383 rad=12.0 tmin=308534401.0 tmax=308793601.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.98
user 5.11
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488400/ft1_filtered_4FGL_J1220.1+3432_daily_bin267.fits" evtable="EVENTS" scfile=/scratch/kocevski/488400/ft2_4FGL_J1220.1+3432_daily_bin267.fits sctable="SC_DATA" outfile=/scratch/kocevski/488400/ltcube_308534401_308793601_4FGL_J1220.1+3432_daily_bin267.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/488400/ft2_4FGL_J1220.1+3432_daily_bin267.fits
.....................!
real 12.22
user 11.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488400/ft1_filtered_4FGL_J1220.1+3432_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/488400/ft2_4FGL_J1220.1+3432_daily_bin267.fits sctable="SC_DATA" expcube=/scratch/kocevski/488400/ltcube_308534401_308793601_4FGL_J1220.1+3432_daily_bin267.fits outfile=/scratch/kocevski/488400/expmap_308534401_308793601_4FGL_J1220.1+3432_daily_bin267.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/488400/ltcube_308534401_308793601_4FGL_J1220.1+3432_daily_bin267.fits
.....................!
real 196.11
user 185.63
sys 4.25

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/488400/ft1_filtered_4FGL_J1220.1+3432_daily_bin267.fits scfile=/scratch/kocevski/488400/ft2_4FGL_J1220.1+3432_daily_bin267.fits outfile=/scratch/kocevski/488400/cmap_308534401_308793601_4FGL_J1220.1+3432_daily_bin267.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.64
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488400/ft1_filtered_4FGL_J1220.1+3432_daily_bin267.fits scfile=/scratch/kocevski/488400/ft2_4FGL_J1220.1+3432_daily_bin267.fits outfile=/scratch/kocevski/488400/cmap_HighResolution_308534401_308793601_4FGL_J1220.1+3432_daily_bin267.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.74
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88515       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11754E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6588       1.0000         .10000E-03   10000.    
     8 'norm      '    .12440E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.100       1.0000         .10000E-03   10000.    
    10 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.186       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.7842       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.658       1.0000         .10000E-03   10000.    
    15 'norm      '    4.0746       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.567       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1294       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8717       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.870       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3502       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.515       1.0000         .10000E-03   10000.    
    25 'norm      '    13.164       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.6117       1.0000         .10000E-03   10000.    
    28 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.5245       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .46963       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=   5989.233     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     3768 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88604        1.3934        .34406E-07    .43798E-04
   2  Prefactor     .10021E-03    6.5943        .49580E-05** at limit **
   3  Prefactor     .10004E-03    2.7799        .18312E-05** at limit **
   4  norm          .10001E-03    3.2133        .69483E-05** at limit **
   5  Prefactor     .10003E-03    4.2637       -.48091E-05** at limit **
   6  Prefactor     .10000E-03    1.3703        .28107E-06** at limit **
   7  Prefactor     3.6445        4.8920       -.90956E-05    .43417E-02
   8  norm          .10000E-03    .59357        .35315E-07** at limit **
   9  Prefactor     20.098        1.3007       -.66983E-06    .16665E-02
  10  norm          .10019E-03    5.7118       -.81528E-05** at limit **
  11  Prefactor     23.180        2.1221       -.14042E-05    .41213E-02
  12  Prefactor     .10010E-03    15.788        .16592E-04** at limit **
  13  norm          8.7840        1.9967       -.13322E-06   -.13029E-03
  14  Prefactor     13.658        1.0066       -.98887E-07    .11312E-03
  15  norm          4.0745        1.5242        .89408E-06    .61060E-03
  16  Prefactor     27.564        1.0898       -.25892E-06    .55604E-03
  17  Prefactor     4.1293        1.7380        .12024E-05    .10380E-02
  18  Prefactor     4.8713        1.4850        .56642E-06   -.18090E-03
  19  Prefactor     17.868        1.0030        .90000E-08    .18741E-03
  20  norm          .10000E-03    1.8125        .17187E-06** at limit **
  21  Prefactor     5.3498        1.0070       -.87162E-08    .36232E-04
  22  Prefactor     .10000E-03    5.3542        .63767E-05** at limit **
  23  Prefactor     .10000E-03    24.268       -.17791E-04** at limit **
  24  Prefactor     10.514        1.0018       -.34580E-07    .75543E-04
  25  norm          13.162        1.0021       -.44481E-07    .14547E-03
  26  Prefactor     .10000E-03    4.2542       -.29274E-05** at limit **
  27  Prefactor     2.6123        1.0282       -.28227E-06    .47855E-04
  28  norm          .10001E-03    3.1494       -.62718E-05** at limit **
  29  norm          .10000E-03    1.3197       -.26131E-06** at limit **
  30  norm          .10000E-03    1.6249       -.27394E-06** at limit **
  31  Prefactor     .10000E-03    1.1032        .64936E-07** at limit **
  32  Normalizat    1.5247        .21707        .64209E-06    .46707E-04
  33  Prefactor     .46944        .24798       -.10867E-05    .29838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.886043
  Prefactor  = 0.00010021
  Prefactor  = 0.000100043
  norm       = 0.000100008
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 3.64452
  norm       = 0.0001
  Prefactor  = 20.0978
  norm       = 0.000100191
  Prefactor  = 23.1803
  Prefactor  = 0.000100098
  norm       = 8.78399
  Prefactor  = 13.658
  norm       = 4.07453
  Prefactor  = 27.5639
  Prefactor  = 4.12933
  Prefactor  = 4.87125
  Prefactor  = 17.868
  norm       = 0.0001
  Prefactor  = 5.34977
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.5141
  norm       = 13.1625
  Prefactor  = 0.000100004
  Prefactor  = 2.61226
  norm       = 0.000100006
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.52474
  Prefactor  = 0.469443
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.233     FROM HESSE     STATUS=OK           775 CALLS     4543 TOTAL
                     EDM=   .84E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88604        1.7044        .26472E-01   -1.5520    
   2  Prefactor     .10021E-03    12.435        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    5.7314        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    1.3218        .29259E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    5.1925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3665        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.6445        91.807        .52795E-02   -1.5326    
   8  norm          .10000E-03    .43655        .25300E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.098        23.994        .22334E-02   -1.4811    
  10  norm          .10019E-03    9.4993        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.180        28.640        .20797E-02   -1.4745    
  12  Prefactor     .10010E-03    22.966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.7840        2.0341        .33810E-02   -1.5115    
  14  Prefactor     13.658        36.286        .27095E-02   -1.4969    
  15  norm          4.0745        2.9615        .49934E-02   -1.5304    
  16  Prefactor     27.564        13.305        .19076E-02   -1.4657    
  17  Prefactor     4.1293        2.8339        .49592E-02   -1.5302    
  18  Prefactor     4.8713        2.8891        .45561E-02   -1.5267    
  19  Prefactor     17.868        9.4088        .23686E-02   -1.4862    
  20  norm          .10000E-03    1.8082        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.3498        7.1405        .43437E-02   -1.5245    
  22  Prefactor     .10000E-03    6.8772        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.217        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.514        6.8709        .30891E-02   -1.5059    
  25  norm          13.162        5.6490        .27600E-02   -1.4982    
  26  Prefactor     .10000E-03    11.260        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.6123        10.115        .63101E-02   -1.5385    
  28  norm          .10001E-03    3.1611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.2988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    1.6234        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.1012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.5247        .20492        .49896E-01   -.77085    
  33  Prefactor     .46944        .22881        .97469E-01   -1.1340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39759e-07
Minuit parameter uncertainties:
  1  1.70445
  2  0.00323121
  3  0.000997098
  4  0.000211829
  5  0.000785998
  6  2.59982e-06
  7  36.6462
  8  1.51794e-07
  9  24.0053
  10  0.00269693
  11  28.6572
  12  0.00300617
  13  2.03414
  14  36.3449
  15  2.96162
  16  13.3066
  17  2.83396
  18  2.88921
  19  9.40955
  20  4.05913e-06
  21  7.14164
  22  0.000198945
  23  0.000229667
  24  6.8714
  25  5.64923
  26  0.000442103
  27  10.122
  28  0.000276965
  29  3.62037e-06
  30  4.35599e-06
  31  1.80174e-07
  32  0.205032
  33  0.229255
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  2.756e+01  1.331e+01  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:  4.694e-01  2.293e-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.525e+00  2.050e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.85
Ra Dec: 185.046 34.538
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 9.42e-08 +/- 4.55e-08
Energy Flux (Fixed Index): 5.09e-05 +/- 2.46e-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) = 5988.42258184
delta logL = 0.810574143507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5988.41512688
delta logL = 0.818029102124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.504       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6461       1.0000          .0000       10.000    
     3 'Normalizat'    1.4469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52759       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=   5988.415     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      302 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.505        14.693        .10517E-03   -.24624E-03
   2  Index         2.6461        .53180        .30257E-02   -.53159E-04
   3  Normalizat    1.4471        .22918        .22489E-03   -.10616E-05
   4  Prefactor     .52736        .25600        .40918E-03    .98966E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.505
  Index      = 2.64608
  Normalizat = 1.44707
  Prefactor  = 0.527359
 **********
 **   18 **HESSE 
 **********

 FCN=   5988.415     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.505        12.376        .42069E-05   -1.4946    
   2  Index         2.6461        .44770        .12103E-03   -.49018    
   3  Normalizat    1.4471        .22727        .89958E-05   -.79277    
   4  Prefactor     .52736        .25438        .16367E-04   -1.1074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31473e-10
Minuit parameter uncertainties:
  1  12.3783
  2  0.448467
  3  0.227431
  4  0.254929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488400': 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) = 5988.41512642
delta logL = 0.818029558755

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.450e+01  1.238e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.646e+00  4.485e-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:  5.274e-01  2.549e-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.447e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.45
Ra Dec: 185.046 34.538
Photon Index (Free Index): 2.65 +/- 0.45
Photon Flux (Free Index): 1.52e-07 +/- 7.03e-08
Energy Flux (Free Index): 3.84e-05 +/- 1.63e-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/488400/cmap_HighResolution_308534401_308793601_4FGL_J1220.1+3432_daily_bin267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.42e-08', energy_flux2='3.84e-05', photon_flux_error='4.55e-08', dlogl='8.18e-01', energy_flux='5.09e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-09-05 08:02:05.980008', photon_index_error2='0.45', photon_index2='2.65', ts='9.85', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='1.52', time_epoch_completed='1630854125.98', return_code='0', job_id='488400', GAL2='0.53', EG2='1.45', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='7.03e-08', ts2='11.45', photon_index='2.11' WHERE bin_id='267' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:02:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 488400: <4FGL_J1220.1+3432_daily_bin267> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin267> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 07:47:02 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:47:03 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:47:03 2021
Terminated at Sun Sep  5 08:02:06 2021
Results reported at Sun Sep  5 08:02:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin267 185.046 34.5383 308534401 308793601 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 :                                   802.53 sec.
    Max Memory :                                 1200 MB
    Average Memory :                             274.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

