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


Performing analysis on: 4FGL_J1738.2+4000_daily_bin762
RA = 264.56, Dec = 40.0099
tmin = 436838401, tmax = 437097601
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='945525', job_status='RUN', time_executed='2021-09-18 01:02:23.137075', time_epoch_executed='1631952143.14' WHERE source_name='4FGL J1738.2+4000' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/945525

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/945525/ft1_4FGL_J1738.2+4000_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/945525/ft2_4FGL_J1738.2+4000_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/945525/ft1_4FGL_J1738.2+4000_daily_bin762.fits outfile=/scratch/kocevski/945525/ft1_filteredMKT_4FGL_J1738.2+4000_daily_bin762.fits ra=264.56 dec=40.0099 rad=12.0 tmin=436838401.0 tmax=437097601.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 4.98
user 4.74
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/945525/ft2_4FGL_J1738.2+4000_daily_bin762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/945525/ft2_4FGL_J1738.2+4000_daily_bin762.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/945525/ft1_filteredMKT_4FGL_J1738.2+4000_daily_bin762.fits evtable="EVENTS" outfile="/scratch/kocevski/945525/ft1_filtered_4FGL_J1738.2+4000_daily_bin762.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/945525/ft1_filtered_4FGL_J1738.2+4000_daily_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/945525/ft2_4FGL_J1738.2+4000_daily_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/945525/ltcube_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.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/945525/ft2_4FGL_J1738.2+4000_daily_bin762.fits
.....................!
real 12.39
user 12.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/945525/ft1_filtered_4FGL_J1738.2+4000_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/945525/ft2_4FGL_J1738.2+4000_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/945525/ltcube_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.fits outfile=/scratch/kocevski/945525/expmap_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.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/945525/ltcube_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.fits
.....................!
real 192.93
user 187.69
sys 4.80

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 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1738.2+4000 @ 264.56 40.0099

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/945525/ft1_filtered_4FGL_J1738.2+4000_daily_bin762.fits scfile=/scratch/kocevski/945525/ft2_4FGL_J1738.2+4000_daily_bin762.fits outfile=/scratch/kocevski/945525/cmap_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.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=264.56 yref=40.0099 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/945525/ft1_filtered_4FGL_J1738.2+4000_daily_bin762.fits scfile=/scratch/kocevski/945525/ft2_4FGL_J1738.2+4000_daily_bin762.fits outfile=/scratch/kocevski/945525/cmap_HighResolution_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.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=264.56 yref=40.0099 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/945525/ft1_filtered_4FGL_J1738.2+4000_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/945525/ft2_4FGL_J1738.2+4000_daily_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/945525/Model_4FGL_J1738.2+4000_daily_bin762.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/945525/ft1_filtered_4FGL_J1738.2+4000_daily_bin762.fits.....................!
real 55.13
user 53.85
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/945525/ft1_filtered_4FGL_J1738.2+4000_daily_bin762.fits', '/scratch/kocevski/945525/ft2_4FGL_J1738.2+4000_daily_bin762.fits', expMap='/scratch/kocevski/945525/expmap_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.fits', expCube='/scratch/kocevski/945525/ltcube_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/945525/Model_4FGL_J1738.2+4000_daily_bin762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.2+4000'

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  6.394e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  1.525e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/945525/ft1_filtered_4FGL_J1738.2+4000_daily_bin762.fits
Spacecraft file(s): /scratch/kocevski/945525/ft2_4FGL_J1738.2+4000_daily_bin762.fits
Exposure map: /scratch/kocevski/945525/expmap_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.fits
Exposure cube: /scratch/kocevski/945525/ltcube_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/945525/Model_4FGL_J1738.2+4000_daily_bin762.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) = 5986.38060496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2411       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.9974       1.0000         .10000E-03   10000.    
     6 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.354       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1457       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.8316       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.386       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.490       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11911E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.303       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3116       1.0000         .10000E-03   10000.    
    24 'norm      '    .12128E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.6551       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.8062       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0201       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5986.341     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     3685 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    27.952        .21682E-05** at limit **
   2  Prefactor     1.2427        1.4073       -.21594E-06   -.70468E-03
   3  Prefactor     .10000E-03    .83974       -.36153E-07** at limit **
   4  Prefactor     .10000E-03    1.9922       -.35380E-07** at limit **
   5  norm          3.9978        2.0426       -.89793E-07    .55286E-05
   6  norm          .10000E-03    .51637       -.15262E-06** at limit **
   7  Prefactor     .10000E-03    15.248        .35806E-05** at limit **
   8  norm          .10000E-03    .29071       -.44270E-07** at limit **
   9  norm          16.354        11.553       -.17777E-06    .71704E-05
  10  norm          4.1466        3.4815       -.44109E-06   -.38817E-03
  11  Prefactor     .10000E-03    4.9641       -.24103E-07** at limit **
  12  Prefactor     .10000E-03    15.561        .14130E-06** at limit **
  13  norm          8.8276        6.9641        .22525E-05   -.51642E-04
  14  Prefactor     .10000E-03    92.999       -.12014E-05** at limit **
  15  Prefactor     20.353        68.574       -.56360E-04   -.35977E-05
  16  norm          .10000E-03    2.5881        .15489E-07** at limit **
  17  Prefactor     52.485        67.776       -.50964E-05    .29990E-04
  18  Prefactor     .10000E-03    43.450       -.18271E-04** at limit **
  19  Prefactor     .10000E-03    7.7773        .17392E-06** at limit **
  20  Prefactor     .10000E-03    15.212       -.40163E-05** at limit **
  21  Prefactor     .10002E-03    54.135        .29520E-04** at limit **
  22  Prefactor     56.277        83.310       -.29521E-04   -.10801E-03
  23  norm          1.3113        1.2232        .12392E-06    .30859E-03
  24  norm          .10000E-03    95.902       -.12043E-04** at limit **
  25  norm          .10000E-03    4.5682       -.28397E-07** at limit **
  26  Prefactor     9.6497        9.2623       -.20880E-06   -.54609E-04
  27  Prefactor     7.8054        5.9407       -.23169E-06   -.17200E-03
  28  Normalizat    1.0199        .24649        .28094E-05   -.40528E-04
  29  Prefactor     .97568        .14586        .16725E-05   -.88499E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.24272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.99783
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.3543
  norm       = 4.14664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.82757
  Prefactor  = 0.000100001
  Prefactor  = 20.3532
  norm       = 0.0001
  Prefactor  = 52.4852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 56.2773
  norm       = 1.31131
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.64967
  Prefactor  = 7.80537
  Normalizat = 1.01987
  Prefactor  = 0.97568
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.341     FROM HESSE     STATUS=OK           547 CALLS     4232 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.2427        1.2640        .85590E-04   -1.5485    
   3  Prefactor     .10000E-03    1.1482        .12512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0186        .10657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.9978        2.0353        .76106E-04   -1.5308    
   6  norm          .10000E-03    .77344        .10790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.775        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .29344        .40689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.354        11.551        .99039E-04   -1.4899    
  10  norm          4.1466        3.4830        .12181E-03   -1.5301    
  11  Prefactor     .10000E-03    5.0599        .16833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.8276        6.9512        .13488E-03   -1.5114    
  14  Prefactor     .10000E-03    93.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.353        68.310        .88710E-04   -1.4805    
  16  norm          .10000E-03    2.5897        .12156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     52.485        67.682        .55359E-04   -1.4258    
  18  Prefactor     .10000E-03    43.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    55.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     56.277        83.973        .53461E-04   -1.4206    
  23  norm          1.3113        1.2422        .80378E-04   -1.5479    
  24  norm          .10000E-03    96.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.5716        .16150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.6497        9.2647        .12897E-03   -1.5087    
  27  Prefactor     7.8054        5.9479        .14352E-03   -1.5149    
  28  Normalizat    1.0199        .29651        .33033E-03   -.92368    
  29  Prefactor     .97568        .17751        .20185E-03   -.93545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9475e-10
