/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 207 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 = 7438
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1738.2+4000_daily_bin375
RA = 264.56, Dec = 40.0099
tmin = 336528001, tmax = 336787201
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='941529', job_status='RUN', time_executed='2021-09-18 00:53:58.071574', time_epoch_executed='1631951638.07' WHERE source_name='4FGL J1738.2+4000' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/941529

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/941529/ft1_4FGL_J1738.2+4000_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/941529/ft2_4FGL_J1738.2+4000_daily_bin375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/941529/ft1_4FGL_J1738.2+4000_daily_bin375.fits outfile=/scratch/kocevski/941529/ft1_filteredMKT_4FGL_J1738.2+4000_daily_bin375.fits ra=264.56 dec=40.0099 rad=12.0 tmin=336528001.0 tmax=336787201.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 5.84
user 5.56
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/941529/ft2_4FGL_J1738.2+4000_daily_bin375.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/941529/ft1_filteredMKT_4FGL_J1738.2+4000_daily_bin375.fits evtable="EVENTS" outfile="/scratch/kocevski/941529/ft1_filtered_4FGL_J1738.2+4000_daily_bin375.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/941529/ft1_filtered_4FGL_J1738.2+4000_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/941529/ft2_4FGL_J1738.2+4000_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/941529/ltcube_336528001_336787201_4FGL_J1738.2+4000_daily_bin375.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/941529/ft2_4FGL_J1738.2+4000_daily_bin375.fits
.....................!
real 11.97
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/941529/ft1_filtered_4FGL_J1738.2+4000_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/941529/ft2_4FGL_J1738.2+4000_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/941529/ltcube_336528001_336787201_4FGL_J1738.2+4000_daily_bin375.fits outfile=/scratch/kocevski/941529/expmap_336528001_336787201_4FGL_J1738.2+4000_daily_bin375.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/941529/ltcube_336528001_336787201_4FGL_J1738.2+4000_daily_bin375.fits
.....................!
real 189.54
user 185.31
sys 3.89

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/941529/ft1_filtered_4FGL_J1738.2+4000_daily_bin375.fits scfile=/scratch/kocevski/941529/ft2_4FGL_J1738.2+4000_daily_bin375.fits outfile=/scratch/kocevski/941529/cmap_336528001_336787201_4FGL_J1738.2+4000_daily_bin375.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/941529/ft1_filtered_4FGL_J1738.2+4000_daily_bin375.fits scfile=/scratch/kocevski/941529/ft2_4FGL_J1738.2+4000_daily_bin375.fits outfile=/scratch/kocevski/941529/cmap_HighResolution_336528001_336787201_4FGL_J1738.2+4000_daily_bin375.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    45.710       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0823       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .85591       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11346E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .59416       1.0000         .10000E-03   10000.    
     9 'norm      '    14.028       1.0000         .10000E-03   10000.    
    10 'norm      '    .23997       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.099       1.0000         .10000E-03   10000.    
    13 'norm      '    .10254E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    97.880       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .66235E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.538       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10739E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.827       1.0000         .10000E-03   10000.    
    22 'Prefactor '    67.935       1.0000         .10000E-03   10000.    
    23 'norm      '    2.6488       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.455       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.0396       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89423       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98751       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=   4035.279     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3781 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          45.704        91.865       -.12557E-05    .17984E-04
   2  Prefactor     .10000E-03    1.7316        .52920E-08** at limit **
   3  Prefactor     3.0789        2.3314        .64929E-07    .58956E-03
   4  Prefactor     .10000E-03    6.5476       -.48914E-05** at limit **
   5  norm          .85634        1.8329        .22366E-06    .73620E-03
   6  norm          .10000E-03    .83918        .64206E-08** at limit **
   7  Prefactor     .10016E-03    12.544       -.19906E-05** at limit **
   8  norm          .59376        1.2951        .34367E-06    .10559E-02
   9  norm          14.025        11.242       -.33428E-07   -.77750E-04
  10  norm          .23797        2.0484        .13338E-05    .18409E-03
  11  Prefactor     .10000E-03    1.5523        .53936E-07** at limit **
  12  Prefactor     45.087        54.095       -.17976E-06   -.80941E-04
  13  norm          .10000E-03    6.1709        .26365E-05** at limit **
  14  Prefactor     97.933        115.52        .30966E-05    .89629E-04
  15  Prefactor     .10000E-03    47.939       -.34270E-06** at limit **
  16  norm          .10005E-03    9.8254       -.49086E-05** at limit **
  17  Prefactor     .10000E-03    49.703        .16077E-05** at limit **
  18  Prefactor     49.569        66.545       -.19611E-05   -.19022E-04
  19  Prefactor     .10000E-03    9.0804        .28345E-06** at limit **
  20  Prefactor     .10001E-03    39.004        .38876E-05** at limit **
  21  Prefactor     31.817        40.209       -.80275E-07   -.11784E-03
  22  Prefactor     67.919        89.624       -.38343E-06   -.79592E-04
  23  norm          2.6491        2.1912        .19328E-07   -.18047E-04
  24  norm          .10000E-03    41.086        .32016E-06** at limit **
  25  norm          10.454        10.500        .29701E-06   -.52008E-04
  26  Prefactor     .10000E-03    6.0155       -.18538E-06** at limit **
  27  Prefactor     4.0411        5.8327        .49936E-06    .23720E-03
  28  Normalizat    .89439        .28883       -.67047E-05   -.21130E-03
  29  Prefactor     .98733        .16817        .20933E-05   -.34211E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 45.7038
  Prefactor  = 0.0001
  Prefactor  = 3.07893
  Prefactor  = 0.000100001
  norm       = 0.856336
  norm       = 0.0001
  Prefactor  = 0.000100164
  norm       = 0.593756
  norm       = 14.0249
  norm       = 0.237969
  Prefactor  = 0.0001
  Prefactor  = 45.0873
  norm       = 0.000100005
  Prefactor  = 97.9334
  Prefactor  = 0.0001
  norm       = 0.000100052
  Prefactor  = 0.000100001
  Prefactor  = 49.569
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 31.8169
  Prefactor  = 67.9191
  norm       = 2.64907
  norm       = 0.0001
  norm       = 10.4536
  Prefactor  = 0.0001
  Prefactor  = 4.04109
  Normalizat = 0.894387
  Prefactor  = 0.987335
 **********
 **   18 **HESSE 
 **********

 FCN=   4035.279     FROM HESSE     STATUS=OK           557 CALLS     4338 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          45.704        90.860        .59303E-04   -1.4355    
   2  Prefactor     .10000E-03    1.7471        .16098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0789        2.2851        .75279E-04   -1.5357    
   4  Prefactor     .10000E-03    8.4167        .24634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .85634        1.4891        .12193E-02   -1.5523    
   6  norm          .10000E-03    1.5250        .11233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10016E-03    68.460        .38263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .59376        1.1817        .93905E-04   -1.5554    
   9  norm          14.025        11.242        .10694E-03   -1.4959    
  10  norm          .23797        3.6366        .16452E-02   -1.5610    
  11  Prefactor     .10000E-03    1.5536        .77299E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.087        54.140        .59701E-04   -1.4364    
  13  norm          .10000E-03    6.4930        .15712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     97.933        115.57        .20315E-03   -1.3725    
  15  Prefactor     .10000E-03    47.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10005E-03    22.024        .30345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    49.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     49.569        66.462        .56976E-04   -1.4299    
  19  Prefactor     .10000E-03    9.1140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    40.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.817        40.221        .71024E-04   -1.4579    
  22  Prefactor     67.919        89.708        .24349E-03   -1.4058    
  23  norm          2.6491        2.1938        .83116E-04   -1.5382    
  24  norm          .10000E-03    41.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.454        10.488        .12391E-03   -1.5061    
  26  Prefactor     .10000E-03    6.0604        .15210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.0411        5.8570        .17754E-03   -1.5306    
  28  Normalizat    .89439        .33108        .32133E-03   -.96658    
  29  Prefactor     .98733        .19696        .19089E-03   -.93153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15146e-09
