/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 191 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1734.3+3858_daily_bin73
RA = 263.598, Dec = 38.9763
tmin = 258249601, tmax = 258508801
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='903933', job_status='RUN', time_executed='2021-09-17 22:43:46.438120', time_epoch_executed='1631943826.44' WHERE source_name='4FGL J1734.3+3858' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/903933

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/903933/ft1_4FGL_J1734.3+3858_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/903933/ft2_4FGL_J1734.3+3858_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/903933/ft1_4FGL_J1734.3+3858_daily_bin73.fits outfile=/scratch/kocevski/903933/ft1_filteredMKT_4FGL_J1734.3+3858_daily_bin73.fits ra=263.598 dec=38.9763 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.19
user 0.97
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/903933/ft2_4FGL_J1734.3+3858_daily_bin73.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/903933/ft2_4FGL_J1734.3+3858_daily_bin73.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/903933/ft1_filteredMKT_4FGL_J1734.3+3858_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/903933/ft1_filtered_4FGL_J1734.3+3858_daily_bin73.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/903933/ft1_filtered_4FGL_J1734.3+3858_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/903933/ft2_4FGL_J1734.3+3858_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/903933/ltcube_258249601_258508801_4FGL_J1734.3+3858_daily_bin73.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/903933/ft2_4FGL_J1734.3+3858_daily_bin73.fits
.....................!
real 10.14
user 9.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/903933/ft1_filtered_4FGL_J1734.3+3858_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/903933/ft2_4FGL_J1734.3+3858_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/903933/ltcube_258249601_258508801_4FGL_J1734.3+3858_daily_bin73.fits outfile=/scratch/kocevski/903933/expmap_258249601_258508801_4FGL_J1734.3+3858_daily_bin73.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/903933/ltcube_258249601_258508801_4FGL_J1734.3+3858_daily_bin73.fits
.....................!
real 190.81
user 185.58
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 209 point sources and 0 extended sources

