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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin650
RA = 185.046, Dec = 34.5383
tmin = 407808001, tmax = 408067201
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='491854', job_status='RUN', time_executed='2021-09-05 07:58:04.366103', time_epoch_executed='1630853884.37' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491854

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491854/ft1_4FGL_J1220.1+3432_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491854/ft2_4FGL_J1220.1+3432_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491854/ft1_4FGL_J1220.1+3432_daily_bin650.fits outfile=/scratch/kocevski/491854/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin650.fits ra=185.046 dec=34.5383 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.13
user 3.86
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491854/ft1_filtered_4FGL_J1220.1+3432_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/491854/ft2_4FGL_J1220.1+3432_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/491854/ltcube_407808001_408067201_4FGL_J1220.1+3432_daily_bin650.fits outfile=/scratch/kocevski/491854/expmap_407808001_408067201_4FGL_J1220.1+3432_daily_bin650.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/491854/ltcube_407808001_408067201_4FGL_J1220.1+3432_daily_bin650.fits
.....................!
real 190.18
user 185.23
sys 4.40

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/491854/ft1_filtered_4FGL_J1220.1+3432_daily_bin650.fits scfile=/scratch/kocevski/491854/ft2_4FGL_J1220.1+3432_daily_bin650.fits outfile=/scratch/kocevski/491854/cmap_407808001_408067201_4FGL_J1220.1+3432_daily_bin650.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491854/ft1_filtered_4FGL_J1220.1+3432_daily_bin650.fits scfile=/scratch/kocevski/491854/ft2_4FGL_J1220.1+3432_daily_bin650.fits outfile=/scratch/kocevski/491854/cmap_HighResolution_407808001_408067201_4FGL_J1220.1+3432_daily_bin650.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.601       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11574E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.3864       1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.755       1.0000         .10000E-03   10000.    
    10 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.740       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5326       1.0000         .10000E-03   10000.    
    13 'norm      '    .13330E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.1033       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1491       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8374       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14175       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    49.882       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    59.898       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.613       1.0000         .10000E-03   10000.    
    28 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .17626E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1144       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0948       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=   5324.291     FROM MIGRAD    STATUS=CONVERGED    930 CALLS     4761 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4536       -.16723E-05** at limit **
   2  Prefactor     .10000E-03    17.560        .42751E-06** at limit **
   3  Prefactor     .10000E-03    8.7529       -.12277E-06** at limit **
   4  norm          .10000E-03    1.1541       -.57846E-07** at limit **
   5  Prefactor     11.609        15.299        .31640E-06    .38921E-04
   6  Prefactor     .10000E-03    11.502        .36422E-05** at limit **
   7  Prefactor     .10000E-03    24.380       -.76899E-06** at limit **
   8  norm          5.3876        1.9458        .47109E-07    .65162E-03
   9  Prefactor     51.786        27.909        .22869E-06   -.27615E-04
  10  norm          .10000E-03    7.0167       -.55965E-07** at limit **
  11  Prefactor     20.789        37.951        .12450E-05   -.72858E-04
  12  Prefactor     3.5414        348.29       -.30851E-05    .21323E-05
  13  norm          .10000E-03    .91940        .24748E-06** at limit **
  14  Prefactor     .10000E-03    30.481        .40083E-06** at limit **
  15  norm          9.0977        3.8163        .72854E-07    .18694E-03
  16  Prefactor     .10000E-03    5.8935       -.13174E-06** at limit **
  17  Prefactor     1.1473        1.4830       -.14017E-07   -.33571E-05
  18  Prefactor     .10000E-03    1.0451       -.11162E-06** at limit **
  19  Prefactor     .10000E-03    5.5541       -.39055E-07** at limit **
  20  norm          1.8280        4.5970       -.12286E-07    .32589E-03
  21  Prefactor     .36483        8.4944       -.11253E-06   -.26836E-04
  22  Prefactor     .10000E-03    8.6749       -.35295E-07** at limit **
  23  Prefactor     49.820        94.223        .17004E-05    .57702E-04
  24  Prefactor     .10000E-03    3.2477       -.28043E-07** at limit **
  25  norm          .10000E-03    3.0668        .79845E-08** at limit **
  26  Prefactor     59.929        40.894       -.34647E-06   -.61368E-04
  27  Prefactor     22.619        22.204        .15631E-06   -.70983E-06
  28  norm          .10000E-03    3.7052        .48615E-07** at limit **
  29  norm          .10000E-03    1.2178        .35140E-07** at limit **
  30  norm          .10000E-03    1.9335        .20147E-07** at limit **
  31  Prefactor     .10000E-03    6.2038        .26639E-05** at limit **
  32  Normalizat    1.1144        .21850       -.14594E-05    .44514E-04
  33  Prefactor     1.0942        .23273        .35191E-05    .32693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.6094
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.38758
  Prefactor  = 51.786
  norm       = 0.0001
  Prefactor  = 20.7889
  Prefactor  = 3.54142
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 9.09767
  Prefactor  = 0.0001
  Prefactor  = 1.14734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82797
  Prefactor  = 0.364831
  Prefactor  = 0.0001
  Prefactor  = 49.82
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.929
  Prefactor  = 22.6191
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.11439
  Prefactor  = 1.09416
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.291     FROM HESSE     STATUS=OK           693 CALLS     5454 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3715        .17687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1657        .76528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.609        15.260        .11762E-03   -1.5026    
   6  Prefactor     .10000E-03    19.762        .33854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.3876        1.9420        .52661E-04   -1.5244    
   9  Prefactor     51.786        27.770        .55748E-04   -1.4267    
  10  norm          .10000E-03    7.0264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.789        38.014        .87950E-04   -1.4796    
  12  Prefactor     3.5414        345.85        .21507E-03   -1.5332    
  13  norm          .10000E-03    3.8655        .12534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.0977        3.8187        .87679E-04   -1.5105    
  16  Prefactor     .10000E-03    5.9545        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1473        1.4604        .97115E-04   -1.5494    
  18  Prefactor     .10000E-03    1.0653        .72849E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6154        .16763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8280        4.5741        .23595E-03   -1.5438    
  21  Prefactor     .36483        83.269        .39881E-02   -1.5587    
  22  Prefactor     .10000E-03    8.6781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     49.820        94.539        .56780E-04   -1.4295    
  24  Prefactor     .10000E-03    3.2518        .12836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.0718        .12452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     59.929        40.580        .51841E-04   -1.4158    
  27  Prefactor     22.619        22.126        .84232E-04   -1.4756    
  28  norm          .10000E-03    3.7237        .13698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    1.2223        .78618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    1.9365        .99086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    12.902        .27018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1144        .25512        .26039E-03   -.89291    
  33  Prefactor     1.0942        .27604        .30325E-03   -.89654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1747e-08
