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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1185
RA = 185.046, Dec = 34.5383
tmin = 546480001, tmax = 546739201
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='497147', job_status='RUN', time_executed='2021-09-05 08:17:59.623925', time_epoch_executed='1630855079.62' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497147

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497147/ft1_4FGL_J1220.1+3432_daily_bin1185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497147/ft2_4FGL_J1220.1+3432_daily_bin1185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497147/ft1_4FGL_J1220.1+3432_daily_bin1185.fits outfile=/scratch/kocevski/497147/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1185.fits ra=185.046 dec=34.5383 rad=12.0 tmin=546480001.0 tmax=546739201.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 4.16
user 3.64
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497147/ft1_filtered_4FGL_J1220.1+3432_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/497147/ft2_4FGL_J1220.1+3432_daily_bin1185.fits sctable="SC_DATA" expcube=/scratch/kocevski/497147/ltcube_546480001_546739201_4FGL_J1220.1+3432_daily_bin1185.fits outfile=/scratch/kocevski/497147/expmap_546480001_546739201_4FGL_J1220.1+3432_daily_bin1185.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/497147/ltcube_546480001_546739201_4FGL_J1220.1+3432_daily_bin1185.fits
.....................!
real 194.12
user 185.74
sys 4.79

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/497147/ft1_filtered_4FGL_J1220.1+3432_daily_bin1185.fits scfile=/scratch/kocevski/497147/ft2_4FGL_J1220.1+3432_daily_bin1185.fits outfile=/scratch/kocevski/497147/cmap_546480001_546739201_4FGL_J1220.1+3432_daily_bin1185.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497147/ft1_filtered_4FGL_J1220.1+3432_daily_bin1185.fits scfile=/scratch/kocevski/497147/ft2_4FGL_J1220.1+3432_daily_bin1185.fits outfile=/scratch/kocevski/497147/cmap_HighResolution_546480001_546739201_4FGL_J1220.1+3432_daily_bin1185.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.512       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10380E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    142.24       1.0000         .10000E-03   10000.    
    10 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12703E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    30.669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.036       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4799       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.608       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11114E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .85066       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=   643.8954     FROM MIGRAD    STATUS=CONVERGED    870 CALLS     4516 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5416        .28222E-06** at limit **
   2  Prefactor     .10000E-03    148.14       -.15130E-03** at limit **
   3  Prefactor     62.544        74.201        .12335E-04   -.31814E-03
   4  norm          .10000E-03    10.890       -.11255E-05** at limit **
   5  Prefactor     .10022E-03    321.74        .73369E-04** at limit **
   6  Prefactor     .10000E-03    16.927       -.50897E-06** at limit **
   7  Prefactor     .10000E-03    313.25        .80191E-04** at limit **
   8  norm          .10000E-03    7.6957        .14359E-06** at limit **
   9  Prefactor     142.23        85.958       -.34888E-05   -.14920E-03
  10  norm          .10000E-03    284.58        .62949E-04** at limit **
  11  Prefactor     .10000E-03    98.285        .36330E-04** at limit **
  12  Prefactor     .10000E-03    827.26       -.42004E-03** at limit **
  13  norm          30.669        7.9482        .31042E-05   -.40190E-03
  14  Prefactor     .10000E-03    93.427        .67918E-04** at limit **
  15  norm          .10000E-03    6.8578        .28018E-06** at limit **
  16  Prefactor     47.012        74.782       -.11821E-04    .42927E-05
  17  Prefactor     1.4754        9.9752       -.24153E-05   -.69618E-04
  18  Prefactor     .10000E-03    7.1601        .29653E-06** at limit **
  19  Prefactor     17.603        15.853       -.15659E-05   -.28182E-06
  20  norm          .10000E-03    10.599        .77177E-06** at limit **
  21  Prefactor     .10000E-03    24.080       -.17350E-06** at limit **
  22  Prefactor     .10000E-03    887.12       -.48294E-03** at limit **
  23  Prefactor     .10000E-03    238.58        .24580E-05** at limit **
  24  Prefactor     .10000E-03    301.97        .75150E-04** at limit **
  25  norm          .10000E-03    40.968        .13557E-05** at limit **
  26  Prefactor     .10000E-03    340.00        .84189E-04** at limit **
  27  Prefactor     .10000E-03    7423.4       -.16339E-02** at limit **
  28  norm          .10000E-03    547.33       -.87985E-04** at limit **
  29  norm          .10000E-03    65.247       -.19175E-04** at limit **
  30  norm          .10000E-03    111.34       -.47093E-04** at limit **
  31  Prefactor     .10000E-03    287.23        .65173E-04** at limit **
  32  Normalizat    .10000E-01    .21009       -.49934E-05** at limit **
  33  Prefactor     .85088        .41725       -.31784E-05   -.51278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.5438
  norm       = 0.0001
  Prefactor  = 0.000100225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 142.234
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.6686
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.0116
  Prefactor  = 1.4754
  Prefactor  = 0.0001
  Prefactor  = 17.6031
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.850877
 **********
 **   18 **HESSE 
 **********

 FCN=   643.8954     FROM HESSE     STATUS=OK           669 CALLS     5185 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5450        .63406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    148.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     62.544        73.565        .50752E-04   -1.4125    
   4  norm          .10000E-03    10.899        .81812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10022E-03    321.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.952        .10200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    313.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.6956        .68779E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     142.23        86.029        .33781E-04   -1.3317    
  10  norm          .10000E-03    284.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    98.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    827.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          30.669        7.9559        .33813E-04   -1.4600    
  14  Prefactor     .10000E-03    93.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.8595        .64847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     47.012        74.941        .58464E-04   -1.4336    
  17  Prefactor     1.4754        9.8929        .14676E-03   -1.5465    
  18  Prefactor     .10000E-03    7.2899        .66201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.603        15.925        .90551E-04   -1.4869    
  20  norm          .10000E-03    10.635        .80625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.097        .12168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    887.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    238.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    301.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    40.967        .15878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    340.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7425.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    547.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    65.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    111.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    287.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .21390        .69834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .85088        .41593        .30194E-03   -.97879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66734e-09
