/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 69 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 = 7368
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1202
RA = 185.046, Dec = 34.5383
tmin = 550886401, tmax = 551145601
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='497171', job_status='RUN', time_executed='2021-09-05 08:17:49.869772', time_epoch_executed='1630855069.87' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497171/ft1_4FGL_J1220.1+3432_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497171/ft2_4FGL_J1220.1+3432_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497171/ft1_4FGL_J1220.1+3432_daily_bin1202.fits outfile=/scratch/kocevski/497171/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1202.fits ra=185.046 dec=34.5383 rad=12.0 tmin=550886401.0 tmax=551145601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.34
user 3.53
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497171/ft1_filtered_4FGL_J1220.1+3432_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/497171/ft2_4FGL_J1220.1+3432_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/497171/ltcube_550886401_551145601_4FGL_J1220.1+3432_daily_bin1202.fits outfile=/scratch/kocevski/497171/expmap_550886401_551145601_4FGL_J1220.1+3432_daily_bin1202.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/497171/ltcube_550886401_551145601_4FGL_J1220.1+3432_daily_bin1202.fits
.....................!
real 195.21
user 185.02
sys 5.23

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/497171/ft1_filtered_4FGL_J1220.1+3432_daily_bin1202.fits scfile=/scratch/kocevski/497171/ft2_4FGL_J1220.1+3432_daily_bin1202.fits outfile=/scratch/kocevski/497171/cmap_550886401_551145601_4FGL_J1220.1+3432_daily_bin1202.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.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13293E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.164       1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.188       1.0000         .10000E-03   10000.    
     4 'norm      '    7.3031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    208.43       1.0000         .10000E-03   10000.    
     8 'norm      '    .11199E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.094       1.0000         .10000E-03   10000.    
    10 'norm      '    16.621       1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.478       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.3486       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.492       1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8999       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4286       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7197       1.0000         .10000E-03   10000.    
    20 'norm      '    12.522       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.573       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.257       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .11815E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .12965E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    1.9047       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.5257       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .73448       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=   2920.775     FROM MIGRAD    STATUS=CONVERGED    872 CALLS     5505 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3655       -.44061E-06** at limit **
   2  Prefactor     30.061        202.77       -.88428E-05    .12140E-04
   3  Prefactor     53.198        38.362        .18423E-06    .58821E-04
   4  norm          7.3132        10.903        .69093E-06   -.12046E-03
   5  Prefactor     .10000E-03    22.191        .71226E-06** at limit **
   6  Prefactor     .10000E-03    5.6433        .27580E-06** at limit **
   7  Prefactor     208.46        122.63       -.29011E-05   -.43496E-03
   8  norm          .10000E-03    3.1976        .26993E-05** at limit **
   9  Prefactor     22.129        39.913        .16289E-05    .11363E-03
  10  norm          16.623        16.651       -.12619E-06   -.10482E-03
  11  Prefactor     52.482        53.333        .14573E-06    .87140E-05
  12  Prefactor     .10000E-03    40.970        .48085E-06** at limit **
  13  norm          6.3482        2.8028       -.84968E-07    .38025E-05
  14  Prefactor     14.515        65.901        .92804E-06    .26697E-04
  15  norm          .10000E-03    4.2626        .12362E-06** at limit **
  16  Prefactor     .10000E-03    5.4202        .12682E-06** at limit **
  17  Prefactor     4.8991        4.1889       -.68678E-07    .11030E-04
  18  Prefactor     1.4302        4.6794        .35778E-06    .83828E-04
  19  Prefactor     4.7190        8.4793       -.20671E-06    .24058E-04
  20  norm          12.522        7.5286       -.25582E-07    .26419E-05
  21  Prefactor     15.568        23.016       -.40013E-06   -.74689E-05
  22  Prefactor     .10000E-03    13.695       -.22631E-07** at limit **
  23  Prefactor     16.088        189.19        .27219E-05    .13238E-05
  24  Prefactor     .10000E-03    4.9820       -.12382E-06** at limit **
  25  norm          .10000E-03    11.746       -.16443E-05** at limit **
  26  Prefactor     .10000E-03    48.766       -.11894E-05** at limit **
  27  Prefactor     .10000E-03    16.401       -.54731E-06** at limit **
  28  norm          .10000E-03    7.9632       -.12140E-06** at limit **
  29  norm          .10003E-03    11.130        .25417E-05** at limit **
  30  norm          1.8913        13.710       -.41138E-06   -.26561E-03
  31  Prefactor     .10000E-03    3.6808       -.38502E-08** at limit **
  32  Normalizat    1.5254        .34562       -.46465E-05    .81239E-04
  33  Prefactor     .73469        .37734        .91106E-05    .82070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 30.0611
  Prefactor  = 53.1975
  norm       = 7.3132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 208.463
  norm       = 0.000100001
  Prefactor  = 22.1294
  norm       = 16.6233
  Prefactor  = 52.4822
  Prefactor  = 0.0001
  norm       = 6.34818
  Prefactor  = 14.5145
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.89911
  Prefactor  = 1.43017
  Prefactor  = 4.71904
  norm       = 12.5218
  Prefactor  = 15.568
  Prefactor  = 0.0001
  Prefactor  = 16.0879
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100034
  norm       = 1.89129
  Prefactor  = 0.0001
  Normalizat = 1.52538
  Prefactor  = 0.734691
 **********
 **   18 **HESSE 
 **********

 FCN=   2920.775     FROM HESSE     STATUS=OK           693 CALLS     6198 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.342        .24179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.061        212.39        .72951E-04   -1.4611    
   3  Prefactor     53.198        38.354        .54996E-04   -1.4248    
   4  norm          7.3132        10.959        .13294E-03   -1.5167    
   5  Prefactor     .10000E-03    22.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6672        .12536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     208.46        123.25        .14000E-03   -1.2810    
   8  norm          .10000E-03    4.3403        .15683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.129        40.055        .85215E-04   -1.4767    
  10  norm          16.623        16.655        .98240E-04   -1.4892    
  11  Prefactor     52.482        53.313        .55365E-04   -1.4258    
  12  Prefactor     .10000E-03    40.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.3482        2.8002        .55538E-04   -1.5204    
  14  Prefactor     14.515        65.656        .10521E-03   -1.4946    
  15  norm          .10000E-03    4.3325        .21689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.4228        .12289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8991        4.1500        .94334E-04   -1.5265    
  18  Prefactor     1.4302        4.5271        .17633E-03   -1.5469    
  19  Prefactor     4.7190        8.4689        .18522E-03   -1.5273    
  20  norm          12.522        7.5273        .10757E-03   -1.5000    
  21  Prefactor     15.568        22.656        .10149E-03   -1.4919    
  22  Prefactor     .10000E-03    13.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.088        190.63        .99333E-04   -1.4906    
  24  Prefactor     .10000E-03    4.9868        .11782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    37.868        .33857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    48.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    8.0535        .14896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10003E-03    24.135        .26787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.8913        9.4414        .30130E-03   -1.5433    
  31  Prefactor     .10000E-03    3.6853        .10126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.5254        .38043        .26109E-03   -.77068    
  33  Prefactor     .73469        .40460        .39639E-03   -1.0218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4496e-09
