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


Performing analysis on: 4FGL_J1734.3+3858_daily_bin1192
RA = 263.598, Dec = 38.9763
tmin = 548294401, tmax = 548553601
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='915711', job_status='RUN', time_executed='2021-09-17 23:25:53.462083', time_epoch_executed='1631946353.46' WHERE source_name='4FGL J1734.3+3858' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915711

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915711/ft1_4FGL_J1734.3+3858_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915711/ft2_4FGL_J1734.3+3858_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915711/ft1_4FGL_J1734.3+3858_daily_bin1192.fits outfile=/scratch/kocevski/915711/ft1_filteredMKT_4FGL_J1734.3+3858_daily_bin1192.fits ra=263.598 dec=38.9763 rad=12.0 tmin=548294401.0 tmax=548553601.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.86
user 3.64
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/915711/ft2_4FGL_J1734.3+3858_daily_bin1192.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/915711/ft1_filteredMKT_4FGL_J1734.3+3858_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/915711/ft1_filtered_4FGL_J1734.3+3858_daily_bin1192.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.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915711/ft1_filtered_4FGL_J1734.3+3858_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/915711/ft2_4FGL_J1734.3+3858_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/915711/ltcube_548294401_548553601_4FGL_J1734.3+3858_daily_bin1192.fits outfile=/scratch/kocevski/915711/expmap_548294401_548553601_4FGL_J1734.3+3858_daily_bin1192.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/915711/ltcube_548294401_548553601_4FGL_J1734.3+3858_daily_bin1192.fits
.....................!
real 190.09
user 185.47
sys 4.26

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/915711/ft1_filtered_4FGL_J1734.3+3858_daily_bin1192.fits scfile=/scratch/kocevski/915711/ft2_4FGL_J1734.3+3858_daily_bin1192.fits outfile=/scratch/kocevski/915711/cmap_548294401_548553601_4FGL_J1734.3+3858_daily_bin1192.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915711/ft1_filtered_4FGL_J1734.3+3858_daily_bin1192.fits scfile=/scratch/kocevski/915711/ft2_4FGL_J1734.3+3858_daily_bin1192.fits outfile=/scratch/kocevski/915711/cmap_HighResolution_548294401_548553601_4FGL_J1734.3+3858_daily_bin1192.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/915711/ft1_filtered_4FGL_J1734.3+3858_daily_bin1192.fits', '/scratch/kocevski/915711/ft2_4FGL_J1734.3+3858_daily_bin1192.fits', expMap='/scratch/kocevski/915711/expmap_548294401_548553601_4FGL_J1734.3+3858_daily_bin1192.fits', expCube='/scratch/kocevski/915711/ltcube_548294401_548553601_4FGL_J1734.3+3858_daily_bin1192.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/915711/Model_4FGL_J1734.3+3858_daily_bin1192.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/915711/ft1_filtered_4FGL_J1734.3+3858_daily_bin1192.fits
Spacecraft file(s): /scratch/kocevski/915711/ft2_4FGL_J1734.3+3858_daily_bin1192.fits
Exposure map: /scratch/kocevski/915711/expmap_548294401_548553601_4FGL_J1734.3+3858_daily_bin1192.fits
Exposure cube: /scratch/kocevski/915711/ltcube_548294401_548553601_4FGL_J1734.3+3858_daily_bin1192.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/915711/Model_4FGL_J1734.3+3858_daily_bin1192.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 866.186254681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 863.956167128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.0035       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1682       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28122E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    8.7826       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12017       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48347E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11358E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .60125E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0706       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .94262       1.0000         .10000E-03   10000.    
    11 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .30134E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .28754E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .55759E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .60335E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .96588E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9720       1.0000         .10000E-03   10000.    
    19 'norm      '    3.6247       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4776       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7871       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12557E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22910E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    67.387       1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.350       1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.1508       1.0000         .10000E-03   10000.    
    28 'norm      '    .74495E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    25.594       1.0000         .10000E-03   10000.    
    30 'Prefactor '    7.1820       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .28710       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89345       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   863.9301     FROM MIGRAD    STATUS=CONVERGED    301 CALLS      491 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.0160        3.8765        .44945E-02   -.16947    
   2  norm          1.1682        1.1483         .0000         .0000    
   3  Prefactor     .10000E-03    .24744       -.59460E-04** at limit **
   4  norm          .37332E-01    .65245E-01   -.32659E-02   -.21873E-02
   5  Prefactor     .10000E-03    .23073        .27044E-04** at limit **
   6  Prefactor     .10000E-03    .28021        .47247E-05** at limit **
   7  Prefactor     .10001E-03    .26720       -.12395E-02** at limit **
   8  norm          .10000E-03    .27728       -.36926E-06** at limit **
   9  norm          1.0706        1.2141         .0000         .0000    
  10  Prefactor     .29936E-02    .41998       -.11108E-03    .14861E-03
  11  norm          .10000E-03    .20571       -.78449E-06** at limit **
  12  norm          .10000E-03    .21034       -.82433E-05** at limit **
  13  norm          .10000E-03    .21003        .23023E-04** at limit **
  14  Prefactor     1.8498        1.0422         .0000         .0000    
  15  Prefactor     .10000E-03    .21614        .26557E-04** at limit **
  16  norm          .10000E-03    .27723       -.48854E-06** at limit **
  17  Prefactor     .10000E-03    .22538        .65503E-04** at limit **
  18  Prefactor     .10023E-03    .50826E-01    .39516E-04** at limit **
  19  norm          3.6247        1.0098         .0000         .0000    
  20  Prefactor     .18939        .15952       -.28585E-02    .27509E-02
  21  Prefactor     .26538E-03    .15303       -.39371E-02** at limit **
  22  Prefactor     .10000E-03    .20637       -.60106E-05** at limit **
  23  Prefactor     .10000E-03    .20871       -.11077E-04** at limit **
  24  Prefactor     78.283        1.0773       -.27735E-03   -.75537E-04
  25  Prefactor     .10053E-03    .14446E-01   -.27207E-03** at limit **
  26  norm          .10000E-03    .20571       -.73440E-06** at limit **
  27  norm          .10000E-03    .29071        .60044E-04** at limit **
  28  norm          .10000E-03    .22038        .13904E-04** at limit **
  29  Prefactor     25.645        1.0012        .24711E-05    .66673E-05
  30  Prefactor     7.1834        1.0025        .28432E-05   -.42702E-05
  31  Normalizat    .28585        .58379       -.11542E-03    .60671E-05
  32  Prefactor     .89286        1.2383        .47627E-04    .27772E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.01595
  norm       = 1.16818
  Prefactor  = 0.0001
  norm       = 0.0373325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 1.07056
  Prefactor  = 0.00299363
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.84976
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100228
  norm       = 3.62474
  Prefactor  = 0.189389
  Prefactor  = 0.000265378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.2834
  Prefactor  = 0.000100528
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 25.6447
  Prefactor  = 7.18345
  Normalizat = 0.285847
  Prefactor  = 0.892863
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   863.9301     FROM HESSE     STATUS=FAILED        11 CALLS      502 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.0160        3.8765        .44945E-02   -1.5260    
   2  norm          584.54        583.09         .0000       -1.5492    
   3  Prefactor     .10000E-03    .24744       -.59460E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .37332E-01    .65245E-01   -.32659E-02   -1.5747    
   5  Prefactor     .10000E-03    .23073        .27044E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .28021        .47247E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    .26720       -.12395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .27728       -.36926E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0706        1.2141         .0000       -1.5501    
  10  Prefactor     .29936E-02    .41998       -.11108E-03   -1.5697    
  11  norm          .10000E-03    .20571       -.78449E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .21034       -.82433E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .21003        .23023E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8498        1.0422         .0000       -1.5436    
  15  Prefactor     .10000E-03    .21614        .26557E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .27723       -.48854E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .22538        .65503E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10023E-03    .50826E-01    .39516E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6247        1.0098         .0000       -1.5327    
  20  Prefactor     .18939        .15952       -.28585E-02   -1.5621    
  21  Prefactor     .26538E-03    .15303       -.39371E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .20637       -.60106E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20871       -.11077E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     78.283        1.0773       -.27735E-03   -1.3936    
  25  Prefactor     .10053E-03    .14446E-01   -.27207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .20571       -.73440E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .29071        .60044E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .22038        .13904E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     25.645        1.0012        .24711E-05   -1.4695    
  30  Prefactor     7.1834        1.0025        .28432E-05   -1.5172    
  31  Normalizat    .28585        .58379       -.11542E-03   -1.2369    
  32  Prefactor     .89286        1.2383        .47627E-04   -.96391    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.23099e-09
