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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin799
RA = 264.584, Dec = 32.4823
tmin = 446428801, tmax = 446688001
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='955576', job_status='RUN', time_executed='2021-09-18 01:35:44.419618', time_epoch_executed='1631954144.42' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='799'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955576

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955576/ft1_4FGL_J1738.3+3228_daily_bin799.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955576/ft2_4FGL_J1738.3+3228_daily_bin799.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955576/ft1_4FGL_J1738.3+3228_daily_bin799.fits outfile=/scratch/kocevski/955576/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin799.fits ra=264.584 dec=32.4823 rad=12.0 tmin=446428801.0 tmax=446688001.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.56
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955576/ft1_filtered_4FGL_J1738.3+3228_daily_bin799.fits" evtable="EVENTS" scfile=/scratch/kocevski/955576/ft2_4FGL_J1738.3+3228_daily_bin799.fits sctable="SC_DATA" outfile=/scratch/kocevski/955576/ltcube_446428801_446688001_4FGL_J1738.3+3228_daily_bin799.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/955576/ft2_4FGL_J1738.3+3228_daily_bin799.fits
.....................!
real 12.01
user 11.61
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955576/ft1_filtered_4FGL_J1738.3+3228_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/955576/ft2_4FGL_J1738.3+3228_daily_bin799.fits sctable="SC_DATA" expcube=/scratch/kocevski/955576/ltcube_446428801_446688001_4FGL_J1738.3+3228_daily_bin799.fits outfile=/scratch/kocevski/955576/expmap_446428801_446688001_4FGL_J1738.3+3228_daily_bin799.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/955576/ltcube_446428801_446688001_4FGL_J1738.3+3228_daily_bin799.fits
.....................!
real 190.40
user 184.81
sys 5.24

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/955576/ft1_filtered_4FGL_J1738.3+3228_daily_bin799.fits scfile=/scratch/kocevski/955576/ft2_4FGL_J1738.3+3228_daily_bin799.fits outfile=/scratch/kocevski/955576/cmap_446428801_446688001_4FGL_J1738.3+3228_daily_bin799.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955576/ft1_filtered_4FGL_J1738.3+3228_daily_bin799.fits scfile=/scratch/kocevski/955576/ft2_4FGL_J1738.3+3228_daily_bin799.fits outfile=/scratch/kocevski/955576/cmap_HighResolution_446428801_446688001_4FGL_J1738.3+3228_daily_bin799.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9858       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1679       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.175       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    88.450       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.308       1.0000         .10000E-03   10000.    
    15 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.0430       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8799       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8582       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11549E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    36.305       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .68751       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0157       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=   7835.490     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2218 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9859        1.8053       -.55140E-07   -.91468E-04
   2  Prefactor     .10000E-03    61.617       -.58352E-05** at limit **
   3  norm          .10000E-03    2.8726       -.35286E-08** at limit **
   4  Prefactor     .10000E-03    22.757        .73035E-07** at limit **
   5  norm          4.1684        3.7710        .12856E-06    .47242E-03
   6  norm          .10000E-03    63.918        .16728E-05** at limit **
   7  Prefactor     .10000E-03    107.13        .29932E-05** at limit **
   8  Prefactor     .10000E-03    31.287        .17433E-06** at limit **
   9  Prefactor     .10000E-03    6.3315        .17346E-06** at limit **
  10  Prefactor     38.172        39.223       -.19919E-05   -.43923E-05
  11  Prefactor     .10000E-03    6.1360       -.14101E-06** at limit **
  12  Prefactor     .10000E-03    14.739        .32199E-06** at limit **
  13  Prefactor     88.444        54.796       -.36603E-05   -.22177E-04
  14  Prefactor     14.307        9.9309       -.27130E-06   -.59861E-04
  15  norm          .10000E-03    .85053        .34496E-06** at limit **
  16  norm          6.0104        89.881       -.69097E-04   -.13765E-04
  17  Prefactor     3.8795        5.4159        .24659E-05   -.43446E-03
  18  norm          .10000E-03    2.9240       -.28775E-07** at limit **
  19  Prefactor     2.8576        3.0589       -.18713E-06   -.38739E-03
  20  Prefactor     .10027E-03    13.141        .11823E-05** at limit **
  21  norm          36.304        26.083       -.27282E-06   -.23466E-05
  22  Normalizat    .68735        .18581        .61959E-06   -.61820E-04
  23  Prefactor     1.0158        .99556E-01    .77199E-06   -.30078E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9859
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.16836
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.4437
  Prefactor  = 14.3071
  norm       = 0.0001
  norm       = 6.01037
  Prefactor  = 3.87949
  norm       = 0.0001
  Prefactor  = 2.85763
  Prefactor  = 0.000100273
  norm       = 36.3036
  Normalizat = 0.687355
  Prefactor  = 1.01583
 **********
 **   18 **HESSE 
 **********

 FCN=   7835.490     FROM HESSE     STATUS=OK           368 CALLS     2586 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9859        1.8025        .89990E-04   -1.5362    
   2  Prefactor     .10000E-03    61.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8834        .14650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1684        3.7760        .78992E-03   -1.5300    
   6  norm          .10000E-03    63.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    107.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.3649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.172        39.215        .64869E-04   -1.4472    
  11  Prefactor     .10000E-03    6.1888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     88.444        54.754        .21361E-03   -1.3824    
  14  Prefactor     14.307        9.9543        .10589E-03   -1.4951    
  15  norm          .10000E-03    1.6352        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.0104        90.428        .16333E-03   -1.5218    
  17  Prefactor     3.8795        5.3663        .20485E-03   -1.5314    
  18  norm          .10000E-03    2.9282        .14780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8576        3.0204        .15345E-03   -1.5370    
  20  Prefactor     .10027E-03    98.250        .60486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          36.304        26.101        .66514E-04   -1.4502    
  22  Normalizat    .68735        .21259        .36247E-03   -1.0439    
  23  Prefactor     1.0158        .11464        .16066E-03   -.92204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05802e-09
