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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin73
RA = 250.734, Dec = 39.8164
tmin = 258249601, tmax = 258508801
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='854821', job_status='RUN', time_executed='2021-09-15 07:40:56.764412', time_epoch_executed='1631716856.76' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854821

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854821/ft1_4FGL_J1642.9+3948_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854821/ft2_4FGL_J1642.9+3948_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854821/ft1_4FGL_J1642.9+3948_daily_bin73.fits outfile=/scratch/kocevski/854821/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin73.fits ra=250.734 dec=39.8164 rad=12.0 tmin=258249601.0 tmax=258508801.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.13
user 0.99
sys 0.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854821/ft1_filtered_4FGL_J1642.9+3948_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/854821/ft2_4FGL_J1642.9+3948_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/854821/ltcube_258249601_258508801_4FGL_J1642.9+3948_daily_bin73.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/854821/ft2_4FGL_J1642.9+3948_daily_bin73.fits
.....................!
real 11.18
user 10.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854821/ft1_filtered_4FGL_J1642.9+3948_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/854821/ft2_4FGL_J1642.9+3948_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/854821/ltcube_258249601_258508801_4FGL_J1642.9+3948_daily_bin73.fits outfile=/scratch/kocevski/854821/expmap_258249601_258508801_4FGL_J1642.9+3948_daily_bin73.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/854821/ltcube_258249601_258508801_4FGL_J1642.9+3948_daily_bin73.fits
.....................!
real 191.11
user 185.06
sys 5.45

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/854821/ft1_filtered_4FGL_J1642.9+3948_daily_bin73.fits scfile=/scratch/kocevski/854821/ft2_4FGL_J1642.9+3948_daily_bin73.fits outfile=/scratch/kocevski/854821/cmap_258249601_258508801_4FGL_J1642.9+3948_daily_bin73.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854821/ft1_filtered_4FGL_J1642.9+3948_daily_bin73.fits scfile=/scratch/kocevski/854821/ft2_4FGL_J1642.9+3948_daily_bin73.fits outfile=/scratch/kocevski/854821/cmap_HighResolution_258249601_258508801_4FGL_J1642.9+3948_daily_bin73.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/854821/ft1_filtered_4FGL_J1642.9+3948_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/854821/ft2_4FGL_J1642.9+3948_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/854821/Model_4FGL_J1642.9+3948_daily_bin73.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/854821/ft1_filtered_4FGL_J1642.9+3948_daily_bin73.fits.....................!
real 42.12
user 40.56
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11073E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.5734       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.668       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2129       1.0000         .10000E-03   10000.    
     7 'norm      '    .32331       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.604       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12373E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.041       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3071       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .67785E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3154       1.0000         .10000E-03   10000.    
    16 'norm      '    8.2008       1.0000         .10000E-03   10000.    
    17 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4007       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2015       1.0000         .10000E-03   10000.    
    20 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7924       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.754       1.0000         .10000E-03   10000.    
    23 'norm      '    34.886       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79196       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95183       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=   4756.308     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3216 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.047       -.40335E-05** at limit **
   2  Prefactor     .10000E-03    30.467        .32576E-06** at limit **
   3  Prefactor     .10000E-03    2.8168       -.32662E-06** at limit **
   4  Prefactor     5.5740        8.0676        .46122E-06    .26372E-04
   5  Prefactor     23.658        37.069       -.84757E-07   -.59611E-05
   6  Prefactor     4.2142        5.0339        .12085E-06   -.21940E-04
   7  norm          .32338        .19170       -.90186E-09   -.14688E-03
   8  norm          .10000E-03    12.517       -.20458E-06** at limit **
   9  Prefactor     25.598        23.101        .12447E-06    .77895E-06
  10  Prefactor     .10000E-03    4.2658        .81259E-07** at limit **
  11  norm          16.042        47.344        .65364E-07   -.53745E-05
  12  Prefactor     .10000E-03    1.2057        .46730E-07** at limit **
  13  Prefactor     4.3114        2.2038       -.46417E-07   -.28305E-03
  14  Prefactor     .10000E-03    2.4989       -.14557E-06** at limit **
  15  Prefactor     5.3153        5.2815       -.46210E-07   -.78254E-04
  16  norm          8.2009        2.9886        .10958E-07   -.58847E-04
  17  norm          .10000E-03    .96869        .10001E-06** at limit **
  18  Prefactor     4.3985        9.4078        .12770E-05   -.23242E-04
  19  norm          1.2015        .92964       -.10748E-07   -.62073E-04
  20  norm          .10000E-03    4.7782        .13289E-07** at limit **
  21  norm          2.7925        2.0741       -.37834E-07   -.61642E-04
  22  Prefactor     17.802        46.765       -.48570E-05   -.16245E-04
  23  norm          34.883        10.177        .17018E-06   -.48431E-04
  24  Prefactor     .10000E-03    94.661        .47499E-05** at limit **
  25  Normalizat    .79187        .24140       -.16752E-06   -.23445E-04
  26  Prefactor     .95184        .17819       -.57476E-06   -.57822E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 5.57399
  Prefactor  = 23.6576
  Prefactor  = 4.21422
  norm       = 0.323381
  norm       = 0.0001
  Prefactor  = 25.5977
  Prefactor  = 0.0001
  norm       = 16.042
  Prefactor  = 0.0001
  Prefactor  = 4.31138
  Prefactor  = 0.0001
  Prefactor  = 5.31535
  norm       = 8.20088
  norm       = 0.0001
  Prefactor  = 4.39849
  norm       = 1.20153
  norm       = 0.0001
  norm       = 2.79254
  Prefactor  = 17.8024
  norm       = 34.8825
  Prefactor  = 0.0001
  Normalizat = 0.791872
  Prefactor  = 0.951836
 **********
 **   18 **HESSE 
 **********

 FCN=   4756.308     FROM HESSE     STATUS=OK           470 CALLS     3686 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    76.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.211        .21182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.5740        8.0284        .85087E-03   -1.5236    
   5  Prefactor     23.658        37.052        .82337E-04   -1.4735    
   6  Prefactor     4.2142        5.0084        .15367E-03   -1.5297    
   7  norm          .32338        .19056        .20010E-04   -1.5594    
   8  norm          .10000E-03    12.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.598        23.121        .79168E-04   -1.4696    
  10  Prefactor     .10000E-03    8.9727        .26688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.042        47.266        .10000E-03   -1.4907    
  12  Prefactor     .10000E-03    3.8350        .11956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3114        1.9110        .55285E-04   -1.5293    
  14  Prefactor     .10000E-03    17.581        .19696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.3153        5.2470        .13684E-03   -1.5247    
  16  norm          8.2009        2.9875        .68367E-04   -1.5135    
  17  norm          .10000E-03    1.8786        .12365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3985        9.5645        .95990E-03   -1.5288    
  19  norm          1.2015        .92064        .55027E-04   -1.5489    
  20  norm          .10000E-03    4.7908        .14719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7925        2.0664        .80778E-04   -1.5374    
  22  Prefactor     17.802        46.734        .95054E-04   -1.4864    
  23  norm          34.883        10.152        .67848E-04   -1.4526    
  24  Prefactor     .10000E-03    94.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .79187        .27714        .29945E-03   -1.0037    
  26  Prefactor     .95184        .21071        .22528E-03   -.94353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48438e-10
