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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin483
RA = 185.046, Dec = 34.5383
tmin = 364521601, tmax = 364780801
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='489681', job_status='RUN', time_executed='2021-09-05 07:51:53.188562', time_epoch_executed='1630853513.19' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489681

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489681/ft1_4FGL_J1220.1+3432_daily_bin483.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489681/ft2_4FGL_J1220.1+3432_daily_bin483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489681/ft1_4FGL_J1220.1+3432_daily_bin483.fits outfile=/scratch/kocevski/489681/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin483.fits ra=185.046 dec=34.5383 rad=12.0 tmin=364521601.0 tmax=364780801.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.52
user 3.02
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/489681/ft2_4FGL_J1220.1+3432_daily_bin483.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/489681/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin483.fits evtable="EVENTS" outfile="/scratch/kocevski/489681/ft1_filtered_4FGL_J1220.1+3432_daily_bin483.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.06
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489681/ft1_filtered_4FGL_J1220.1+3432_daily_bin483.fits evtable="EVENTS" scfile=/scratch/kocevski/489681/ft2_4FGL_J1220.1+3432_daily_bin483.fits sctable="SC_DATA" expcube=/scratch/kocevski/489681/ltcube_364521601_364780801_4FGL_J1220.1+3432_daily_bin483.fits outfile=/scratch/kocevski/489681/expmap_364521601_364780801_4FGL_J1220.1+3432_daily_bin483.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/489681/ltcube_364521601_364780801_4FGL_J1220.1+3432_daily_bin483.fits
.....................!
real 192.12
user 185.09
sys 4.90

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/489681/ft1_filtered_4FGL_J1220.1+3432_daily_bin483.fits scfile=/scratch/kocevski/489681/ft2_4FGL_J1220.1+3432_daily_bin483.fits outfile=/scratch/kocevski/489681/cmap_364521601_364780801_4FGL_J1220.1+3432_daily_bin483.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 1.07
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489681/ft1_filtered_4FGL_J1220.1+3432_daily_bin483.fits scfile=/scratch/kocevski/489681/ft2_4FGL_J1220.1+3432_daily_bin483.fits outfile=/scratch/kocevski/489681/cmap_HighResolution_364521601_364780801_4FGL_J1220.1+3432_daily_bin483.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 1.02
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6169       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11803E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.914       1.0000         .10000E-03   10000.    
     8 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1368       1.0000         .10000E-03   10000.    
    10 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    113.06       1.0000         .10000E-03   10000.    
    13 'norm      '    5.4319       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.2860       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.610       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3416       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4269       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.8574       1.0000         .10000E-03   10000.    
    20 'norm      '    5.5742       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29512E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.403       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13965E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3884       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.255       1.0000         .10000E-03   10000.    
    28 'norm      '    .12230E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.0822       1.0000         .10000E-03   10000.    
    30 'norm      '    3.3447       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0539       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .58691       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=   5301.355     FROM MIGRAD    STATUS=CONVERGED    903 CALLS     4623 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6174        2.7820        .75960E-07    .56958E-03
   2  Prefactor     .10000E-03    19.402       -.11459E-07** at limit **
   3  Prefactor     .10000E-03    10.938        .12335E-06** at limit **
   4  norm          .87423E-02    1.1562        .24154E-06   -.30625E-03
   5  Prefactor     .10000E-03    8.2421        .11659E-06** at limit **
   6  Prefactor     .10000E-03    2.3528        .67952E-07** at limit **
   7  Prefactor     20.864        27.326        .19086E-05    .16993E-04
   8  norm          .10000E-03    .40451       -.17654E-05** at limit **
   9  Prefactor     7.1396        17.861       -.21147E-06   -.35905E-04
  10  norm          .10000E-03    3.1539       -.20821E-06** at limit **
  11  Prefactor     .10000E-03    9.2069        .86779E-07** at limit **
  12  Prefactor     113.03        59.746        .19520E-05   -.12410E-04
  13  norm          5.4319        1.5323       -.27302E-07   -.10148E-03
  14  Prefactor     .10000E-03    4.9520        .37980E-08** at limit **
  15  norm          7.2862        2.9102       -.18117E-07    .63658E-04
  16  Prefactor     11.611        8.2626       -.11139E-06    .12223E-04
  17  Prefactor     2.3418        1.7262       -.75080E-08   -.67194E-04
  18  Prefactor     2.4278        1.7788       -.23714E-07   -.27568E-03
  19  Prefactor     8.8579        6.5907        .15325E-07   -.92590E-04
  20  norm          5.5746        3.8857       -.34818E-08   -.24507E-03
  21  Prefactor     .10000E-03    6.5958        .14087E-05** at limit **
  22  Prefactor     16.393        25.363       -.12208E-06   -.11436E-03
  23  Prefactor     .10000E-03    87.600        .81360E-07** at limit **
  24  Prefactor     .10000E-03    5.9865       -.28945E-06** at limit **
  25  norm          1.3904        4.0970        .40859E-06   -.84706E-04
  26  Prefactor     .10000E-03    29.855        .24899E-07** at limit **
  27  Prefactor     16.260        16.552       -.19934E-06   -.10546E-03
  28  norm          .10000E-03    3.4135        .14720E-06** at limit **
  29  norm          3.0814        5.6568       -.32794E-05    .35685E-04
  30  norm          3.3454        9.1529        .60906E-05   -.80400E-03
  31  Prefactor     .10000E-03    1.6669        .28545E-07** at limit **
  32  Normalizat    1.0538        .17194        .21781E-05    .52085E-03
  33  Prefactor     .58697        .19738       -.25224E-05    .26057E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.61738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00874226
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 20.8639
  norm       = 0.000100001
  Prefactor  = 7.1396
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 113.029
  norm       = 5.43194
  Prefactor  = 0.0001
  norm       = 7.28624
  Prefactor  = 11.6109
  Prefactor  = 2.34175
  Prefactor  = 2.42782
  Prefactor  = 8.85785
  norm       = 5.57457
  Prefactor  = 0.000100001
  Prefactor  = 16.3931
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.39035
  Prefactor  = 0.0001
  Prefactor  = 16.2603
  norm       = 0.0001
  norm       = 3.0814
  norm       = 3.34538
  Prefactor  = 0.0001
  Normalizat = 1.05381
  Prefactor  = 0.586971
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.355     FROM HESSE     STATUS=OK           709 CALLS     5332 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6174        2.7966        .80526E-04   -1.5234    
   2  Prefactor     .10000E-03    19.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .87423E-02    2.8704        .26439E-01   -1.5689    
   5  Prefactor     .10000E-03    8.2799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3750        .10900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.864        27.597        .87582E-04   -1.4794    
   8  norm          .10000E-03    .51997        .87279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1396        17.865        .15015E-03   -1.5174    
  10  norm          .10000E-03    3.1573        .12630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.2133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     113.03        60.218        .18917E-03   -1.3578    
  13  norm          5.4319        1.5323        .45580E-04   -1.5242    
  14  Prefactor     .10000E-03    4.9524        .15825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.2862        2.9105        .74983E-04   -1.5168    
  16  Prefactor     11.611        8.2733        .11757E-03   -1.5026    
  17  Prefactor     2.3418        1.7290        .78843E-04   -1.5402    
  18  Prefactor     2.4278        1.7641        .79240E-04   -1.5396    
  19  Prefactor     8.8579        6.5894        .13468E-03   -1.5113    
  20  norm          5.5746        3.8848        .11250E-03   -1.5236    
  21  Prefactor     .10000E-03    16.831        .35401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.393        25.308        .98891E-04   -1.4898    
  23  Prefactor     .10000E-03    87.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.0206        .17348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3904        4.0658        .23647E-03   -1.5472    
  26  Prefactor     .10000E-03    30.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.260        16.408        .99342E-04   -1.4901    
  28  norm          .10000E-03    8.5081        .25706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.0814        6.0735        .13092E-03   -1.5357    
  30  norm          3.3454        10.220        .10711E-02   -1.5342    
  31  Prefactor     .10000E-03    1.6759        .91732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.0538        .19598        .21022E-03   -.91249    
  33  Prefactor     .58697        .22155        .32733E-03   -1.0814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28897e-09
