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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin972
RA = 185.046, Dec = 34.5383
tmin = 491270401, tmax = 491529601
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='494214', job_status='RUN', time_executed='2021-09-05 08:06:12.074413', time_epoch_executed='1630854372.07' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='972'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494214

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494214/ft1_4FGL_J1220.1+3432_daily_bin972.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494214/ft2_4FGL_J1220.1+3432_daily_bin972.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494214/ft1_4FGL_J1220.1+3432_daily_bin972.fits outfile=/scratch/kocevski/494214/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin972.fits ra=185.046 dec=34.5383 rad=12.0 tmin=491270401.0 tmax=491529601.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.54
user 3.33
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494214/ft1_filtered_4FGL_J1220.1+3432_daily_bin972.fits evtable="EVENTS" scfile=/scratch/kocevski/494214/ft2_4FGL_J1220.1+3432_daily_bin972.fits sctable="SC_DATA" expcube=/scratch/kocevski/494214/ltcube_491270401_491529601_4FGL_J1220.1+3432_daily_bin972.fits outfile=/scratch/kocevski/494214/expmap_491270401_491529601_4FGL_J1220.1+3432_daily_bin972.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/494214/ltcube_491270401_491529601_4FGL_J1220.1+3432_daily_bin972.fits
.....................!
real 190.87
user 186.28
sys 4.24

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/494214/ft1_filtered_4FGL_J1220.1+3432_daily_bin972.fits scfile=/scratch/kocevski/494214/ft2_4FGL_J1220.1+3432_daily_bin972.fits outfile=/scratch/kocevski/494214/cmap_491270401_491529601_4FGL_J1220.1+3432_daily_bin972.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=185.046 yref=34.5383 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494214/ft1_filtered_4FGL_J1220.1+3432_daily_bin972.fits scfile=/scratch/kocevski/494214/ft2_4FGL_J1220.1+3432_daily_bin972.fits outfile=/scratch/kocevski/494214/cmap_HighResolution_491270401_491529601_4FGL_J1220.1+3432_daily_bin972.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.634       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.342       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4581       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.969       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .64896E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .55185       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.505       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9223       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.834       1.0000         .10000E-03   10000.    
    15 'norm      '    11.394       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.028       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7622       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4199       1.0000         .10000E-03   10000.    
    20 'norm      '    .38063       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11318E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.2278       1.0000         .10000E-03   10000.    
    26 'Prefactor '    29.719       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.2997       1.0000         .10000E-03   10000.    
    28 'norm      '    1.2254       1.0000         .10000E-03   10000.    
    29 'norm      '    .16056E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    17.748       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.0783       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.4257       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .33860       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=   5819.446     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     4691 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4968        .32250E-06** at limit **
   2  Prefactor     17.643        50.378       -.76652E-06    .78448E-04
   3  Prefactor     19.284        34.208        .11381E-04    .41854E-03
   4  norm          4.4578        3.2538        .18432E-06    .46700E-03
   5  Prefactor     15.987        21.904       -.57502E-05    .67766E-04
   6  Prefactor     .10000E-03    3.4026       -.12353E-05** at limit **
   7  Prefactor     .10000E-03    18.727       -.70179E-06** at limit **
   8  norm          .55185        .81399        .71904E-07    .30595E-03
   9  Prefactor     20.503        19.448        .17826E-06    .49498E-04
  10  norm          .10000E-03    2.7015        .41042E-08** at limit **
  11  Prefactor     .10000E-03    64.999       -.91785E-07** at limit **
  12  Prefactor     .10000E-03    24.452        .46394E-06** at limit **
  13  norm          1.9223        1.2019        .85896E-07    .39703E-03
  14  Prefactor     36.847        34.401       -.71580E-06    .81091E-04
  15  norm          11.394        3.7375       -.15180E-07    .32406E-04
  16  Prefactor     15.027        9.2337        .11616E-06    .38291E-04
  17  Prefactor     2.7621        1.8815        .19384E-07    .54767E-04
  18  Prefactor     .10000E-03    .70342        .28166E-07** at limit **
  19  Prefactor     1.4188        5.3828        .12194E-05    .12492E-03
  20  norm          .37941        3.2004       -.67483E-06    .10534E-03
  21  Prefactor     .10000E-03    3.1615        .21389E-08** at limit **
  22  Prefactor     .10000E-03    9.1909       -.10911E-06** at limit **
  23  Prefactor     .10000E-03    23.708        .64660E-06** at limit **
  24  Prefactor     .10000E-03    5.2451       -.11929E-05** at limit **
  25  norm          5.2277        4.6043       -.10176E-06   -.16558E-03
  26  Prefactor     29.709        27.727       -.10683E-05   -.98286E-04
  27  Prefactor     4.2911        13.388       -.13849E-05   -.26770E-03
  28  norm          1.2246        4.2594        .94939E-05   -.57439E-03
  29  norm          .10000E-03    5.2404       -.38131E-06** at limit **
  30  norm          17.748        7.9936       -.19578E-06   -.95014E-04
  31  Prefactor     1.0831        3.0310        .61039E-06    .70771E-03
  32  Normalizat    1.4259        .19683        .96800E-06    .49690E-03
  33  Prefactor     .33850        .21689       -.36835E-05    .16299E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.6434
  Prefactor  = 19.2843
  norm       = 4.45775
  Prefactor  = 15.9871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.551851
  Prefactor  = 20.5034
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.92231
  Prefactor  = 36.8465
  norm       = 11.3938
  Prefactor  = 15.0269
  Prefactor  = 2.7621
  Prefactor  = 0.0001
  Prefactor  = 1.41885
  norm       = 0.379412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.22772
  Prefactor  = 29.7085
  Prefactor  = 4.29111
  norm       = 1.22464
  norm       = 0.0001
  norm       = 17.7483
  Prefactor  = 1.08309
  Normalizat = 1.42589
  Prefactor  = 0.338504
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.446     FROM HESSE     STATUS=OK           705 CALLS     5396 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5090        .90643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.643        50.122        .95378E-04   -1.4868    
   3  Prefactor     19.284        34.481        .91070E-04   -1.4829    
   4  norm          4.4578        3.2574        .96210E-04   -1.5286    
   5  Prefactor     15.987        21.891        .10023E-03   -1.4908    
   6  Prefactor     .10000E-03    12.210        .26328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55185        .70831        .79381E-03   -1.5559    
   9  Prefactor     20.503        19.425        .88452E-04   -1.4802    
  10  norm          .10000E-03    2.7022        .12245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    65.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9223        1.1959        .63103E-04   -1.5431    
  14  Prefactor     36.847        34.445        .66035E-04   -1.4493    
  15  norm          11.394        3.7314        .80051E-04   -1.5033    
  16  Prefactor     15.027        9.2350        .10332E-03   -1.4932    
  17  Prefactor     2.7621        1.8863        .82552E-04   -1.5376    
  18  Prefactor     .10000E-03    .70908        .62436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4188        5.7460        .28722E-03   -1.5470    
  20  norm          .37941        15.231        .22638E-02   -1.5585    
  21  Prefactor     .10000E-03    3.1651        .13246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.2004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.909        .30383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.2277        4.5958        .14217E-03   -1.5251    
  26  Prefactor     29.709        27.582        .73494E-04   -1.4617    
  27  Prefactor     4.2911        12.077        .97142E-03   -1.5294    
  28  norm          1.2246        4.2716        .13963E-02   -1.5487    
  29  norm          .10000E-03    5.3335        .33711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          17.748        7.8970        .95070E-04   -1.4865    
  31  Prefactor     1.0831        2.6438        .21276E-02   -1.5500    
  32  Normalizat    1.4259        .20935        .20636E-03   -.79883    
  33  Prefactor     .33850        .22494        .44380E-03   -1.2007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44822e-09
