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


Performing analysis on: 4FGL_J1645.6+6329_daily_bin1171
RA = 251.405, Dec = 63.4958
tmin = 542851201, tmax = 543110401
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='895879', job_status='RUN', time_executed='2021-09-15 09:57:38.907620', time_epoch_executed='1631725058.91' WHERE source_name='4FGL J1645.6+6329' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/895879

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/895879/ft1_4FGL_J1645.6+6329_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/895879/ft2_4FGL_J1645.6+6329_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/895879/ft1_4FGL_J1645.6+6329_daily_bin1171.fits outfile=/scratch/kocevski/895879/ft1_filteredMKT_4FGL_J1645.6+6329_daily_bin1171.fits ra=251.405 dec=63.4958 rad=12.0 tmin=542851201.0 tmax=543110401.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.92
user 0.63
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/895879/ft2_4FGL_J1645.6+6329_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/895879/ft2_4FGL_J1645.6+6329_daily_bin1171.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/895879/ft1_filteredMKT_4FGL_J1645.6+6329_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/895879/ft1_filtered_4FGL_J1645.6+6329_daily_bin1171.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 4.68
user 0.34
sys 0.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/895879/ft1_filtered_4FGL_J1645.6+6329_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/895879/ft2_4FGL_J1645.6+6329_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/895879/ltcube_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.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/895879/ft2_4FGL_J1645.6+6329_daily_bin1171.fits
.....................!
real 6.58
user 1.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/895879/ft1_filtered_4FGL_J1645.6+6329_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/895879/ft2_4FGL_J1645.6+6329_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/895879/ltcube_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.fits outfile=/scratch/kocevski/895879/expmap_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.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/895879/ltcube_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.fits
.....................!
real 224.14
user 187.63
sys 4.88

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1645.6+6329 @ 251.405 63.4958

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/895879/ft1_filtered_4FGL_J1645.6+6329_daily_bin1171.fits scfile=/scratch/kocevski/895879/ft2_4FGL_J1645.6+6329_daily_bin1171.fits outfile=/scratch/kocevski/895879/cmap_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.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=251.405 yref=63.4958 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 8.07
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/895879/ft1_filtered_4FGL_J1645.6+6329_daily_bin1171.fits scfile=/scratch/kocevski/895879/ft2_4FGL_J1645.6+6329_daily_bin1171.fits outfile=/scratch/kocevski/895879/cmap_HighResolution_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.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=251.405 yref=63.4958 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 1.44
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/895879/ft1_filtered_4FGL_J1645.6+6329_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/895879/ft2_4FGL_J1645.6+6329_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/895879/Model_4FGL_J1645.6+6329_daily_bin1171.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/895879/ft1_filtered_4FGL_J1645.6+6329_daily_bin1171.fits........................!
real 83.89
user 15.77
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/895879/ft1_filtered_4FGL_J1645.6+6329_daily_bin1171.fits', '/scratch/kocevski/895879/ft2_4FGL_J1645.6+6329_daily_bin1171.fits', expMap='/scratch/kocevski/895879/expmap_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.fits', expCube='/scratch/kocevski/895879/ltcube_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/895879/Model_4FGL_J1645.6+6329_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1645.6+6329'

4FGL J1645.6+6329
   Spectrum: LogParabola
