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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1524
RA = 185.046, Dec = 34.5383
tmin = 634348801, tmax = 634608001
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='497588', job_status='RUN', time_executed='2021-09-05 08:17:58.649313', time_epoch_executed='1630855078.65' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497588

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497588/ft1_4FGL_J1220.1+3432_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497588/ft2_4FGL_J1220.1+3432_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497588/ft1_4FGL_J1220.1+3432_daily_bin1524.fits outfile=/scratch/kocevski/497588/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1524.fits ra=185.046 dec=34.5383 rad=12.0 tmin=634348801.0 tmax=634608001.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.79
user 3.49
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497588/ft1_filtered_4FGL_J1220.1+3432_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/497588/ft2_4FGL_J1220.1+3432_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/497588/ltcube_634348801_634608001_4FGL_J1220.1+3432_daily_bin1524.fits outfile=/scratch/kocevski/497588/expmap_634348801_634608001_4FGL_J1220.1+3432_daily_bin1524.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/497588/ltcube_634348801_634608001_4FGL_J1220.1+3432_daily_bin1524.fits
.....................!
real 193.10
user 187.32
sys 5.02

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/497588/ft1_filtered_4FGL_J1220.1+3432_daily_bin1524.fits scfile=/scratch/kocevski/497588/ft2_4FGL_J1220.1+3432_daily_bin1524.fits outfile=/scratch/kocevski/497588/cmap_634348801_634608001_4FGL_J1220.1+3432_daily_bin1524.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497588/ft1_filtered_4FGL_J1220.1+3432_daily_bin1524.fits scfile=/scratch/kocevski/497588/ft2_4FGL_J1220.1+3432_daily_bin1524.fits outfile=/scratch/kocevski/497588/cmap_HighResolution_634348801_634608001_4FGL_J1220.1+3432_daily_bin1524.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9420       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15328E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .14896E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.886       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1492       1.0000         .10000E-03   10000.    
     7 'Prefactor '    80.321       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4033       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.995       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1950       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4307       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.822       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    9.7021       1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.876       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .88515E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.2366       1.0000         .10000E-03   10000.    
    26 'Prefactor '    46.059       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.403       1.0000         .10000E-03   10000.    
    28 'norm      '    5.6096       1.0000         .10000E-03   10000.    
    29 'norm      '    32.399       1.0000         .10000E-03   10000.    
    30 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .74975       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .91565       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=   2716.802     FROM MIGRAD    STATUS=CONVERGED    879 CALLS     4547 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9554        7.0072       -.12215E-05    .15329E-05
   2  Prefactor     .10000E-03    83.758        .14994E-06** at limit **
   3  Prefactor     .10000E-03    58.776       -.28031E-06** at limit **
   4  norm          .10005E-03    4.5081       -.62901E-06** at limit **
   5  Prefactor     11.895        23.261       -.17347E-05    .29112E-05
   6  Prefactor     1.1378        28.829        .51981E-05    .39362E-04
   7  Prefactor     80.331        94.637       -.60660E-06   -.24270E-05
   8  norm          1.4032        1.7006       -.46923E-07    .34279E-05
   9  Prefactor     .10000E-03    28.079       -.35705E-06** at limit **
  10  norm          .10000E-03    11.568       -.89480E-07** at limit **
  11  Prefactor     .10000E-03    19.757       -.40541E-07** at limit **
  12  Prefactor     .10000E-03    101.74        .31605E-06** at limit **
  13  norm          10.995        3.3270       -.61642E-07    .41931E-04
  14  Prefactor     .10000E-03    37.343        .58656E-06** at limit **
  15  norm          .10000E-03    2.4276       -.21709E-06** at limit **
  16  Prefactor     1.2536        72.508        .34077E-05   -.11670E-04
  17  Prefactor     6.4311        5.3627       -.20067E-07    .90937E-05
  18  Prefactor     13.822        5.6932        .32842E-07    .72714E-04
  19  Prefactor     .10000E-03    2.3573        .47093E-07** at limit **
  20  norm          9.7008        7.1720       -.10728E-07    .12115E-04
  21  Prefactor     28.866        19.182        .14864E-06    .41746E-05
  22  Prefactor     .10000E-03    11.855       -.89023E-07** at limit **
  23  Prefactor     .10000E-03    529.33        .99365E-05** at limit **
  24  Prefactor     .10000E-03    3.3983       -.88416E-07** at limit **
  25  norm          7.2316        6.0426        .13201E-05   -.32359E-04
  26  Prefactor     46.085        33.496        .69898E-07   -.27570E-04
  27  Prefactor     10.410        21.006       -.24712E-06    .61826E-05
  28  norm          5.6095        6.8091       -.91624E-07    .40112E-05
  29  norm          32.396        8.5383        .46639E-06    .71472E-04
  30  norm          .10000E-03    18.567       -.53141E-06** at limit **
  31  Prefactor     .10000E-03    3.5642       -.42944E-06** at limit **
  32  Normalizat    .74950        .28687        .18821E-05   -.43330E-05
  33  Prefactor     .91595        .31196       -.62998E-06    .68389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.9554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100049
  Prefactor  = 11.8951
  Prefactor  = 1.13779
  Prefactor  = 80.331
  norm       = 1.40324
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9953
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.2536
  Prefactor  = 6.43115
  Prefactor  = 13.8215
  Prefactor  = 0.0001
  norm       = 9.70075
  Prefactor  = 28.8663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.23157
  Prefactor  = 46.0849
  Prefactor  = 10.4104
  norm       = 5.60946
  norm       = 32.3961
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.749499
  Prefactor  = 0.915955
 **********
 **   18 **HESSE 
 **********

 FCN=   2716.802     FROM HESSE     STATUS=OK           695 CALLS     5242 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9554        6.7304        .13816E-03   -1.5263    
   2  Prefactor     .10000E-03    83.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    58.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10005E-03    46.921        .18942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.895        23.239        .11620E-03   -1.5018    
   6  Prefactor     1.1378        29.869        .21598E-02   -1.5495    
   7  Prefactor     80.331        93.232        .44813E-04   -1.3913    
   8  norm          1.4032        1.6801        .69134E-04   -1.5471    
   9  Prefactor     .10000E-03    28.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    11.577        .17317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    101.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.995        3.3282        .50131E-04   -1.5045    
  14  Prefactor     .10000E-03    37.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4321        .79218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2536        74.696        .20801E-02   -1.5484    
  17  Prefactor     6.4311        5.3512        .10210E-03   -1.5201    
  18  Prefactor     13.822        5.7002        .72872E-04   -1.4964    
  19  Prefactor     .10000E-03    2.3575        .78156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.7008        7.1739        .11545E-03   -1.5085    
  21  Prefactor     28.866        19.178        .74557E-04   -1.4633    
  22  Prefactor     .10000E-03    11.857        .17531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    528.92        .20840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.3999        .93819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.2316        6.0070        .11142E-03   -1.5170    
  26  Prefactor     46.085        33.557        .29539E-03   -1.4349    
  27  Prefactor     10.410        20.978        .12423E-03   -1.5063    
  28  norm          5.6095        6.7953        .14167E-03   -1.5234    
  29  norm          32.396        8.5336        .70397E-04   -1.4569    
  30  norm          .10000E-03    18.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.6045        .96242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .74950        .33886        .28623E-03   -1.0197    
  33  Prefactor     .91595        .37486        .31086E-03   -.95586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83373e-09
