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


Performing analysis on: 4FGL_J1734.3+3858_daily_bin1141
RA = 263.598, Dec = 38.9763
tmin = 535075201, tmax = 535334401
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='915637', job_status='RUN', time_executed='2021-09-17 23:25:46.234613', time_epoch_executed='1631946346.23' WHERE source_name='4FGL J1734.3+3858' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915637

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915637/ft1_4FGL_J1734.3+3858_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915637/ft2_4FGL_J1734.3+3858_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915637/ft1_4FGL_J1734.3+3858_daily_bin1141.fits outfile=/scratch/kocevski/915637/ft1_filteredMKT_4FGL_J1734.3+3858_daily_bin1141.fits ra=263.598 dec=38.9763 rad=12.0 tmin=535075201.0 tmax=535334401.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 5.00
user 4.73
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915637/ft2_4FGL_J1734.3+3858_daily_bin1141.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/915637/ft1_filteredMKT_4FGL_J1734.3+3858_daily_bin1141.fits evtable="EVENTS" outfile="/scratch/kocevski/915637/ft1_filtered_4FGL_J1734.3+3858_daily_bin1141.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915637/ft1_filtered_4FGL_J1734.3+3858_daily_bin1141.fits" evtable="EVENTS" scfile=/scratch/kocevski/915637/ft2_4FGL_J1734.3+3858_daily_bin1141.fits sctable="SC_DATA" outfile=/scratch/kocevski/915637/ltcube_535075201_535334401_4FGL_J1734.3+3858_daily_bin1141.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/915637/ft2_4FGL_J1734.3+3858_daily_bin1141.fits
.....................!
real 11.61
user 11.28
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915637/ft1_filtered_4FGL_J1734.3+3858_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/915637/ft2_4FGL_J1734.3+3858_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/915637/ltcube_535075201_535334401_4FGL_J1734.3+3858_daily_bin1141.fits outfile=/scratch/kocevski/915637/expmap_535075201_535334401_4FGL_J1734.3+3858_daily_bin1141.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/915637/ltcube_535075201_535334401_4FGL_J1734.3+3858_daily_bin1141.fits
.....................!
real 189.69
user 185.09
sys 4.27

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/915637/ft1_filtered_4FGL_J1734.3+3858_daily_bin1141.fits scfile=/scratch/kocevski/915637/ft2_4FGL_J1734.3+3858_daily_bin1141.fits outfile=/scratch/kocevski/915637/cmap_535075201_535334401_4FGL_J1734.3+3858_daily_bin1141.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915637/ft1_filtered_4FGL_J1734.3+3858_daily_bin1141.fits scfile=/scratch/kocevski/915637/ft2_4FGL_J1734.3+3858_daily_bin1141.fits outfile=/scratch/kocevski/915637/cmap_HighResolution_535075201_535334401_4FGL_J1734.3+3858_daily_bin1141.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45484       1.0000         .10000E-03   10000.    
     2 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    26.727       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1710       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1765       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6396       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7073       1.0000         .10000E-03   10000.    
     9 'norm      '    .82819       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9252       1.0000         .10000E-03   10000.    
    11 'norm      '    .23808       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3092       1.0000         .10000E-03   10000.    
    13 'norm      '    4.0077       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.586       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    113.27       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.085       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13043E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    48.134       1.0000         .10000E-03   10000.    
    26 'norm      '    1.0202       1.0000         .10000E-03   10000.    
    27 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    3.2450       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4115       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .74344       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=   7074.854     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     4369 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45480        .20429        .10174E-07    .23916E-03
   2  norm          .10000E-03    7.6885       -.93594E-07** at limit **
   3  Prefactor     .10000E-03    20.324       -.18285E-06** at limit **
   4  norm          26.707        43.056        .26250E-05    .28267E-05
   5  Prefactor     1.1716        2.8830       -.12322E-07   -.11814E-03
   6  Prefactor     1.1772        2.6821       -.47373E-07   -.14111E-03
   7  Prefactor     2.6398        3.6403        .20344E-07   -.12342E-04
   8  norm          1.7072        1.2971        .22874E-07    .31009E-04
   9  norm          .82833        1.0187       -.48979E-07   -.39801E-03
  10  Prefactor     3.9256        5.7928        .55629E-06    .45209E-04
  11  norm          .23824        .78214        .15387E-06   -.14305E-03
  12  norm          4.3089        9.4947        .32807E-06    .55325E-05
  13  norm          4.0078        1.8777        .85481E-08    .39179E-04
  14  Prefactor     .10000E-03    1.1260        .30190E-07** at limit **
  15  Prefactor     .10000E-03    60.760       -.20497E-05** at limit **
  16  norm          19.580        8.9651        .89861E-07    .17300E-08
  17  Prefactor     .10000E-03    91.191        .14744E-05** at limit **
  18  Prefactor     113.27        121.54        .34548E-06   -.10377E-04
  19  norm          .10000E-03    2.0955       -.11273E-07** at limit **
  20  Prefactor     56.085        40.664        .31720E-07    .60940E-05
  21  Prefactor     .10000E-03    30.453       -.12330E-06** at limit **
  22  Prefactor     .10000E-03    11.974        .92982E-06** at limit **
  23  Prefactor     .10000E-03    11.426       -.62137E-06** at limit **
  24  Prefactor     .10000E-03    32.114       -.21848E-06** at limit **
  25  Prefactor     48.110        67.654        .32821E-05   -.11843E-04
  26  norm          1.0190        2.2448        .13631E-06   -.10475E-03
  27  norm          .10000E-03    49.630        .81631E-06** at limit **
  28  norm          3.2469        8.4342        .42640E-05    .21159E-04
  29  Prefactor     .10000E-03    9.0096        .35869E-07** at limit **
  30  Prefactor     .10000E-03    5.5596       -.70183E-07** at limit **
  31  Normalizat    1.4113        .23325       -.69310E-06    .58471E-04
  32  Prefactor     .74354        .13280       -.31605E-06    .22911E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.454798
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 26.7068
  Prefactor  = 1.17162
  Prefactor  = 1.17716
  Prefactor  = 2.63976
  norm       = 1.70724
  norm       = 0.828329
  Prefactor  = 3.92563
  norm       = 0.238241
  norm       = 4.30887
  norm       = 4.00782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5798
  Prefactor  = 0.0001
  Prefactor  = 113.267
  norm       = 0.0001
  Prefactor  = 56.0848
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.1101
  norm       = 1.01901
  norm       = 0.0001
  norm       = 3.24693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.41132
  Prefactor  = 0.74354
 **********
 **   18 **HESSE 
 **********

 FCN=   7074.854     FROM HESSE     STATUS=OK           659 CALLS     5028 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45480        .20280        .23457E-04   -1.5573    
   2  norm          .10000E-03    7.6909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          26.707        42.988        .77489E-04   -1.4674    
   5  Prefactor     1.1716        2.7769        .10258E-03   -1.5491    
   6  Prefactor     1.1772        2.5782        .96608E-04   -1.5491    
   7  Prefactor     2.6398        3.6073        .17222E-03   -1.5383    
   8  norm          1.7072        1.2955        .80851E-04   -1.5447    
   9  norm          .82833        .92941        .88724E-03   -1.5526    
  10  Prefactor     3.9256        5.7195        .20363E-03   -1.5312    
  11  norm          .23824        .78075        .12442E-03   -1.5610    
  12  norm          4.3089        9.4529        .19406E-03   -1.5293    
  13  norm          4.0078        1.8774        .75137E-04   -1.5308    
  14  Prefactor     .10000E-03    1.1310        .87163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    60.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.580        8.9554        .90502E-04   -1.4823    
  17  Prefactor     .10000E-03    91.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     113.27        121.52        .37799E-04   -1.3575    
  19  norm          .10000E-03    2.1076        .11889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     56.085        40.656        .53564E-04   -1.4209    
  21  Prefactor     .10000E-03    30.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.704        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    32.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     48.110        67.495        .57797E-04   -1.4320    
  26  norm          1.0190        2.2054        .17825E-03   -1.5506    
  27  norm          .10000E-03    49.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.2469        8.4449        .11242E-02   -1.5348    
  29  Prefactor     .10000E-03    9.2758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    5.7649        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.4113        .28241        .28746E-03   -.80302    
  32  Prefactor     .74354        .16063        .22867E-03   -1.0184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22735e-11