Minuit parameter uncertainties:
  1  91.1374
  2  1.53706e-05
  3  2.28521
  4  0.000181258
  5  1.4892
  6  2.63866e-05
  7  0.00671444
  8  1.18173
  9  11.2442
  10  1.86027
  11  5.22036e-06
  12  54.1992
  13  0.000344987
  14  115.836
  15  0.000151809
  16  0.00213916
  17  0.000471609
  18  66.5616
  19  0.000104273
  20  0.00140143
  21  40.2556
  22  89.8876
  23  2.19382
  24  0.000227704
  25  10.4896
  26  2.44314e-05
  27  5.85782
  28  0.331835
  29  0.1971
Done.

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

Extracting fit parameters...

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  9.793e+01  1.158e+02  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.873e-01  1.971e-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:  8.944e-01  3.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 264.560 40.010
Photon Flux Upper Limit: 2.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.65e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/941529/likelihoodResults_336528001_336787201_4FGL_J1738.2+4000_daily_bin375.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): 0
logL (Free Index) = 4034.87410026
delta logL = 0.404749497471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4034.59666695
delta logL = 0.682182811942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53453E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.9956       1.0000          .0000       10.000    
     3 'Normalizat'    .77411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0465       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=   4034.597     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      429 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56971E-01    .70027        .23788E-02   -.30832E-02
   2  Index         5.9712        2.2998        .79350E-01   -.18746E-04
   3  Normalizat    .77236        .73345E-01    .77526E-01   -.14136E-04
   4  Prefactor     1.0475        .45543E-01    .40119E-01    .85118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0569708
  Index      = 5.9712
  Normalizat = 0.772356
  Prefactor  = 1.04755
 **********
 **   18 **HESSE 
 **********

 FCN=   4034.597     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      460 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56971E-01    1.4526        .10693E-04   -1.5660    
   2  Index         5.9712        3.5681        .31164E-02    .19548    
   3  Normalizat    .77236        .27473        .34319E-03   -1.0110    
   4  Prefactor     1.0475        .16728        .18589E-03   -.91161    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.93937e-10
