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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin80
RA = 250.734, Dec = 39.8164
tmin = 260064001, tmax = 260323201
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='855966', job_status='RUN', time_executed='2021-09-15 07:40:30.697104', time_epoch_executed='1631716830.7' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/855966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/855966/ft1_4FGL_J1642.9+3948_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/855966/ft2_4FGL_J1642.9+3948_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/855966/ft1_4FGL_J1642.9+3948_daily_bin80.fits outfile=/scratch/kocevski/855966/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin80.fits ra=250.734 dec=39.8164 rad=12.0 tmin=260064001.0 tmax=260323201.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.49
user 1.31
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/855966/ft2_4FGL_J1642.9+3948_daily_bin80.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/855966/ft2_4FGL_J1642.9+3948_daily_bin80.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/855966/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin80.fits evtable="EVENTS" outfile="/scratch/kocevski/855966/ft1_filtered_4FGL_J1642.9+3948_daily_bin80.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/855966/ft1_filtered_4FGL_J1642.9+3948_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/855966/ft2_4FGL_J1642.9+3948_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/855966/ltcube_260064001_260323201_4FGL_J1642.9+3948_daily_bin80.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/855966/ft2_4FGL_J1642.9+3948_daily_bin80.fits
.....................!
real 16.24
user 15.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/855966/ft1_filtered_4FGL_J1642.9+3948_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/855966/ft2_4FGL_J1642.9+3948_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/855966/ltcube_260064001_260323201_4FGL_J1642.9+3948_daily_bin80.fits outfile=/scratch/kocevski/855966/expmap_260064001_260323201_4FGL_J1642.9+3948_daily_bin80.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/855966/ltcube_260064001_260323201_4FGL_J1642.9+3948_daily_bin80.fits
.....................!
real 191.57
user 186.37
sys 4.64

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