Minuit parameter uncertainties:
  1  0.2028
  2  8.49954e-06
  3  1.2008e-05
  4  43.0379
  5  2.77724
  6  2.57847
  7  3.60756
  8  1.29553
  9  0.929428
  10  5.7203
  11  0.780782
  12  9.45615
  13  1.87741
  14  2.13687e-07
  15  7.99781e-06
  16  8.95604
  17  7.50331e-05
  18  121.788
  19  9.12929e-07
  20  40.676
  21  1.01648e-05
  22  1.68672e-05
  23  3.95299e-05
  24  0.000245447
  25  67.6023
  26  2.20555
  27  2.25156e-05
  28  8.44796
  29  3.55283e-06
  30  5.34791e-07
  31  0.282722
  32  0.160727
Done.

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

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  1.958e+01  8.956e+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

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  7.435e-01  1.607e-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.411e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.57
Ra Dec: 263.598 38.976
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.13e-07 +/- 5.18e-08
Energy Flux (Fixed Index): 4.44e-05 +/- 2.03e-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) = 7074.2356666
delta logL = 0.61841222115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7074.21949024
delta logL = 0.634588581155

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.796       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7498       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77265       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=   7074.219     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      296 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.798        8.9348        .10077E-03   -.43310E-03
   2  alpha         2.7499        .49250        .96086E-02   -.19784E-04
   3  Normalizat    1.3336        .26895        .29414E-03   -.23862E-03
   4  Prefactor     .77262        .15725        .22467E-03   -.23768E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.7984
  alpha      = 2.74992
  Normalizat = 1.33357
  Prefactor  = 0.772617
 **********
 **   18 **HESSE 
 **********

 FCN=   7074.219     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.798        8.5165        .40309E-05   -1.4913    
   2  alpha         2.7499        .46908        .38434E-03    .10013    
   3  Normalizat    1.3336        .26867        .58829E-04   -.82570    
   4  Prefactor     .77262        .15714        .89867E-05   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01954e-10