Minuit parameter uncertainties:
  1  2.79666
  2  7.98578e-05
  3  0.000124519
  4  0.315017
  5  0.000143365
  6  2.88142e-06
  7  27.6137
  8  3.94322e-05
  9  17.8785
  10  1.13747e-05
  11  0.000172426
  12  60.2503
  13  1.53236
  14  4.78612e-07
  15  2.91059
  16  8.27414
  17  1.72904
  18  1.76412
  19  6.58996
  20  3.88498
  21  0.000262666
  22  25.3247
  23  0.000476541
  24  2.95328e-05
  25  4.06664
  26  0.000103203
  27  16.4124
  28  1.71665e-05
  29  6.07469
  30  10.2255
  31  2.31248e-06
  32  0.196111
  33  0.221876
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.161e+01  8.274e+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:  5.870e-01  2.219e-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.054e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.63
Ra Dec: 185.046 34.538
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 2.15e-05 +/- 1.53e-05

TS (Fixed Index): 3.63
Ra Dec: 185.046 34.538
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/489681/likelihoodResults_364521601_364780801_4FGL_J1220.1+3432_daily_bin483.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) = 5301.16453542
delta logL = 0.19026512514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5301.14991443
delta logL = 0.204886117016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7402       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4555       1.0000          .0000       10.000    
     3 'Normalizat'    1.0367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59874       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=   5301.150     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      268 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7420        9.3698        .12447E-03    .11289E-03
   2  Index         2.4554        .63045        .44293E-02    .48333E-04
   3  Normalizat    1.0367        .18590        .21165E-03    .66445E-03
   4  Prefactor     .59881        .21918        .32427E-03    .51340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.74202
  Index      = 2.45544
  Normalizat = 1.03667
  Prefactor  = 0.598807
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.150     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7420        8.3911        .49788E-05   -1.5151    
   2  Index         2.4554        .56461        .17717E-03   -.53392    
   3  Normalizat    1.0367        .18574        .42331E-04   -.91812    
   4  Prefactor     .59881        .21908        .64854E-04   -1.0764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.47789e-10