Minuit parameter uncertainties:
  1  7.92818e-06
  2  2.33255e-05
  3  73.6724
  4  1.83021e-06
  5  0.0170932
  6  0.000110196
  7  1.38675e-05
  8  1.72942e-06
  9  86.1045
  10  2.5186e-07
  11  0.000364923
  12  2.24795e-05
  13  7.95614
  14  3.9713e-05
  15  4.18669e-05
  16  75.0914
  17  7.64248
  18  2.47531e-05
  19  15.9293
  20  4.46624e-05
  21  3.52501e-05
  22  6.18227e-06
  23  9.56726e-06
  24  1.57482e-06
  25  1.82635e-06
  26  1.02615e-06
  27  9.06287e-05
  28  2.18181e-07
  29  4.40791e-07
  30  6.91322e-07
  31  1.52167e-06
  32  5.30197e-06
  33  0.417483
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  4.701e+01  7.509e+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:  8.509e-01  4.175e-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.000e-02  5.302e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/497147/likelihoodResults_546480001_546739201_4FGL_J1220.1+3432_daily_bin1185.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) = 643.831631168
delta logL = 0.0637390054467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 643.830433588
delta logL = 0.0649365851991

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.716       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7865       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84243       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=   643.8304     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      259 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.725        111.33        .48075E-04   -.34440E-03
   2  Index         1.7867        .82661        .46297E-02   -.22836E-03
   3  Normalizat    .10000E-01    .21543        .70024E-02** at limit **
   4  Prefactor     .84245        .34936        .30284E-03    .11267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.7248
  Index      = 1.78675
  Normalizat = 0.01
  Prefactor  = 0.842446
 **********
 **   18 **HESSE 
 **********

 FCN=   643.8304     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.725        110.22        .96151E-05   -1.4036    
   2  Index         1.7867        .81852        .18519E-03   -.69795    
   3  Normalizat    .10000E-01    .21544        .14005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .84245        .34934        .60567E-04   -.98182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76219e-09
Minuit parameter uncertainties:
  1  110.548
  2  0.824878
  3  1.75588e-07
  4  0.350272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497147': 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) = 643.830432695
delta logL = 0.0649374785617

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  6.972e+01  1.105e+02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.787e+00  8.249e-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:  8.424e-01  3.503e-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.000e-02  1.756e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
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/497147/cmap_HighResolution_546480001_546739201_4FGL_J1220.1+3432_daily_bin1185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-02', job_status='DONE', photon_flux_upper_limit='9.28e-07', time_completed='2021-09-05 08:24:47.620952', job_id='497147', GAL2='0.84', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630855487.62', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='6.49e-02', ts2='0.79', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1185' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:24:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 497147: <4FGL_J1220.1+3432_daily_bin1185> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1185 185.046 34.5383 546480001 546739201 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 :                                   391.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            545 sec.

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

