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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin856
RA = 185.046, Dec = 34.5383
tmin = 461203201, tmax = 461462401
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='494060', job_status='RUN', time_executed='2021-09-05 08:05:58.048779', time_epoch_executed='1630854358.05' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494060/ft1_4FGL_J1220.1+3432_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494060/ft2_4FGL_J1220.1+3432_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494060/ft1_4FGL_J1220.1+3432_daily_bin856.fits outfile=/scratch/kocevski/494060/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin856.fits ra=185.046 dec=34.5383 rad=12.0 tmin=461203201.0 tmax=461462401.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.41
user 3.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494060/ft1_filtered_4FGL_J1220.1+3432_daily_bin856.fits" evtable="EVENTS" scfile=/scratch/kocevski/494060/ft2_4FGL_J1220.1+3432_daily_bin856.fits sctable="SC_DATA" outfile=/scratch/kocevski/494060/ltcube_461203201_461462401_4FGL_J1220.1+3432_daily_bin856.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/494060/ft2_4FGL_J1220.1+3432_daily_bin856.fits
.....................!
real 12.29
user 11.94
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494060/ft1_filtered_4FGL_J1220.1+3432_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/494060/ft2_4FGL_J1220.1+3432_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/494060/ltcube_461203201_461462401_4FGL_J1220.1+3432_daily_bin856.fits outfile=/scratch/kocevski/494060/expmap_461203201_461462401_4FGL_J1220.1+3432_daily_bin856.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/494060/ltcube_461203201_461462401_4FGL_J1220.1+3432_daily_bin856.fits
.....................!
real 190.17
user 185.35
sys 4.41

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/494060/ft1_filtered_4FGL_J1220.1+3432_daily_bin856.fits scfile=/scratch/kocevski/494060/ft2_4FGL_J1220.1+3432_daily_bin856.fits outfile=/scratch/kocevski/494060/cmap_461203201_461462401_4FGL_J1220.1+3432_daily_bin856.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494060/ft1_filtered_4FGL_J1220.1+3432_daily_bin856.fits scfile=/scratch/kocevski/494060/ft2_4FGL_J1220.1+3432_daily_bin856.fits outfile=/scratch/kocevski/494060/cmap_HighResolution_461203201_461462401_4FGL_J1220.1+3432_daily_bin856.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10856E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2093       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .49765       1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19942E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.6517       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8607       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5574       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3161       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5512       1.0000         .10000E-03   10000.    
    20 'norm      '    24.071       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3993       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5092       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11557E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11682E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.574       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .47121       1.0000         .10000E-03   10000.    
    29 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    14.331       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .67768       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.3165       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=   6152.630     FROM MIGRAD    STATUS=CONVERGED    890 CALLS     4563 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .64088        .74927E-08** at limit **
   2  Prefactor     .10000E-03    12.154       -.49325E-06** at limit **
   3  Prefactor     .10000E-03    12.533        .14397E-06** at limit **
   4  norm          .10000E-03    1.0153        .84495E-07** at limit **
   5  Prefactor     .10000E-03    5.1578        .28042E-07** at limit **
   6  Prefactor     .10000E-03    3.2514       -.18950E-07** at limit **
   7  Prefactor     .10000E-03    11.024        .46933E-06** at limit **
   8  norm          1.2082        .79772        .93322E-07    .74555E-03
   9  Prefactor     .31711        15.529       -.36331E-05    .45561E-03
  10  norm          .10000E-03    11.622       -.38453E-06** at limit **
  11  Prefactor     .10000E-03    11.188        .79245E-07** at limit **
  12  Prefactor     .10000E-03    60.039       -.57674E-05** at limit **
  13  norm          4.6525        1.3998        .11677E-07    .36358E-03
  14  Prefactor     .10000E-03    12.790        .40350E-06** at limit **
  15  norm          3.8605        2.5203       -.33457E-07   -.81372E-05
  16  Prefactor     3.5568        4.7455        .13182E-05    .49832E-03
  17  Prefactor     .10000E-03    .95032        .17255E-07** at limit **
  18  Prefactor     1.3154        1.7749        .25392E-07    .10668E-03
  19  Prefactor     2.5512        2.9183       -.12639E-06   -.19135E-04
  20  norm          24.072        6.5044       -.45584E-07    .14950E-05
  21  Prefactor     4.3994        7.4819        .19049E-05    .35913E-03
  22  Prefactor     3.4296        34.976        .31833E-05    .11802E-04
  23  Prefactor     .10000E-03    47.462        .26358E-05** at limit **
  24  Prefactor     .10000E-03    3.2550       -.36541E-06** at limit **
  25  norm          .10000E-03    1.8494       -.10749E-06** at limit **
  26  Prefactor     34.573        22.769        .21184E-06   -.89730E-05
  27  Prefactor     .10000E-03    6.1378       -.85574E-07** at limit **
  28  norm          .46875        6.3958        .15178E-05    .12154E-03
  29  norm          .10000E-03    1.1745       -.16395E-07** at limit **
  30  norm          .10000E-03    1.9708       -.32716E-08** at limit **
  31  Prefactor     14.332        5.9524       -.10863E-06   -.19207E-04
  32  Normalizat    .67793        .16435       -.61588E-07    .12005E-03
  33  Prefactor     1.3164        .20190       -.57706E-06    .11811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.20822
  Prefactor  = 0.317105
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.65246
  Prefactor  = 0.0001
  norm       = 3.86048
  Prefactor  = 3.55679
  Prefactor  = 0.0001
  Prefactor  = 1.31539
  Prefactor  = 2.5512
  norm       = 24.0719
  Prefactor  = 4.39941
  Prefactor  = 3.42962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.5727
  Prefactor  = 0.0001
  norm       = 0.46875
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.332
  Normalizat = 0.677932
  Prefactor  = 1.31635
 **********
 **   18 **HESSE 
 **********

 FCN=   6152.630     FROM HESSE     STATUS=OK           693 CALLS     5256 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .64658        .61302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6491        .15342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1730        .17397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.3113        .13802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2082        .79014        .54862E-04   -1.5488    
   9  Prefactor     .31711        154.26        .46917E-02   -1.5595    
  10  norm          .10000E-03    11.926        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    60.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6525        1.3991        .48670E-04   -1.5277    
  14  Prefactor     .10000E-03    12.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8605        2.5063        .95648E-04   -1.5315    
  16  Prefactor     3.5568        4.7705        .96347E-03   -1.5331    
  17  Prefactor     .10000E-03    .95989        .74435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3154        1.7375        .11422E-03   -1.5479    
  19  Prefactor     2.5512        2.9177        .13934E-03   -1.5389    
  20  norm          24.072        6.4980        .81645E-04   -1.4726    
  21  Prefactor     4.3994        7.5142        .96007E-03   -1.5288    
  22  Prefactor     3.4296        35.079        .21582E-03   -1.5338    
  23  Prefactor     .10000E-03    47.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.2887        .13823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.8624        .10405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     34.573        22.750        .68153E-04   -1.4531    
  27  Prefactor     .10000E-03    6.1512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .46875        6.4543        .37219E-03   -1.5571    
  29  norm          .10000E-03    1.1940        .82963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    1.9814        .10753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     14.332        5.9036        .10580E-03   -1.4951    
  32  Normalizat    .67793        .19785        .27022E-03   -1.0477    
  33  Prefactor     1.3164        .24239        .25234E-03   -.82822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46992e-08