Minuit parameter uncertainties:
  1  2.06117e-05
  2  50.2418
  3  34.5167
  4  3.2575
  5  21.9024
  6  7.02227e-05
  7  3.14207e-05
  8  0.708316
  9  19.4306
  10  2.52836e-07
  11  0.000666615
  12  3.09092e-05
  13  1.19588
  14  34.4635
  15  3.7315
  16  9.23583
  17  1.8863
  18  1.29901e-06
  19  5.71135
  20  4.80856
  21  1.14337e-06
  22  7.88544e-06
  23  2.95461e-05
  24  8.68197e-05
  25  4.59611
  26  27.5933
  27  12.0836
  28  4.27266
  29  5.09476e-05
  30  7.89742
  31  2.64412
  32  0.209472
  33  0.225519
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.503e+01  9.236e+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:  3.385e-01  2.255e-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.426e+00  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.92
Ra Dec: 185.046 34.538
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 5.14e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 1.71e-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) = 5819.32368654
delta logL = 0.121874366359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5819.32125235
delta logL = 0.124308562285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.865       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3582       1.0000          .0000       10.000    
     3 'Normalizat'    1.4090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .34931       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=   5819.321     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      297 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.863        10.696        .11630E-03    .80737E-03
   2  Index         2.3581        .55110        .46865E-02    .21343E-03
   3  Normalizat    1.4087        .20379        .20731E-03   -.70566E-03
   4  Prefactor     .34979        .22275        .43685E-03   -.45185E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8629
  Index      = 2.35806
  Normalizat = 1.40867
  Prefactor  = 0.349794
 **********
 **   18 **HESSE 
 **********

 FCN=   5819.321     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.863        9.9689        .46518E-05   -1.5019    
   2  Index         2.3581        .51330        .18746E-03   -.55670    
   3  Normalizat    1.4087        .20339        .41462E-04   -.80378    
   4  Prefactor     .34979        .22249        .17474E-04   -1.1945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16683e-09
Minuit parameter uncertainties:
  1  9.9703
  2  0.514557
  3  0.203504
  4  0.223037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494214': 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) = 5819.32124942
delta logL = 0.12431148885

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.186e+01  9.970e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.358e+00  5.146e-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:  3.498e-01  2.230e-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.409e+00  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.15
Ra Dec: 185.046 34.538
Photon Index (Free Index): 2.36 +/- 0.51
Photon Flux (Free Index): 6.71e-08 +/- 4.85e-08
Energy Flux (Free Index): 2.33e-05 +/- 1.47e-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/494214/cmap_HighResolution_491270401_491529601_4FGL_J1220.1+3432_daily_bin972.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.14e-08', energy_flux2='2.33e-05', photon_flux_error='3.16e-08', dlogl='1.24e-01', energy_flux='2.78e-05', photon_flux2='6.71e-08', job_status='DONE', time_completed='2021-09-05 08:19:50.674893', photon_index_error2='0.51', photon_index2='2.36', ts='5.92', fit_tolerance='1e-08', GAL='0.34', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='1.43', time_epoch_completed='1630855190.67', return_code='0', job_id='494214', GAL2='0.35', EG2='1.41', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='4.85e-08', ts2='6.15', photon_index='2.11' WHERE bin_id='972' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:19:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 494214: <4FGL_J1220.1+3432_daily_bin972> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin972 185.046 34.5383 491270401 491529601 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 :                                   811.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

