/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 1 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1645.6+6329_daily_bin103
RA = 251.405, Dec = 63.4958
tmin = 266025601, tmax = 266284801
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='888495', job_status='RUN', time_executed='2021-09-15 09:26:31.229874', time_epoch_executed='1631723191.23' WHERE source_name='4FGL J1645.6+6329' and cadence='daily' and bin_id='103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/888495

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/888495/ft1_4FGL_J1645.6+6329_daily_bin103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/888495/ft2_4FGL_J1645.6+6329_daily_bin103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/888495/ft1_4FGL_J1645.6+6329_daily_bin103.fits outfile=/scratch/kocevski/888495/ft1_filteredMKT_4FGL_J1645.6+6329_daily_bin103.fits ra=251.405 dec=63.4958 rad=12.0 tmin=266025601.0 tmax=266284801.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 1.43
user 1.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/888495/ft1_filtered_4FGL_J1645.6+6329_daily_bin103.fits" evtable="EVENTS" scfile=/scratch/kocevski/888495/ft2_4FGL_J1645.6+6329_daily_bin103.fits sctable="SC_DATA" outfile=/scratch/kocevski/888495/ltcube_266025601_266284801_4FGL_J1645.6+6329_daily_bin103.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/888495/ft2_4FGL_J1645.6+6329_daily_bin103.fits
.....................!
real 14.33
user 13.98
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/888495/ft1_filtered_4FGL_J1645.6+6329_daily_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/888495/ft2_4FGL_J1645.6+6329_daily_bin103.fits sctable="SC_DATA" expcube=/scratch/kocevski/888495/ltcube_266025601_266284801_4FGL_J1645.6+6329_daily_bin103.fits outfile=/scratch/kocevski/888495/expmap_266025601_266284801_4FGL_J1645.6+6329_daily_bin103.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/888495/ltcube_266025601_266284801_4FGL_J1645.6+6329_daily_bin103.fits
.....................!
real 191.76
user 187.00
sys 4.29

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/888495/ft1_filtered_4FGL_J1645.6+6329_daily_bin103.fits scfile=/scratch/kocevski/888495/ft2_4FGL_J1645.6+6329_daily_bin103.fits outfile=/scratch/kocevski/888495/cmap_266025601_266284801_4FGL_J1645.6+6329_daily_bin103.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 0.61
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/888495/ft1_filtered_4FGL_J1645.6+6329_daily_bin103.fits scfile=/scratch/kocevski/888495/ft2_4FGL_J1645.6+6329_daily_bin103.fits outfile=/scratch/kocevski/888495/cmap_HighResolution_266025601_266284801_4FGL_J1645.6+6329_daily_bin103.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 0.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/888495/ft1_filtered_4FGL_J1645.6+6329_daily_bin103.fits', '/scratch/kocevski/888495/ft2_4FGL_J1645.6+6329_daily_bin103.fits', expMap='/scratch/kocevski/888495/expmap_266025601_266284801_4FGL_J1645.6+6329_daily_bin103.fits', expCube='/scratch/kocevski/888495/ltcube_266025601_266284801_4FGL_J1645.6+6329_daily_bin103.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/888495/Model_4FGL_J1645.6+6329_daily_bin103.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/888495/ft1_filtered_4FGL_J1645.6+6329_daily_bin103.fits
Spacecraft file(s): /scratch/kocevski/888495/ft2_4FGL_J1645.6+6329_daily_bin103.fits
Exposure map: /scratch/kocevski/888495/expmap_266025601_266284801_4FGL_J1645.6+6329_daily_bin103.fits
Exposure cube: /scratch/kocevski/888495/ltcube_266025601_266284801_4FGL_J1645.6+6329_daily_bin103.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/888495/Model_4FGL_J1645.6+6329_daily_bin103.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) = 6945.73501879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.262       1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.965       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1214       1.0000         .10000E-03   10000.    
     6 'norm      '    10.704       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.968       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.533       1.0000         .10000E-03   10000.    
    12 'norm      '    14.620       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2458       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6917       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6275       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.835       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10627E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    176.85       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6003       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.778       1.0000         .10000E-03   10000.    
    24 'norm      '    10.014       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    156.18       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.6092       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1584       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .63933       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=   6945.696     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3693 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6701        16.267        .85375E-05    .84939E-04
   2  Prefactor     .10000E-03    36.292       -.12845E-05** at limit **
   3  norm          13.262        3.7701        .18471E-07   -.34976E-04
   4  Prefactor     55.987        59.477        .65372E-06    .89917E-04
   5  Prefactor     6.1219        7.0574        .25893E-06    .80577E-05
   6  norm          10.705        6.6411        .10545E-06    .26667E-05
   7  Prefactor     .10000E-03    7.3933        .17031E-08** at limit **
   8  norm          .10000E-03    18.979       -.51412E-07** at limit **
   9  Prefactor     56.072        132.06        .45193E-05    .10618E-03
  10  Prefactor     .10000E-03    2.3305       -.38563E-07** at limit **
  11  Prefactor     30.536        29.528        .17359E-06    .62205E-04
  12  norm          14.621        8.9002        .93843E-07    .21066E-03
  13  Prefactor     4.2459        5.2537        .68948E-07   -.50038E-06
  14  Prefactor     5.6939        14.287        .61688E-06   -.12065E-04
  15  norm          2.6276        1.0611        .17703E-07    .13040E-02
  16  Prefactor     .10026E-03    4.9394       -.16483E-05** at limit **
  17  Prefactor     34.833        20.553        .11544E-07    .17350E-03
  18  Prefactor     .10000E-03    10.188        .31507E-05** at limit **
  19  Prefactor     .10000E-03    4.1353        .37167E-06** at limit **
  20  Prefactor     176.90        88.598        .41140E-06    .86593E-04
  21  Prefactor     .10000E-03    54.796       -.85712E-07** at limit **
  22  norm          2.6002        2.3444        .55233E-07    .42034E-04
  23  Prefactor     14.778        15.709        .29739E-06   -.15917E-04
  24  norm          10.014        5.4212       -.21590E-06    .32648E-04
  25  Prefactor     .10000E-03    6.6677       -.40648E-07** at limit **
  26  Prefactor     156.13        159.39       -.29523E-05   -.63949E-04
  27  Prefactor     9.6100        8.2478        .20948E-05    .14362E-03
  28  Normalizat    1.1583        .18495       -.23855E-05    .22519E-03
  29  Prefactor     .63946        .14618        .51360E-06   -.10083E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.67014
  Prefactor  = 0.000100001
  norm       = 13.2615
  Prefactor  = 55.9872
  Prefactor  = 6.12185
  norm       = 10.7048
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 56.0722
  Prefactor  = 0.0001
  Prefactor  = 30.5359
  norm       = 14.6215
  Prefactor  = 4.24587
  Prefactor  = 5.69394
  norm       = 2.62763
  Prefactor  = 0.000100264
  Prefactor  = 34.8333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 176.898
  Prefactor  = 0.0001
  norm       = 2.60022
  Prefactor  = 14.7782
  norm       = 10.0137
  Prefactor  = 0.0001
  Prefactor  = 156.128
  Prefactor  = 9.61002
  Normalizat = 1.15827
  Prefactor  = 0.639456
 **********
 **   18 **HESSE 
 **********

 FCN=   6945.696     FROM HESSE     STATUS=OK           551 CALLS     4244 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6701        16.346        .84382E-03   -1.5232    
   2  Prefactor     .10000E-03    36.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.262        3.7727        .83230E-04   -1.4979    
   4  Prefactor     55.987        59.603        .26811E-03   -1.4210    
   5  Prefactor     6.1219        7.0536        .16227E-03   -1.5213    
   6  norm          10.705        6.6409        .12246E-03   -1.5053    
   7  Prefactor     .10000E-03    7.3943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    19.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     56.072        132.52        .26810E-03   -1.4209    
  10  Prefactor     .10000E-03    2.3586        .12420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.536        29.511        .72510E-04   -1.4602    
  12  norm          14.621        8.8343        .10475E-03   -1.4943    
  13  Prefactor     4.2459        5.2511        .19555E-03   -1.5296    
  14  Prefactor     5.6939        14.272        .16837E-03   -1.5231    
  15  norm          2.6276        1.0524        .47973E-04   -1.5384    
  16  Prefactor     .10026E-03    27.819        .32417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.833        20.583        .67898E-04   -1.4527    
  18  Prefactor     .10000E-03    10.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1491        .16549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     176.90        88.026        .15174E-03   -1.3040    
  21  Prefactor     .10000E-03    54.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6002        2.3376        .11568E-03   -1.5385    
  23  Prefactor     14.778        15.722        .10419E-03   -1.4939    
  24  norm          10.014        5.4124        .12663E-03   -1.5075    
  25  Prefactor     .10000E-03    6.6692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     156.13        159.49        .16130E-03   -1.3202    
  27  Prefactor     9.6100        8.2473        .64638E-03   -1.5088    
  28  Normalizat    1.1583        .21525        .25013E-03   -.87902    
  29  Prefactor     .63946        .17072        .27188E-03   -1.0595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0065e-08
