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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin632
RA = 250.734, Dec = 39.8164
tmin = 403142401, tmax = 403401601
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='858996', job_status='RUN', time_executed='2021-09-15 07:51:02.112277', time_epoch_executed='1631717462.11' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/858996

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/858996/ft1_4FGL_J1642.9+3948_daily_bin632.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/858996/ft2_4FGL_J1642.9+3948_daily_bin632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/858996/ft1_4FGL_J1642.9+3948_daily_bin632.fits outfile=/scratch/kocevski/858996/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin632.fits ra=250.734 dec=39.8164 rad=12.0 tmin=403142401.0 tmax=403401601.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 3.54
user 3.31
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/858996/ft1_filtered_4FGL_J1642.9+3948_daily_bin632.fits evtable="EVENTS" scfile=/scratch/kocevski/858996/ft2_4FGL_J1642.9+3948_daily_bin632.fits sctable="SC_DATA" expcube=/scratch/kocevski/858996/ltcube_403142401_403401601_4FGL_J1642.9+3948_daily_bin632.fits outfile=/scratch/kocevski/858996/expmap_403142401_403401601_4FGL_J1642.9+3948_daily_bin632.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/858996/ltcube_403142401_403401601_4FGL_J1642.9+3948_daily_bin632.fits
.....................!
real 194.08
user 188.80
sys 4.87

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/858996/ft1_filtered_4FGL_J1642.9+3948_daily_bin632.fits scfile=/scratch/kocevski/858996/ft2_4FGL_J1642.9+3948_daily_bin632.fits outfile=/scratch/kocevski/858996/cmap_403142401_403401601_4FGL_J1642.9+3948_daily_bin632.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.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.666       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.850       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0014       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2987       1.0000         .10000E-03   10000.    
    11 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6807       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3135       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3048       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7168       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2875       1.0000         .10000E-03   10000.    
    19 'norm      '    .56571       1.0000         .10000E-03   10000.    
    20 'norm      '    .10133E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0219       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11463E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10633       1.0000         .10000E-03   10000.    
    24 'Prefactor '    112.87       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .66444       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7286.452     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     2716 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.561        .66110E-05** at limit **
   2  Prefactor     27.594        6.0205       -.89069E-06   -.74407E-02
   3  Prefactor     .10000E-03    2.3766       -.43738E-06** at limit **
   4  Prefactor     13.850        1.2376        .69984E-07   -.31950E-02
   5  Prefactor     .10000E-03    11.566        .18640E-05** at limit **
   6  Prefactor     .10000E-03    2.6623       -.90097E-06** at limit **
   7  norm          2.0015        .28843       -.13198E-07   -.16483E-03
   8  norm          .10000E-03    5.3029       -.96243E-06** at limit **
   9  Prefactor     21.009        5.5648        .50893E-06    .28363E-02
  10  Prefactor     8.2968        4.8136       -.67935E-06    .32494E-03
  11  norm          .10000E-03    17.528       -.42852E-05** at limit **
  12  Prefactor     1.6803        1.2782        .46898E-08   -.11187E-04
  13  Prefactor     .10000E-03    .60828        .58980E-06** at limit **
  14  Prefactor     6.3133        3.2478       -.55688E-06    .25460E-03
  15  Prefactor     1.3046        2.5984       -.19908E-06   -.59238E-07
  16  norm          3.7167        1.7033       -.48566E-07    .72681E-05
  17  norm          .10000E-03    .28230       -.57925E-07** at limit **
  18  Prefactor     5.2876        6.0074        .10313E-07   -.98077E-04
  19  norm          .56520        .75899        .11918E-06   -.94213E-04
  20  norm          .10000E-03    3.6605       -.57978E-06** at limit **
  21  norm          2.0214        1.4077       -.22429E-07   -.16313E-04
  22  Prefactor     .10000E-03    21.698        .63670E-05** at limit **
  23  norm          .10018E-03    718.38        .15266E-04** at limit **
  24  Prefactor     113.68        78.600        .63619E-05   -.12159E-02
  25  Normalizat    .66432        .24552       -.60074E-06   -.12355E-04
  26  Prefactor     1.1242        .19047        .20178E-05   -.30890E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.5938
  Prefactor  = 0.0001
  Prefactor  = 13.8496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00155
  norm       = 0.0001
  Prefactor  = 21.0095
  Prefactor  = 8.29685
  norm       = 0.0001
  Prefactor  = 1.6803
  Prefactor  = 0.0001
  Prefactor  = 6.31327
  Prefactor  = 1.30459
  norm       = 3.71673
  norm       = 0.0001
  Prefactor  = 5.2876
  norm       = 0.565198
  norm       = 0.0001
  norm       = 2.02141
  Prefactor  = 0.0001
  norm       = 0.000100184
  Prefactor  = 113.679
  Normalizat = 0.664316
  Prefactor  = 1.12424
 **********
 **   18 **HESSE 
 **********

 FCN=   7286.452     FROM HESSE     STATUS=OK           524 CALLS     3240 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.420        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.594        50.096        .19041E-02   -1.4657    
   3  Prefactor     .10000E-03    2.3416        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.850        7.3506        .26907E-02   -1.4963    
   5  Prefactor     .10000E-03    11.650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.5608        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0015        .31511        .35134E-02   -1.5425    
   8  norm          .10000E-03    5.3192        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.009        31.705        .21824E-02   -1.4791    
  10  Prefactor     8.2968        4.8550        .34791E-02   -1.5132    
  11  norm          .10000E-03    17.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6803        1.2879        .81234E-02   -1.5449    
  13  Prefactor     .10000E-03    .59417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3133        3.2391        .39938E-02   -1.5205    
  15  Prefactor     1.3046        2.6542        .96616E-02   -1.5480    
  16  norm          3.7167        1.7051        .52365E-02   -1.5322    
  17  norm          .10000E-03    .27620        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2876        6.1020        .43698E-02   -1.5248    
  19  norm          .56520        .83387        .19028E-01   -1.5558    
  20  norm          .10000E-03    3.6397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0214        1.4177        .72757E-02   -1.5424    
  22  Prefactor     .10000E-03    21.518        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10018E-03    6.0246        .59375E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     113.68        89.955        .94663E-03   -1.3571    
  25  Normalizat    .66432        .21759        .80454E-01   -1.0532    
  26  Prefactor     1.1242        .16477        .36742E-01   -.88696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88403e-07
