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


Performing analysis on: 4FGL_J1739.5+4955_daily_bin1056
RA = 264.886, Dec = 49.932
tmin = 513043201, tmax = 513302401
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='964589', job_status='RUN', time_executed='2021-09-18 02:05:55.263913', time_epoch_executed='1631955955.26' WHERE source_name='4FGL J1739.5+4955' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/964589

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/964589/ft1_4FGL_J1739.5+4955_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/964589/ft2_4FGL_J1739.5+4955_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/964589/ft1_4FGL_J1739.5+4955_daily_bin1056.fits outfile=/scratch/kocevski/964589/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin1056.fits ra=264.886 dec=49.932 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.35
user 6.10
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/964589/ft2_4FGL_J1739.5+4955_daily_bin1056.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/964589/ft2_4FGL_J1739.5+4955_daily_bin1056.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/964589/ft1_filteredMKT_4FGL_J1739.5+4955_daily_bin1056.fits evtable="EVENTS" outfile="/scratch/kocevski/964589/ft1_filtered_4FGL_J1739.5+4955_daily_bin1056.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/964589/ft1_filtered_4FGL_J1739.5+4955_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/964589/ft2_4FGL_J1739.5+4955_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/964589/ltcube_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.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/964589/ft2_4FGL_J1739.5+4955_daily_bin1056.fits
.....................!
real 12.13
user 11.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/964589/ft1_filtered_4FGL_J1739.5+4955_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/964589/ft2_4FGL_J1739.5+4955_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/964589/ltcube_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.fits outfile=/scratch/kocevski/964589/expmap_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.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/964589/ltcube_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.fits
.....................!
real 189.70
user 185.18
sys 4.17

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1739.5+4955 @ 264.886 49.932

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/964589/ft1_filtered_4FGL_J1739.5+4955_daily_bin1056.fits scfile=/scratch/kocevski/964589/ft2_4FGL_J1739.5+4955_daily_bin1056.fits outfile=/scratch/kocevski/964589/cmap_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.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=264.886 yref=49.932 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/964589/ft1_filtered_4FGL_J1739.5+4955_daily_bin1056.fits scfile=/scratch/kocevski/964589/ft2_4FGL_J1739.5+4955_daily_bin1056.fits outfile=/scratch/kocevski/964589/cmap_HighResolution_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.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=264.886 yref=49.932 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/964589/ft1_filtered_4FGL_J1739.5+4955_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/964589/ft2_4FGL_J1739.5+4955_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/964589/Model_4FGL_J1739.5+4955_daily_bin1056.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/964589/ft1_filtered_4FGL_J1739.5+4955_daily_bin1056.fits......................!
real 41.21
user 39.94
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/964589/ft1_filtered_4FGL_J1739.5+4955_daily_bin1056.fits', '/scratch/kocevski/964589/ft2_4FGL_J1739.5+4955_daily_bin1056.fits', expMap='/scratch/kocevski/964589/expmap_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.fits', expCube='/scratch/kocevski/964589/ltcube_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/964589/Model_4FGL_J1739.5+4955_daily_bin1056.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1739.5+4955'

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  3.625e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/964589/ft1_filtered_4FGL_J1739.5+4955_daily_bin1056.fits
Spacecraft file(s): /scratch/kocevski/964589/ft2_4FGL_J1739.5+4955_daily_bin1056.fits
Exposure map: /scratch/kocevski/964589/expmap_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.fits
Exposure cube: /scratch/kocevski/964589/ltcube_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/964589/Model_4FGL_J1739.5+4955_daily_bin1056.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) = 3905.76847127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3905.76009476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19633E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6211       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.992       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2508       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11143E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .27286E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3805       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0334       1.0000         .10000E-03   10000.    
    10 'norm      '    .16710E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49386E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .26470       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0441       1.0000         .10000E-03   10000.    
    14 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11938E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .36841E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.245       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27865E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.5699       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .64878E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20813E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .27977E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.380       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10972E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .36253E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    31.261       1.0000         .10000E-03   10000.    
    28 'Prefactor '    23.010       1.0000         .10000E-03   10000.    
    29 'norm      '    12.661       1.0000         .10000E-03   10000.    
    30 'Prefactor '    24.544       1.0000         .10000E-03   10000.    
    31 'norm      '    24.055       1.0000         .10000E-03   10000.    
    32 'norm      '    31.362       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .74753E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.4391       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3905.757     FROM MIGRAD    STATUS=CONVERGED    226 CALLS     3551 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.699        .67511E-05** at limit **
   2  Prefactor     3.6150        5.2757       -.31703E-05   -.11055E-03
   3  Prefactor     12.003        9.5442       -.77869E-06   -.38998E-02
   4  Prefactor     5.3856        7.9210        .24772E-05   -.16569E-03
   5  Prefactor     .10000E-03    2.8779        .10088E-05** at limit **
   6  Prefactor     34.512        22.581        .47889E-06   -.41010E-02
   7  Prefactor     .10000E-03    12.454       -.24131E-06** at limit **
   8  norm          1.3796        1.2018       -.30076E-06    .29425E-04
   9  Prefactor     5.0624        8.0301       -.26594E-05   -.72785E-02
  10  norm          .10000E-03    2.7451        .14880E-05** at limit **
  11  Prefactor     .10000E-03    3.8184        .76025E-06** at limit **
  12  norm          .16854        29.622       -.15996E-05    .79417E-03
  13  Prefactor     7.9914        11.051       -.41577E-06    .17148E-02
  14  norm          .10000E-03    1.3812        .78153E-06** at limit **
  15  Prefactor     .10000E-03    4.5048        .80440E-06** at limit **
  16  Prefactor     .10018E-03    7.7333        .20618E-05** at limit **
  17  norm          24.396        12.270       -.23484E-06   -.71312E-03
  18  Prefactor     .10000E-03    10.252        .50098E-05** at limit **
  19  norm          3.5757        10.636       -.12781E-05   -.78076E-03
  20  Prefactor     .10103E-03    31.987       -.20510E-06** at limit **
  21  Prefactor     .10000E-03    9.5689       -.26132E-05** at limit **
  22  Prefactor     .10167E-03    51.112        .24514E-05** at limit **
  23  Prefactor     54.324        142.50       -.28332E-04    .17317E-03
  24  Prefactor     .10351E-03    28.247       -.25377E-05** at limit **
  25  Prefactor     .10000E-03    10.441       -.37368E-06** at limit **
  26  Prefactor     .10005E-03    25.615        .74893E-05** at limit **
  27  norm          31.496        12.316       -.13374E-05    .42890E-02
  28  Prefactor     22.693        31.536       -.24640E-05    .21282E-02
  29  norm          12.530        14.176        .69581E-06   -.10045E-02
  30  Prefactor     25.425        44.135       -.18461E-05    .44386E-03
  31  norm          24.381        14.916        .67692E-06   -.34359E-02
  32  norm          31.246        9.5603       -.15532E-06    .16799E-02
  33  Prefactor     .10000E-03    1.2076       -.50722E-06** at limit **
  34  Normalizat    .72539E-01    .46577       -.57346E-04    .41995E-05
  35  Prefactor     1.4385        .23973        .13184E-04    .50290E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.61505
  Prefactor  = 12.0034
  Prefactor  = 5.38563
  Prefactor  = 0.0001
  Prefactor  = 34.5115
  Prefactor  = 0.0001
  norm       = 1.3796
  Prefactor  = 5.0624
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.168541
  Prefactor  = 7.9914
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100181
  norm       = 24.3956
  Prefactor  = 0.0001
  norm       = 3.57571
  Prefactor  = 0.000101031
  Prefactor  = 0.0001
  Prefactor  = 0.000101666
  Prefactor  = 54.3243
  Prefactor  = 0.000103512
  Prefactor  = 0.0001
  Prefactor  = 0.000100051
  norm       = 31.496
  Prefactor  = 22.6934
  norm       = 12.5304
  Prefactor  = 25.4246
  norm       = 24.3808
  norm       = 31.246
  Prefactor  = 0.0001
  Normalizat = 0.0725388
  Prefactor  = 1.43851
 **********
 **   18 **HESSE 
 **********

 FCN=   3905.757     FROM HESSE     STATUS=NOT POSDEF   854 CALLS     4405 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.238        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6150        7.1505        .53079E-02   -1.5328    
   3  Prefactor     12.003        14.414        .28919E-02   -1.5015    
   4  Prefactor     5.3856        15.133        .43853E-02   -1.5244    
   5  Prefactor     .10000E-03    2.4360        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.512        38.824        .16981E-02   -1.4532    
   7  Prefactor     .10000E-03    10.384        .10715E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3796        1.2314        .92616E-03   -1.5473    
   9  Prefactor     5.0624        25.002        .44808E-02   -1.5258    
  10  norm          .10000E-03    1.1739        .18891E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1815        .10582E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .16854        12.264        .75908E-01   -1.5626    
  13  Prefactor     7.9914        21.187        .35341E-02   -1.5143    
  14  norm          .10000E-03    1.1939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7272        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10018E-03    41.202        .10650E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.396        15.033        .20338E-02   -1.4720    
  18  Prefactor     .10000E-03    53.363        .10710E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.5757        23.164        .53475E-02   -1.5330    
  20  Prefactor     .10103E-03    30.594        .10511E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0410        .10096E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10167E-03    69.552        .91620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     54.324        186.44        .14719E-02   -1.4233    
  24  Prefactor     .10351E-03    77.774        .90778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.7139        .10654E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10005E-03    21.477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          31.496        23.134        .17916E-02   -1.4585    
  28  Prefactor     22.693        44.862        .20876E-02   -1.4755    
  29  norm          12.530        26.197        .28144E-02   -1.5000    
  30  Prefactor     25.425        40.949        .20214E-02   -1.4699    
  31  norm          24.381        21.407        .20418E-02   -1.4720    
  32  norm          31.246        18.857        .17887E-02   -1.4589    
  33  Prefactor     .10000E-03    1.0059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .72539E-01    8.2712        .25014       -1.4124    
  35  Prefactor     1.4385        1.0033        .30543E-01   -.79277    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.76624e-07
