aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 37 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 = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1734.3+3858_monthly_bin168
RA = 263.598, Dec = 38.9763
tmin = 672451201, tmax = 675043201
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='643287', job_status='RUN', time_executed='2022-05-24 03:41:12.878676', time_epoch_executed='1653388872.88' WHERE source_name='4FGL J1734.3+3858' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643287

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643287/ft1_4FGL_J1734.3+3858_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643287/ft2_4FGL_J1734.3+3858_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643287/ft1_4FGL_J1734.3+3858_monthly_bin168.fits outfile=/scratch/kocevski/643287/ft1_filteredMKT_4FGL_J1734.3+3858_monthly_bin168.fits ra=263.598 dec=38.9763 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.55
user 27.85
sys 0.61

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/643287/ft2_4FGL_J1734.3+3858_monthly_bin168.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/643287/ft1_filteredMKT_4FGL_J1734.3+3858_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/643287/ft1_filtered_4FGL_J1734.3+3858_monthly_bin168.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.86
user 0.65
sys 0.19

Number of photons that the gtmktime cut: 10713

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643287/ft1_filtered_4FGL_J1734.3+3858_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/643287/ft2_4FGL_J1734.3+3858_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/643287/ltcube_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.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/643287/ft2_4FGL_J1734.3+3858_monthly_bin168.fits
.....................!
real 128.69
user 127.11
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643287/ft1_filtered_4FGL_J1734.3+3858_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/643287/ft2_4FGL_J1734.3+3858_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/643287/ltcube_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.fits outfile=/scratch/kocevski/643287/expmap_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.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/643287/ltcube_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.fits
.....................!
real 190.98
user 186.39
sys 4.07

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/643287/ft1_filtered_4FGL_J1734.3+3858_monthly_bin168.fits scfile=/scratch/kocevski/643287/ft2_4FGL_J1734.3+3858_monthly_bin168.fits outfile=/scratch/kocevski/643287/cmap_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.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.80
user 0.61
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643287/ft1_filtered_4FGL_J1734.3+3858_monthly_bin168.fits scfile=/scratch/kocevski/643287/ft2_4FGL_J1734.3+3858_monthly_bin168.fits outfile=/scratch/kocevski/643287/cmap_HighResolution_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.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.80
user 0.64
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/643287/ft1_filtered_4FGL_J1734.3+3858_monthly_bin168.fits', '/scratch/kocevski/643287/ft2_4FGL_J1734.3+3858_monthly_bin168.fits', expMap='/scratch/kocevski/643287/expmap_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.fits', expCube='/scratch/kocevski/643287/ltcube_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/643287/Model_4FGL_J1734.3+3858_monthly_bin168.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/643287/ft1_filtered_4FGL_J1734.3+3858_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/643287/ft2_4FGL_J1734.3+3858_monthly_bin168.fits
Exposure map: /scratch/kocevski/643287/expmap_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.fits
Exposure cube: /scratch/kocevski/643287/ltcube_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/643287/Model_4FGL_J1734.3+3858_monthly_bin168.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) = 113530.571692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72712E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6883       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9748       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9440       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4915       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1747       1.0000         .10000E-03   10000.    
     9 'norm      '    .17024       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15075E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .30262       1.0000         .10000E-03   10000.    
    12 'norm      '    3.6054       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4263       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .84639       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .69520       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.979       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.928       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8162       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.653       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5627       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.7744       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.582       1.0000         .10000E-03   10000.    
    26 'norm      '    1.5384       1.0000         .10000E-03   10000.    
    27 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10551E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.7695       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.8104       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1964       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .86528       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=   113530.5     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     3895 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72701E-01    .34722E-01   -.34100E-08   -.72293E-02
   2  norm          2.6883        2.2587       -.15269E-06   -.61346E-04
   3  Prefactor     .10000E-03    2.6040        .77720E-06** at limit **
   4  norm          4.9749        6.8239       -.59242E-07   -.18423E-04
   5  Prefactor     1.9440        .54318       -.70032E-08   -.11958E-02
   6  Prefactor     5.4915        .59146       -.43235E-08   -.10895E-03
   7  Prefactor     .10000E-03    .85404E-01   -.15784E-07** at limit **
   8  norm          3.1747        .44161       -.24994E-08    .10502E-03
   9  norm          .17029        .13025       -.18809E-07   -.35558E-02
  10  Prefactor     .10003E-03    .19783        .32137E-07** at limit **
  11  norm          .30271        .16478       -.80450E-08   -.33228E-02
  12  norm          3.6050        .80866       -.69600E-07   -.90326E-02
  13  norm          4.4266        .49372        .46219E-08   -.16860E-03
  14  Prefactor     .84637        .62375       -.11154E-07   -.10753E-02
  15  Prefactor     .10000E-03    3.5447        .14455E-05** at limit **
  16  norm          .69696        .86296        .55938E-06   -.74996E-03
  17  Prefactor     19.968        12.083       -.60484E-05   -.19448E-03
  18  Prefactor     35.926        19.334       -.16914E-05   -.26035E-05
  19  norm          1.8163        1.0226       -.31982E-07   -.70362E-03
  20  Prefactor     13.653        7.2148       -.65535E-07    .63513E-05
  21  Prefactor     .10000E-03    4.8351        .22262E-07** at limit **
  22  Prefactor     7.5626        2.9736        .43834E-07   -.14560E-02
  23  Prefactor     6.7751        2.1364        .11334E-07   -.51819E-04
  24  Prefactor     .10000E-03    3.0053       -.18707E-05** at limit **
  25  Prefactor     22.585        13.276        .20986E-05    .12311E-03
  26  norm          1.5384        .42745       -.75853E-08   -.19508E-03
  27  norm          .10000E-03    5.8680       -.93136E-06** at limit **
  28  norm          .10000E-03    .24727       -.11050E-07** at limit **
  29  Prefactor     2.7695        1.1149       -.22879E-07   -.55269E-03
  30  Prefactor     2.8103        1.0155       -.26131E-07    .26397E-04
  31  Normalizat    1.1964        .54350E-01    .42801E-06   -.32972E-03
  32  Prefactor     .86531        .32769E-01   -.77200E-07    .28879E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.072701
  norm       = 2.68829
  Prefactor  = 0.0001
  norm       = 4.97493
  Prefactor  = 1.94404
  Prefactor  = 5.49151
  Prefactor  = 0.0001
  norm       = 3.17469
  norm       = 0.170289
  Prefactor  = 0.000100033
  norm       = 0.30271
  norm       = 3.60501
  norm       = 4.42655
  Prefactor  = 0.846371
  Prefactor  = 0.0001
  norm       = 0.696957
  Prefactor  = 19.9683
  Prefactor  = 35.9263
  norm       = 1.81626
  Prefactor  = 13.6532
  Prefactor  = 0.0001
  Prefactor  = 7.56257
  Prefactor  = 6.77507
  Prefactor  = 0.0001
  Prefactor  = 22.5846
  norm       = 1.5384
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.76948
  Prefactor  = 2.81033
  Normalizat = 1.19639
  Prefactor  = 0.865306
 **********
 **   18 **HESSE 
 **********

 FCN=   113530.5     FROM HESSE     STATUS=OK           691 CALLS     4586 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72701E-01    .28878E-01    .39742E-03   -1.5654    
   2  norm          2.6883        2.2560        .24850E-03   -1.5380    
   3  Prefactor     .10000E-03    2.6489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9749        6.7922        .18031E-03   -1.5262    
   5  Prefactor     1.9440        .54627        .85540E-04   -1.5429    
   6  Prefactor     5.4915        .60511        .55884E-04   -1.5239    
   7  Prefactor     .10000E-03    .32535        .18765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1747        .44151        .80338E-04   -1.5352    
   9  norm          .17029        .13112        .10215E-03   -1.5625    
  10  Prefactor     .10003E-03    .35768        .48598E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .30271        .14712        .93745E-03   -1.5598    
  12  norm          3.6050        1.7223        .10640E-02   -1.5328    
  13  norm          4.4266        .49330        .74538E-04   -1.5287    
  14  Prefactor     .84637        .47714        .21992E-02   -1.5524    
  15  Prefactor     .10000E-03    3.5649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .69696        .84993        .33149E-03   -1.5541    
  17  Prefactor     19.968        12.116        .89608E-04   -1.4814    
  18  Prefactor     35.926        19.308        .66860E-04   -1.4508    
  19  norm          1.8163        1.0142        .24493E-03   -1.5438    
  20  Prefactor     13.653        7.2042        .10840E-03   -1.4969    
  21  Prefactor     .10000E-03    4.8904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.5626        3.0304        .72915E-03   -1.5158    
  23  Prefactor     6.7751        2.1230        .15416E-03   -1.5187    
  24  Prefactor     .10000E-03    3.0334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     22.585        13.289        .84290E-04   -1.4757    
  26  norm          1.5384        .42758        .11232E-03   -1.5460    
  27  norm          .10000E-03    5.9458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.1308        .31944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.7695        1.1145        .21785E-03   -1.5375    
  30  Prefactor     2.8103        1.0165        .24264E-04   -1.5373    
  31  Normalizat    1.1964        .65674E-01    .28989E-03   -.86714    
  32  Prefactor     .86531        .39998E-01    .21092E-03   -.97364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51243e-07
