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


Performing analysis on: 4FGL_J1734.3+3858_daily_bin1244
RA = 263.598, Dec = 38.9763
tmin = 561772801, tmax = 562032001
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='916629', job_status='RUN', time_executed='2021-09-17 23:33:13.205200', time_epoch_executed='1631946793.21' WHERE source_name='4FGL J1734.3+3858' and cadence='daily' and bin_id='1244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916629

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916629/ft1_4FGL_J1734.3+3858_daily_bin1244.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916629/ft2_4FGL_J1734.3+3858_daily_bin1244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916629/ft1_4FGL_J1734.3+3858_daily_bin1244.fits outfile=/scratch/kocevski/916629/ft1_filteredMKT_4FGL_J1734.3+3858_daily_bin1244.fits ra=263.598 dec=38.9763 rad=12.0 tmin=561772801.0 tmax=562032001.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.98
user 3.74
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916629/ft1_filtered_4FGL_J1734.3+3858_daily_bin1244.fits" evtable="EVENTS" scfile=/scratch/kocevski/916629/ft2_4FGL_J1734.3+3858_daily_bin1244.fits sctable="SC_DATA" outfile=/scratch/kocevski/916629/ltcube_561772801_562032001_4FGL_J1734.3+3858_daily_bin1244.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/916629/ft2_4FGL_J1734.3+3858_daily_bin1244.fits
.....................!
real 11.92
user 11.53
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916629/ft1_filtered_4FGL_J1734.3+3858_daily_bin1244.fits evtable="EVENTS" scfile=/scratch/kocevski/916629/ft2_4FGL_J1734.3+3858_daily_bin1244.fits sctable="SC_DATA" expcube=/scratch/kocevski/916629/ltcube_561772801_562032001_4FGL_J1734.3+3858_daily_bin1244.fits outfile=/scratch/kocevski/916629/expmap_561772801_562032001_4FGL_J1734.3+3858_daily_bin1244.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/916629/ltcube_561772801_562032001_4FGL_J1734.3+3858_daily_bin1244.fits
.....................!
real 190.26
user 185.39
sys 4.47

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/916629/ft1_filtered_4FGL_J1734.3+3858_daily_bin1244.fits scfile=/scratch/kocevski/916629/ft2_4FGL_J1734.3+3858_daily_bin1244.fits outfile=/scratch/kocevski/916629/cmap_561772801_562032001_4FGL_J1734.3+3858_daily_bin1244.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/916629/ft1_filtered_4FGL_J1734.3+3858_daily_bin1244.fits scfile=/scratch/kocevski/916629/ft2_4FGL_J1734.3+3858_daily_bin1244.fits outfile=/scratch/kocevski/916629/cmap_HighResolution_561772801_562032001_4FGL_J1734.3+3858_daily_bin1244.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0223       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1682       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5385       1.0000         .10000E-03   10000.    
     4 'norm      '    9.4011       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3448       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4945       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0670       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1827       1.0000         .10000E-03   10000.    
     9 'norm      '    1.0706       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1370       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0179       1.0000         .10000E-03   10000.    
    12 'norm      '    3.7477       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3038       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.650       1.0000         .10000E-03   10000.    
    16 'norm      '    .26351       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3688       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.485       1.0000         .10000E-03   10000.    
    19 'norm      '    3.6247       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.8266       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5480       1.0000         .10000E-03   10000.    
    22 'Prefactor '    214.61       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2172       1.0000         .10000E-03   10000.    
    24 'Prefactor '    176.06       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.8472       1.0000         .10000E-03   10000.    
    26 'norm      '    1.3598       1.0000         .10000E-03   10000.    
    27 'norm      '    14.515       1.0000         .10000E-03   10000.    
    28 'norm      '    7.9705       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    24.798       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .60446       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=   283.2872     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      349 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0223        1.2871         .0000         .0000    
   2  norm          1.1682        1.1483         .0000         .0000    
   3  Prefactor     4.5385        1.0062         .0000         .0000    
   4  norm          9.4011        1.0014         .0000         .0000    
   5  Prefactor     1.3448        1.0948         .0000         .0000    
   6  Prefactor     1.4945        1.0711         .0000         .0000    
   7  Prefactor     1.0670        1.2178         .0000         .0000    
   8  norm          4.1827        1.0073         .0000         .0000    
   9  norm          1.0706        1.2141         .0000         .0000    
  10  Prefactor     1.1370        1.1641         .0000         .0000    
  11  norm          1.0179        1.2984         .0000         .0000    
  12  norm          .73684E-03    1093.4       -.12738E-03** at limit **
  13  norm          2.3038        1.0257         .0000         .0000    
  14  Prefactor     1.8498        1.0422         .0000         .0000    
  15  Prefactor     724.31        1498.4       -.25222E-04    .20013E-04
  16  norm          .10000E-03    120.49        .39744E-05** at limit **
  17  Prefactor     .21963E-02    110.07        .19892E-04** at limit **
  18  Prefactor     175.55        463.52        .85152E-04   -.76489E-03
  19  norm          3.6247        1.0098         .0000         .0000    
  20  Prefactor     7.8266        1.0021         .0000         .0000    
  21  Prefactor     2.5480        1.0207         .0000         .0000    
  22  Prefactor     155.04        180.16       -.25173E-04    .22880E-03
  23  Prefactor     1.3663        15.066        .24434E-04    .16356E-02
  24  Prefactor     175.95        107.89       -.23732E-04    .10367E-01
  25  Prefactor     .10002E-03    197.35        .10479E-04** at limit **
  26  norm          1.6101        8.8431       -.25222E-05    .12460E-04
  27  norm          .15919E-02    129.40       -.78098E-04** at limit **
  28  norm          .20462E-02    12.838       -.14942E-04** at limit **
  29  Prefactor     .10000E-03    81.386       -.50441E-04** at limit **
  30  Prefactor     26.215        24.075        .61151E-06    .70626E-04
  31  Normalizat    .10000E-01    .48605        .14409E-03** at limit **
  32  Prefactor     .58237        .27703        .57282E-04   -.29471E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02226
  norm       = 1.16818
  Prefactor  = 4.53854
  norm       = 9.40107
  Prefactor  = 1.34483
  Prefactor  = 1.49445
  Prefactor  = 1.06698
  norm       = 4.18269
  norm       = 1.07056
  Prefactor  = 1.13703
  norm       = 1.01791
  norm       = 0.000736837
  norm       = 2.30379
  Prefactor  = 1.84976
  Prefactor  = 724.306
  norm       = 0.000100002
  Prefactor  = 0.00219625
  Prefactor  = 175.554
  norm       = 3.62474
  Prefactor  = 7.82657
  Prefactor  = 2.54799
  Prefactor  = 155.036
  Prefactor  = 1.36627
  Prefactor  = 175.949
  Prefactor  = 0.000100017
  norm       = 1.61007
  norm       = 0.00159191
  norm       = 0.00204624
  Prefactor  = 0.0001
  Prefactor  = 26.2155
  Normalizat = 0.01
  Prefactor  = 0.58237
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   283.2872     FROM HESSE     STATUS=FAILED         9 CALLS      358 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          587.82        586.39         .0000       -1.5506    
   2  norm          1.1682        1.1483         .0000       -1.5492    
   3  Prefactor     4.5385        1.0062         .0000       -1.5282    
   4  norm          9.4011        1.0014         .0000       -1.5095    
   5  Prefactor     1.3448        1.0948         .0000       -1.5476    
   6  Prefactor     1.4945        1.0711         .0000       -1.5463    
   7  Prefactor     1.0670        1.2178         .0000       -1.5501    
   8  norm          4.1827        1.0073         .0000       -1.5299    
   9  norm          1.0706        1.2141         .0000       -1.5501    
  10  Prefactor     1.1370        1.1641         .0000       -1.5495    
  11  norm          1.0179        1.2984         .0000       -1.5506    
  12  norm          .73684E-03    .67967E-01   -.12738E-03   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3038        1.0257         .0000       -1.5404    
  14  Prefactor     1.8498        1.0422         .0000       -1.5436    
  15  Prefactor     724.31        7.2981       -.25222E-04   -1.0258    
  16  norm          .10000E-03    .26336        .39744E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .21963E-02    .47002E-01    .19892E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     175.55        3.1448        .85152E-04   -1.3050    
  19  norm          3.6247        1.0098         .0000       -1.5327    
  20  Prefactor     7.8266        1.0021         .0000       -1.5148    
  21  Prefactor     2.5480        1.0207         .0000       -1.5389    
  22  Prefactor     155.04        .85253       -.25173E-04   -1.3211    
  23  Prefactor     1.3663        .57336        .24434E-04   -1.5474    
  24  Prefactor     175.95        .99969       -.23732E-04   -1.3047    
  25  Prefactor     .10002E-03    .28374E-01    .10479E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.6101        1.1881       -.25222E-05   -1.5454    
  27  norm          .15919E-02    .17269E-01   -.78098E-04   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .20462E-02    .31515E-01   -.14942E-04   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .20571       -.50441E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     26.215        1.0283        .61151E-06   -1.4683    
  31  Normalizat    .10000E-01    .25775        .14409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .58237        .93597        .57282E-04   -1.0833    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.95711e-10