Setting source of interest to:
4FGL J1734.3+3858 @ 263.598 38.9763

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/903933/ft1_filtered_4FGL_J1734.3+3858_daily_bin73.fits scfile=/scratch/kocevski/903933/ft2_4FGL_J1734.3+3858_daily_bin73.fits outfile=/scratch/kocevski/903933/cmap_258249601_258508801_4FGL_J1734.3+3858_daily_bin73.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=263.598 yref=38.9763 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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/903933/ft1_filtered_4FGL_J1734.3+3858_daily_bin73.fits scfile=/scratch/kocevski/903933/ft2_4FGL_J1734.3+3858_daily_bin73.fits outfile=/scratch/kocevski/903933/cmap_HighResolution_258249601_258508801_4FGL_J1734.3+3858_daily_bin73.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=263.598 yref=38.9763 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.55
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/903933/ft1_filtered_4FGL_J1734.3+3858_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/903933/ft2_4FGL_J1734.3+3858_daily_bin73.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/903933/Model_4FGL_J1734.3+3858_daily_bin73.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/903933/ft1_filtered_4FGL_J1734.3+3858_daily_bin73.fits.....................!
real 51.81
user 50.39
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/903933/ft1_filtered_4FGL_J1734.3+3858_daily_bin73.fits', '/scratch/kocevski/903933/ft2_4FGL_J1734.3+3858_daily_bin73.fits', expMap='/scratch/kocevski/903933/expmap_258249601_258508801_4FGL_J1734.3+3858_daily_bin73.fits', expCube='/scratch/kocevski/903933/ltcube_258249601_258508801_4FGL_J1734.3+3858_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/903933/Model_4FGL_J1734.3+3858_daily_bin73.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1734.3+3858'

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  8.023e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  8.534e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/903933/ft1_filtered_4FGL_J1734.3+3858_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/903933/ft2_4FGL_J1734.3+3858_daily_bin73.fits
Exposure map: /scratch/kocevski/903933/expmap_258249601_258508801_4FGL_J1734.3+3858_daily_bin73.fits
Exposure cube: /scratch/kocevski/903933/ltcube_258249601_258508801_4FGL_J1734.3+3858_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/903933/Model_4FGL_J1734.3+3858_daily_bin73.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) = 5804.90898715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27603       1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8669       1.0000         .10000E-03   10000.    
     4 'norm      '    9.5753       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0791       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7699       1.0000         .10000E-03   10000.    
     8 'norm      '    8.0091       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28473       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1040       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11863E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.390       1.0000         .10000E-03   10000.    
    16 'norm      '    34.386       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.3579       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.071       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.242       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.2487       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .17228       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .37980E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0661       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5804.802     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     3100 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27590        .17517       -.30518E-07   -.37825E-03
   2  norm          .10000E-03    14.778       -.59453E-05** at limit **
   3  Prefactor     8.8538        1.8096        .15949E-05   -.32827E-03
   4  norm          9.5708        1.3762       -.18969E-05    .12490E-04
   5  Prefactor     .10000E-03    2.7378        .17758E-06** at limit **
   6  Prefactor     4.0774        1.8303        .12050E-06    .81209E-04
   7  Prefactor     3.7662        4.8338       -.45388E-07   -.28028E-04
   8  norm          8.0083        2.9453       -.15556E-06   -.14557E-03
   9  norm          .10000E-03    .38867        .10595E-06** at limit **
  10  Prefactor     .32625        11.603        .24483E-04    .11393E-02
  11  norm          1.1031        .87188       -.10509E-06   -.75025E-03
  12  norm          .10000E-03    4.1823       -.40716E-07** at limit **
  13  norm          2.1457        1.8324       -.39368E-06   -.45658E-03
  14  Prefactor     .10000E-03    6.0404        .69965E-06** at limit **
  15  Prefactor     17.193        42.502       -.59622E-04    .24544E-02
  16  norm          34.389        2.0777        .22419E-05    .44407E-03
  17  Prefactor     .10951E-03    51.545        .35185E-04** at limit **
  18  Prefactor     .10012E-03    24.710       -.39295E-04** at limit **
  19  norm          5.3579        5.8111        .43459E-05    .26505E-03
  20  Prefactor     .10000E-03    13.799        .40107E-05** at limit **
  21  Prefactor     .10003E-03    21.346        .25999E-04** at limit **
  22  Prefactor     .10000E-03    6.8262        .52685E-07** at limit **
  23  Prefactor     22.105        2.8603       -.38303E-06    .12226E-02
  24  Prefactor     29.241        1.9170       -.23313E-05    .99379E-04
  25  Prefactor     .10154E-03    44.979       -.59898E-04** at limit **
  26  norm          3.2483        2.2054       -.26928E-06   -.26741E-03
  27  norm          .10035E-03    33.599        .44475E-04** at limit **
  28  norm          .97931E-01    128.13        .61016E-04   -.15183E-02
  29  Prefactor     .10006E-03    1.2362        .79848E-05** at limit **
  30  Prefactor     .10000E-03    4.6898        .52374E-06** at limit **
  31  Normalizat    1.0666        .29594       -.74637E-05   -.10121E-03
  32  Prefactor     .89025        .17654        .42923E-05   -.89130E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.275903
  norm       = 0.000100001
  Prefactor  = 8.85383
  norm       = 9.57079
  Prefactor  = 0.0001
  Prefactor  = 4.07743
  Prefactor  = 3.7662
  norm       = 8.00832
  norm       = 0.0001
  Prefactor  = 0.32625
  norm       = 1.10312
  norm       = 0.0001
  norm       = 2.1457
  Prefactor  = 0.0001
  Prefactor  = 17.1933
  norm       = 34.3895
  Prefactor  = 0.000109511
  Prefactor  = 0.000100119
  norm       = 5.35786
  Prefactor  = 0.000100001
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 22.105
  Prefactor  = 29.2412
  Prefactor  = 0.000101537
  norm       = 3.24834
  norm       = 0.000100352
  norm       = 0.0979312
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  Normalizat = 1.06662
  Prefactor  = 0.890246
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.802     FROM HESSE     STATUS=OK           749 CALLS     3849 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27590        .18286        .54701E-02   -1.5603    
   2  norm          .10000E-03    14.768        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8538        23.208        .33651E-02   -1.5113    
   4  norm          9.5708        45.872        .32376E-02   -1.5089    
   5  Prefactor     .10000E-03    1.4685        .24430E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0774        2.1008        .49906E-02   -1.5304    
   7  Prefactor     3.7662        5.0107        .51982E-02   -1.5320    
   8  norm          8.0083        2.9461        .35419E-02   -1.5142    
   9  norm          .10000E-03    .38379        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .32625        8.8304        .67315E-01   -1.5594    
  11  norm          1.1031        .89892        .11281E-01   -1.5498    
  12  norm          .10000E-03    4.1746        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1457        1.8598        .70307E-02   -1.5415    
  14  Prefactor     .10000E-03    2.5752        .44710E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.193        46.619        .24011E-02   -1.4878    
  16  norm          34.389        10.131        .17085E-02   -1.4534    
  17  Prefactor     .10951E-03    76.939        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10012E-03    25.030        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3579        5.8418        .43405E-02   -1.5245    
  20  Prefactor     .10000E-03    13.804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    21.380        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.8220        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.105        14.536        .21315E-02   -1.4767    
  24  Prefactor     29.241        33.571        .18522E-02   -1.4626    
  25  Prefactor     .10154E-03    59.637        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.2483        2.2063        .56177E-02   -1.5347    
  27  norm          .10035E-03    35.449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .97931E-01    5.5972        .98504E-01   -1.5645    
  29  Prefactor     .10006E-03    4.1324        .83610E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.6320        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0666        .25249        .70042E-01   -.90831    
  32  Prefactor     .89025        .14553        .44882E-01   -.96483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57075e-07
