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


Performing analysis on: 4FGL_J1220.1+3432_daily_bin1225
RA = 185.046, Dec = 34.5383
tmin = 556848001, tmax = 557107201
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='497203', job_status='RUN', time_executed='2021-09-05 08:16:57.919704', time_epoch_executed='1630855017.92' WHERE source_name='4FGL J1220.1+3432' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497203/ft1_4FGL_J1220.1+3432_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497203/ft2_4FGL_J1220.1+3432_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497203/ft1_4FGL_J1220.1+3432_daily_bin1225.fits outfile=/scratch/kocevski/497203/ft1_filteredMKT_4FGL_J1220.1+3432_daily_bin1225.fits ra=185.046 dec=34.5383 rad=12.0 tmin=556848001.0 tmax=557107201.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.05
user 3.44
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497203/ft1_filtered_4FGL_J1220.1+3432_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/497203/ft2_4FGL_J1220.1+3432_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/497203/ltcube_556848001_557107201_4FGL_J1220.1+3432_daily_bin1225.fits outfile=/scratch/kocevski/497203/expmap_556848001_557107201_4FGL_J1220.1+3432_daily_bin1225.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/497203/ltcube_556848001_557107201_4FGL_J1220.1+3432_daily_bin1225.fits
.....................!
real 193.01
user 186.62
sys 5.42

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/497203/ft1_filtered_4FGL_J1220.1+3432_daily_bin1225.fits scfile=/scratch/kocevski/497203/ft2_4FGL_J1220.1+3432_daily_bin1225.fits outfile=/scratch/kocevski/497203/cmap_556848001_557107201_4FGL_J1220.1+3432_daily_bin1225.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497203/ft1_filtered_4FGL_J1220.1+3432_daily_bin1225.fits scfile=/scratch/kocevski/497203/ft2_4FGL_J1220.1+3432_daily_bin1225.fits outfile=/scratch/kocevski/497203/cmap_HighResolution_556848001_557107201_4FGL_J1220.1+3432_daily_bin1225.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.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1460.8       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .59091E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25560E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2460       1.0000         .10000E-03   10000.    
     9 'Prefactor '    131.96       1.0000         .10000E-03   10000.    
    10 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9191       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7260       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .32183       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6456       1.0000         .10000E-03   10000.    
    25 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.836       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    90.614       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1859       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .44529       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=   1683.663     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4562 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1460.5        634.36       -.12207E-05   -.55998E-05
   2  Prefactor     .10000E-03    1258.4       -.10696E-05** at limit **
   3  Prefactor     .10000E-03    151.30       -.19409E-06** at limit **
   4  norm          .10000E-03    50.564       -.10559E-06** at limit **
   5  Prefactor     .10000E-03    63.256       -.19174E-06** at limit **
   6  Prefactor     .10000E-03    42.658       -.24868E-06** at limit **
   7  Prefactor     .10000E-03    2262.5        .34099E-05** at limit **
   8  norm          1.2459        9.1154       -.75672E-05   -.28324E-03
   9  Prefactor     131.94        116.50       -.13836E-06    .94857E-05
  10  norm          .10000E-03    34.709        .89805E-07** at limit **
  11  Prefactor     .10000E-03    71.856       -.47263E-06** at limit **
  12  Prefactor     .10000E-03    122.90        .18409E-06** at limit **
  13  norm          2.9195        2.9446       -.38222E-07    .67552E-04
  14  Prefactor     .10000E-03    107.14       -.64809E-06** at limit **
  15  norm          5.7261        5.8995       -.38118E-07    .18125E-03
  16  Prefactor     .10000E-03    7.4753       -.41244E-07** at limit **
  17  Prefactor     .10000E-03    4.2017        .34528E-06** at limit **
  18  Prefactor     .32217        8.5388       -.33542E-05    .59633E-03
  19  Prefactor     .10000E-03    12.695       -.42218E-07** at limit **
  20  norm          .10000E-03    23.097       -.36962E-06** at limit **
  21  Prefactor     .10000E-03    29.095       -.30712E-06** at limit **
  22  Prefactor     .10000E-03    22.197       -.18103E-06** at limit **
  23  Prefactor     .10000E-03    62.332        .15929E-07** at limit **
  24  Prefactor     1.6452        11.544        .17870E-05    .50929E-04
  25  norm          .10000E-03    5.8948        .43109E-07** at limit **
  26  Prefactor     18.832        35.483        .51519E-07    .14383E-05
  27  Prefactor     .10000E-03    27.263       -.16039E-06** at limit **
  28  norm          90.621        18.119       -.14191E-06   -.13665E-04
  29  norm          .10000E-03    2.4156        .73979E-07** at limit **
  30  norm          .10000E-03    3.8206        .43188E-07** at limit **
  31  Prefactor     .10000E-03    3.6120        .73888E-07** at limit **
  32  Normalizat    1.1851        .37866        .27945E-05    .27014E-04
  33  Prefactor     .44623        .43516       -.69466E-05    .47150E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1460.55
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.24594
  Prefactor  = 131.939
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.91954
  Prefactor  = 0.0001
  norm       = 5.72606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.322171
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.64519
  norm       = 0.0001
  Prefactor  = 18.8324
  Prefactor  = 0.0001
  norm       = 90.6212
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18511
  Prefactor  = 0.446232
 **********
 **   18 **HESSE 
 **********

 FCN=   1683.663     FROM HESSE     STATUS=OK           679 CALLS     5241 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1460.5        634.19        .56628E-04   -.78651    
   2  Prefactor     .10000E-03    1258.4        .21072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    151.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    50.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    63.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    42.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2265.5        .18300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2459        9.5551        .23612E-03   -1.5485    
   9  Prefactor     131.94        116.47        .17526E-03   -1.3406    
  10  norm          .10000E-03    34.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    71.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    122.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9195        2.9474        .68198E-04   -1.5366    
  14  Prefactor     .10000E-03    107.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7261        5.8543        .95681E-04   -1.5229    
  16  Prefactor     .10000E-03    7.4786        .10958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2245        .81948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .32217        14.090        .19875E-02   -1.5594    
  19  Prefactor     .10000E-03    12.782        .14274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    23.801        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    62.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.6452        11.413        .26280E-03   -1.5451    
  25  norm          .10000E-03    5.9463        .96862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     18.832        35.286        .92285E-04   -1.4840    
  27  Prefactor     .10000E-03    27.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          90.621        18.094        .42213E-04   -1.3801    
  29  norm          .10000E-03    2.4461        .62257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    3.8320        .78328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.6441        .76124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1851        .43522        .23742E-03   -.87064    
  33  Prefactor     .44623        .48995        .42886E-03   -1.1451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64139e-09