Minuit parameter uncertainties:
  1  1.58763e-05
  2  1.26398
  3  1.61476e-06
  4  1.03764e-05
  5  2.03538
  6  9.3447e-06
  7  0.000137001
  8  1.74564e-06
  9  11.5531
  10  3.48317
  11  1.12772e-05
  12  1.97682e-05
  13  6.95185
  14  0.000585756
  15  68.5743
  16  5.50781e-07
  17  67.7811
  18  7.23717e-05
  19  4.56687e-05
  20  5.2377e-05
  21  0.00191058
  22  84.1499
  23  1.2422
  24  5.88882e-05
  25  7.91318e-06
  26  9.26606
  27  5.94838
  28  0.29699
  29  0.177616
Done.

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

Extracting fit parameters...

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  5.858e-04  1.000e-04  1.000e+04 ( 1.000e-14)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  1.525e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  9.757e-01  1.776e-01  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
680   Normalization:  1.020e+00  2.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 264.560 40.010
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/945525/likelihoodResults_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.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) = 5986.34082854
delta logL = -5.10569689141e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5986.34077765
delta logL = -1.66432982951e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11751E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8358       1.0000          .0000       10.000    
     3 'Normalizat'    1.0199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97568       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5986.341     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.934        .90712E-02** at limit **
   2  Index         2.8230        5.5607        .50000        .13913E-05
   3  Normalizat    1.0199        .38557E-02    .74645E-01    .25501E-04
   4  Prefactor     .97568        .23216E-02    .45962E-01    .15569E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.82295
  Normalizat = 1.01987
  Prefactor  = 0.97568
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.341     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    394.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8230        8.3052        .50000       -.45049    
   3  Normalizat    1.0199        .12842E-01    .33032E-03   -.92368    
   4  Prefactor     .97568        .77429E-02    .20185E-03   -.93545    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59088e-08
Minuit parameter uncertainties:
  1  0.000256115
  2  412.963
  3  0.012842
  4  0.00774289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/945525': 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) = 5986.34077754
delta logL = -5.77911123401e-08

Extracting fit parameters...

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.561e-04  1.000e-04  1.000e+04 ( 1.000e-14)
327        Index:  2.823e+00  4.130e+02  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  1.525e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  9.757e-01  7.743e-03  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
680   Normalization:  1.020e+00  1.284e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.560 40.010

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/945525/cmap_HighResolution_436838401_437097601_4FGL_J1738.2+4000_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-18 01:16:46.444893', job_id='945525', GAL2='0.98', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631953006.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-5.78e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='762' AND source_name='4FGL J1738.2+4000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:16:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 945525: <4FGL_J1738.2+4000_daily_bin762> in cluster <slac> Done

Job <4FGL_J1738.2+4000_daily_bin762> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 18 01:00:15 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:00:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 01:00:17 2021
Terminated at Sat Sep 18 01:16:47 2021
Results reported at Sat Sep 18 01:16:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.2+4000_daily_bin762 264.56 40.0099 436838401 437097601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1738.2+4000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   862.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