Minuit parameter uncertainties:
  1  4.35293e-07
  2  6.32283e-06
  3  8.93187e-06
  4  3.63065e-06
  5  3.85462e-06
  6  4.47205e-06
  7  7.71945e-06
  8  0.790149
  9  14.0222
  10  2.21432e-05
  11  7.35121e-06
  12  1.12756e-05
  13  1.3991
  14  9.6452e-06
  15  2.50639
  16  4.77098
  17  6.59859e-08
  18  1.73753
  19  2.91782
  20  6.49816
  21  7.51577
  22  21.9533
  23  5.2568e-05
  24  3.76118e-05
  25  7.30148e-06
  26  22.756
  27  9.62291e-06
  28  3.47884
  29  1.02964e-06
  30  1.30201e-07
  31  5.90383
  32  0.198062
  33  0.242593
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  3.557e+00  4.771e+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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.316e+00  2.426e-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:  6.779e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 5.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494060/likelihoodResults_461203201_461462401_4FGL_J1220.1+3432_daily_bin856.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) = 6152.62981045
delta logL = 2.28975131904e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6152.62979551
delta logL = 3.78412360078e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5887       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0991       1.0000          .0000       10.000    
     3 'Normalizat'    .67798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3164       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=   6152.630     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      232 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5902        204.40        .53328E-02    .41795E-03
   2  Index         2.0996        5.7422        .16935        .13126E-03
   3  Normalizat    .67801        .58630E-01    .61081E-01   -.54603E-04
   4  Prefactor     1.3163        .69142E-01    .57068E-01    .31652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.5902
  Index      = 2.09963
  Normalizat = 0.678012
  Prefactor  = 1.31629
 **********
 **   18 **HESSE 
 **********

 FCN=   6152.630     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5902        6.6403        .19366E-03   -1.5329    
   2  Index         2.0996        .91492        .97932E-02   -.61882    
   3  Normalizat    .67801        .18997        .27020E-03   -1.0477    
   4  Prefactor     1.3163        .24039        .25234E-03   -.82824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7727e-10
Minuit parameter uncertainties:
  1  6.64163
  2  0.922798
  3  0.190157
  4  0.240597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494060': 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) = 6152.62979494
delta logL = 3.84049708373e-05

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  3.590e+00  6.642e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.100e+00  9.228e-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:  1.316e+00  2.406e-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:  6.780e-01  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.94
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/494060/cmap_HighResolution_461203201_461462401_4FGL_J1220.1+3432_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.85e-08', time_completed='2021-09-05 08:22:07.665520', job_id='494060', GAL2='1.32', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630855327.67', return_code2='0', ts='0.94', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='3.84e-05', ts2='0.94', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='856' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:22:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 494060: <4FGL_J1220.1+3432_daily_bin856> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin856 185.046 34.5383 461203201 461462401 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 :                                   966.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

