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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin603
RA = 264.584, Dec = 32.4823
tmin = 395625601, tmax = 395884801
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='955419', job_status='RUN', time_executed='2021-09-18 01:35:28.240495', time_epoch_executed='1631954128.24' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955419

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955419/ft1_4FGL_J1738.3+3228_daily_bin603.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955419/ft2_4FGL_J1738.3+3228_daily_bin603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955419/ft1_4FGL_J1738.3+3228_daily_bin603.fits outfile=/scratch/kocevski/955419/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin603.fits ra=264.584 dec=32.4823 rad=12.0 tmin=395625601.0 tmax=395884801.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.51
user 4.28
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/955419/ft2_4FGL_J1738.3+3228_daily_bin603.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955419/ft2_4FGL_J1738.3+3228_daily_bin603.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/955419/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin603.fits evtable="EVENTS" outfile="/scratch/kocevski/955419/ft1_filtered_4FGL_J1738.3+3228_daily_bin603.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955419/ft1_filtered_4FGL_J1738.3+3228_daily_bin603.fits" evtable="EVENTS" scfile=/scratch/kocevski/955419/ft2_4FGL_J1738.3+3228_daily_bin603.fits sctable="SC_DATA" outfile=/scratch/kocevski/955419/ltcube_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.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/955419/ft2_4FGL_J1738.3+3228_daily_bin603.fits
.....................!
real 12.26
user 11.81
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955419/ft1_filtered_4FGL_J1738.3+3228_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/955419/ft2_4FGL_J1738.3+3228_daily_bin603.fits sctable="SC_DATA" expcube=/scratch/kocevski/955419/ltcube_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.fits outfile=/scratch/kocevski/955419/expmap_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.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/955419/ltcube_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.fits
.....................!
real 189.52
user 184.87
sys 4.04

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/955419/ft1_filtered_4FGL_J1738.3+3228_daily_bin603.fits scfile=/scratch/kocevski/955419/ft2_4FGL_J1738.3+3228_daily_bin603.fits outfile=/scratch/kocevski/955419/cmap_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.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.584 yref=32.4823 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.61
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955419/ft1_filtered_4FGL_J1738.3+3228_daily_bin603.fits scfile=/scratch/kocevski/955419/ft2_4FGL_J1738.3+3228_daily_bin603.fits outfile=/scratch/kocevski/955419/cmap_HighResolution_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.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.584 yref=32.4823 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.63
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/955419/ft1_filtered_4FGL_J1738.3+3228_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/955419/ft2_4FGL_J1738.3+3228_daily_bin603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/955419/Model_4FGL_J1738.3+3228_daily_bin603.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/955419/ft1_filtered_4FGL_J1738.3+3228_daily_bin603.fits.....................!
real 58.84
user 57.48
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/955419/ft1_filtered_4FGL_J1738.3+3228_daily_bin603.fits', '/scratch/kocevski/955419/ft2_4FGL_J1738.3+3228_daily_bin603.fits', expMap='/scratch/kocevski/955419/expmap_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.fits', expCube='/scratch/kocevski/955419/ltcube_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/955419/Model_4FGL_J1738.3+3228_daily_bin603.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/955419/ft1_filtered_4FGL_J1738.3+3228_daily_bin603.fits
Spacecraft file(s): /scratch/kocevski/955419/ft2_4FGL_J1738.3+3228_daily_bin603.fits
Exposure map: /scratch/kocevski/955419/expmap_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.fits
Exposure cube: /scratch/kocevski/955419/ltcube_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/955419/Model_4FGL_J1738.3+3228_daily_bin603.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) = 7362.03634083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8249       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1464       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49152       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1566       1.0000         .10000E-03   10000.    
     6 'norm      '    .26979E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60397E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6732       1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.497       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8997       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1593       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.905       1.0000         .10000E-03   10000.    
    21 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95488       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93797       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+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=   7362.024     FROM MIGRAD    STATUS=CONVERGED    893 CALLS     2930 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8248        2.2184        .76722E-04    .48751E-04
   2  Prefactor     .10000E-03    17.054        .18142E-02** at limit **
   3  norm          2.1494        7.9960        .28128E-03    .85685E-04
   4  Prefactor     .48816        58.152        .16695        .30378E-03
   5  norm          3.1574        3.8915        .17783E-03    .39093E-03
   6  norm          .10000E-03    50.618        .21434E-02** at limit **
   7  Prefactor     .10000E-03    19.107        .18142E-02** at limit **
   8  Prefactor     .10001E-03    171.10        .21061E-02** at limit **
   9  Prefactor     6.6900        11.327        .15534E-03    .85191E-04
  10  Prefactor     52.714        65.713        .55232E-04    .21489E-04
  11  Prefactor     8.0591        8.2032        .14118E-03    .55161E-04
  12  Prefactor     24.595        69.304        .80933E-04   -.62369E-04
  13  Prefactor     1.4681        6576.4        .30176E-02   -.11385E-04
  14  Prefactor     .10000E-03    7.0147        .18142E-02** at limit **
  15  norm          .10000E-03    1.2604        .18427E-03** at limit **
  16  norm          .10000E-03    28.537        .18142E-02** at limit **
  17  Prefactor     .10000E-03    2.3147        .12670E-02** at limit **
  18  norm          5.1569        6.1713        .17699E-03   -.15545E-04
  19  Prefactor     .10000E-03    1.4451        .10043E-02** at limit **
  20  Prefactor     21.902        19.797        .85581E-04   -.23513E-04
  21  norm          .10000E-03    7.7591        .18142E-02** at limit **
  22  Normalizat    .95507        .23354        .32336E-03    .32395E-03
  23  Prefactor     .93792        .11962        .17024E-03    .52538E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.82476
  Prefactor  = 0.0001
  norm       = 2.14938
  Prefactor  = 0.48816
  norm       = 3.15735
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 6.69004
  Prefactor  = 52.7144
  Prefactor  = 8.05908
  Prefactor  = 24.5947
  Prefactor  = 1.46811
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.15694
  Prefactor  = 0.0001
  Prefactor  = 21.9016
  norm       = 0.0001
  Normalizat = 0.955071
  Prefactor  = 0.937921
 **********
 **   18 **HESSE 
 **********

 FCN=   7362.024     FROM HESSE     STATUS=OK           358 CALLS     3288 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8248        2.2185        .30689E-05   -1.5225    
   2  Prefactor     .10000E-03    17.055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1494        7.9940        .11251E-04   -1.5415    
   4  Prefactor     .48816        59.897        .16393       -1.5568    
   5  norm          3.1574        3.8917        .71133E-05   -1.5353    
   6  norm          .10000E-03    50.618        .42868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    171.13        .42121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6900        11.325        .62134E-05   -1.5191    
  10  Prefactor     52.714        65.104        .11046E-04   -1.4255    
  11  Prefactor     8.0591        8.2033        .56471E-05   -1.5140    
  12  Prefactor     24.595        61.793        .32373E-05   -1.4716    
  13  Prefactor     1.4681        6253.0        .12071E-03   -1.5466    
  14  Prefactor     .10000E-03    7.0191        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2605        .36853E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    28.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3152        .25340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1569        6.1708        .70796E-05   -1.5254    
  19  Prefactor     .10000E-03    1.4452        .20086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.902        19.791        .34232E-05   -1.4772    
  21  norm          .10000E-03    7.7592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .95507        .23364        .12934E-04   -.94551    
  23  Prefactor     .93792        .11966        .34049E-04   -.94828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18254e-09