Minuit parameter uncertainties:
  1  3.87673
  2  1.14827
  3  8.36519e-06
  4  0.0652453
  5  2.08e-06
  6  1.51895e-06
  7  0.000113914
  8  1.75574e-07
  9  1.21409
  10  0.0697221
  11  1.20241e-07
  12  4.57089e-07
  13  4.97748e-07
  14  1.04221
  15  2.32793e-06
  16  1.94901e-07
  17  7.37763e-06
  18  0.000215278
  19  1.00984
  20  0.159521
  21  0.0100612
  22  6.81649e-07
  23  1.65489e-06
  24  1.07726
  25  0.000174689
  26  2.76785e-07
  27  1.09487e-05
  28  5.79251e-07
  29  1.00117
  30  1.00255
  31  0.596932
  32  1.28096
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 863.930132934

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  1.000e-04  1.949e-07  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.929e-01  1.281e+00  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:  2.858e-01  5.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 263.598 38.976
Photon Flux Upper Limit: 3.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/915711/likelihoodResults_548294401_548553601_4FGL_J1734.3+3858_daily_bin1192.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) = 863.930503387
delta logL = -0.000370452521679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 863.930132929
delta logL = 5.04428498971e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2232       1.0000          .0000       5.0000    
     3 'Normalizat'    .28585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89286       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=   863.9301     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      235 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.664        .96475E-03** at limit **
   2  alpha         1.9333        3.2098        .16590        .47969E-09
   3  Normalizat    .28584        .53219        .53109E-03   -.65969E-04
   4  Prefactor     .89286        .27938        .15672E-03   -.21683E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.93328
  Normalizat = 0.285845
  Prefactor  = 0.892862
 **********
 **   18 **HESSE 
 **********

 FCN=   863.9301     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.684        .19295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9333        3.1230        .66360E-02   -.22867    
   3  Normalizat    .28584        .53202        .21244E-04   -1.2369    
   4  Prefactor     .89286        .27928        .31343E-04   -.96391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57549e-10