Minuit parameter uncertainties:
  1  1.03417e-05
  2  5.37444e-06
  3  0.000380995
  4  8.0299
  5  37.0884
  6  5.00886
  7  0.190562
  8  9.62066e-07
  9  23.1286
  10  3.33371e-05
  11  47.377
  12  2.97355e-05
  13  1.91102
  14  0.000166935
  15  5.24747
  16  2.98759
  17  2.53686e-05
  18  9.56783
  19  0.920654
  20  1.71948e-06
  21  2.06646
  22  46.8298
  23  10.1521
  24  0.000147379
  25  0.277636
  26  0.210893
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  4.311e+00  1.911e+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:  9.518e-01  2.109e-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:  7.919e-01  2.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.92
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.66e-07 +/- 7.36e-08
Energy Flux (Fixed Index): 5.43e-05 +/- 2.41e-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) = 4756.30759378
delta logL = 0.000816668499283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4756.3063294
delta logL = 0.00208105663205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1863       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4285       1.0000          .0000       10.000    
     3 'Normalizat'    .78813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95378       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4756.306     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      233 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1861        2.7579        .54070E-04    .96950E-03
   2  Index         2.4286        .43908        .35393E-02    .13331E-03
   3  Normalizat    .78825        .25655        .30001E-03   -.44413E-04
   4  Prefactor     .95371        .20575        .22508E-03   -.11755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.18614
  Index      = 2.42856
  Normalizat = 0.788247
  Prefactor  = 0.953712
 **********
 **   18 **HESSE 
 **********

 FCN=   4756.306     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1861        2.5910        .21628E-05   -1.5299    
   2  Index         2.4286        .41212        .14157E-03   -.54018    
   3  Normalizat    .78825        .25615        .12000E-04   -1.0051    
   4  Prefactor     .95371        .20567        .45015E-04   -.94289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23934e-11
Minuit parameter uncertainties:
  1  2.59103
  2  0.412753
  3  0.256542
  4  0.205837
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854821': 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) = 4756.30632924
delta logL = 0.00208121030209

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  4.186e+00  2.591e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.429e+00  4.128e-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:  9.537e-01  2.058e-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:  7.882e-01  2.565e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.38
Ra Dec: 250.734 39.816
Photon Index (Free Index): 2.43 +/- 0.41
Photon Flux (Free Index): 1.70e-07 +/- 8.76e-08
Energy Flux (Free Index): 5.36e-05 +/- 2.40e-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/854821/cmap_HighResolution_258249601_258508801_4FGL_J1642.9+3948_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.66e-07', energy_flux2='5.36e-05', photon_flux_error='7.36e-08', dlogl='2.08e-03', energy_flux='5.43e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-15 07:51:20.462859', photon_index_error2='0.41', photon_index2='2.43', ts='11.92', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='0.79', time_epoch_completed='1631717480.46', return_code='0', job_id='854821', GAL2='0.95', EG2='0.79', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='8.76e-08', ts2='12.38', photon_index='2.40' WHERE bin_id='73' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 07:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 854821: <4FGL_J1642.9+3948_daily_bin73> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin73> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep 15 07:35:34 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 07:37:34 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:37:34 2021
Terminated at Wed Sep 15 07:51:20 2021
Results reported at Wed Sep 15 07:51:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin73 250.734 39.8164 258249601 258508801 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 :                                   622.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            946 sec.

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

