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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin629
RA = 264.584, Dec = 32.4823
tmin = 402364801, tmax = 402624001
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='954328', job_status='RUN', time_executed='2021-09-18 01:31:00.567937', time_epoch_executed='1631953860.57' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='629'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954328

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954328/ft1_4FGL_J1738.3+3228_daily_bin629.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954328/ft2_4FGL_J1738.3+3228_daily_bin629.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954328/ft1_4FGL_J1738.3+3228_daily_bin629.fits outfile=/scratch/kocevski/954328/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin629.fits ra=264.584 dec=32.4823 rad=12.0 tmin=402364801.0 tmax=402624001.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 3.59
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954328/ft2_4FGL_J1738.3+3228_daily_bin629.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/954328/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin629.fits evtable="EVENTS" outfile="/scratch/kocevski/954328/ft1_filtered_4FGL_J1738.3+3228_daily_bin629.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/954328/ft1_filtered_4FGL_J1738.3+3228_daily_bin629.fits" evtable="EVENTS" scfile=/scratch/kocevski/954328/ft2_4FGL_J1738.3+3228_daily_bin629.fits sctable="SC_DATA" outfile=/scratch/kocevski/954328/ltcube_402364801_402624001_4FGL_J1738.3+3228_daily_bin629.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/954328/ft2_4FGL_J1738.3+3228_daily_bin629.fits
.....................!
real 11.86
user 11.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954328/ft1_filtered_4FGL_J1738.3+3228_daily_bin629.fits evtable="EVENTS" scfile=/scratch/kocevski/954328/ft2_4FGL_J1738.3+3228_daily_bin629.fits sctable="SC_DATA" expcube=/scratch/kocevski/954328/ltcube_402364801_402624001_4FGL_J1738.3+3228_daily_bin629.fits outfile=/scratch/kocevski/954328/expmap_402364801_402624001_4FGL_J1738.3+3228_daily_bin629.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/954328/ltcube_402364801_402624001_4FGL_J1738.3+3228_daily_bin629.fits
.....................!
real 189.73
user 185.44
sys 3.93

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/954328/ft1_filtered_4FGL_J1738.3+3228_daily_bin629.fits scfile=/scratch/kocevski/954328/ft2_4FGL_J1738.3+3228_daily_bin629.fits outfile=/scratch/kocevski/954328/cmap_402364801_402624001_4FGL_J1738.3+3228_daily_bin629.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954328/ft1_filtered_4FGL_J1738.3+3228_daily_bin629.fits scfile=/scratch/kocevski/954328/ft2_4FGL_J1738.3+3228_daily_bin629.fits outfile=/scratch/kocevski/954328/cmap_HighResolution_402364801_402624001_4FGL_J1738.3+3228_daily_bin629.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.421       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.2939       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.432       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65883E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.219       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11372E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.991       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.127       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    70.788       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4606       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .96679       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89799       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99566       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=   8291.772     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     3307 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.421        3.0769        .80452E-04    .14131E-05
   2  Prefactor     .10000E-03    34.416        .18142E-02** at limit **
   3  norm          6.2601        7.5852        .16043E-03    .69448E-05
   4  Prefactor     .10000E-03    21.515        .18142E-02** at limit **
   5  norm          .10000E-03    1.6893        .11534E-02** at limit **
   6  norm          3.4998        279.07        .22308E-03   -.10396E-04
   7  Prefactor     43.433        50.694        .60832E-04    .98677E-06
   8  Prefactor     .10001E-03    100.23        .24053    ** at limit **
   9  Prefactor     22.199        25.088        .84974E-04    .25955E-04
  10  Prefactor     .10000E-03    16.919        .18142E-02** at limit **
  11  Prefactor     .10000E-03    3.2193        .15923E-02** at limit **
  12  Prefactor     .10000E-03    21.368        .18142E-02** at limit **
  13  Prefactor     14.041        60.029        .10708E-03   -.57331E-05
  14  Prefactor     14.129        9.9532        .10656E-03   -.51208E-05
  15  norm          .10000E-03    .84054        .81058E-03** at limit **
  16  norm          70.656        93.882        .47713E-04   -.15154E-04
  17  Prefactor     .10000E-03    4.9103        .36285E-03** at limit **
  18  norm          2.4632        8.6171        .26072E-03   -.44738E-04
  19  Prefactor     .96764        3.9324        .34827E-03   -.98583E-05
  20  Prefactor     .10000E-03    19.597        .18142E-02** at limit **
  21  norm          .10000E-03    33.782        .18142E-02** at limit **
  22  Normalizat    .89804        .23922        .36859E-03   -.29980E-04
  23  Prefactor     .99561        .11884        .17491E-03   -.24596E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.4209
  Prefactor  = 0.0001
  norm       = 6.26006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.49975
  Prefactor  = 43.4334
  Prefactor  = 0.000100014
  Prefactor  = 22.199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0408
  Prefactor  = 14.1291
  norm       = 0.0001
  norm       = 70.6562
  Prefactor  = 0.0001
  norm       = 2.46324
  Prefactor  = 0.967644
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.898043
  Prefactor  = 0.995609
 **********
 **   18 **HESSE 
 **********

 FCN=   8291.772     FROM HESSE     STATUS=OK           356 CALLS     3663 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.421        3.0769        .32181E-05   -1.5032    
   2  Prefactor     .10000E-03    34.419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2601        7.5848        .64171E-05   -1.5208    
   4  Prefactor     .10000E-03    21.516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6893        .23068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.4998        279.15        .89233E-05   -1.5334    
   7  Prefactor     43.433        50.694        .60832E-04   -1.4389    
   8  Prefactor     .10001E-03    100.22        .24053       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.199        25.070        .33990E-05   -1.4765    
  10  Prefactor     .10000E-03    16.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2197        .31846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.368        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.041        60.251        .42833E-05   -1.4958    
  14  Prefactor     14.129        9.9528        .42626E-05   -1.4956    
  15  norm          .10000E-03    .84060        .16212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          70.656        93.835        .95425E-05   -1.4025    
  17  Prefactor     .10000E-03    4.9105        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4632        8.6164        .10429E-04   -1.5394    
  19  Prefactor     .96764        3.9309        .13931E-04   -1.5511    
  20  Prefactor     .10000E-03    19.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    33.787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89804        .23937        .14744E-04   -.96529    
  23  Prefactor     .99561        .11891        .34981E-04   -.92876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75854e-11