Minuit parameter uncertainties:
  1  637.649
  2  0.00264174
  3  5.93488e-05
  4  5.11679e-05
  5  4.27866e-05
  6  1.10627e-06
  7  0.00184922
  8  6.90201
  9  116.675
  10  6.61853e-05
  11  2.25501e-05
  12  0.000277137
  13  2.94754
  14  0.000118174
  15  5.85493
  16  3.47961e-06
  17  3.41618e-05
  18  4.26154
  19  4.73579e-05
  20  0.000156954
  21  0.000239186
  22  2.30048e-05
  23  1.60322e-05
  24  8.6683
  25  1.04481e-05
  26  35.3254
  27  4.02739e-05
  28  18.0952
  29  3.02396e-06
  30  2.75087e-06
  31  2.45342e-06
  32  0.436558
  33  0.49467
Done.

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

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.480e-06  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:  4.462e-01  4.947e-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.185e+00  4.366e-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: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497203/likelihoodResults_556848001_557107201_4FGL_J1220.1+3432_daily_bin1225.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) = 1683.66348937
delta logL = -0.00056690876977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1683.66292237
delta logL = 9.10849848879e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0874       1.0000          .0000       10.000    
     3 'Normalizat'    1.1851       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44625       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=   1683.663     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      251 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10556E-03    11.877        .11168E-01** at limit **
   2  Index         1.9043        8.0498        .50000        .15889E-04
   3  Normalizat    1.1851        .99044E-02    .23741E-03    .96848E-05
   4  Prefactor     .44623        .11439E-01    .42887E-03    .84164E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105563
  Index      = 1.90427
  Normalizat = 1.18511
  Prefactor  = 0.446228
 **********
 **   18 **HESSE 
 **********

 FCN=   1683.663     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10556E-03    256.45        .11891E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9043        5.1384        .50000       -.66766    
   3  Normalizat    1.1851        .47632E-01    .94966E-05   -.87064    
   4  Prefactor     .44623        .55004E-01    .17155E-04   -1.1451    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.30053e-08
Minuit parameter uncertainties:
  1  0.0758703
  2  1011.76
  3  0.0476335
  4  0.0550105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497203': 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) = 1683.66292177
delta logL = 6.9038901529e-07

Extracting fit parameters...

4FGL J1220.1+3432
   Spectrum: PowerLaw
299    Prefactor:  1.056e-04  7.587e-02  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.904e+00  1.012e+03  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:  4.462e-01  5.501e-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.185e+00  4.763e-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/497203/cmap_HighResolution_556848001_557107201_4FGL_J1220.1+3432_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-05 08:25:45.145601', job_id='497203', GAL2='0.45', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630855545.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='6.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1225' AND source_name='4FGL J1220.1+3432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 08:25:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 497203: <4FGL_J1220.1+3432_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+3432_daily_bin1225 185.046 34.5383 556848001 557107201 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 :                                   507.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            598 sec.

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

