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


Performing analysis on: 4FGL_J1220.1+7105_daily_bin680
RA = 185.044, Dec = 71.092
tmin = 415584001, tmax = 415843201
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='505177', job_status='RUN', time_executed='2021-09-05 08:41:44.232436', time_epoch_executed='1630856504.23' WHERE source_name='4FGL J1220.1+7105' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505177

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505177/ft1_4FGL_J1220.1+7105_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505177/ft2_4FGL_J1220.1+7105_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505177/ft1_4FGL_J1220.1+7105_daily_bin680.fits outfile=/scratch/kocevski/505177/ft1_filteredMKT_4FGL_J1220.1+7105_daily_bin680.fits ra=185.044 dec=71.092 rad=12.0 tmin=415584001.0 tmax=415843201.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 6.39
user 6.08
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/505177/ft2_4FGL_J1220.1+7105_daily_bin680.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505177/ft2_4FGL_J1220.1+7105_daily_bin680.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/505177/ft1_filteredMKT_4FGL_J1220.1+7105_daily_bin680.fits evtable="EVENTS" outfile="/scratch/kocevski/505177/ft1_filtered_4FGL_J1220.1+7105_daily_bin680.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505177/ft1_filtered_4FGL_J1220.1+7105_daily_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/505177/ft2_4FGL_J1220.1+7105_daily_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/505177/ltcube_415584001_415843201_4FGL_J1220.1+7105_daily_bin680.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/505177/ft2_4FGL_J1220.1+7105_daily_bin680.fits
.....................!
real 12.29
user 11.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505177/ft1_filtered_4FGL_J1220.1+7105_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/505177/ft2_4FGL_J1220.1+7105_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/505177/ltcube_415584001_415843201_4FGL_J1220.1+7105_daily_bin680.fits outfile=/scratch/kocevski/505177/expmap_415584001_415843201_4FGL_J1220.1+7105_daily_bin680.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/505177/ltcube_415584001_415843201_4FGL_J1220.1+7105_daily_bin680.fits
.....................!
real 190.08
user 185.32
sys 3.97

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 235 point sources and 0 extended sources

