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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin693
RA = 250.734, Dec = 39.8164
tmin = 418953601, tmax = 419212801
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='859090', job_status='RUN', time_executed='2021-09-15 07:52:40.131407', time_epoch_executed='1631717560.13' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/859090

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/859090/ft1_4FGL_J1642.9+3948_daily_bin693.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/859090/ft2_4FGL_J1642.9+3948_daily_bin693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/859090/ft1_4FGL_J1642.9+3948_daily_bin693.fits outfile=/scratch/kocevski/859090/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin693.fits ra=250.734 dec=39.8164 rad=12.0 tmin=418953601.0 tmax=419212801.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 5.57
user 5.29
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/859090/ft2_4FGL_J1642.9+3948_daily_bin693.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/859090/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin693.fits evtable="EVENTS" outfile="/scratch/kocevski/859090/ft1_filtered_4FGL_J1642.9+3948_daily_bin693.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.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/859090/ft1_filtered_4FGL_J1642.9+3948_daily_bin693.fits evtable="EVENTS" scfile=/scratch/kocevski/859090/ft2_4FGL_J1642.9+3948_daily_bin693.fits sctable="SC_DATA" expcube=/scratch/kocevski/859090/ltcube_418953601_419212801_4FGL_J1642.9+3948_daily_bin693.fits outfile=/scratch/kocevski/859090/expmap_418953601_419212801_4FGL_J1642.9+3948_daily_bin693.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/859090/ltcube_418953601_419212801_4FGL_J1642.9+3948_daily_bin693.fits
.....................!
real 190.96
user 185.58
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/859090/ft1_filtered_4FGL_J1642.9+3948_daily_bin693.fits scfile=/scratch/kocevski/859090/ft2_4FGL_J1642.9+3948_daily_bin693.fits outfile=/scratch/kocevski/859090/cmap_418953601_419212801_4FGL_J1642.9+3948_daily_bin693.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.55
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/859090/ft1_filtered_4FGL_J1642.9+3948_daily_bin693.fits scfile=/scratch/kocevski/859090/ft2_4FGL_J1642.9+3948_daily_bin693.fits outfile=/scratch/kocevski/859090/cmap_HighResolution_418953601_419212801_4FGL_J1642.9+3948_daily_bin693.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    153.49       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2921       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7630       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1592       1.0000         .10000E-03   10000.    
     7 'norm      '    .28987       1.0000         .10000E-03   10000.    
     8 'norm      '    17.442       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.624       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4374       1.0000         .10000E-03   10000.    
    11 'norm      '    .10375E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17128E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.4969       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1486       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8082       1.0000         .10000E-03   10000.    
    19 'norm      '    .48921E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    8.1141       1.0000         .10000E-03   10000.    
    21 'norm      '    5.8606       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .88499E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0797       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83276       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=   4890.258     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3142 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.111        .30492E-06** at limit **
   2  Prefactor     153.51        152.96       -.15089E-05    .48786E-04
   3  Prefactor     6.2934        5.3903        .17718E-06    .59778E-04
   4  Prefactor     5.7601        12.031        .50621E-05    .26064E-03
   5  Prefactor     .10001E-03    44.614       -.24277E-05** at limit **
   6  Prefactor     6.1584        6.0002        .32378E-08    .10993E-03
   7  norm          .29000        .22549       -.46139E-08    .74523E-03
   8  norm          17.444        19.170        .43422E-07    .38226E-04
   9  Prefactor     43.609        35.691       -.43902E-06   -.16924E-03
  10  Prefactor     8.4360        8.6576       -.26152E-06    .20598E-04
  11  norm          .10000E-03    42.689       -.12512E-06** at limit **
  12  Prefactor     .10000E-03    .85010       -.19852E-06** at limit **
  13  Prefactor     1.0949        1.8610        .24792E-06    .60656E-03
  14  Prefactor     .10000E-03    3.3580       -.18590E-07** at limit **
  15  Prefactor     .10000E-03    5.4756        .22073E-07** at limit **
  16  norm          6.4968        2.5203       -.14823E-08    .20273E-03
  17  norm          1.1484        1.6096        .17459E-07    .11721E-03
  18  Prefactor     5.8048        15.537        .13200E-06    .82834E-04
  19  norm          .53044E-01    .87222       -.77405E-06    .18259E-02
  20  norm          8.1226        11.003        .14103E-06   -.61091E-04
  21  norm          5.8608        3.7193        .46449E-07    .29141E-03
  22  Prefactor     .10000E-03    19.676       -.38413E-06** at limit **
  23  norm          .10003E-03    3.6195        .10966E-05** at limit **
  24  Prefactor     .10001E-03    38.182        .15186E-05** at limit **
  25  Normalizat    1.0792        .25711        .10231E-05    .42818E-04
  26  Prefactor     .83315        .17678       -.13158E-05    .39243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 153.515
  Prefactor  = 6.29338
  Prefactor  = 5.76012
  Prefactor  = 0.00010001
  Prefactor  = 6.15843
  norm       = 0.289996
  norm       = 17.4438
  Prefactor  = 43.6089
  Prefactor  = 8.43601
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.09487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.49677
  norm       = 1.14842
  Prefactor  = 5.80478
  norm       = 0.0530435
  norm       = 8.12265
  norm       = 5.86082
  Prefactor  = 0.0001
  norm       = 0.000100026
  Prefactor  = 0.000100005
  Normalizat = 1.07918
  Prefactor  = 0.833155
 **********
 **   18 **HESSE 
 **********

 FCN=   4890.258     FROM HESSE     STATUS=OK           466 CALLS     3608 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     153.51        153.06        .16269E-03   -1.3224    
   3  Prefactor     6.2934        5.4140        .13869E-03   -1.5206    
   4  Prefactor     5.7601        12.265        .83654E-03   -1.5228    
   5  Prefactor     .10001E-03    45.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1584        5.9689        .15687E-03   -1.5212    
   7  norm          .29000        .21539        .23660E-04   -1.5600    
   8  norm          17.444        19.161        .95902E-04   -1.4872    
   9  Prefactor     43.609        35.711        .60698E-04   -1.4386    
  10  Prefactor     8.4360        8.6243        .13801E-03   -1.5127    
  11  norm          .10000E-03    42.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1198        .11171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0949        1.6653        .10097E-03   -1.5499    
  14  Prefactor     .10000E-03    3.3669        .12511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6549        .31851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.4968        2.5138        .66513E-04   -1.5198    
  17  norm          1.1484        1.5603        .98610E-04   -1.5494    
  18  Prefactor     5.8048        15.399        .16665E-03   -1.5226    
  19  norm          .53044E-01    3.4424        .10701E-02   -1.5662    
  20  norm          8.1226        10.873        .14075E-03   -1.5138    
  21  norm          5.8608        3.7099        .10104E-03   -1.5224    
  22  Prefactor     .10000E-03    19.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10003E-03    16.739        .24080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    38.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0792        .31339        .28633E-03   -.90423    
  26  Prefactor     .83315        .21392        .23634E-03   -.98518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48731e-09
