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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1012
RA = 185.046, Dec = 34.5383
tmin = 501638401, tmax = 501897601
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='494254', job_status='RUN', time_executed='2021-09-05 08:08:13.393392', time_epoch_executed='1630854493.39' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494254

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494254/ft1_4FGL_J1220.1+3432_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494254/ft2_4FGL_J1220.1+3432_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494254/ft1_4FGL_J1220.1+3432_daily_bin1012.fits outfile=/scratch/kocevski/494254/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1012.fits ra=185.046 dec=34.5383 rad=12.0 tmin=501638401.0 tmax=501897601.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 2.66
user 2.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/494254/ft2_4FGL_J1220.1+3432_daily_bin1012.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/494254/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/494254/ft1_filtered_4FGL_J1220.1+3432_daily_bin1012.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.41
user 0.24
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494254/ft1_filtered_4FGL_J1220.1+3432_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/494254/ft2_4FGL_J1220.1+3432_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/494254/ltcube_501638401_501897601_4FGL_J1220.1+3432_daily_bin1012.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/494254/ft2_4FGL_J1220.1+3432_daily_bin1012.fits
.....................!
real 8.93
user 8.65
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494254/ft1_filtered_4FGL_J1220.1+3432_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/494254/ft2_4FGL_J1220.1+3432_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/494254/ltcube_501638401_501897601_4FGL_J1220.1+3432_daily_bin1012.fits outfile=/scratch/kocevski/494254/expmap_501638401_501897601_4FGL_J1220.1+3432_daily_bin1012.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/494254/ltcube_501638401_501897601_4FGL_J1220.1+3432_daily_bin1012.fits
.....................!
real 139.08
user 135.74
sys 3.04

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/494254/ft1_filtered_4FGL_J1220.1+3432_daily_bin1012.fits scfile=/scratch/kocevski/494254/ft2_4FGL_J1220.1+3432_daily_bin1012.fits outfile=/scratch/kocevski/494254/cmap_501638401_501897601_4FGL_J1220.1+3432_daily_bin1012.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.48
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494254/ft1_filtered_4FGL_J1220.1+3432_daily_bin1012.fits scfile=/scratch/kocevski/494254/ft2_4FGL_J1220.1+3432_daily_bin1012.fits outfile=/scratch/kocevski/494254/cmap_HighResolution_501638401_501897601_4FGL_J1220.1+3432_daily_bin1012.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.266       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6424       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.167       1.0000         .10000E-03   10000.    
     8 'norm      '    .45623       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11323E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.6634       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.037       1.0000         .10000E-03   10000.    
    15 'norm      '    12.382       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7692       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0210       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10350E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.236       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.921       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1939       1.0000         .10000E-03   10000.    
    25 'norm      '    .11367E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.405       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .75892E-02   1.0000         .10000E-03   10000.    
    29 'norm      '    1.1435       1.0000         .10000E-03   10000.    
    30 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.6719       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.0380       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1263       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=   6672.057     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     4628 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7169        1.6856        .18486E-08   -.21943E-03
   2  Prefactor     .10000E-03    41.627        .30508E-06** at limit **
   3  Prefactor     .10000E-03    6.7272       -.86277E-07** at limit **
   4  norm          .10000E-03    1.1176       -.58711E-07** at limit **
   5  Prefactor     14.266        10.250        .70786E-07    .86954E-05
   6  Prefactor     4.6426        4.0350        .59236E-07   -.18187E-05
   7  Prefactor     14.157        41.824       -.43393E-06   -.11048E-04
   8  norm          .45654        .81877        .12419E-06   -.99637E-04
   9  Prefactor     .10000E-03    37.286       -.99646E-06** at limit **
  10  norm          .10000E-03    2.8695        .13228E-07** at limit **
  11  Prefactor     .10000E-03    27.988       -.21960E-06** at limit **
  12  Prefactor     .10000E-03    19.248        .30562E-06** at limit **
  13  norm          4.6633        1.4472        .39939E-07    .14081E-03
  14  Prefactor     23.034        29.248        .62767E-06    .13388E-04
  15  norm          12.382        4.2296        .58648E-07    .50239E-05
  16  Prefactor     .10000E-03    6.9894        .21180E-06** at limit **
  17  Prefactor     4.7694        2.7724        .14090E-07   -.19943E-04
  18  Prefactor     1.0210        1.7192       -.30400E-07   -.20936E-03
  19  Prefactor     .10000E-03    1.8090       -.81665E-07** at limit **
  20  norm          .10000E-03    2.0890       -.43755E-06** at limit **
  21  Prefactor     20.237        9.7067        .91087E-07   -.32507E-04
  22  Prefactor     .10000E-03    5.9938       -.25115E-06** at limit **
  23  Prefactor     15.884        64.333        .60019E-06   -.38182E-04
  24  Prefactor     1.1932        5.4102        .49956E-05   -.21094E-03
  25  norm          .10000E-03    4.8191        .28620E-05** at limit **
  26  Prefactor     14.405        19.615       -.23479E-05   -.55542E-03
  27  Prefactor     .10000E-03    10.478       -.35196E-06** at limit **
  28  norm          .10000E-03    3.6496        .22876E-05** at limit **
  29  norm          1.1460        3.8386        .82478E-06   -.32431E-03
  30  norm          .10000E-03    5.4088        .15418E-06** at limit **
  31  Prefactor     3.6718        2.9839       -.13777E-07   -.26344E-03
  32  Normalizat    1.0378        .17554       -.57884E-06   -.30189E-03
  33  Prefactor     1.1265        .20797       -.45835E-06   -.37254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71691
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.2661
  Prefactor  = 4.64265
  Prefactor  = 14.1566
  norm       = 0.45654
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.66326
  Prefactor  = 23.0337
  norm       = 12.3816
  Prefactor  = 0.0001
  Prefactor  = 4.76945
  Prefactor  = 1.02102
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 20.2372
  Prefactor  = 0.0001
  Prefactor  = 15.884
  Prefactor  = 1.19319
  norm       = 0.0001
  Prefactor  = 14.4048
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 1.14604
  norm       = 0.0001
  Prefactor  = 3.67178
  Normalizat = 1.0378
  Prefactor  = 1.12654
 **********
 **   18 **HESSE 
 **********

 FCN=   6672.057     FROM HESSE     STATUS=OK           705 CALLS     5333 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7169        1.6628        .10076E-03   -1.5446    
   2  Prefactor     .10000E-03    41.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.8312        .16499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.266        10.245        .10604E-03   -1.4952    
   6  Prefactor     4.6426        4.0275        .14644E-03   -1.5277    
   7  Prefactor     14.157        41.410        .10642E-03   -1.4955    
   8  norm          .45654        .81238        .44363E-04   -1.5573    
   9  Prefactor     .10000E-03    38.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.8707        .13513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.6633        1.4470        .52364E-04   -1.5276    
  14  Prefactor     23.034        29.255        .83455E-04   -1.4748    
  15  norm          12.382        4.2305        .87418E-04   -1.5004    
  16  Prefactor     .10000E-03    7.1310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7694        2.7785        .93328E-04   -1.5271    
  18  Prefactor     1.0210        1.4616        .13139E-02   -1.5506    
  19  Prefactor     .10000E-03    1.8150        .10727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.8262        .22761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.237        9.6809        .89036E-04   -1.4808    
  22  Prefactor     .10000E-03    5.9971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.884        64.456        .10038E-03   -1.4911    
  24  Prefactor     1.1932        5.6720        .18589E-02   -1.5490    
  25  norm          .10000E-03    4.8763        .34573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.405        20.160        .10553E-03   -1.4949    
  27  Prefactor     .10000E-03    10.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.5480        .46193E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.1460        3.7705        .26797E-03   -1.5494    
  30  norm          .10000E-03    5.3748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.6718        2.9778        .12284E-03   -1.5325    
  32  Normalizat    1.0378        .20543        .24832E-03   -.91775    
  33  Prefactor     1.1265        .24301        .29220E-03   -.88623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39804e-09
