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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin867
RA = 264.584, Dec = 32.4823
tmin = 464054401, tmax = 464313601
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='955674', job_status='RUN', time_executed='2021-09-18 01:35:52.157951', time_epoch_executed='1631954152.16' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='867'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955674

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955674/ft1_4FGL_J1738.3+3228_daily_bin867.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955674/ft2_4FGL_J1738.3+3228_daily_bin867.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955674/ft1_4FGL_J1738.3+3228_daily_bin867.fits outfile=/scratch/kocevski/955674/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin867.fits ra=264.584 dec=32.4823 rad=12.0 tmin=464054401.0 tmax=464313601.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.39
user 3.14
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955674/ft2_4FGL_J1738.3+3228_daily_bin867.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/955674/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin867.fits evtable="EVENTS" outfile="/scratch/kocevski/955674/ft1_filtered_4FGL_J1738.3+3228_daily_bin867.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.48
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955674/ft1_filtered_4FGL_J1738.3+3228_daily_bin867.fits evtable="EVENTS" scfile=/scratch/kocevski/955674/ft2_4FGL_J1738.3+3228_daily_bin867.fits sctable="SC_DATA" expcube=/scratch/kocevski/955674/ltcube_464054401_464313601_4FGL_J1738.3+3228_daily_bin867.fits outfile=/scratch/kocevski/955674/expmap_464054401_464313601_4FGL_J1738.3+3228_daily_bin867.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/955674/ltcube_464054401_464313601_4FGL_J1738.3+3228_daily_bin867.fits
.....................!
real 190.17
user 184.83
sys 4.98

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955674/ft1_filtered_4FGL_J1738.3+3228_daily_bin867.fits scfile=/scratch/kocevski/955674/ft2_4FGL_J1738.3+3228_daily_bin867.fits outfile=/scratch/kocevski/955674/cmap_HighResolution_464054401_464313601_4FGL_J1738.3+3228_daily_bin867.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/955674/ft1_filtered_4FGL_J1738.3+3228_daily_bin867.fits evtable="EVENTS" scfile=/scratch/kocevski/955674/ft2_4FGL_J1738.3+3228_daily_bin867.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/955674/Model_4FGL_J1738.3+3228_daily_bin867.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/955674/ft1_filtered_4FGL_J1738.3+3228_daily_bin867.fits.....................!
real 62.60
user 61.33
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.896       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.135       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9648       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.021       1.0000         .10000E-03   10000.    
     5 'norm      '    .44072E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    62.725       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.705       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8958       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15619E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7757       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3365       1.0000         .10000E-03   10000.    
    15 'norm      '    .97910       1.0000         .10000E-03   10000.    
    16 'norm      '    27.217       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .94971       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61265       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7730.687     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     2267 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.896        2.7488        .88989E-07    .56851E-03
   2  Prefactor     20.137        1.0131       -.10820E-06    .27563E-03
   3  norm          1.9673        7.0310       -.20441E-04   -.52727E-04
   4  Prefactor     17.020        1.0249       -.34163E-06    .26192E-03
   5  norm          .11249E-03    9.5091        .32715E-04** at limit **
   6  norm          .10017E-03    45.420        .17153E-04** at limit **
   7  Prefactor     62.724        1.0525       -.25969E-06    .78644E-03
   8  Prefactor     .10556E-03    117.62       -.27620E-04** at limit **
   9  Prefactor     27.706        1.0174       -.61985E-07    .39515E-03
  10  Prefactor     .10009E-03    27.233        .41085E-04** at limit **
  11  Prefactor     5.8962        5.5880        .17998E-05    .54142E-03
  12  Prefactor     .11428E-03    109.93       -.42040E-04** at limit **
  13  Prefactor     5.7643        1.6648       -.18420E-05    .51356E-03
  14  Prefactor     8.3358        1.1217        .11468E-05    .10309E-02
  15  norm          .97911        .97930       -.12785E-06    .28581E-03
  16  norm          27.214        1.0735       -.24886E-06    .32395E-03
  17  Prefactor     .10000E-03    2.9369        .76448E-06** at limit **
  18  norm          .94948        6.0961       -.47872E-06    .23290E-04
  19  Prefactor     .10000E-03    2.1013       -.85529E-06** at limit **
  20  Prefactor     .10000E-03    10.324        .81793E-06** at limit **
  21  norm          .10013E-03    28.658       -.50487E-04** at limit **
  22  Normalizat    .61251        .20068        .10357E-04    .95642E-03
  23  Prefactor     .96565        .10704       -.28107E-05    .15229E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8956
  Prefactor  = 20.1369
  norm       = 1.96728
  Prefactor  = 17.0195
  norm       = 0.000112494
  norm       = 0.000100166
  Prefactor  = 62.7235
  Prefactor  = 0.000105563
  Prefactor  = 27.7064
  Prefactor  = 0.00010009
  Prefactor  = 5.89618
  Prefactor  = 0.000114285
  Prefactor  = 5.76433
  Prefactor  = 8.33577
  norm       = 0.979113
  norm       = 27.2136
  Prefactor  = 0.0001
  norm       = 0.949476
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100126
  Normalizat = 0.612514
  Prefactor  = 0.965654
 **********
 **   18 **HESSE 
 **********

 FCN=   7730.687     FROM HESSE     STATUS=OK           434 CALLS     2701 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.896        2.7500        .29037E-02   -1.5018    
   2  Prefactor     20.137        26.683        .22315E-02   -1.4810    
   3  norm          1.9673        7.4374        .73970E-02   -1.5427    
   4  Prefactor     17.020        58.014        .24270E-02   -1.4883    
   5  norm          .11249E-03    3.9771        .85080E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10017E-03    46.231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     62.724        72.522        .12667E-02   -1.4122    
   8  Prefactor     .10556E-03    215.16        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.706        15.288        .19028E-02   -1.4655    
  10  Prefactor     .10009E-03    27.658        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8962        5.5899        .41346E-02   -1.5222    
  12  Prefactor     .11428E-03    49.960        .12305       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7643        280.74        .41781E-02   -1.5228    
  14  Prefactor     8.3358        7.2336        .34712E-02   -1.5130    
  15  norm          .97911        .93804        .13092E-01   -1.5510    
  16  norm          27.214        39.539        .19198E-02   -1.4664    
  17  Prefactor     .10000E-03    2.8751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .94948        6.1797        .12987E-01   -1.5513    
  19  Prefactor     .10000E-03    2.0779        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10013E-03    29.628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .61251        .18400        .81774E-01   -1.0746    
  23  Prefactor     .96565        .93859E-01    .45835E-01   -.93883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66368e-07