Minuit parameter uncertainties:
  1  0.000308029
  2  160.626
  3  38.3718
  4  10.9622
  5  7.34484e-05
  6  1.99938e-05
  7  123.407
  8  0.000103612
  9  40.1037
  10  16.6601
  11  53.3617
  12  0.000154249
  13  2.8003
  14  61.8529
  15  1.22988e-06
  16  1.05362e-05
  17  4.15026
  18  4.52817
  19  8.47109
  20  7.52791
  21  22.6683
  22  3.1494e-06
  23  111.204
  24  1.354e-05
  25  0.000553284
  26  0.000466008
  27  0.00012478
  28  2.53231e-05
  29  0.00182384
  30  8.45328
  31  2.45444e-06
  32  0.381153
  33  0.406237
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.054e-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:  7.347e-01  4.062e-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.525e+00  3.812e-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: 9.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497171/likelihoodResults_550886401_551145601_4FGL_J1220.1+3432_daily_bin1202.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) = 2920.77596492
delta logL = -0.00080541637044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2920.7751596
delta logL = -9.51781657932e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0794       1.0000          .0000       10.000    
     3 'Normalizat'    1.5253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73475       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=   2920.775     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      247 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10261E-03    6.0952        .12740E-01** at limit **
   2  Index         2.0024        7.4514        .50000        .37764E-04
   3  Normalizat    1.5254        .78919E-02    .26110E-03   -.10886E-06
   4  Prefactor     .73469        .87014E-02    .39636E-03   -.51629E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102614
  Index      = 2.00237
  Normalizat = 1.52538
  Prefactor  = 0.734688
 **********
 **   18 **HESSE 
 **********

 FCN=   2920.775     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10261E-03    65.929        .13085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0024        5.4636        .50000       -.64291    
   3  Normalizat    1.5254        .26228E-01    .10444E-04   -.77068    
   4  Prefactor     .73469        .28919E-01    .15854E-04   -1.0218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56853e-08
Minuit parameter uncertainties:
  1  0.0262841
  2  234.586
  3  0.0262287
  4  0.0289192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497171': 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) = 2920.77515863
delta logL = 8.79233084561e-07

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.026e-04  2.628e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.002e+00  2.346e+02  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:  7.347e-01  2.892e-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.525e+00  2.623e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/497171/cmap_HighResolution_550886401_551145601_4FGL_J1220.1+3432_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.49e-03', job_status='DONE', photon_flux_upper_limit='9.90e-08', time_completed='2021-09-05 08:29:14.630029', job_id='497171', GAL2='0.73', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1630855754.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='8.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1202' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:29:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 497171: <4FGL_J1220.1+3432_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin1202> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 08:15:45 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:15:46 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:15:46 2021
Terminated at Sun Sep  5 08:29:15 2021
Results reported at Sun Sep  5 08:29:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1202 185.046 34.5383 550886401 551145601 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 :                                   659.15 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             279.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