Minuit parameter uncertainties:
  1  16.3592
  2  0.000348132
  3  3.77272
  4  59.6668
  5  7.05455
  6  6.64135
  7  2.73861e-06
  8  5.74977e-05
  9  133.224
  10  5.44078e-06
  11  29.5248
  12  8.83511
  13  5.25166
  14  14.2808
  15  1.05241
  16  0.0054203
  17  20.5872
  18  6.68626e-05
  19  7.99711e-06
  20  88.0914
  21  0.000139083
  22  2.33764
  23  15.7263
  24  5.41266
  25  1.11485e-06
  26  159.933
  27  8.24825
  28  0.215411
  29  0.170863
Done.

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

Extracting fit parameters...

4FGL J1645.6+6329
   Spectrum: LogParabola
352         norm:  1.462e+01  8.835e+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

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  6.395e-01  1.709e-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:  1.158e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.35
Ra Dec: 251.405 63.496
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 3.03e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 9.39e-06

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) = 6945.46761774
delta logL = 0.228375042722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6945.45872252
delta logL = 0.237270259328

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.473       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8814       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63053       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.

 FCN=   6945.459     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.473        9.4563        .27281E-02    .40502E-02
   2  alpha         1.8813        .60159        .42869       -.23316E-04
   3  Normalizat    1.1802        .17300        .56127E-01    .67756E-05
   4  Prefactor     .63050        .14341        .61873E-01    .26336E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.4735
  alpha      = 1.88128
  Normalizat = 1.18021
  Prefactor  = 0.630495
 **********
 **   18 **HESSE 
 **********

 FCN=   6945.459     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.473        10.162        .10912E-03   -1.4974    
   2  alpha         1.8813        .72732        .19080E-01   -.25009    
   3  Normalizat    1.1802        .20213        .24819E-03   -.87217    
   4  Prefactor     .63050        .16708        .27372E-03   -1.0632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23768e-08