Minuit parameter uncertainties:
  1  8.51719
  2  0.471903
  3  0.268952
  4  0.15723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915637': 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) = 7074.21948994
delta logL = 0.634588882433

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  1.580e+01  8.517e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  2.750e+00  4.719e-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:  7.726e-01  1.572e-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.334e+00  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.86
Ra Dec: 263.598 38.976
Photon Index (Free Index): 2.75 +/- 0.47
Photon Flux (Free Index): 1.76e-07 +/- 8.46e-08
Energy Flux (Free Index): 4.26e-05 +/- 1.68e-05

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/915637/cmap_HighResolution_535075201_535334401_4FGL_J1734.3+3858_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-07', energy_flux2='4.26e-05', photon_flux_error='5.18e-08', dlogl='6.35e-01', energy_flux='4.44e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-09-17 23:41:56.410458', photon_index_error2='0.47', photon_index2='2.75', ts='10.57', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.41', time_epoch_completed='1631947316.41', return_code='0', job_id='915637', GAL2='0.77', EG2='1.33', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='8.46e-08', ts2='11.86', photon_index='2.23' WHERE bin_id='1141' AND source_name='4FGL J1734.3+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 23:41:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 915637: <4FGL_J1734.3+3858_daily_bin1141> in cluster <slac> Done

Job <4FGL_J1734.3+3858_daily_bin1141> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 17 23:25:28 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 23:25:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 23:25:29 2021
Terminated at Fri Sep 17 23:41:57 2021
Results reported at Fri Sep 17 23:41:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1734.3+3858_daily_bin1141 263.598 38.9763 535075201 535334401 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 :                                   961.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

