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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin18
RA = 250.734, Dec = 39.8164
tmin = 243993601, tmax = 244252801
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='854738', job_status='RUN', time_executed='2021-09-15 07:39:32.667628', time_epoch_executed='1631716772.67' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/854738

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/854738/ft1_4FGL_J1642.9+3948_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/854738/ft2_4FGL_J1642.9+3948_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/854738/ft1_4FGL_J1642.9+3948_daily_bin18.fits outfile=/scratch/kocevski/854738/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin18.fits ra=250.734 dec=39.8164 rad=12.0 tmin=243993601.0 tmax=244252801.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.40
user 1.21
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/854738/ft1_filtered_4FGL_J1642.9+3948_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/854738/ft2_4FGL_J1642.9+3948_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/854738/ltcube_243993601_244252801_4FGL_J1642.9+3948_daily_bin18.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/854738/ft2_4FGL_J1642.9+3948_daily_bin18.fits
.....................!
real 15.06
user 14.66
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/854738/ft1_filtered_4FGL_J1642.9+3948_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/854738/ft2_4FGL_J1642.9+3948_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/854738/ltcube_243993601_244252801_4FGL_J1642.9+3948_daily_bin18.fits outfile=/scratch/kocevski/854738/expmap_243993601_244252801_4FGL_J1642.9+3948_daily_bin18.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/854738/ltcube_243993601_244252801_4FGL_J1642.9+3948_daily_bin18.fits
.....................!
real 191.21
user 185.90
sys 4.91

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/854738/ft1_filtered_4FGL_J1642.9+3948_daily_bin18.fits scfile=/scratch/kocevski/854738/ft2_4FGL_J1642.9+3948_daily_bin18.fits outfile=/scratch/kocevski/854738/cmap_243993601_244252801_4FGL_J1642.9+3948_daily_bin18.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/854738/ft1_filtered_4FGL_J1642.9+3948_daily_bin18.fits scfile=/scratch/kocevski/854738/ft2_4FGL_J1642.9+3948_daily_bin18.fits outfile=/scratch/kocevski/854738/cmap_HighResolution_243993601_244252801_4FGL_J1642.9+3948_daily_bin18.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    132.05       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5780       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4003       1.0000         .10000E-03   10000.    
     7 'norm      '    .81083       1.0000         .10000E-03   10000.    
     8 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9674       1.0000         .10000E-03   10000.    
    11 'norm      '    29.128       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5177       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5842       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0600       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2563       1.0000         .10000E-03   10000.    
    17 'norm      '    .46274E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13534E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .48988E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    22.280       1.0000         .10000E-03   10000.    
    21 'norm      '    .57601       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .19654E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .67576       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1772       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=   5926.641     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3224 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2705       -.21900E-07** at limit **
   2  Prefactor     132.08        110.77        .23858E-04    .40545E-05
   3  Prefactor     2.5774        3.6859       -.12240E-05   -.47264E-03
   4  Prefactor     .10000E-03    7.3196       -.67796E-07** at limit **
   5  Prefactor     41.197        30.086       -.12283E-05    .31373E-04
   6  Prefactor     1.4001        3.1104       -.99986E-06   -.93781E-03
   7  norm          .81083        .23133       -.19819E-08   -.10586E-04
   8  norm          .10000E-03    31.961        .17161E-04** at limit **
   9  Prefactor     4.8037        21.397        .22027E-05   -.31833E-04
  10  Prefactor     1.9676        5.1030       -.18640E-05   -.81720E-03
  11  norm          29.152        53.594        .24515E-04   -.18956E-04
  12  Prefactor     4.5175        2.6586       -.55023E-06   -.33781E-03
  13  Prefactor     4.5841        2.6504       -.71052E-07   -.50943E-03
  14  Prefactor     3.0599        2.8170        .22611E-07   -.14618E-04
  15  Prefactor     .10000E-03    1.0634       -.60579E-07** at limit **
  16  norm          1.2563        1.1681        .19011E-07    .22401E-03
  17  norm          .46356E-01    .41455       -.35538E-06   -.11840E-02
  18  Prefactor     .10000E-03    5.5154        .29002E-06** at limit **
  19  norm          .15870E-03    .40782       -.23695E-07** at limit **
  20  norm          22.290        12.682       -.11343E-05   -.69604E-04
  21  norm          .57603        .89925       -.36034E-06   -.27337E-02
  22  Prefactor     .10000E-03    35.675       -.31184E-04** at limit **
  23  norm          .10004E-03    4.5579        .42354E-06** at limit **
  24  Prefactor     .10000E-03    42.535        .15951E-04** at limit **
  25  Normalizat    .67589        .23230        .11460E-05   -.25849E-04
  26  Prefactor     1.1771        .17932       -.71371E-06    .25925E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 132.078
  Prefactor  = 2.57737
  Prefactor  = 0.0001
  Prefactor  = 41.1966
  Prefactor  = 1.40014
  norm       = 0.810832
  norm       = 0.000100002
  Prefactor  = 4.80374
  Prefactor  = 1.96755
  norm       = 29.1524
  Prefactor  = 4.51746
  Prefactor  = 4.58407
  Prefactor  = 3.05992
  Prefactor  = 0.0001
  norm       = 1.25635
  norm       = 0.0463555
  Prefactor  = 0.000100001
  norm       = 0.000158696
  norm       = 22.2898
  norm       = 0.576028
  Prefactor  = 0.0001
  norm       = 0.000100036
  Prefactor  = 0.0001
  Normalizat = 0.675891
  Prefactor  = 1.17713
 **********
 **   18 **HESSE 
 **********

 FCN=   5926.641     FROM HESSE     STATUS=OK           488 CALLS     3712 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     132.08        110.40        .17521E-03   -1.3404    
   3  Prefactor     2.5774        3.6818        .16758E-03   -1.5387    
   4  Prefactor     .10000E-03    7.3756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.197        30.026        .62446E-04   -1.4423    
   6  Prefactor     1.4001        3.0897        .19388E-03   -1.5471    
   7  norm          .81083        .23208        .17183E-04   -1.5528    
   8  norm          .10000E-03    32.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8037        21.464        .18352E-03   -1.5270    
  10  Prefactor     1.9676        5.1021        .26118E-03   -1.5427    
  11  norm          29.152        53.348        .74234E-04   -1.4628    
  12  Prefactor     4.5175        2.7664        .61738E-04   -1.5283    
  13  Prefactor     4.5841        2.7565        .61811E-04   -1.5280    
  14  Prefactor     3.0599        2.8049        .11915E-03   -1.5358    
  15  Prefactor     .10000E-03    1.0697        .77479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2563        1.1953        .77760E-03   -1.5484    
  17  norm          .46356E-01    .91943        .95220E-03   -1.5665    
  18  Prefactor     .10000E-03    32.689        .33848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15870E-03    1.0512        .16159E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.290        12.685        .84859E-04   -1.4763    
  21  norm          .57603        .90383        .23155E-03   -1.5556    
  22  Prefactor     .10000E-03    35.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10004E-03    4.8402        .48555E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    42.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .67589        .26607        .34041E-03   -1.0485    
  26  Prefactor     1.1771        .20852        .21699E-03   -.87038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25588e-09