352         norm:  3.385e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
353        alpha:  2.382e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
354         beta:  1.788e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  5.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/895879/ft1_filtered_4FGL_J1645.6+6329_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/895879/ft2_4FGL_J1645.6+6329_daily_bin1171.fits
Exposure map: /scratch/kocevski/895879/expmap_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.fits
Exposure cube: /scratch/kocevski/895879/ltcube_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/895879/Model_4FGL_J1645.6+6329_daily_bin1171.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) = 517.52329435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.565       1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.919       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    79.386       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5702       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.062       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.378       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11037E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    584.48       1.0000         .10000E-03   10000.    
    21 'Prefactor '    565.42       1.0000         .10000E-03   10000.    
    22 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.405       1.0000         .10000E-03   10000.    
    24 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10858E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .46988       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90533       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   517.4700     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     4151 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    239.48       -.83233E-05** at limit **
   2  Prefactor     .10000E-03    90.778       -.32150E-06** at limit **
   3  norm          16.576        15.701       -.19462E-06    .16765E-04
   4  Prefactor     57.668        529.21       -.86576E-05    .19852E-04
   5  Prefactor     .10000E-03    17.832       -.68682E-06** at limit **
   6  norm          .10000E-03    19.280       -.66860E-06** at limit **
   7  Prefactor     79.352        120.32       -.10527E-05    .20393E-04
   8  norm          .10000E-03    45.219       -.34592E-06** at limit **
   9  Prefactor     .10027E-03    9263.4       -.65991E-03** at limit **
  10  Prefactor     .10000E-03    11.630       -.72712E-06** at limit **
  11  Prefactor     .10000E-03    62.916       -.43743E-06** at limit **
  12  norm          11.069        23.717       -.55101E-06    .75445E-05
  13  Prefactor     .10000E-03    29.669       -.11304E-05** at limit **
  14  Prefactor     45.412        80.832       -.11368E-05   -.34764E-04
  15  norm          .10000E-03    1.1203       -.33075E-06** at limit **
  16  Prefactor     .10000E-03    10.202       -.21542E-06** at limit **
  17  Prefactor     .10000E-03    45.691       -.16956E-05** at limit **
  18  Prefactor     .10000E-03    28.998       -.20879E-05** at limit **
  19  Prefactor     .10000E-03    42.862       -.16224E-05** at limit **
  20  Prefactor     584.62        435.46       -.91693E-06   -.34056E-04
  21  Prefactor     565.45        516.74       -.24644E-05   -.16800E-04
  22  norm          .10000E-03    25.466       -.60461E-05** at limit **
  23  Prefactor     40.394        42.158       -.63647E-06   -.85870E-06
  24  norm          .10000E-03    13.681       -.13918E-05** at limit **
  25  Prefactor     .10000E-03    51.530       -.42706E-06** at limit **
  26  Prefactor     .10000E-03    299.52       -.48916E-06** at limit **
  27  Prefactor     .10000E-03    10.372       -.36198E-06** at limit **
  28  Normalizat    .46898        .58841        .20735E-04    .18820E-05
  29  Prefactor     .90622        .49061       -.59363E-05    .71711E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 0.000100001
  norm       = 16.5759
  Prefactor  = 57.668
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 79.3517
  norm       = 0.0001
  Prefactor  = 0.000100268
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.0692
  Prefactor  = 0.0001
  Prefactor  = 45.412
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 584.62
  Prefactor  = 565.451
  norm       = 0.000100002
  Prefactor  = 40.3944
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.468978
  Prefactor  = 0.90622
 **********
 **   18 **HESSE 
 **********

 FCN=   517.4700     FROM HESSE     STATUS=OK           539 CALLS     4690 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    242.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    90.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.576        15.717        .78558E-04   -1.4893    
   4  Prefactor     57.668        535.22        .26357E-03   -1.4188    
   5  Prefactor     .10000E-03    17.849        .93900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.312        .97624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     79.352        120.30        .22537E-03   -1.3924    
   8  norm          .10000E-03    45.223        .14957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10027E-03    9283.1        .12730E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.645        .75831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    62.917        .17648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.069        23.718        .12046E-03   -1.5042    
  13  Prefactor     .10000E-03    29.701        .12115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.412        80.798        .59518E-04   -1.4359    
  15  norm          .10000E-03    1.1226        .23538E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.204        .71003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    45.757        .15040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.045        .11972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    42.908        .14560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     584.62        434.86        .85256E-04   -1.0824    
  21  Prefactor     565.45        516.58        .86593E-04   -1.0906    
  22  norm          .10000E-03    26.687        .22611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     40.394        42.160        .63060E-04   -1.4436    
  24  norm          .10000E-03    13.730        .82283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    51.529        .15968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    299.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.375        .71595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .46898        .64640        .33108E-03   -1.1388    
  29  Prefactor     .90622        .53900        .20806E-03   -.95924    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44225e-10
