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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin271
RA = 264.584, Dec = 32.4823
tmin = 309571201, tmax = 309830401
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='951663', job_status='RUN', time_executed='2021-09-18 01:20:39.752926', time_epoch_executed='1631953239.75' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951663/ft1_4FGL_J1738.3+3228_daily_bin271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951663/ft2_4FGL_J1738.3+3228_daily_bin271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951663/ft1_4FGL_J1738.3+3228_daily_bin271.fits outfile=/scratch/kocevski/951663/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin271.fits ra=264.584 dec=32.4823 rad=12.0 tmin=309571201.0 tmax=309830401.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 6.22
user 5.93
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/951663/ft1_filtered_4FGL_J1738.3+3228_daily_bin271.fits" evtable="EVENTS" scfile=/scratch/kocevski/951663/ft2_4FGL_J1738.3+3228_daily_bin271.fits sctable="SC_DATA" outfile=/scratch/kocevski/951663/ltcube_309571201_309830401_4FGL_J1738.3+3228_daily_bin271.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/951663/ft2_4FGL_J1738.3+3228_daily_bin271.fits
.....................!
real 11.67
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951663/ft1_filtered_4FGL_J1738.3+3228_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/951663/ft2_4FGL_J1738.3+3228_daily_bin271.fits sctable="SC_DATA" expcube=/scratch/kocevski/951663/ltcube_309571201_309830401_4FGL_J1738.3+3228_daily_bin271.fits outfile=/scratch/kocevski/951663/expmap_309571201_309830401_4FGL_J1738.3+3228_daily_bin271.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/951663/ltcube_309571201_309830401_4FGL_J1738.3+3228_daily_bin271.fits
.....................!
real 190.27
user 185.10
sys 4.85

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/951663/ft1_filtered_4FGL_J1738.3+3228_daily_bin271.fits scfile=/scratch/kocevski/951663/ft2_4FGL_J1738.3+3228_daily_bin271.fits outfile=/scratch/kocevski/951663/cmap_309571201_309830401_4FGL_J1738.3+3228_daily_bin271.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951663/ft1_filtered_4FGL_J1738.3+3228_daily_bin271.fits scfile=/scratch/kocevski/951663/ft2_4FGL_J1738.3+3228_daily_bin271.fits outfile=/scratch/kocevski/951663/cmap_HighResolution_309571201_309830401_4FGL_J1738.3+3228_daily_bin271.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4279       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.635       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5491       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.3428       1.0000         .10000E-03   10000.    
     6 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.713       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2652       1.0000         .10000E-03   10000.    
    16 'norm      '    .17841E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .24945       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6915       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4898       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85660       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=   8540.325     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2503 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4280        1.6576       -.33158E-08   -.10210E-04
   2  Prefactor     24.552        60.528       -.13272E-05   -.92961E-04
   3  norm          1.5496        13.408        .14396E-05   -.53115E-04
   4  Prefactor     .10000E-03    11.711       -.10247E-06** at limit **
   5  norm          6.3426        5.9049        .24739E-05   -.23797E-03
   6  norm          .10000E-03    144.26       -.43895E-06** at limit **
   7  Prefactor     31.725        72.546       -.71790E-05   -.30645E-06
   8  Prefactor     .10000E-03    53.626        .73977E-08** at limit **
   9  Prefactor     .10000E-03    13.840        .34699E-06** at limit **
  10  Prefactor     .10000E-03    22.063        .11357E-06** at limit **
  11  Prefactor     .10000E-03    10.799        .39909E-06** at limit **
  12  Prefactor     .10000E-03    14.242        .61450E-07** at limit **
  13  Prefactor     .10000E-03    31.576        .16084E-06** at limit **
  14  Prefactor     .10000E-03    2.8408        .86921E-07** at limit **
  15  norm          5.2641        2.3621        .59079E-07   -.50725E-04
  16  norm          .10000E-03    113.88        .14655E-05** at limit **
  17  Prefactor     .10000E-03    1.8757        .89411E-07** at limit **
  18  norm          .26007        3.8898        .20332E-06   -.11260E-03
  19  Prefactor     3.6914        4.3539        .23056E-06   -.34064E-04
  20  Prefactor     .10000E-03    11.931        .12168E-06** at limit **
  21  norm          .10000E-03    12.468        .14452E-06** at limit **
  22  Normalizat    1.4897        .20741       -.10291E-07   -.60276E-04
  23  Prefactor     .85659        .10133       -.27699E-06   -.43550E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42796
  Prefactor  = 24.5519
  norm       = 1.54956
  Prefactor  = 0.0001
  norm       = 6.34256
  norm       = 0.000100001
  Prefactor  = 31.7248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.26412
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.260072
  Prefactor  = 3.69137
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.48969
  Prefactor  = 0.856589
 **********
 **   18 **HESSE 
 **********

 FCN=   8540.325     FROM HESSE     STATUS=OK           366 CALLS     2869 TOTAL
                     EDM=   .67E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4280        1.6576        .95757E-04   -1.5396    
   2  Prefactor     24.552        60.460        .80707E-04   -1.4717    
   3  norm          1.5496        13.224        .34226E-03   -1.5459    
   4  Prefactor     .10000E-03    11.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3426        5.9026        .79688E-03   -1.5204    
   6  norm          .10000E-03    144.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.725        72.640        .71151E-04   -1.4581    
   8  Prefactor     .10000E-03    53.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8464        .15211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2641        2.3616        .46185E-03   -1.5249    
  16  norm          .10000E-03    114.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8808        .12359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .26007        17.554        .35356E-02   -1.5606    
  19  Prefactor     3.6914        4.3448        .20130E-03   -1.5324    
  20  Prefactor     .10000E-03    11.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    12.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4897        .24495        .30723E-03   -.78068    
  23  Prefactor     .85659        .11982        .19389E-03   -.97675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74756e-08