Minuit parameter uncertainties:
  1  8.39241
  2  0.566239
  3  0.185861
  4  0.219395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489681': 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) = 5301.14991416
delta logL = 0.204886387898

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  7.742e+00  8.392e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.455e+00  5.662e-01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.673e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  5.988e-01  2.194e-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.037e+00  1.859e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 185.046 34.538
Photon Index (Free Index): 2.46 +/- 0.57
Photon Flux (Free Index): 5.38e-08 +/- 3.90e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.20e-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/489681/cmap_HighResolution_364521601_364780801_4FGL_J1220.1+3432_daily_bin483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-03', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='1.64e-05', photon_flux_error='2.83e-08', dlogl='2.05e-01', energy_flux='2.15e-05', photon_flux2='5.38e-08', job_status='DONE', time_completed='2021-09-05 08:07:23.828226', photon_index_error2='0.57', photon_index2='2.46', ts='3.63', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.20e-05', EG='1.05', time_epoch_completed='1630854443.83', return_code='0', job_id='489681', GAL2='0.60', EG2='1.04', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='3.90e-08', ts2='4.02', photon_index='2.11' WHERE bin_id='483' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:07:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 489681: <4FGL_J1220.1+3432_daily_bin483> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin483> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 07:51:21 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:51:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 07:51:23 2021
Terminated at Sun Sep  5 08:07:24 2021
Results reported at Sun Sep  5 08:07:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin483 185.046 34.5383 364521601 364780801 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 :                                   892.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