Minuit parameter uncertainties:
  1  0.00310905
  2  0.000525605
  3  15.7207
  4  355.653
  5  2.08456e-06
  6  0.0001628
  7  120.677
  8  0.000144943
  9  0.203033
  10  4.66455e-05
  11  0.000390559
  12  23.7384
  13  9.37679e-05
  14  80.9937
  15  6.22966e-06
  16  1.12376e-05
  17  0.000243038
  18  9.73163e-05
  19  0.000287981
  20  437.386
  21  520.991
  22  0.000433095
  23  42.1907
  24  7.8392e-05
  25  0.000134218
  26  0.00141163
  27  2.05228e-05
  28  0.657156
  29  0.542217
Done.

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

Extracting fit parameters...

4FGL J1645.6+6329
   Spectrum: LogParabola
352         norm:  1.107e+01  2.374e+01  1.000e-04  1.000e+04 ( 1.000e-12)
353        alpha:  2.382e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
354         beta:  1.788e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  5.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  9.062e-01  5.422e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  4.690e-01  6.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 251.405 63.496
Photon Flux Upper Limit: 3.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/895879/likelihoodResults_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.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): 0
logL (Free Index) = 517.386262118
delta logL = 0.0837287763627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 517.384589598
delta logL = 0.0854012965962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9342       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3416       1.0000          .0000       5.0000    
     3 'Normalizat'    .44908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91514       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+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=   517.3846     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      285 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9372        18.601        .96418E-04   -.13217E-02
   2  alpha         3.3412        3.7685        .13453E-02   -.95459E-04
   3  Normalizat    .44873        .61198        .33753E-03   -.11780E-04
   4  Prefactor     .91553        .53104        .20680E-03   -.38438E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.93717
  alpha      = 3.34117
  Normalizat = 0.448729
  Prefactor  = 0.915535
 **********
 **   18 **HESSE 
 **********

 FCN=   517.3846     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9372        18.403        .19284E-04   -1.5221    
   2  alpha         3.3412        3.7577        .26907E-03    .34316    
   3  Normalizat    .44873        .61228        .13501E-04   -1.1485    
   4  Prefactor     .91553        .53131        .41360E-04   -.95600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85374e-09
Minuit parameter uncertainties:
  1  18.4203
  2  2.53548
  3  0.621794
  4  0.534358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/895879': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 517.384589295
delta logL = 0.0854015995176

Extracting fit parameters...

4FGL J1645.6+6329
   Spectrum: LogParabola
352         norm:  5.937e+00  1.842e+01  1.000e-04  1.000e+04 ( 1.000e-12)
353        alpha:  3.341e+00  2.535e+00  0.000e+00  5.000e+00 ( 1.000e+00)
354         beta:  1.788e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
355           Eb:  5.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  9.155e-01  5.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  4.487e-01  6.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
Ra Dec: 251.405 63.496

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/895879/cmap_HighResolution_542851201_543110401_4FGL_J1645.6+6329_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-04', job_status='DONE', photon_flux_upper_limit='3.41e-07', time_completed='2021-09-15 10:06:42.492568', job_id='895879', GAL2='0.92', fit_tolerance='1e-08', EG2='0.45', EG='0.47', time_epoch_completed='1631725602.49', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='8.54e-02', ts2='0.51', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1171' AND source_name='4FGL J1645.6+6329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 10:06:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 895879: <4FGL_J1645.6+6329_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1645.6+6329_daily_bin1171> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 15 09:50:23 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 09:53:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 09:53:06 2021
Terminated at Wed Sep 15 10:06:44 2021
Results reported at Wed Sep 15 10:06:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1645.6+6329_daily_bin1171 251.405 63.4958 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1645.6+6329 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   364.67 sec.
    Max Memory :                                 1119 MB
    Average Memory :                             264.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            981 sec.

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

