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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin105
RA = 250.734, Dec = 39.8164
tmin = 266544001, tmax = 266803201
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='856002', job_status='RUN', time_executed='2021-09-15 07:40:49.386866', time_epoch_executed='1631716849.39' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856002/ft1_4FGL_J1642.9+3948_daily_bin105.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856002/ft2_4FGL_J1642.9+3948_daily_bin105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856002/ft1_4FGL_J1642.9+3948_daily_bin105.fits outfile=/scratch/kocevski/856002/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin105.fits ra=250.734 dec=39.8164 rad=12.0 tmin=266544001.0 tmax=266803201.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.44
user 1.21
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856002/ft1_filtered_4FGL_J1642.9+3948_daily_bin105.fits" evtable="EVENTS" scfile=/scratch/kocevski/856002/ft2_4FGL_J1642.9+3948_daily_bin105.fits sctable="SC_DATA" outfile=/scratch/kocevski/856002/ltcube_266544001_266803201_4FGL_J1642.9+3948_daily_bin105.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/856002/ft2_4FGL_J1642.9+3948_daily_bin105.fits
.....................!
real 15.53
user 15.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856002/ft1_filtered_4FGL_J1642.9+3948_daily_bin105.fits evtable="EVENTS" scfile=/scratch/kocevski/856002/ft2_4FGL_J1642.9+3948_daily_bin105.fits sctable="SC_DATA" expcube=/scratch/kocevski/856002/ltcube_266544001_266803201_4FGL_J1642.9+3948_daily_bin105.fits outfile=/scratch/kocevski/856002/expmap_266544001_266803201_4FGL_J1642.9+3948_daily_bin105.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/856002/ltcube_266544001_266803201_4FGL_J1642.9+3948_daily_bin105.fits
.....................!
real 191.71
user 185.38
sys 4.36

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/856002/ft1_filtered_4FGL_J1642.9+3948_daily_bin105.fits scfile=/scratch/kocevski/856002/ft2_4FGL_J1642.9+3948_daily_bin105.fits outfile=/scratch/kocevski/856002/cmap_266544001_266803201_4FGL_J1642.9+3948_daily_bin105.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.53
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856002/ft1_filtered_4FGL_J1642.9+3948_daily_bin105.fits scfile=/scratch/kocevski/856002/ft2_4FGL_J1642.9+3948_daily_bin105.fits outfile=/scratch/kocevski/856002/cmap_HighResolution_266544001_266803201_4FGL_J1642.9+3948_daily_bin105.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856002/ft1_filtered_4FGL_J1642.9+3948_daily_bin105.fits', '/scratch/kocevski/856002/ft2_4FGL_J1642.9+3948_daily_bin105.fits', expMap='/scratch/kocevski/856002/expmap_266544001_266803201_4FGL_J1642.9+3948_daily_bin105.fits', expCube='/scratch/kocevski/856002/ltcube_266544001_266803201_4FGL_J1642.9+3948_daily_bin105.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856002/Model_4FGL_J1642.9+3948_daily_bin105.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/856002/ft1_filtered_4FGL_J1642.9+3948_daily_bin105.fits
Spacecraft file(s): /scratch/kocevski/856002/ft2_4FGL_J1642.9+3948_daily_bin105.fits
Exposure map: /scratch/kocevski/856002/expmap_266544001_266803201_4FGL_J1642.9+3948_daily_bin105.fits
Exposure cube: /scratch/kocevski/856002/ltcube_266544001_266803201_4FGL_J1642.9+3948_daily_bin105.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856002/Model_4FGL_J1642.9+3948_daily_bin105.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) = 6013.81294402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8010       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1270       1.0000         .10000E-03   10000.    
     7 'norm      '    .13629       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5910       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .40904       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1239       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0120       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4753       1.0000         .10000E-03   10000.    
    16 'norm      '    .31018       1.0000         .10000E-03   10000.    
    17 'norm      '    .46180       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    12.452       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2465       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    37.593       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10164E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1932       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84468       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=   6013.788     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3123 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.333        .56164E-08** at limit **
   2  Prefactor     .10000E-03    33.422       -.89044E-07** at limit **
   3  Prefactor     2.8013        3.6138        .24880E-06   -.85412E-04
   4  Prefactor     .10000E-03    1.6019        .61655E-08** at limit **
   5  Prefactor     .10000E-03    5.8880        .83274E-08** at limit **
   6  Prefactor     5.1272        3.8353       -.13431E-07   -.22419E-03
   7  norm          .13629        .11932       -.15105E-07   -.14944E-02
   8  norm          .10000E-03    7.0475       -.86556E-08** at limit **
   9  Prefactor     6.5907        11.856        .82972E-07   -.46813E-04
  10  Prefactor     .10000E-03    3.6918       -.25971E-07** at limit **
  11  norm          .10000E-03    84.714        .40794E-06** at limit **
  12  Prefactor     .40955        1.3694        .99536E-06   -.45172E-06
  13  Prefactor     6.1234        2.1022       -.35044E-06   -.11755E-02
  14  Prefactor     2.0125        2.4743       -.19344E-07   -.79390E-04
  15  Prefactor     1.4747        3.6379        .56688E-06   -.30460E-03
  16  norm          .31050        1.6454        .10887E-05   -.37180E-03
  17  norm          .46175        .89529        .26417E-06    .54239E-05
  18  Prefactor     .10000E-03    7.6768       -.82545E-07** at limit **
  19  norm          .10000E-03    .23291       -.96932E-08** at limit **
  20  norm          12.450        8.7565       -.23682E-07    .44920E-04
  21  norm          1.2461        1.8316        .19663E-06   -.14167E-03
  22  Prefactor     .10000E-03    21.446        .79309E-07** at limit **
  23  norm          37.572        10.179       -.23308E-06    .21972E-03
  24  Prefactor     .10002E-03    219.39       -.38697E-05** at limit **
  25  Normalizat    1.1932        .21094       -.60738E-06   -.12522E-03
  26  Prefactor     .84467        .16657       -.33267E-06   -.10532E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.12725
  norm       = 0.136294
  norm       = 0.0001
  Prefactor  = 6.59068
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.409545
  Prefactor  = 6.12343
  Prefactor  = 2.01251
  Prefactor  = 1.47474
  norm       = 0.310498
  norm       = 0.461746
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.4496
  norm       = 1.24614
  Prefactor  = 0.0001
  norm       = 37.5724
  Prefactor  = 0.000100021
  Normalizat = 1.19316
  Prefactor  = 0.844673
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.788     FROM HESSE     STATUS=OK           460 CALLS     3583 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8013        3.6043        .15905E-03   -1.5373    
   4  Prefactor     .10000E-03    1.6047        .95852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1272        3.8404        .12383E-03   -1.5255    
   7  norm          .13629        .11501        .23106E-04   -1.5634    
   8  norm          .10000E-03    7.0517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.5907        11.795        .15631E-03   -1.5194    
  10  Prefactor     .10000E-03    3.7722        .14530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    85.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .40955        1.2957        .12709E-03   -1.5580    
  13  Prefactor     6.1234        2.0571        .49275E-04   -1.5213    
  14  Prefactor     2.0125        2.4458        .12911E-03   -1.5424    
  15  Prefactor     1.4747        3.5622        .21330E-03   -1.5465    
  16  norm          .31050        1.5517        .18610E-03   -1.5597    
  17  norm          .46175        .81353        .96550E-03   -1.5572    
  18  Prefactor     .10000E-03    7.8223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .23625        .36513E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          12.450        8.7545        .11352E-03   -1.5002    
  21  norm          1.2461        1.8015        .12166E-03   -1.5485    
  22  Prefactor     .10000E-03    21.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          37.572        10.128        .65368E-04   -1.4481    
  24  Prefactor     .10002E-03    222.97        .20752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1932        .25310        .26460E-03   -.86814    
  26  Prefactor     .84467        .19979        .25119E-03   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61794e-10