Minuit parameter uncertainties:
  1  8.36003e-05
  2  7.15223
  3  14.4184
  4  15.1433
  5  4.15582e-06
  6  38.8521
  7  2.40419e-07
  8  1.23145
  9  22.5156
  10  3.20634e-06
  11  3.77022e-06
  12  2.8752
  13  21.2067
  14  2.56833e-06
  15  6.88357e-06
  16  0.00547127
  17  15.035
  18  0.000164696
  19  18.2121
  20  0.0112409
  21  1.10489e-05
  22  0.0215522
  23  188.501
  24  0.0330964
  25  3.07003e-06
  26  0.00208806
  27  23.1406
  28  44.9283
  29  26.2211
  30  40.9945
  31  21.414
  32  18.8608
  33  1.56256e-07
  34  1.62274
  35  1.01751
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3905.75731102

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  3.576e+00  1.821e+01  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.439e+00  1.018e+00  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  7.254e-02  1.623e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 264.886 49.932
Photon Flux Upper Limit: 1.58e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/964589/likelihoodResults_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.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) = 3905.13043096
delta logL = 0.6268800656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3905.11647374
delta logL = 0.640837285028

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3905.116     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      334 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29512        16.640        .79403E-02    .65388E-03
   2  alpha         5.0000        3.6487        .46267    ** at limit **
   3  Normalizat    .10000E-01    .12262        .32234    ** at limit **
   4  Prefactor     1.4657        .11033        .30210E-01   -.28199E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.295118
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 1.46573
 **********
 **   18 **HESSE 
 **********

 FCN=   3905.116     FROM HESSE     STATUS=OK            35 CALLS      369 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29512        .32341        .36305E-03   -1.5599    
   2  alpha         5.0000        3.7033        .63289E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    1.2681        .11084E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4657        .11209        .18847E-03   -.78504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52408e-10