Setting source of interest to:
4FGL J1220.1+7105 @ 185.044 71.092

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/505177/ft1_filtered_4FGL_J1220.1+7105_daily_bin680.fits scfile=/scratch/kocevski/505177/ft2_4FGL_J1220.1+7105_daily_bin680.fits outfile=/scratch/kocevski/505177/cmap_415584001_415843201_4FGL_J1220.1+7105_daily_bin680.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.044 yref=71.092 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.56
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505177/ft1_filtered_4FGL_J1220.1+7105_daily_bin680.fits scfile=/scratch/kocevski/505177/ft2_4FGL_J1220.1+7105_daily_bin680.fits outfile=/scratch/kocevski/505177/cmap_HighResolution_415584001_415843201_4FGL_J1220.1+7105_daily_bin680.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.044 yref=71.092 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505177/ft1_filtered_4FGL_J1220.1+7105_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/505177/ft2_4FGL_J1220.1+7105_daily_bin680.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505177/Model_4FGL_J1220.1+7105_daily_bin680.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/505177/ft1_filtered_4FGL_J1220.1+7105_daily_bin680.fits.....................!
real 41.97
user 40.52
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/505177/ft1_filtered_4FGL_J1220.1+7105_daily_bin680.fits', '/scratch/kocevski/505177/ft2_4FGL_J1220.1+7105_daily_bin680.fits', expMap='/scratch/kocevski/505177/expmap_415584001_415843201_4FGL_J1220.1+7105_daily_bin680.fits', expCube='/scratch/kocevski/505177/ltcube_415584001_415843201_4FGL_J1220.1+7105_daily_bin680.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/505177/Model_4FGL_J1220.1+7105_daily_bin680.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1220.1+7105'

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  6.062e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  2.189e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/505177/ft1_filtered_4FGL_J1220.1+7105_daily_bin680.fits
Spacecraft file(s): /scratch/kocevski/505177/ft2_4FGL_J1220.1+7105_daily_bin680.fits
Exposure map: /scratch/kocevski/505177/expmap_415584001_415843201_4FGL_J1220.1+7105_daily_bin680.fits
Exposure cube: /scratch/kocevski/505177/ltcube_415584001_415843201_4FGL_J1220.1+7105_daily_bin680.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/505177/Model_4FGL_J1220.1+7105_daily_bin680.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) = 2990.90362468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.015       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.0685       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3004       1.0000         .10000E-03   10000.    
     7 'norm      '    5.4910       1.0000         .10000E-03   10000.    
     8 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17112E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .97123       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.5155       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    52.929       1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.904       1.0000         .10000E-03   10000.    
    21 'norm      '    18.675       1.0000         .10000E-03   10000.    
    22 'norm      '    11.912       1.0000         .10000E-03   10000.    
    23 'Prefactor '    53.361       1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.165       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.614       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.0522       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .20102E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13877E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .12672E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    61.176       1.0000         .10000E-03   10000.    
    32 'Prefactor '    41.509       1.0000         .10000E-03   10000.    
    33 'Prefactor '    81.056       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.3299       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .38139       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2990.873     FROM MIGRAD    STATUS=CONVERGED    989 CALLS     5124 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.016        19.283        .21353E-06   -.31165E-05
   2  Prefactor     .10000E-03    29.102        .70396E-06** at limit **
   3  Prefactor     .10000E-03    47.019       -.18199E-05** at limit **
   4  norm          9.0893        6.6774        .70095E-06   -.33698E-03
   5  Prefactor     .10000E-03    205.49        .30271E-05** at limit **
   6  Prefactor     2.3119        43.826        .18461E-05    .14122E-03
   7  norm          5.4888        3.1852       -.14737E-06   -.19800E-03
   8  norm          .10000E-03    3.6178       -.26465E-07** at limit **
   9  Prefactor     .10230E-03    20.489        .33860E-05** at limit **
  10  Prefactor     .10000E-03    6.2765        .23203E-07** at limit **
  11  Prefactor     .10000E-03    173.08       -.22190E-05** at limit **
  12  Prefactor     .10000E-03    3.4406       -.70412E-08** at limit **
  13  norm          .95769        25.330       -.50480E-06    .12839E-04
  14  Prefactor     .10000E-03    5.0289        .33792E-07** at limit **
  15  norm          4.5156        7.3867        .33411E-07   -.19894E-04
  16  Prefactor     .10000E-03    7.8996       -.27118E-07** at limit **
  17  Prefactor     .10000E-03    20.002        .10920E-06** at limit **
  18  Prefactor     .10000E-03    60.562        .92256E-06** at limit **
  19  Prefactor     52.912        61.799        .11420E-05    .13172E-04
  20  Prefactor     63.900        111.24        .43954E-06   -.51438E-05
  21  norm          18.675        12.528        .13953E-06   -.26969E-04
  22  norm          11.915        6.0040        .27951E-06    .11652E-03
  23  Prefactor     53.353        53.555        .21863E-06    .52280E-06
  24  Prefactor     40.127        93.003        .12805E-05    .23439E-04
  25  Prefactor     .10000E-03    82.888        .77763E-06** at limit **
  26  Prefactor     21.578        56.370        .11866E-05    .11473E-04
  27  Prefactor     1.0676        9.8147        .33893E-05    .25457E-03
  28  Prefactor     .10000E-03    25.561        .19350E-05** at limit **
  29  Prefactor     .10001E-03    27.564       -.21956E-05** at limit **
  30  Prefactor     .10000E-03    60.757        .33844E-05** at limit **
  31  Prefactor     61.193        46.184        .21782E-06   -.60048E-04
  32  Prefactor     41.461        59.252        .75852E-06    .47708E-04
  33  Prefactor     80.996        118.69        .49706E-05    .76475E-04
  34  Normalizat    1.3300        .26965       -.25760E-05   -.11707E-03
  35  Prefactor     .38111        .23048        .11711E-05   -.10294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0164
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.08925
  Prefactor  = 0.000100003
  Prefactor  = 2.31188
  norm       = 5.48885
  norm       = 0.0001
  Prefactor  = 0.000102302
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.957687
  Prefactor  = 0.0001
  norm       = 4.51562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 52.9124
  Prefactor  = 63.9004
  norm       = 18.6752
  norm       = 11.9149
  Prefactor  = 53.3526
  Prefactor  = 40.1267
  Prefactor  = 0.0001
  Prefactor  = 21.5778
  Prefactor  = 1.06762
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100002
  Prefactor  = 61.1928
  Prefactor  = 41.4613
  Prefactor  = 80.9957
  Normalizat = 1.33004
  Prefactor  = 0.38111
 **********
 **   18 **HESSE 
 **********

 FCN=   2990.873     FROM HESSE     STATUS=OK           764 CALLS     5888 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.016        19.360        .78541E-04   -1.4687    
   2  Prefactor     .10000E-03    29.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.0893        6.1423        .10693E-03   -1.5105    
   5  Prefactor     .10000E-03    205.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3119        50.020        .13529E-02   -1.5404    
   7  norm          5.4888        3.3794        .37458E-04   -1.5239    
   8  norm          .10000E-03    3.6760        .10134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10230E-03    115.37        .31219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.2975        .13373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    177.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4430        .99073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .95769        132.03        .52906E-02   -1.5512    
  14  Prefactor     .10000E-03    5.0343        .11975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.5156        7.3630        .18308E-03   -1.5283    
  16  Prefactor     .10000E-03    7.9023        .15009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    60.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     52.912        62.077        .55130E-04   -1.4252    
  20  Prefactor     63.900        111.32        .50200E-04   -1.4108    
  21  norm          18.675        12.533        .46340E-03   -1.4843    
  22  norm          11.915        6.0192        .90392E-04   -1.5017    
  23  Prefactor     53.353        53.606        .54907E-04   -1.4246    
  24  Prefactor     40.127        92.863        .63247E-04   -1.4440    
  25  Prefactor     .10000E-03    83.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.578        56.258        .86156E-04   -1.4779    
  27  Prefactor     1.0676        10.007        .30338E-03   -1.5501    
  28  Prefactor     .10000E-03    25.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    28.923        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    62.841        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     61.193        46.293        .51300E-04   -1.4142    
  32  Prefactor     41.461        59.022        .62219E-04   -1.4419    
  33  Prefactor     80.996        118.88        .22306E-03   -1.3906    
  34  Normalizat    1.3300        .29347        .22498E-03   -.82674    
  35  Prefactor     .38111        .24737        .35575E-03   -1.1778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06454e-08