Setting source of interest to:
4FGL J1642.9+3948 @ 250.734 39.8164

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/855966/ft1_filtered_4FGL_J1642.9+3948_daily_bin80.fits scfile=/scratch/kocevski/855966/ft2_4FGL_J1642.9+3948_daily_bin80.fits outfile=/scratch/kocevski/855966/cmap_260064001_260323201_4FGL_J1642.9+3948_daily_bin80.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=250.734 yref=39.8164 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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/855966/ft1_filtered_4FGL_J1642.9+3948_daily_bin80.fits scfile=/scratch/kocevski/855966/ft2_4FGL_J1642.9+3948_daily_bin80.fits outfile=/scratch/kocevski/855966/cmap_HighResolution_260064001_260323201_4FGL_J1642.9+3948_daily_bin80.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=250.734 yref=39.8164 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.58
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/855966/ft1_filtered_4FGL_J1642.9+3948_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/855966/ft2_4FGL_J1642.9+3948_daily_bin80.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/855966/Model_4FGL_J1642.9+3948_daily_bin80.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/855966/ft1_filtered_4FGL_J1642.9+3948_daily_bin80.fits.....................!
real 76.35
user 74.77
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/855966/ft1_filtered_4FGL_J1642.9+3948_daily_bin80.fits', '/scratch/kocevski/855966/ft2_4FGL_J1642.9+3948_daily_bin80.fits', expMap='/scratch/kocevski/855966/expmap_260064001_260323201_4FGL_J1642.9+3948_daily_bin80.fits', expCube='/scratch/kocevski/855966/ltcube_260064001_260323201_4FGL_J1642.9+3948_daily_bin80.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/855966/Model_4FGL_J1642.9+3948_daily_bin80.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1642.9+3948'

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.494e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/855966/ft1_filtered_4FGL_J1642.9+3948_daily_bin80.fits
Spacecraft file(s): /scratch/kocevski/855966/ft2_4FGL_J1642.9+3948_daily_bin80.fits
Exposure map: /scratch/kocevski/855966/expmap_260064001_260323201_4FGL_J1642.9+3948_daily_bin80.fits
Exposure cube: /scratch/kocevski/855966/ltcube_260064001_260323201_4FGL_J1642.9+3948_daily_bin80.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/855966/Model_4FGL_J1642.9+3948_daily_bin80.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) = 10224.5087123

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1682       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.059       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2436       1.0000         .10000E-03   10000.    
     7 'norm      '    .27803       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7956       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53426       1.0000         .10000E-03   10000.    
    16 'norm      '    6.6501       1.0000         .10000E-03   10000.    
    17 'norm      '    .10078       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2326       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8615       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    25.880       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11073E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0496       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0299       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10224.48     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3203 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4887       -.77137E-06** at limit **
   2  Prefactor     .10000E-03    16.207       -.16760E-05** at limit **
   3  Prefactor     6.1679        2.9325        .59449E-07   -.55019E-04
   4  Prefactor     .10000E-03    9.7790        .15147E-05** at limit **
   5  Prefactor     37.062        24.422       -.53168E-06   -.17012E-03
   6  Prefactor     1.2444        3.2329        .75412E-06    .27275E-04
   7  norm          .27804        .14945       -.15710E-07   -.18134E-02
   8  norm          .10000E-03    4.6836       -.26919E-07** at limit **
   9  Prefactor     .10000E-03    13.409        .12187E-05** at limit **
  10  Prefactor     .10000E-03    2.2553        .98231E-07** at limit **
  11  norm          .10000E-03    14.105        .89458E-06** at limit **
  12  Prefactor     .10000E-03    .70457       -.15834E-06** at limit **
  13  Prefactor     5.7938        1.6476        .16821E-07    .58845E-03
  14  Prefactor     .10000E-03    1.7679        .67490E-08** at limit **
  15  Prefactor     .53445        2.3636        .18150E-05   -.23451E-04
  16  norm          6.6497        2.0860        .75083E-08    .17568E-03
  17  norm          .10079        .46320        .32570E-06   -.19236E-03
  18  Prefactor     .10000E-03    6.0982        .13525E-06** at limit **
  19  norm          .10000E-03    .30451       -.10977E-06** at limit **
  20  norm          3.2323        7.2582        .44366E-05   -.15994E-03
  21  norm          1.8612        1.5458        .24901E-07   -.11399E-03
  22  Prefactor     .10000E-03    36.154       -.35166E-05** at limit **
  23  norm          25.882        6.8588       -.30882E-06   -.10849E-03
  24  Prefactor     .10000E-03    41.594        .42399E-05** at limit **
  25  Normalizat    1.0498        .17846       -.11595E-05   -.69995E-04
  26  Prefactor     1.0297        .13485        .24212E-06   -.29138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.16791
  Prefactor  = 0.000100001
  Prefactor  = 37.062
  Prefactor  = 1.24437
  norm       = 0.27804
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.79383
  Prefactor  = 0.0001
  Prefactor  = 0.534455
  norm       = 6.64972
  norm       = 0.100792
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.23231
  norm       = 1.86122
  Prefactor  = 0.0001
  norm       = 25.8817
  Prefactor  = 0.0001
  Normalizat = 1.04978
  Prefactor  = 1.02969
 **********
 **   18 **HESSE 
 **********

 FCN=   10224.48     FROM HESSE     STATUS=OK           462 CALLS     3665 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1679        2.9359        .11442E-03   -1.5211    
   4  Prefactor     .10000E-03    10.125        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.062        24.406        .65835E-04   -1.4490    
   6  Prefactor     1.2444        3.1983        .26956E-03   -1.5485    
   7  norm          .27804        .14353        .25144E-04   -1.5603    
   8  norm          .10000E-03    4.6855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2952        .14813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    14.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .92780        .14204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7938        1.4913        .54030E-04   -1.5227    
  14  Prefactor     .10000E-03    1.8407        .26214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .53445        3.8697        .25404E-02   -1.5562    
  16  norm          6.6497        2.0824        .77357E-04   -1.5192    
  17  norm          .10079        .46175        .13240E-03   -1.5644    
  18  Prefactor     .10000E-03    6.2822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .68969        .10733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2323        7.5454        .11265E-02   -1.5348    
  21  norm          1.8612        1.5321        .10922E-03   -1.5435    
  22  Prefactor     .10000E-03    36.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          25.882        6.8669        .78744E-04   -1.4690    
  24  Prefactor     .10000E-03    41.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0498        .21214        .29267E-03   -.91381    
  26  Prefactor     1.0297        .16244        .23872E-03   -.91746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4704e-08