Minuit parameter uncertainties:
  1  1.03198e-06
  2  5.43769e-05
  3  3.6046
  4  4.55969e-07
  5  1.43287e-06
  6  3.84055
  7  0.115013
  8  3.37502e-06
  9  11.799
  10  1.39535e-06
  11  0.000335808
  12  1.29582
  13  2.05713
  14  2.44594
  15  3.5627
  16  1.38805
  17  0.813551
  18  7.30996e-06
  19  1.3463e-07
  20  8.75545
  21  1.80155
  22  2.92328e-05
  23  10.1283
  24  0.00435432
  25  0.253362
  26  0.199957
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  6.123e+00  2.057e+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:  8.447e-01  2.000e-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.193e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.12
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.36e-07 +/- 7.92e-08
Energy Flux (Fixed Index): 7.72e-05 +/- 2.59e-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) = 6013.78428665
delta logL = 0.00412577694988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6013.77555398
delta logL = 0.0128584460717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7691       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4468       1.0000          .0000       10.000    
     3 'Normalizat'    1.1854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84904       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=   6013.776     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7707        20.365        .41805E-02    .75232E-04
   2  Index         2.4465        1.9396        .60848E-01    .15715E-03
   3  Normalizat    1.1858        .14195        .59971E-01    .80942E-05
   4  Prefactor     .84884        .92023E-01    .44352E-01    .13857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.77071
  Index      = 2.44651
  Normalizat = 1.18582
  Prefactor  = 0.848838
 **********
 **   18 **HESSE 
 **********

 FCN=   6013.776     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7707        2.8448        .47492E-04   -1.5227    
   2  Index         2.4465        .29521        .25961E-02   -.53600    
   3  Normalizat    1.1858        .24806        .26523E-03   -.87042    
   4  Prefactor     .84884        .19882        .25063E-03   -.97952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88855e-09
Minuit parameter uncertainties:
  1  2.84485
  2  0.295443
  3  0.248305
  4  0.198988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856002': 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) = 6013.77555158
delta logL = 0.0128608441673

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  5.771e+00  2.845e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.447e+00  2.954e-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:  8.488e-01  1.990e-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.186e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.71
Ra Dec: 250.734 39.816
Photon Index (Free Index): 2.45 +/- 0.30
Photon Flux (Free Index): 2.42e-07 +/- 7.52e-08
Energy Flux (Free Index): 7.48e-05 +/- 2.52e-05

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/856002/cmap_HighResolution_266544001_266803201_4FGL_J1642.9+3948_daily_bin105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.36e-07', energy_flux2='7.48e-05', photon_flux_error='7.92e-08', dlogl='1.29e-02', energy_flux='7.72e-05', photon_flux2='2.42e-07', job_status='DONE', time_completed='2021-09-15 07:52:28.904389', photon_index_error2='0.30', photon_index2='2.45', ts='34.12', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='2.52e-05', EG='1.19', time_epoch_completed='1631717548.9', return_code='0', job_id='856002', GAL2='0.85', EG2='1.19', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='7.52e-08', ts2='34.71', photon_index='2.40' WHERE bin_id='105' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 07:52:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 856002: <4FGL_J1642.9+3948_daily_bin105> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin105> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 15 07:40:16 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 07:40:38 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:38 2021
Terminated at Wed Sep 15 07:52:29 2021
Results reported at Wed Sep 15 07:52:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin105 250.734 39.8164 266544001 266803201 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 :                                   687.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            733 sec.

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