Minuit parameter uncertainties:
  1  1.65764
  2  60.6111
  3  9.05595
  4  3.71762e-05
  5  5.9031
  6  0.000652551
  7  72.8436
  8  0.000106291
  9  1.2612e-06
  10  2.40489e-06
  11  7.24067e-06
  12  2.17777e-05
  13  2.09302e-05
  14  4.22033e-07
  15  2.36165
  16  0.000734938
  17  4.98137e-07
  18  4.27384
  19  4.34513
  20  8.36644e-06
  21  3.34191e-05
  22  0.245145
  23  0.119861
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  1.063e-04  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.566e-01  1.199e-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.490e+00  2.451e-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: 7.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/951663/likelihoodResults_309571201_309830401_4FGL_J1738.3+3228_daily_bin271.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) = 8540.32514956
delta logL = -8.87153473741e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8540.29951362
delta logL = 0.0255472242934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9873       1.0000          .0000       10.000    
     3 'Normalizat'    1.4709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86242       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=   8540.325     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      447 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2051.5        .18142E-01** at limit **
   2  Index         2.0961        7.7213        .10287       -.23209E-07
   3  Normalizat    1.4897        .35228E-01    .30723E-03   -.11257E-03
   4  Prefactor     .85659        .17543E-01    .19389E-03   -.86898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09615
  Normalizat = 1.48969
  Prefactor  = 0.856589
 **********
 **   18 **HESSE 
 **********

 FCN=   8540.325     FROM HESSE     STATUS=OK            27 CALLS      474 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    367.66        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0961        5.6609        .41146E-01   -.61967    
   3  Normalizat    1.4897        .23684        .12289E-04   -.78068    
   4  Prefactor     .85659        .11800        .77555E-05   -.97675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37953e-10
Minuit parameter uncertainties:
  1  0.000665136
  2  2789.22
  3  0.237017
  4  0.118035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951663': 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) = 8540.3250608
delta logL = 4.5250999392e-08

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  6.651e-04  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.096e+00  2.789e+03  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.566e-01  1.180e-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.490e+00  2.370e-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/951663/cmap_HighResolution_309571201_309830401_4FGL_J1738.3+3228_daily_bin271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.92e-03', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2021-09-18 01:35:42.243292', job_id='951663', GAL2='0.86', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1631954142.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='4.53e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='271' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:35:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 951663: <4FGL_J1738.3+3228_daily_bin271> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin271 264.584 32.4823 309571201 309830401 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 :                                   899.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            919 sec.

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

