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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1315
RA = 264.584, Dec = 32.4823
tmin = 580176001, tmax = 580435201
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='957410', job_status='RUN', time_executed='2021-09-18 01:41:04.592639', time_epoch_executed='1631954464.59' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957410

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957410/ft1_4FGL_J1738.3+3228_daily_bin1315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957410/ft2_4FGL_J1738.3+3228_daily_bin1315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957410/ft1_4FGL_J1738.3+3228_daily_bin1315.fits outfile=/scratch/kocevski/957410/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1315.fits ra=264.584 dec=32.4823 rad=12.0 tmin=580176001.0 tmax=580435201.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.90
user 4.36
sys 0.26

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957410/ft1_filtered_4FGL_J1738.3+3228_daily_bin1315.fits" evtable="EVENTS" scfile=/scratch/kocevski/957410/ft2_4FGL_J1738.3+3228_daily_bin1315.fits sctable="SC_DATA" outfile=/scratch/kocevski/957410/ltcube_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.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/957410/ft2_4FGL_J1738.3+3228_daily_bin1315.fits
.....................!
real 11.78
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957410/ft1_filtered_4FGL_J1738.3+3228_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/957410/ft2_4FGL_J1738.3+3228_daily_bin1315.fits sctable="SC_DATA" expcube=/scratch/kocevski/957410/ltcube_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.fits outfile=/scratch/kocevski/957410/expmap_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.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/957410/ltcube_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.fits
.....................!
real 190.73
user 185.63
sys 4.75

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/957410/ft1_filtered_4FGL_J1738.3+3228_daily_bin1315.fits scfile=/scratch/kocevski/957410/ft2_4FGL_J1738.3+3228_daily_bin1315.fits outfile=/scratch/kocevski/957410/cmap_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957410/ft1_filtered_4FGL_J1738.3+3228_daily_bin1315.fits scfile=/scratch/kocevski/957410/ft2_4FGL_J1738.3+3228_daily_bin1315.fits outfile=/scratch/kocevski/957410/cmap_HighResolution_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.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.53
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/957410/ft1_filtered_4FGL_J1738.3+3228_daily_bin1315.fits', '/scratch/kocevski/957410/ft2_4FGL_J1738.3+3228_daily_bin1315.fits', expMap='/scratch/kocevski/957410/expmap_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.fits', expCube='/scratch/kocevski/957410/ltcube_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/957410/Model_4FGL_J1738.3+3228_daily_bin1315.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/957410/ft1_filtered_4FGL_J1738.3+3228_daily_bin1315.fits
Spacecraft file(s): /scratch/kocevski/957410/ft2_4FGL_J1738.3+3228_daily_bin1315.fits
Exposure map: /scratch/kocevski/957410/expmap_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.fits
Exposure cube: /scratch/kocevski/957410/ltcube_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/957410/Model_4FGL_J1738.3+3228_daily_bin1315.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) = 8054.10260672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6114       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.9020       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    71.924       1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.437       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44730E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    131.81       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .22992       1.0000         .10000E-03   10000.    
    16 'norm      '    68.958       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.116       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    37.103       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1975       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82509       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.

 FCN=   8054.092     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2472 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6108        2.1920       -.14567E-06   -.33445E-04
   2  Prefactor     .10000E-03    26.627        .19104E-06** at limit **
   3  norm          .10000E-03    5.9386       -.30971E-06** at limit **
   4  Prefactor     .10000E-03    19.530       -.24847E-07** at limit **
   5  norm          2.9004        4.4802        .11098E-06    .27640E-04
   6  norm          .10000E-03    34.198        .57297E-07** at limit **
   7  Prefactor     71.877        69.012       -.67572E-06   -.78685E-04
   8  Prefactor     46.405        71.240       -.10704E-05   -.53228E-04
   9  Prefactor     .10000E-03    19.928       -.46375E-06** at limit **
  10  Prefactor     .10000E-03    19.570       -.17623E-06** at limit **
  11  Prefactor     .10000E-03    25.148       -.52280E-06** at limit **
  12  Prefactor     .10000E-03    55.438       -.43446E-05** at limit **
  13  Prefactor     131.77        77.818       -.76980E-06   -.79226E-04
  14  Prefactor     .10000E-03    3.0248       -.11690E-07** at limit **
  15  norm          .22946        1.8707        .23457E-05    .54290E-04
  16  norm          68.970        59.738       -.72156E-06   -.86349E-05
  17  Prefactor     .10000E-03    4.5791        .25167E-06** at limit **
  18  norm          .10000E-03    3.3829       -.33045E-07** at limit **
  19  Prefactor     13.116        5.5512       -.68508E-07   -.11094E-03
  20  Prefactor     .10000E-03    24.544       -.10451E-06** at limit **
  21  norm          37.109        30.291        .22140E-06    .25099E-04
  22  Normalizat    1.1984        .21405        .20342E-05   -.13808E-03
  23  Prefactor     .82468        .10478       -.12981E-05    .67111E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.61078
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.9004
  norm       = 0.0001
  Prefactor  = 71.8767
  Prefactor  = 46.4054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 131.775
  Prefactor  = 0.0001
  norm       = 0.229459
  norm       = 68.97
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.116
  Prefactor  = 0.0001
  norm       = 37.1095
  Normalizat = 1.19836
  Prefactor  = 0.82468
 **********
 **   18 **HESSE 
 **********

 FCN=   8054.092     FROM HESSE     STATUS=OK           360 CALLS     2832 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6108        2.1920        .40379E-03   -1.5234    
   2  Prefactor     .10000E-03    26.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.9848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9004        4.4488        .22030E-03   -1.5367    
   6  norm          .10000E-03    34.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     71.877        69.032        .47337E-04   -1.4010    
   8  Prefactor     46.405        71.355        .58839E-04   -1.4344    
   9  Prefactor     .10000E-03    20.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    55.802        .21211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     131.77        77.716        .17536E-03   -1.3407    
  14  Prefactor     .10000E-03    3.0317        .15242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .22946        1.9133        .23802E-03   -1.5612    
  16  norm          68.970        59.758        .48337E-04   -1.4045    
  17  Prefactor     .10000E-03    4.7017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3972        .16120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.116        5.5521        .11060E-03   -1.4983    
  20  Prefactor     .10000E-03    25.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          37.109        30.337        .65797E-04   -1.4489    
  22  Normalizat    1.1984        .24612        .31869E-03   -.86654    
  23  Prefactor     .82468        .12045        .18567E-03   -.98825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46546e-10