Minuit parameter uncertainties:
  1  0.000187651
  2  5.5145e-05
  3  2.61858e-05
  4  4.2268e-06
  5  15.2651
  6  0.000309723
  7  0.00014016
  8  1.94202
  9  27.7768
  10  4.84449e-06
  11  38.0584
  12  70.4159
  13  0.000125009
  14  0.000177398
  15  3.81883
  16  2.65694e-05
  17  1.46042
  18  8.87115e-06
  19  1.59338e-05
  20  4.57495
  21  11.0375
  22  6.22499e-06
  23  94.8254
  24  1.25672e-06
  25  5.60877e-06
  26  40.5991
  27  22.1341
  28  1.32789e-05
  29  5.81446e-06
  30  3.61906e-06
  31  0.000351756
  32  0.2554
  33  0.276405
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  2.657e-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.094e+00  2.764e-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.114e+00  2.554e-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: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491854/likelihoodResults_407808001_408067201_4FGL_J1220.1+3432_daily_bin650.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) = 5324.291338
delta logL = -0.000799121149612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5324.29053889
delta logL = -1.46419552038e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1070       1.0000          .0000       10.000    
     3 'Normalizat'    1.1144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0942       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=   5324.291     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1130        .90712E-02** at limit **
   2  Index         2.1069        6.0481        .50000       -.29218E-07
   3  Normalizat    1.1144        .19688        .58879E-01    .11717E-04
   4  Prefactor     1.0941        .22835        .68545E-01    .13110E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10689
  Normalizat = 1.11439
  Prefactor  = 1.09415
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.291     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    547.82        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1069        8.3806        .50000       -.61704    
   3  Normalizat    1.1144        .56060E-01    .26039E-03   -.89291    
   4  Prefactor     1.0941        .65012E-01    .30324E-03   -.89654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.59107e-11
Minuit parameter uncertainties:
  1  0.000100125
  2  39.525
  3  0.056063
  4  0.0650167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491854': 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) = 5324.29053888
delta logL = 3.39241523761e-10

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.001e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.107e+00  3.952e+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.094e+00  6.502e-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.114e+00  5.606e-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/491854/cmap_HighResolution_407808001_408067201_4FGL_J1220.1+3432_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-05 08:12:55.051220', job_id='491854', GAL2='1.09', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630854775.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.39e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='650' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:12:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 491854: <4FGL_J1220.1+3432_daily_bin650> in cluster <slac> Done

Job <4FGL_J1220.1+3432_daily_bin650> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 07:57:46 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:57:47 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:57:47 2021
Terminated at Sun Sep  5 08:12:55 2021
Results reported at Sun Sep  5 08:12:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin650 185.046 34.5383 407808001 408067201 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 :                                   886.00 sec.
    Max Memory :                                 1050 MB
    Average Memory :                             331.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            909 sec.

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

