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


Performing analysis on: 4FGL_J1738.2+4000_daily_bin709
RA = 264.56, Dec = 40.0099
tmin = 423100801, tmax = 423360001
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='943998', job_status='RUN', time_executed='2021-09-18 00:58:15.428279', time_epoch_executed='1631951895.43' WHERE source_name='4FGL J1738.2+4000' and cadence='daily' and bin_id='709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/943998

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/943998/ft1_4FGL_J1738.2+4000_daily_bin709.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/943998/ft2_4FGL_J1738.2+4000_daily_bin709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/943998/ft1_4FGL_J1738.2+4000_daily_bin709.fits outfile=/scratch/kocevski/943998/ft1_filteredMKT_4FGL_J1738.2+4000_daily_bin709.fits ra=264.56 dec=40.0099 rad=12.0 tmin=423100801.0 tmax=423360001.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.92
user 4.66
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/943998/ft2_4FGL_J1738.2+4000_daily_bin709.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/943998/ft1_filteredMKT_4FGL_J1738.2+4000_daily_bin709.fits evtable="EVENTS" outfile="/scratch/kocevski/943998/ft1_filtered_4FGL_J1738.2+4000_daily_bin709.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/943998/ft1_filtered_4FGL_J1738.2+4000_daily_bin709.fits" evtable="EVENTS" scfile=/scratch/kocevski/943998/ft2_4FGL_J1738.2+4000_daily_bin709.fits sctable="SC_DATA" outfile=/scratch/kocevski/943998/ltcube_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.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/943998/ft2_4FGL_J1738.2+4000_daily_bin709.fits
.....................!
real 11.74
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/943998/ft1_filtered_4FGL_J1738.2+4000_daily_bin709.fits evtable="EVENTS" scfile=/scratch/kocevski/943998/ft2_4FGL_J1738.2+4000_daily_bin709.fits sctable="SC_DATA" expcube=/scratch/kocevski/943998/ltcube_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.fits outfile=/scratch/kocevski/943998/expmap_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.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/943998/ltcube_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.fits
.....................!
real 191.51
user 186.37
sys 4.83

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/943998/ft1_filtered_4FGL_J1738.2+4000_daily_bin709.fits scfile=/scratch/kocevski/943998/ft2_4FGL_J1738.2+4000_daily_bin709.fits outfile=/scratch/kocevski/943998/cmap_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/943998/ft1_filtered_4FGL_J1738.2+4000_daily_bin709.fits scfile=/scratch/kocevski/943998/ft2_4FGL_J1738.2+4000_daily_bin709.fits outfile=/scratch/kocevski/943998/cmap_HighResolution_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.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.54
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/943998/ft1_filtered_4FGL_J1738.2+4000_daily_bin709.fits', '/scratch/kocevski/943998/ft2_4FGL_J1738.2+4000_daily_bin709.fits', expMap='/scratch/kocevski/943998/expmap_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.fits', expCube='/scratch/kocevski/943998/ltcube_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/943998/Model_4FGL_J1738.2+4000_daily_bin709.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/943998/ft1_filtered_4FGL_J1738.2+4000_daily_bin709.fits
Spacecraft file(s): /scratch/kocevski/943998/ft2_4FGL_J1738.2+4000_daily_bin709.fits
Exposure map: /scratch/kocevski/943998/expmap_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.fits
Exposure cube: /scratch/kocevski/943998/ltcube_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/943998/Model_4FGL_J1738.2+4000_daily_bin709.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) = 3117.87774686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5522       1.0000         .10000E-03   10000.    
     5 'norm      '    4.5809       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2913       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6466       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    52.284       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0302       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.9886       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.3388       1.0000         .10000E-03   10000.    
    17 'Prefactor '    78.873       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.521       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.733       1.0000         .10000E-03   10000.    
    21 'Prefactor '    124.16       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.795       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.061       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .36378       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0950       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=   3117.861     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3657 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    191.47       -.49668E-04** at limit **
   2  Prefactor     .10000E-03    .87566       -.15355E-07** at limit **
   3  Prefactor     2.8461        1.8219       -.12274E-07    .19565E-03
   4  Prefactor     9.5526        6.6838       -.77507E-06    .73499E-04
   5  norm          4.5811        2.9427       -.47257E-07    .64858E-04
   6  norm          1.2916        1.6524       -.19078E-06   -.37339E-03
   7  Prefactor     7.6469        9.7333       -.69382E-06   -.62466E-04
   8  norm          .10000E-03    .42474       -.62088E-08** at limit **
   9  norm          52.286        22.730       -.36769E-06   -.65772E-04
  10  norm          1.5523        2.6218        .55795E-07   -.29673E-03
  11  Prefactor     9.0300        7.1137       -.93263E-06   -.27659E-06
  12  Prefactor     .10000E-03    20.837       -.18304E-06** at limit **
  13  norm          9.9895        7.9828        .63265E-06   -.46513E-04
  14  Prefactor     .10000E-03    55.108        .19908E-05** at limit **
  15  Prefactor     .10000E-03    130.04        .51852E-04** at limit **
  16  norm          4.3402        9.1145       -.39608E-05   -.18342E-03
  17  Prefactor     78.862        97.180       -.10511E-04   -.84624E-05
  18  Prefactor     .10000E-03    33.341        .54679E-06** at limit **
  19  Prefactor     14.523        24.356       -.11574E-06   -.57316E-04
  20  Prefactor     29.733        21.966       -.79833E-08   -.39995E-04
  21  Prefactor     124.15        68.642       -.68749E-05   -.27229E-04
  22  Prefactor     .10000E-03    82.319       -.16720E-04** at limit **
  23  norm          .10000E-03    1.0188        .19205E-07** at limit **
  24  norm          .10000E-03    55.452        .77286E-07** at limit **
  25  norm          13.800        16.767       -.45823E-06   -.68873E-04
  26  Prefactor     .10000E-03    5.8611        .20064E-07** at limit **
  27  Prefactor     13.062        8.7249       -.30787E-05   -.79706E-04
  28  Normalizat    .36380        .43583        .11903E-04    .37447E-04
  29  Prefactor     1.0950        .25053       -.13578E-05   -.65197E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.84613
  Prefactor  = 9.55258
  norm       = 4.58106
  norm       = 1.29161
  Prefactor  = 7.64688
  norm       = 0.0001
  norm       = 52.2863
  norm       = 1.55233
  Prefactor  = 9.03004
  Prefactor  = 0.0001
  norm       = 9.98948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.34015
  Prefactor  = 78.8616
  Prefactor  = 0.0001
  Prefactor  = 14.5225
  Prefactor  = 29.7332
  Prefactor  = 124.153
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 13.7995
  Prefactor  = 0.0001
  Prefactor  = 13.0616
  Normalizat = 0.363797
  Prefactor  = 1.09496
 **********
 **   18 **HESSE 
 **********

 FCN=   3117.861     FROM HESSE     STATUS=OK           551 CALLS     4208 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    191.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .88341        .50829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8461        1.8132        .57089E-04   -1.5371    
   4  Prefactor     9.5526        6.6100        .11032E-03   -1.5090    
   5  norm          4.5811        2.9429        .74089E-04   -1.5280    
   6  norm          1.2916        1.6098        .76171E-04   -1.5481    
   7  Prefactor     7.6469        9.6755        .14502E-03   -1.5155    
   8  norm          .10000E-03    .42671        .35506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          52.286        22.523        .55467E-04   -1.4261    
  10  norm          1.5523        2.5652        .10889E-03   -1.5459    
  11  Prefactor     9.0300        7.1052        .12689E-03   -1.5107    
  12  Prefactor     .10000E-03    20.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.9895        7.9704        .12679E-03   -1.5076    
  14  Prefactor     .10000E-03    55.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    129.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3402        9.1035        .19338E-03   -1.5291    
  17  Prefactor     78.862        96.511        .45219E-04   -1.3930    
  18  Prefactor     .10000E-03    33.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.523        24.292        .10511E-03   -1.4946    
  20  Prefactor     29.733        21.913        .73477E-04   -1.4617    
  21  Prefactor     124.15        68.505        .18061E-03   -1.3475    
  22  Prefactor     .10000E-03    82.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.0193        .55032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    55.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.800        16.666        .10784E-03   -1.4965    
  26  Prefactor     .10000E-03    5.8971        .13198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.062        8.7462        .11084E-03   -1.4985    
  28  Normalizat    .36380        .40627        .49019E-03   -1.1922    
  29  Prefactor     1.0950        .24284        .18490E-03   -.89628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29003e-10