Minuit parameter uncertainties:
  1  0.028878
  2  2.25603
  3  3.637e-06
  4  6.79327
  5  0.546271
  6  0.605114
  7  6.55601e-07
  8  0.441513
  9  0.131119
  10  0.000216706
  11  0.147121
  12  1.72229
  13  0.493302
  14  0.477139
  15  4.40578e-06
  16  0.84994
  17  12.1176
  18  19.3109
  19  1.01419
  20  7.20466
  21  2.57431e-06
  22  3.03048
  23  2.12307
  24  2.37673e-05
  25  13.2906
  26  0.427583
  27  8.8833e-07
  28  7.13025e-06
  29  1.1145
  30  1.01649
  31  0.0656785
  32  0.0399996
Done.

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

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  6.970e-01  8.499e-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.653e-01  4.000e-02  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.196e+00  6.568e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 263.598 38.976
Photon Flux Upper Limit: 1.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/643287/likelihoodResults_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.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): 0
logL (Free Index) = 113530.430414
delta logL = 0.0761270874937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 113530.428609
delta logL = 0.0779319707217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73274       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6370       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86650       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   113530.4     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      246 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73273        .83548        .29650E-03    .59078E-03
   2  alpha         2.6371        1.0842        .82460E-02    .23206E-04
   3  Normalizat    1.1927        .62644E-01    .29029E-03    .11342E-03
   4  Prefactor     .86650        .39109E-01    .21079E-03    .12081E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.73273
  alpha      = 2.63709
  Normalizat = 1.19266
  Prefactor  = 0.8665
 **********
 **   18 **HESSE 
 **********

 FCN=   113530.4     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73273        .82190        .11860E-04   -1.5537    
   2  alpha         2.6371        1.0672        .32984E-03    .54864E-01
   3  Normalizat    1.1927        .62685E-01    .11612E-04   -.86830    
   4  Prefactor     .86650        .39136E-01    .84316E-05   -.97322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.2466e-11