Minuit parameter uncertainties:
  1  0.574855
  2  3.99553
  3  0.275228
  4  0.167363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/941529': 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) = 4034.59662474
delta logL = 0.682225017419

Extracting fit parameters...

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  5.697e-02  5.749e-01  1.000e-04  1.000e+04 ( 1.000e-14)
327        Index:  5.971e+00  3.996e+00  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.048e+00  1.674e-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:  7.724e-01  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.56
Ra Dec: 264.560 40.010
Photon Index (Free Index): 5.97 +/- 4.00
Photon Flux (Free Index): 1.35e-07 +/- 9.75e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.26e-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/941529/cmap_HighResolution_336528001_336787201_4FGL_J1738.2+4000_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-02', comment='SUCCESS', energy_flux2='1.68e-05', dlogl='6.82e-01', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-18 01:06:21.751894', photon_index_error2='4.00', photon_index2='5.97', ts='0.94', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='2.11e-07', energy_flux_error2='1.26e-05', EG='0.89', time_epoch_completed='1631952381.75', return_code='0', job_id='941529', GAL2='1.05', EG2='0.77', return_code2='102', photon_flux_error2='9.75e-08', ts2='2.56', photon_index='2.52' WHERE bin_id='375' AND source_name='4FGL J1738.2+4000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:06:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 941529: <4FGL_J1738.2+4000_daily_bin375> in cluster <slac> Done

Job <4FGL_J1738.2+4000_daily_bin375> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 00:50:20 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 00:50:22 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:50:22 2021
Terminated at Sat Sep 18 01:06:22 2021
Results reported at Sat Sep 18 01:06:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.2+4000_daily_bin375 264.56 40.0099 336528001 336787201 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 :                                   738.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