Minuit parameter uncertainties:
  1  6.73143
  2  4.94235e-05
  3  9.7727e-05
  4  0.00302264
  5  23.2571
  6  11.6653
  7  93.4024
  8  1.68012
  9  7.37621e-05
  10  1.68614e-06
  11  2.14598e-05
  12  0.000102073
  13  3.32823
  14  7.95154e-05
  15  4.00332e-06
  16  19.3781
  17  5.35157
  18  5.70047
  19  7.57172e-07
  20  7.17457
  21  19.1825
  22  1.31163e-05
  23  0.000961959
  24  4.2737e-06
  25  6.0075
  26  33.5704
  27  20.9925
  28  6.79627
  29  8.53388
  30  0.000166518
  31  1.6912e-05
  32  0.339818
  33  0.375928
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.254e+00  1.938e+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:  9.160e-01  3.759e-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:  7.495e-01  3.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497588/likelihoodResults_634348801_634608001_4FGL_J1220.1+3432_daily_bin1524.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): 0
logL (Free Index) = 2712.66188502
delta logL = 4.13977272027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2712.63312251
delta logL = 4.16853523114

Fit tolerance = 1e-08

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

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

 FCN=   2712.633     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      239 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10382        .69853        .15112E-02   -.17538E-01
   2  Index         4.9632        1.9297        .36389E-01   -.63825E-03
   3  Normalizat    .35597        .12033        .90748E-01   -.72942E-04
   4  Prefactor     1.2118        .14296        .61890E-01   -.73478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.103815
  Index      = 4.96324
  Normalizat = 0.35597
  Prefactor  = 1.21184
 **********
 **   18 **HESSE 
 **********

 FCN=   2712.633     FROM HESSE     STATUS=OK            27 CALLS      266 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10382        .39143        .66987E-05   -1.5644    
   2  Index         4.9632        1.4516        .15851E-03   -.73520E-02
   3  Normalizat    .35597        .32227        .40216E-03   -1.1964    
   4  Prefactor     1.2118        .38025        .27367E-03   -.85968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59012e-10
Minuit parameter uncertainties:
  1  0.391438
  2  1.47279
  3  0.323965
  4  0.381117
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497588': 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) = 2712.63311883
delta logL = 4.16853890459

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.038e-01  3.914e-01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  4.963e+00  1.473e+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:  1.212e+00  3.811e-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:  3.560e-01  3.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.87
Ra Dec: 185.046 34.538
Photon Index (Free Index): 4.96 +/- 1.47
Photon Flux (Free Index): 3.12e-07 +/- 1.36e-07
Energy Flux (Free Index): 4.16e-05 +/- 1.86e-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/497588/cmap_HighResolution_634348801_634608001_4FGL_J1220.1+3432_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', energy_flux2='4.16e-05', dlogl='4.17e+00', photon_flux2='3.12e-07', job_status='DONE', time_completed='2021-09-05 08:30:11.464707', photon_index_error2='1.47', photon_index2='4.96', ts='0.01', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.86e-05', EG='0.75', time_epoch_completed='1630855811.46', return_code='0', job_id='497588', GAL2='1.21', EG2='0.36', return_code2='0', photon_flux_error2='1.36e-07', ts2='9.87', photon_index='2.11' WHERE bin_id='1524' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:30:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 497588: <4FGL_J1220.1+3432_daily_bin1524> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin1524> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 08:16:17 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:16:19 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:16:19 2021
Terminated at Sun Sep  5 08:30:12 2021
Results reported at Sun Sep  5 08:30:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1524 185.046 34.5383 634348801 634608001 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 :                                   608.00 sec.
    Max Memory :                                 1046 MB
    Average Memory :                             276.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