Minuit parameter uncertainties:
  1  2.21849
  2  5.67893e-06
  3  7.998
  4  10.8246
  5  3.89197
  6  0.000190441
  7  3.11501e-06
  8  0.00187106
  9  11.3286
  10  65.1921
  11  8.20446
  12  61.9545
  13  130.016
  14  7.91589e-05
  15  6.14835e-06
  16  1.25934e-05
  17  2.97464e-06
  18  6.1716
  19  8.61377e-07
  20  19.7973
  21  5.45684e-07
  22  0.233887
  23  0.119693
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.871e-03  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  9.379e-01  1.197e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  9.551e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/955419/likelihoodResults_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.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) = 7362.02358595
delta logL = -2.77079507214e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7362.02358595
delta logL = -2.77072986137e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4541       1.0000          .0000       10.000    
     3 'Normalizat'    .95507       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93792       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7362.024     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      187 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    193.92        .90712E-02** at limit **
   2  Index         2.5038        6.2519        .23700       -.26746E-05
   3  Normalizat    .95507        .19060        .73080E-01    .84111E-05
   4  Prefactor     .93792        .10016        .45487E-01   -.11550E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.5038
  Normalizat = 0.95507
  Prefactor  = 0.937921
 **********
 **   18 **HESSE 
 **********

 FCN=   7362.024     FROM HESSE     STATUS=OK            27 CALLS      214 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    177.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5038        6.2491        .94801E-02   -.52272    
   3  Normalizat    .95507        .22368        .32336E-03   -.94551    
   4  Prefactor     .93792        .11774        .17024E-03   -.94828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46435e-11
Minuit parameter uncertainties:
  1  0.00098552
  2  4.33468
  3  0.223897
  4  0.117772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955419': 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) = 7362.02355821
delta logL = 3.01406544168e-08

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  9.855e-04  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.504e+00  4.335e+00  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  9.379e-01  1.178e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  9.551e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.584 32.482

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/955419/cmap_HighResolution_395625601_395884801_4FGL_J1738.3+3228_daily_bin603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.90e-03', job_status='DONE', photon_flux_upper_limit='8.90e-08', time_completed='2021-09-18 01:49:29.255633', job_id='955419', GAL2='0.94', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631954969.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='603' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:49:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 955419: <4FGL_J1738.3+3228_daily_bin603> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin603> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 18 01:35:13 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:35:15 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:35:15 2021
Terminated at Sat Sep 18 01:49:29 2021
Results reported at Sat Sep 18 01:49:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin603 264.584 32.4823 395625601 395884801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1738.3+3228 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   838.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