Minuit parameter uncertainties:
  1  2.19202
  2  9.86574e-06
  3  1.8435e-06
  4  8.00428e-06
  5  4.44935
  6  2.4913e-05
  7  69.1091
  8  71.4864
  9  6.18523e-05
  10  8.91647e-06
  11  8.29896e-06
  12  0.000141251
  13  77.7761
  14  1.58018e-06
  15  1.32494
  16  59.8103
  17  8.04494e-07
  18  1.20907e-06
  19  5.55229
  20  4.7302e-06
  21  30.3499
  22  0.246358
  23  0.120491
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  4.641e+01  7.149e+01  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:  8.247e-01  1.205e-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:  1.198e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/957410/likelihoodResults_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.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) = 8054.07947767
delta logL = 0.0121753208878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8054.07199625
delta logL = 0.0196567416469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.947       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2749       1.0000          .0000       10.000    
     3 'Normalizat'    1.2009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82376       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=   8054.072     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      262 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.919        104.60        .52701E-04    .29584E-03
   2  Index         2.2753        .91061        .10212E-01    .26386E-03
   3  Normalizat    1.2009        .23995        .31838E-03   -.79996E-03
   4  Prefactor     .82381        .11877        .18576E-03   -.14104E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.9193
  Index      = 2.27534
  Normalizat = 1.20085
  Prefactor  = 0.823813
 **********
 **   18 **HESSE 
 **********

 FCN=   8054.072     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.919        100.05        .10540E-04   -1.4184    
   2  Index         2.2753        .87157        .40850E-03   -.57631    
   3  Normalizat    1.2009        .24010        .63677E-04   -.86576    
   4  Prefactor     .82381        .11885        .37151E-04   -.98856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63412e-09
Minuit parameter uncertainties:
  1  100.347
  2  0.877974
  3  0.240325
  4  0.118886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957410': 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) = 8054.07199597
delta logL = 0.0196570170756

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  5.792e+01  1.003e+02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.275e+00  8.780e-01  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:  8.238e-01  1.189e-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:  1.201e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
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/957410/cmap_HighResolution_580176001_580435201_4FGL_J1738.3+3228_daily_bin1315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', job_status='DONE', photon_flux_upper_limit='9.44e-08', time_completed='2021-09-18 01:55:03.377869', job_id='957410', GAL2='0.82', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631955303.38', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.97e-02', ts2='0.62', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1315' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:55:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 957410: <4FGL_J1738.3+3228_daily_bin1315> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin1315> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 18 01:40:50 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:40:52 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:40:52 2021
Terminated at Sat Sep 18 01:55:04 2021
Results reported at Sat Sep 18 01:55:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1315 264.584 32.4823 580176001 580435201 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 :                                   821.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            854 sec.

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