Minuit parameter uncertainties:
  1  0.000434608
  2  4.51551e-07
  3  1.81328
  4  6.61054
  5  2.94301
  6  1.60989
  7  9.6775
  8  3.79462e-07
  9  22.527
  10  2.5654
  11  7.10584
  12  9.20632e-06
  13  7.97126
  14  6.18704e-05
  15  3.15689e-05
  16  9.10638
  17  96.7031
  18  0.000111952
  19  24.3087
  20  21.9189
  21  68.5489
  22  0.000230891
  23  1.79773e-06
  24  9.97515e-06
  25  16.6715
  26  3.9695e-06
  27  8.74708
  28  0.40962
  29  0.243082
Done.

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

Extracting fit parameters...

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  6.187e-05  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:  1.095e+00  2.431e-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:  3.638e-01  4.096e-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.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/943998/likelihoodResults_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.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) = 3117.86147714
delta logL = -8.62852266437e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3117.86139186
delta logL = -9.98196355795e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3117.861     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      276 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10212E-03    273.52        .18142E-02** at limit **
   2  Index         2.7797        6.7013        .50000        .59178E-05
   3  Normalizat    .36379        .18986E-01    .49018E-03   -.20758E-05
   4  Prefactor     1.0950        .12138E-01    .18490E-03   -.68555E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102123
  Index      = 2.77975
  Normalizat = 0.363793
  Prefactor  = 1.09496
 **********
 **   18 **HESSE 
 **********

 FCN=   3117.861     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10212E-03    1160.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7797        6.4437        .50000       -.46011    
   3  Normalizat    .36379        .40690E-01    .19607E-04   -1.1922    
   4  Prefactor     1.0950        .26014E-01    .73962E-05   -.89628    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11029e-08
Minuit parameter uncertainties:
  1  0.1013
  2  969.669
  3  0.0406938
  4  0.0260142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/943998': 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) = 3117.86139115
delta logL = -2.96228336083e-07

Extracting fit parameters...

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  1.021e-04  1.013e-01  1.000e-04  1.000e+04 ( 1.000e-14)
327        Index:  2.780e+00  9.697e+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:  1.095e+00  2.601e-02  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:  3.638e-01  4.069e-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/943998/cmap_HighResolution_423100801_423360001_4FGL_J1738.2+4000_daily_bin709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-18 01:08:35.608497', job_id='943998', GAL2='1.09', fit_tolerance='1e-08', EG2='0.36', EG='0.36', time_epoch_completed='1631952515.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-2.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='709' AND source_name='4FGL J1738.2+4000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:08:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 943998: <4FGL_J1738.2+4000_daily_bin709> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.2+4000_daily_bin709 264.56 40.0099 423100801 423360001 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 :                                   618.25 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             266.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            780 sec.

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