Minuit parameter uncertainties:
  1  1.28717
  2  1.14827
  3  1.0062
  4  1.00142
  5  1.09481
  6  1.07115
  7  1.21783
  8  1.00733
  9  1.21409
  10  1.16413
  11  1.29845
  12  0.0131581
  13  1.02574
  14  1.04221
  15  7.29811
  16  4.45843e-05
  17  0.0198523
  18  3.14479
  19  1.00984
  20  1.00205
  21  1.02068
  22  0.852534
  23  0.57336
  24  0.99969
  25  4.43456e-05
  26  1.18811
  27  0.0101516
  28  0.0156635
  29  1.13044e-05
  30  1.02832
  31  1.01821e-07
  32  0.962873
Done.

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

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  1.000e-04  4.458e-05  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:  5.824e-01  9.629e-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.000e-02  1.018e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 263.598 38.976
Photon Flux Upper Limit: 4.19e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916629/likelihoodResults_561772801_562032001_4FGL_J1734.3+3858_daily_bin1244.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 283.287199396
delta logL = -3.86641829664e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 283.287161317
delta logL = -5.85060774938e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10310E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4021       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58237       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   283.2872     FROM MIGRAD    STATUS=FAILED        98 CALLS      268 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7258.8        .12038E-01** at limit **
   2  alpha         1.9046        3.1490        .18075        .39754E-07
   3  Normalizat    .10000E-01    .44407E-01    .70391E-02** at limit **
   4  Prefactor     .58237        .69252E-01    .16168E-03    .61877E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   283.2872     FROM SIMPLEX   STATUS=UNCHANGED    193 CALLS      461 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7258.8        .16968E-02** at limit **
   2  alpha         1.9046        3.1490        .52777E-07    .39754E-07
   3  Normalizat    .10000E-01    .44407E-01    .10838E-02** at limit **
   4  Prefactor     .58237        .69252E-01    .57052E-09    .61877E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   283.2872     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      489 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    135.38        .18798E-02** at limit **
   2  alpha         1.8818        3.9601        .72302E-02    .19282E-07
   3  Normalizat    .10000E-01    .48286        .14078E-02** at limit **
   4  Prefactor     .58237        .22972        .32336E-04    .61701E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100021
  alpha      = 1.88181
  Normalizat = 0.01
  Prefactor  = 0.582371
 **********
 **   18 **HESSE 
 **********

 FCN=   283.2872     FROM HESSE     STATUS=OK            23 CALLS      512 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    130.22        .37597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8818        2.6998        .14460E-02   -.24987    
   3  Normalizat    .10000E-01    .48285        .28156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .58237        .22972        .64673E-05   -1.0833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3767e-10