Minuit parameter uncertainties:
  1  1.8025
  2  7.48478e-05
  3  3.08341e-06
  4  4.10203e-06
  5  3.77619
  6  1.57909e-05
  7  0.000136853
  8  2.40702e-05
  9  6.2196e-05
  10  39.2417
  11  7.56247e-06
  12  4.94069e-05
  13  54.7851
  14  9.95543
  15  4.38966e-05
  16  46.7108
  17  5.36693
  18  2.26568e-06
  19  3.02056
  20  0.0103664
  21  26.1089
  22  0.21284
  23  0.114665
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  2.407e-05  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:  1.016e+00  1.147e-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:  6.874e-01  2.128e-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: 5.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/955576/likelihoodResults_446428801_446688001_4FGL_J1738.3+3228_daily_bin799.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) = 7835.48978606
delta logL = -0.000152158154378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7835.48963441
delta logL = -5.16190993949e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11292E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4264       1.0000          .0000       10.000    
     3 'Normalizat'    .68743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0158       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=   7835.490     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      251 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10205E-03    264.28        .18142E-02** at limit **
   2  Index         2.3605        5.2669        .50000        .60720E-05
   3  Normalizat    .68735        .13150E-01    .36247E-03    .28824E-04
   4  Prefactor     1.0158        .70270E-02    .16066E-03    .64125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102047
  Index      = 2.36048
  Normalizat = 0.687354
  Prefactor  = 1.01583
 **********
 **   18 **HESSE 
 **********

 FCN=   7835.490     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10205E-03    1088.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3605        8.7898        .50000       -.55613    
   3  Normalizat    .68735        .27840E-01    .14499E-04   -1.0439    
   4  Prefactor     1.0158        .14877E-01    .32132E-04   -.92204    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.19402e-09
Minuit parameter uncertainties:
  1  0.0962133
  2  1005.53
  3  0.0278401
  4  0.0148773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955576': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7835.48963378
delta logL = 1.17220224638e-07

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.020e-04  9.621e-02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.360e+00  1.006e+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:  1.016e+00  1.488e-02  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:  6.874e-01  2.784e-02  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/955576/cmap_HighResolution_446428801_446688001_4FGL_J1738.3+3228_daily_bin799.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-03', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-09-18 01:48:55.992896', job_id='955576', GAL2='1.02', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1631954935.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='799' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:48:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 955576: <4FGL_J1738.3+3228_daily_bin799> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin799 264.584 32.4823 446428801 446688001 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 :                                   788.15 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             327.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