Minuit parameter uncertainties:
  1  1.66289
  2  0.00012271
  3  4.78918e-06
  4  3.50562e-05
  5  10.2465
  6  4.02775
  7  41.4941
  8  0.812396
  9  4.3203e-05
  10  1.30044e-06
  11  3.81431e-05
  12  5.10154e-05
  13  1.44696
  14  29.2735
  15  4.23056
  16  2.68228e-05
  17  2.77862
  18  1.46168
  19  4.58905e-07
  20  0.000120652
  21  9.68169
  22  2.43165e-05
  23  64.1142
  24  5.20355
  25  3.00621e-05
  26  20.1691
  27  6.08438e-06
  28  0.000195322
  29  3.77125
  30  6.86215e-05
  31  2.97792
  32  0.205591
  33  0.243254
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  2.682e-05  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.127e+00  2.433e-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.038e+00  2.056e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/494254/likelihoodResults_501638401_501897601_4FGL_J1220.1+3432_daily_bin1012.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): 102
logL (Free Index) = 6672.05810408
delta logL = -0.000668444854455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6672.05743494
delta logL = 6.92800313118e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1571       1.0000          .0000       10.000    
     3 'Normalizat'    1.0378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1265       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=   6672.057     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      217 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    63.108        .90712E-02** at limit **
   2  Index         2.2170        6.6456        .50000       -.71429E-04
   3  Normalizat    1.0378        .11277E-01    .41458E-01    .48028E-04
   4  Prefactor     1.1265        .13821E-01    .66056E-01    .17158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.21702
  Normalizat = 1.0378
  Prefactor  = 1.12654
 **********
 **   18 **HESSE 
 **********

 FCN=   6672.057     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      250 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1070.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2170        8.6118        .50000       -.59028    
   3  Normalizat    1.0378        .54578E-01    .24832E-03   -.91775    
   4  Prefactor     1.1265        .66832E-01    .29220E-03   -.88623    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26941e-06
Minuit parameter uncertainties:
  1  0.00658562
  2  45.2064
  3  0.0545811
  4  0.066837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494254': 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): 102
logL (Free Index) = 6672.05743394
delta logL = 1.69471877598e-06

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  6.586e-03  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.217e+00  4.521e+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.127e+00  6.684e-02  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.038e+00  5.458e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.046 34.538

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/494254/cmap_HighResolution_501638401_501897601_4FGL_J1220.1+3432_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2021-09-05 08:21:06.201032', job_id='494254', GAL2='1.13', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630855266.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.69e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1012' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:21:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 494254: <4FGL_J1220.1+3432_daily_bin1012> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1012 185.046 34.5383 501638401 501897601 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 :                                   770.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            909 sec.

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