Minuit parameter uncertainties:
  1  2.75008
  2  26.6988
  3  7.44087
  4  58.2076
  5  0.0140993
  6  0.00553772
  7  72.6248
  8  0.0694464
  9  15.2899
  10  0.00315874
  11  5.5904
  12  0.0534733
  13  80.8599
  14  7.23434
  15  0.938057
  16  39.577
  17  3.54665e-05
  18  4.84503
  19  2.09156e-05
  20  0.000166271
  21  0.00386586
  22  0.184187
  23  0.0938749
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.056e-04  6.945e-02  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.657e-01  9.387e-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.125e-01  1.842e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/955674/likelihoodResults_464054401_464313601_4FGL_J1738.3+3228_daily_bin867.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) = 7730.68671395
delta logL = -2.18777277041e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7730.68671395
delta logL = -2.1876539904e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4541       1.0000          .0000       10.000    
     3 'Normalizat'    .61251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96566       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=   7730.687     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      252 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    705.22        .36285E-03** at limit **
   2  Index         2.5803        6.2888        .50000       -.64998E-05
   3  Normalizat    .61251        .19584        .36214E-03    .69285E-04
   4  Prefactor     .96566        .10567        .15670E-03    .19183E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100055
  Index      = 2.58034
  Normalizat = 0.612508
  Prefactor  = 0.965656
 **********
 **   18 **HESSE 
 **********

 FCN=   7730.687     FROM HESSE     STATUS=OK            29 CALLS      281 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    589.32        .72570E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5803        6.2852        .50000       -.50514    
   3  Normalizat    .61251        .19593        .14485E-04   -1.0746    
   4  Prefactor     .96566        .10572        .31341E-04   -.93883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14921e-10
Minuit parameter uncertainties:
  1  0.0114583
  2  4.38768
  3  0.19615
  4  0.105741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955674': 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) = 7730.68669189
delta logL = 1.7948968889e-07

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.001e-04  1.146e-02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.580e+00  4.388e+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.657e-01  1.057e-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.125e-01  1.962e-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/955674/cmap_HighResolution_464054401_464313601_4FGL_J1738.3+3228_daily_bin867.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-09-18 01:49:32.537456', job_id='955674', GAL2='0.97', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1631954972.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='867' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 01:49:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 955674: <4FGL_J1738.3+3228_daily_bin867> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin867 264.584 32.4823 464054401 464313601 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 :                                   805.10 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