Minuit parameter uncertainties:
  1  0.00016358
  2  50.1724
  3  3.2429e-06
  4  7.35111
  5  3.13285e-05
  6  7.93841e-06
  7  0.315112
  8  1.74835e-05
  9  31.7309
  10  4.85519
  11  2.95927e-05
  12  1.28793
  13  2.2664e-06
  14  3.23923
  15  2.65445
  16  1.70508
  17  4.39207e-08
  18  6.10275
  19  0.833888
  20  5.67385e-06
  21  1.41769
  22  6.32309e-05
  23  0.0021067
  24  90.0634
  25  0.217875
  26  0.164842
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.000e-04  2.266e-06  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.124e+00  1.648e-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.643e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 250.734 39.816
Photon Flux Upper Limit: 8.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/858996/likelihoodResults_403142401_403401601_4FGL_J1642.9+3948_daily_bin632.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): 102
logL (Free Index) = 7286.45936398
delta logL = -0.0076987109851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7286.45166587
delta logL = -5.98442056798e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4067       1.0000          .0000       10.000    
     3 'Normalizat'    .66436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1243       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=   7286.452     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3793        .90712E-02** at limit **
   2  Index         2.4116        5.8847        .50000       -.75358E-04
   3  Normalizat    .66432        .72757E-02    .80454E-01    .18251E-03
   4  Prefactor     1.1242        .58876E-02    .36729E-01    .29861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41164
  Normalizat = 0.664315
  Prefactor  = 1.12424
 **********
 **   18 **HESSE 
 **********

 FCN=   7286.452     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .68236        .12724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4116        6.2044        .50000       -.54413    
   3  Normalizat    .66432        .22904        .35627E-03   -1.0532    
   4  Prefactor     1.1242        .18595        .22544E-03   -.88696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92806e-09
Minuit parameter uncertainties:
  1  1.59051e-05
  2  4.53393
  3  0.229369
  4  0.186053
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/858996': 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) = 7286.4516651
delta logL = 1.64458469953e-07

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.000e-04  1.591e-05  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  2.412e+00  4.534e+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:  1.124e+00  1.861e-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.643e-01  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 250.734 39.816

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/858996/cmap_HighResolution_403142401_403401601_4FGL_J1642.9+3948_daily_bin632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.79e-08', time_completed='2021-09-15 08:05:21.010901', job_id='858996', GAL2='1.12', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1631718321.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='632' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 08:05:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 858996: <4FGL_J1642.9+3948_daily_bin632> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin632> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep 15 07:50:19 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 07:50:48 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:50:48 2021
Terminated at Wed Sep 15 08:05:21 2021
Results reported at Wed Sep 15 08:05:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin632 250.734 39.8164 403142401 403401601 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 :                                   849.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             340.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            902 sec.

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