Minuit parameter uncertainties:
  1  1.09988e-05
  2  509.986
  3  0.54186
  4  0.279731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915711': 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) = 863.930132773
delta logL = 1.61703610502e-07

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  1.000e-04  1.100e-05  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.933e+00  5.100e+02  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.929e-01  2.797e-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:  2.858e-01  5.419e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 263.598 38.976

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/915711/cmap_HighResolution_548294401_548553601_4FGL_J1734.3+3858_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-04', job_status='DONE', photon_flux_upper_limit='3.64e-07', time_completed='2021-09-17 23:31:50.513965', job_id='915711', GAL2='0.89', fit_tolerance='1e-08', EG2='0.29', EG='0.29', time_epoch_completed='1631946710.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.89', dlogl='1.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1192' AND source_name='4FGL J1734.3+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 23:31:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 915711: <4FGL_J1734.3+3858_daily_bin1192> in cluster <slac> Done

Job <4FGL_J1734.3+3858_daily_bin1192> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 17 23:25:33 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 23:25:37 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:37 2021
Terminated at Fri Sep 17 23:31:51 2021
Results reported at Fri Sep 17 23:31:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1734.3+3858_daily_bin1192 263.598 38.9763 548294401 548553601 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 :                                   346.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             427.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   373 sec.
    Turnaround time :                            378 sec.

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