Minuit parameter uncertainties:
  1  8.47386e-07
  2  110.57
  3  3.68214
  4  3.65773e-05
  5  30.0367
  6  3.09003
  7  0.23208
  8  0.000497901
  9  20.3202
  10  5.10319
  11  53.4357
  12  2.76652
  13  2.75656
  14  2.80501
  15  1.07349e-05
  16  1.19532
  17  0.412456
  18  0.000427101
  19  0.0157103
  20  12.6866
  21  0.903847
  22  4.77873e-05
  23  0.000836315
  24  3.10099e-05
  25  0.266583
  26  0.208666
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  4.584e+00  2.757e+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.177e+00  2.087e-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:  6.759e-01  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.30
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.77e-07 +/- 1.06e-07
Energy Flux (Fixed Index): 5.78e-05 +/- 3.47e-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) = 5926.26272242
delta logL = 0.378075098785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5926.26088943
delta logL = 0.379908089461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1921       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1231       1.0000          .0000       10.000    
     3 'Normalizat'    .70610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1616       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=   5926.261     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      235 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1955        43.104        .40332E-02    .11693E-03
   2  Index         2.1229        2.7486        .10934        .10072E-03
   3  Normalizat    .70606        .13342        .75478E-01    .24841E-04
   4  Prefactor     1.1616        .80297E-01    .35610E-01   -.12412E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.19549
  Index      = 2.12294
  Normalizat = 0.706055
  Prefactor  = 1.16158
 **********
 **   18 **HESSE 
 **********

 FCN=   5926.261     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1955        2.9605        .75733E-04   -1.5210    
   2  Index         2.1229        .31726        .42094E-02   -.61311    
   3  Normalizat    .70606        .25206        .33412E-03   -1.0365    
   4  Prefactor     1.1616        .20532        .21837E-03   -.87522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18641e-09
Minuit parameter uncertainties:
  1  2.96057
  2  0.317574
  3  0.252477
  4  0.20546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/854738': 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) = 5926.26088873
delta logL = 0.379908785604

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  6.195e+00  2.961e+00  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.123e+00  3.176e-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.162e+00  2.055e-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.061e-01  2.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.05
Ra Dec: 250.734 39.816
Photon Index (Free Index): 2.12 +/- 0.32
Photon Flux (Free Index): 1.43e-07 +/- 7.35e-08
Energy Flux (Free Index): 7.50e-05 +/- 4.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/854738/cmap_HighResolution_243993601_244252801_4FGL_J1642.9+3948_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.77e-07', energy_flux2='7.50e-05', photon_flux_error='1.06e-07', dlogl='3.80e-01', energy_flux='5.78e-05', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-15 07:51:13.509886', photon_index_error2='0.32', photon_index2='2.12', ts='10.30', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='4.07e-05', EG='0.68', time_epoch_completed='1631717473.51', return_code='0', job_id='854738', GAL2='1.16', EG2='0.71', return_code2='0', energy_flux_error='3.47e-05', photon_flux_error2='7.35e-08', ts2='12.05', photon_index='2.40' WHERE bin_id='18' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 07:51:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 854738: <4FGL_J1642.9+3948_daily_bin18> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin18 250.734 39.8164 243993601 244252801 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 :                                   701.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            945 sec.

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