Minuit parameter uncertainties:
  1  19.3644
  2  0.000115005
  3  0.000424062
  4  6.14269
  5  0.00149423
  6  21.5273
  7  3.37957
  8  1.78369e-06
  9  0.0326547
  10  5.93299e-06
  11  0.000656633
  12  1.04833e-06
  13  22.5389
  14  3.17977e-06
  15  7.36446
  16  1.14658e-06
  17  1.58529e-05
  18  0.000267413
  19  62.1529
  20  111.683
  21  12.5349
  22  6.01946
  23  53.654
  24  93.2
  25  0.000311578
  26  56.3966
  27  6.53827
  28  0.000168308
  29  0.000777344
  30  0.000718526
  31  46.3198
  32  59.1053
  33  119.233
  34  0.293839
  35  0.248064
Done.

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

Extracting fit parameters...

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  1.868e+01  1.253e+01  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  2.189e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
751    Prefactor:  3.811e-01  2.481e-01  0.000e+00  1.000e+01 ( 1.000e+00)
752        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
753        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
750   Normalization:  1.330e+00  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.61
Ra Dec: 185.044 71.092
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 9.28e-08 +/- 6.23e-08
Energy Flux (Fixed Index): 3.75e-05 +/- 2.52e-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) = 2990.85990133
delta logL = 0.0130160407484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2990.85703639
delta logL = 0.015880986391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.712       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2977       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38398       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7540E+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=   2990.857     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.712        13.449        .95166E-04   -.16044E-03
   2  alpha         2.2977        .62157        .10874E-01   -.31305E-04
   3  Normalizat    1.3254        .27056        .22529E-03    .14104E-04
   4  Prefactor     .38400        .23976        .35447E-03    .11289E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7124
  alpha      = 2.29767
  Normalizat = 1.32539
  Prefactor  = 0.383995
 **********
 **   18 **HESSE 
 **********

 FCN=   2990.857     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.712        13.250        .38067E-05   -1.4866    
   2  alpha         2.2977        .61246        .43495E-03   -.81019E-01
   3  Normalizat    1.3254        .27062        .45058E-04   -.82812    
   4  Prefactor     .38400        .23980        .14179E-04   -1.1763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81024e-11
Minuit parameter uncertainties:
  1  13.252
  2  0.618802
  3  0.27091
  4  0.240425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505177': 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) = 2990.85703638
delta logL = 0.0158809958289

Extracting fit parameters...

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  1.771e+01  1.325e+01  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  2.298e+00  6.188e-01  0.000e+00  5.000e+00 ( 1.000e+00)
403         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
751    Prefactor:  3.840e-01  2.404e-01  0.000e+00  1.000e+01 ( 1.000e+00)
752        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
753        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
750   Normalization:  1.325e+00  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.60
Ra Dec: 185.044 71.092
Photon Index (Free Index): 2.30 +/- 0.62
Photon Flux (Free Index): 9.92e-08 +/- 7.41e-08
Energy Flux (Free Index): 3.55e-05 +/- 2.58e-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/505177/cmap_HighResolution_415584001_415843201_4FGL_J1220.1+7105_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.28e-08', energy_flux2='3.55e-05', photon_flux_error='6.23e-08', dlogl='1.59e-02', energy_flux='3.75e-05', photon_flux2='9.92e-08', job_status='DONE', time_completed='2021-09-05 08:53:21.914461', photon_index_error2='0.62', photon_index2='2.30', ts='6.61', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='1.33', time_epoch_completed='1630857201.91', return_code='0', job_id='505177', GAL2='0.38', EG2='1.33', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='7.41e-08', ts2='6.60', photon_index='2.19' WHERE bin_id='680' AND source_name='4FGL J1220.1+7105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:53:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 505177: <4FGL_J1220.1+7105_daily_bin680> in cluster <slac> Done

Job <4FGL_J1220.1+7105_daily_bin680> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 08:41:27 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:41:30 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:41:30 2021
Terminated at Sun Sep  5 08:53:22 2021
Results reported at Sun Sep  5 08:53:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+7105_daily_bin680 185.044 71.092 415584001 415843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1220.1+7105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   687.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             344.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            715 sec.

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