Minuit parameter uncertainties:
  1  0.000115964
  2  153.463
  3  5.4144
  4  12.2707
  5  0.00133884
  6  5.96951
  7  0.215387
  8  19.1677
  9  35.7287
  10  8.62556
  11  0.000105835
  12  2.76521e-06
  13  1.6654
  14  3.1798e-06
  15  5.48427e-06
  16  2.51389
  17  1.56035
  18  15.4095
  19  0.853874
  20  10.8752
  21  3.71001
  22  0.000182516
  23  0.00131952
  24  0.000901991
  25  0.31393
  26  0.214134
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.095e+00  1.665e+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.332e-01  2.141e-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.079e+00  3.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 250.734 39.816
Photon Flux Upper Limit: 1.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/859090/likelihoodResults_418953601_419212801_4FGL_J1642.9+3948_daily_bin693.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) = 4889.79128706
delta logL = 0.466594015035

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4889.7511874
delta logL = 0.506693674518

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63567E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.2936       1.0000          .0000       10.000    
     3 'Normalizat'    .97287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89086       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=   4889.751     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      242 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .64494E-01    .73319        .30772E-02    .28909E-02
   2  Index         4.2875        2.2067        .10552        .13501E-03
   3  Normalizat    .97263        .53626E-01    .67603E-01    .11940E-04
   4  Prefactor     .89108        .39685E-01    .44888E-01    .52288E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0644938
  Index      = 4.28752
  Normalizat = 0.972627
  Prefactor  = 0.891079
 **********
 **   18 **HESSE 
 **********

 FCN=   4889.751     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      275 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .64494E-01    2.0049        .13826E-04   -1.5657    
   2  Index         4.2875        4.1131        .37309E-02   -.14298    
   3  Normalizat    .97263        .26434        .29904E-03   -.93953    
   4  Prefactor     .89108        .19042        .22934E-03   -.96454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04536e-07
Minuit parameter uncertainties:
  1  0.71864
  2  4.85535
  3  0.264693
  4  0.190565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/859090': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4889.75117741
delta logL = 0.506703668062

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  6.449e-02  7.186e-01  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  4.288e+00  4.855e+00  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.911e-01  1.906e-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:  9.726e-01  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 250.734 39.816
Photon Index (Free Index): 4.29 +/- 4.86
Photon Flux (Free Index): 1.49e-07 +/- 1.23e-07
Energy Flux (Free Index): 2.13e-05 +/- 2.07e-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/859090/cmap_HighResolution_418953601_419212801_4FGL_J1642.9+3948_daily_bin693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', energy_flux2='2.13e-05', dlogl='5.07e-01', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-15 08:04:24.700490', photon_index_error2='4.86', photon_index2='4.29', ts='0.64', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='2.07e-05', EG='1.08', time_epoch_completed='1631718264.7', return_code='0', job_id='859090', GAL2='0.89', EG2='0.97', return_code2='102', photon_flux_error2='1.23e-07', ts2='1.85', photon_index='2.40' WHERE bin_id='693' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 08:04:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 859090: <4FGL_J1642.9+3948_daily_bin693> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin693> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep 15 07:50:27 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 07:52:24 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:52:24 2021
Terminated at Wed Sep 15 08:04:25 2021
Results reported at Wed Sep 15 08:04:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin693 250.734 39.8164 418953601 419212801 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 :                                   699.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            838 sec.

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