Minuit parameter uncertainties:
  1  0.323413
  2  7.26799e-07
  3  8.49154e-08
  4  0.112109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/964589': 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) = 3905.11647008
delta logL = 0.640840948894

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  2.951e-01  3.234e-01  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  5.000e+00  7.268e-07  0.000e+00  5.000e+00 ( 1.000e+00)
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.466e+00  1.121e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.000e-02  8.492e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 264.886 49.932
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.92e-08 +/- 9.72e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/964589/cmap_HighResolution_513043201_513302401_4FGL_J1739.5+4955_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.81e-05', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='6.41e-01', photon_flux2='8.92e-08', job_status='DONE', time_completed='2021-09-18 02:19:06.486761', photon_index_error2='0.00', photon_index2='5.00', ts='0.13', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.32e-05', EG='0.07', time_epoch_completed='1631956746.49', return_code='102', job_id='964589', GAL2='1.47', EG2='0.01', return_code2='0', photon_flux_error2='9.72e-08', ts2='1.49', photon_index='2.27' WHERE bin_id='1056' AND source_name='4FGL J1739.5+4955' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:19:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 964589: <4FGL_J1739.5+4955_daily_bin1056> in cluster <slac> Done

Job <4FGL_J1739.5+4955_daily_bin1056> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 02:05:39 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 02:05:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 02:05:41 2021
Terminated at Sat Sep 18 02:19:07 2021
Results reported at Sat Sep 18 02:19:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_daily_bin1056 264.886 49.932 513043201 513302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1739.5+4955 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   785.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            808 sec.

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