Minuit parameter uncertainties:
  1  1.5957e-05
  2  4.08379e-05
  3  2.93597
  4  0.000244645
  5  24.4129
  6  3.19873
  7  0.143531
  8  2.37123e-06
  9  5.29844e-06
  10  5.88526e-06
  11  1.52522e-05
  12  1.7549e-05
  13  1.49131
  14  1.14189e-06
  15  2.87624
  16  2.08244
  17  0.431259
  18  1.69064e-05
  19  1.04731e-05
  20  7.5476
  21  1.53212
  22  0.000120104
  23  6.86711
  24  0.000152818
  25  0.212309
  26  0.16252
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  5.794e+00  1.491e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.030e+00  1.625e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.050e+00  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.71
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.23e-07 +/- 5.75e-08
Energy Flux (Fixed Index): 7.30e-05 +/- 1.88e-05

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) = 10224.42528
delta logL = 0.0566614776762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10224.4084581
delta logL = 0.0734833795595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1755       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4878       1.0000          .0000       10.000    
     3 'Normalizat'    1.0357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10224.41     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      233 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1755        15.379        .44177E-02    .24683E-03
   2  Index         2.4877        1.5913        .65822E-01    .27009E-03
   3  Normalizat    1.0358        .10472        .66524E-01    .23000E-04
   4  Prefactor     1.0375        .69006E-01    .40699E-01    .11621E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.17551
  Index      = 2.48774
  Normalizat = 1.03579
  Prefactor  = 1.03754
 **********
 **   18 **HESSE 
 **********

 FCN=   10224.41     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1755        2.1381        .50352E-04   -1.5253    
   2  Index         2.4877        .24026        .27827E-02   -.52643    
   3  Normalizat    1.0358        .20325        .29428E-03   -.91841    
   4  Prefactor     1.0375        .16187        .23791E-03   -.91489    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81906e-12
Minuit parameter uncertainties:
  1  2.13813
  2  0.240388
  3  0.203402
  4  0.161951
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/855966': 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) = 10224.4084581
delta logL = 0.0734834074337

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  5.176e+00  2.138e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.488e+00  2.404e-01  0.000e+00  1.000e+01 (-1.000e+00)
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.038e+00  1.620e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.036e+00  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.87
Ra Dec: 250.734 39.816
Photon Index (Free Index): 2.49 +/- 0.24
Photon Flux (Free Index): 2.35e-07 +/- 6.20e-08
Energy Flux (Free Index): 6.93e-05 +/- 1.90e-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/855966/cmap_HighResolution_260064001_260323201_4FGL_J1642.9+3948_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.23e-07', energy_flux2='6.93e-05', photon_flux_error='5.75e-08', dlogl='7.35e-02', energy_flux='7.30e-05', photon_flux2='2.35e-07', job_status='DONE', time_completed='2021-09-15 07:56:42.963671', photon_index_error2='0.24', photon_index2='2.49', ts='39.71', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='1.05', time_epoch_completed='1631717802.96', return_code='0', job_id='855966', GAL2='1.04', EG2='1.04', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='6.20e-08', ts2='40.87', photon_index='2.40' WHERE bin_id='80' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 07:56:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 855966: <4FGL_J1642.9+3948_daily_bin80> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin80> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 15 07:40:14 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 07:40:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 07:40:18 2021
Terminated at Wed Sep 15 07:56:43 2021
Results reported at Wed Sep 15 07:56:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin80 250.734 39.8164 260064001 260323201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1642.9+3948 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   971.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            989 sec.

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