Minuit parameter uncertainties:
  1  0.182865
  2  0.000239309
  3  23.2313
  4  41.9583
  5  2.32627e-06
  6  2.10088
  7  5.01124
  8  2.94616
  9  4.21838e-06
  10  3.39468
  11  0.898934
  12  8.26481e-07
  13  1.85986
  14  4.85197e-06
  15  46.7175
  16  10.1315
  17  0.054173
  18  0.00344606
  19  5.84244
  20  0.000266204
  21  0.00152024
  22  1.88694e-05
  23  14.5382
  24  33.5922
  25  0.0191645
  26  2.20635
  27  0.00706559
  28  1.48012
  29  0.0010161
  30  2.99964e-05
  31  0.252777
  32  0.145597
Done.

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

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  3.439e+01  1.013e+01  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.228e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
327         beta:  8.534e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  8.902e-01  1.456e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.067e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.77
Ra Dec: 263.598 38.976
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.99e-07 +/- 5.86e-08
Energy Flux (Fixed Index): 7.80e-05 +/- 2.30e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5804.24042792
delta logL = 0.561563654465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5804.19625437
delta logL = 0.605737197014

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.723       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9045       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86748       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5804.196     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.720        11.387       -.96866E-06    .90692E-04
   2  alpha         1.9045        .28460       -.13820E-04    .16792E-04
   3  Normalizat    1.1242        .23262        .22086E-05    .18513E-03
   4  Prefactor     .86751        .14263       -.27920E-06    .32409E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 37.7195
  alpha      = 1.90447
  Normalizat = 1.12418
  Prefactor  = 0.86751
 **********
 **   18 **HESSE 
 **********

 FCN=   5804.196     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.720        11.395        .32628E-03   -1.4479    
   2  alpha         1.9045        .28493        .81044E-02   -.24052    
   3  Normalizat    1.1242        .27750        .30303E-03   -.88979    
   4  Prefactor     .86751        .17123        .21119E-03   -.97286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76509e-11
Minuit parameter uncertainties:
  1  11.3961
  2  0.285585
  3  0.277857
  4  0.171332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/903933': 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) = 5804.19625306
delta logL = 0.605738511576

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  3.772e+01  1.140e+01  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.904e+00  2.856e-01  0.000e+00  5.000e+00 ( 1.000e+00)
327         beta:  8.534e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
328           Eb:  7.306e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  8.675e-01  1.713e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.124e+00  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.87
Ra Dec: 263.598 38.976
Photon Index (Free Index): 1.90 +/- 0.29
Photon Flux (Free Index): 1.57e-07 +/- 5.99e-08
Energy Flux (Free Index): 1.03e-04 +/- 4.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/903933/cmap_HighResolution_258249601_258508801_4FGL_J1734.3+3858_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.99e-07', energy_flux2='1.03e-04', photon_flux_error='5.86e-08', dlogl='6.06e-01', energy_flux='7.80e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-17 22:56:03.515989', photon_index_error2='0.29', photon_index2='1.90', ts='36.77', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='4.40e-05', EG='1.07', time_epoch_completed='1631944563.52', return_code='0', job_id='903933', GAL2='0.87', EG2='1.12', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='5.99e-08', ts2='37.87', photon_index='2.23' WHERE bin_id='73' AND source_name='4FGL J1734.3+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 22:56:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 903933: <4FGL_J1734.3+3858_daily_bin73> in cluster <slac> Done

Job <4FGL_J1734.3+3858_daily_bin73> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 17 22:40:23 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 22:40:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 22:40:26 2021
Terminated at Fri Sep 17 22:56:04 2021
Results reported at Fri Sep 17 22:56:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1734.3+3858_daily_bin73 263.598 38.9763 258249601 258508801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1734.3+3858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   738.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            941 sec.

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