Minuit parameter uncertainties:
  1  0.821908
  2  1.10273
  3  0.0626886
  4  0.0391378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643287': 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) = 113530.428609
delta logL = 0.0779319818103

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  7.327e-01  8.219e-01  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.637e+00  1.103e+00  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.665e-01  3.914e-02  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.193e+00  6.269e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 263.598 38.976
Photon Index (Free Index): 2.64 +/- 1.10
Photon Flux (Free Index): 7.03e-09 +/- 1.08e-08
Energy Flux (Free Index): 1.83e-06 +/- 2.01e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/643287/cmap_HighResolution_672451201_675043201_4FGL_J1734.3+3858_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-06', comment='SUCCESS', energy_flux2='1.83e-06', dlogl='7.79e-02', photon_flux2='7.03e-09', job_status='DONE', time_completed='2022-05-24 07:17:58.552304', photon_index_error2='1.10', photon_index2='2.64', ts='0.91', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.46e-08', energy_flux_error2='2.01e-06', EG='1.20', time_epoch_completed='1653401878.55', return_code='0', job_id='643287', GAL2='0.87', EG2='1.19', return_code2='0', photon_flux_error2='1.08e-08', ts2='1.07', photon_index='2.23' WHERE bin_id='168' AND source_name='4FGL J1734.3+3858' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 07:17:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 643287: <4FGL_J1734.3+3858_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1734.3+3858_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:40:25 2022
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:40:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:40:27 2022
Terminated at Tue May 24 07:17:59 2022
Results reported at Tue May 24 07:17:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1734.3+3858_monthly_bin168 263.598 38.9763 672451201 675043201 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 :                                   12953.00 sec.
    Max Memory :                                 633 MB
    Average Memory :                             475.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13052 sec.
    Turnaround time :                            13054 sec.

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