Minuit parameter uncertainties:
  1  0.00333664
  2  1643.38
  3  3.65307e-06
  4  0.230089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916629': 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) = 283.287160707
delta logL = 2.45179307967e-08

Extracting fit parameters...

4FGL J1734.3+3858
   Spectrum: LogParabola
325         norm:  1.000e-04  3.337e-03  1.000e-04  1.000e+04 ( 1.000e-12)
326        alpha:  1.882e+00  1.643e+03  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:  5.824e-01  2.301e-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.000e-02  3.653e-06  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/916629/cmap_HighResolution_561772801_562032001_4FGL_J1734.3+3858_daily_bin1244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-03', job_status='DONE', photon_flux_upper_limit='4.19e-06', time_completed='2021-09-17 23:38:52.628347', job_id='916629', GAL2='0.58', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631947132.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.58', dlogl='2.45e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1244' AND source_name='4FGL J1734.3+3858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 23:38:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 916629: <4FGL_J1734.3+3858_daily_bin1244> in cluster <slac> Done

Job <4FGL_J1734.3+3858_daily_bin1244> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 17 23:30:18 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 23:30:19 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:30:19 2021
Terminated at Fri Sep 17 23:38:53 2021
Results reported at Fri Sep 17 23:38:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1734.3+3858_daily_bin1244 263.598 38.9763 561772801 562032001 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 :                                   335.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   513 sec.
    Turnaround time :                            515 sec.

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