Minuit parameter uncertainties:
  1  10.1634
  2  0.738722
  3  0.202262
  4  0.167217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/888495': 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) = 6945.45872249
delta logL = 0.237270293611

Extracting fit parameters...

4FGL J1645.6+6329
   Spectrum: LogParabola
352         norm:  1.347e+01  1.016e+01  1.000e-04  1.000e+04 ( 1.000e-12)
353        alpha:  1.881e+00  7.387e-01  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:  6.305e-01  1.672e-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:  1.180e+00  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.80
Ra Dec: 251.405 63.496
Photon Index (Free Index): 1.88 +/- 0.74
Photon Flux (Free Index): 3.10e-08 +/- 3.28e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.10e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/888495/cmap_HighResolution_266025601_266284801_4FGL_J1645.6+6329_daily_bin103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='1.62e-05', photon_flux_error='3.03e-08', dlogl='2.37e-01', energy_flux='1.55e-05', photon_flux2='3.10e-08', job_status='DONE', time_completed='2021-09-15 09:41:00.778354', photon_index_error2='0.74', photon_index2='1.88', ts='6.35', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='1.16', time_epoch_completed='1631724060.78', return_code='0', job_id='888495', GAL2='0.63', EG2='1.18', return_code2='0', energy_flux_error='9.39e-06', photon_flux_error2='3.28e-08', ts2='6.80', photon_index='2.38' WHERE bin_id='103' AND source_name='4FGL J1645.6+6329' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 09:41:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 888495: <4FGL_J1645.6+6329_daily_bin103> in cluster <slac> Done

Job <4FGL_J1645.6+6329_daily_bin103> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 15 09:25:22 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 09:26:19 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:26:19 2021
Terminated at Wed Sep 15 09:41:01 2021
Results reported at Wed Sep 15 09:41:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1645.6+6329_daily_bin103 251.405 63.4958 266025601 266284801 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 :                                   867.04 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             343.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            939 sec.

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