Minuit parameter uncertainties:
  1  3.07693
  2  7.58498e-05
  3  7.58594
  4  2.07099e-06
  5  6.94712e-07
  6  62.8173
  7  50.7444
  8  0.00236267
  9  25.0815
  10  2.19071e-06
  11  1.30123e-07
  12  1.26119e-05
  13  58.271
  14  9.95398
  15  1.19207e-06
  16  94.032
  17  1.02454e-05
  18  8.62072
  19  3.90089
  20  0.00013992
  21  6.23061e-05
  22  0.239649
  23  0.118945
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  2.363e-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.956e-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:  8.980e-01  2.396e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/954328/likelihoodResults_402364801_402624001_4FGL_J1738.3+3228_daily_bin629.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) = 8291.7721884
delta logL = -1.34207584779e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8291.7721884
delta logL = -1.34197762236e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4541       1.0000          .0000       10.000    
     3 'Normalizat'    .89804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99561       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8291.760     FROM MIGRAD    STATUS=CONVERGED    178 CALLS      362 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8174        182.57        .18142E-02    .58891E-04
   2  Index         3.1413        3.7416        .38098E-02    .86085E-05
   3  Normalizat    .88859        .23694        .37041E-03   -.17004E-04
   4  Prefactor     .99744        .11545        .17476E-03   -.39214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.81741
  Index      = 3.14129
  Normalizat = 0.88859
  Prefactor  = 0.997442
 **********
 **   18 **HESSE 
 **********

 FCN=   8291.760     FROM HESSE     STATUS=OK            27 CALLS      389 TOTAL
                     EDM=   .63E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8174        122.79        .36285E-03   -1.5226    
   2  Index         3.1413        3.2263        .76196E-03   -.38088    
   3  Normalizat    .88859        .23723        .14816E-04   -.96862    
   4  Prefactor     .99744        .11554        .34952E-04   -.92815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33035e-13
Minuit parameter uncertainties:
  1  53.5777
  2  3.56724
  3  0.237507
  4  0.115569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954328': 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) = 8291.75982427
delta logL = 0.0123627848461

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  5.817e+00  5.358e+01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  3.141e+00  3.567e+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.974e-01  1.156e-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:  8.886e-01  2.375e-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/954328/cmap_HighResolution_402364801_402624001_4FGL_J1738.3+3228_daily_bin629.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.05e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-18 01:46:31.889955', job_id='954328', GAL2='1.00', fit_tolerance='1e-08', EG2='0.89', EG='0.90', time_epoch_completed='1631954791.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.24e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='629' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:46:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 954328: <4FGL_J1738.3+3228_daily_bin629> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin629> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 18 01:30:48 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 01:30:50 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:30:50 2021
Terminated at Sat Sep 18 01:46:32 2021
Results reported at Sat Sep 18 01:46:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin629 264.584 32.4823 402364801 402624001 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 :                                   927.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

