/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 2 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 = 7258
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1740.0+4737_daily_bin170
RA = 265.023, Dec = 47.6198
tmin = 283392001, tmax = 283651201
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='970084', job_status='RUN', time_executed='2021-09-18 02:25:46.645610', time_epoch_executed='1631957146.65' WHERE source_name='4FGL J1740.0+4737' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/970084

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/970084/ft1_4FGL_J1740.0+4737_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/970084/ft2_4FGL_J1740.0+4737_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/970084/ft1_4FGL_J1740.0+4737_daily_bin170.fits outfile=/scratch/kocevski/970084/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin170.fits ra=265.023 dec=47.6198 rad=12.0 tmin=283392001.0 tmax=283651201.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 2.71
user 2.50
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/970084/ft2_4FGL_J1740.0+4737_daily_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/970084/ft2_4FGL_J1740.0+4737_daily_bin170.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/970084/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/970084/ft1_filtered_4FGL_J1740.0+4737_daily_bin170.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.42
user 0.25
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/970084/ft1_filtered_4FGL_J1740.0+4737_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/970084/ft2_4FGL_J1740.0+4737_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/970084/ltcube_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.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/970084/ft2_4FGL_J1740.0+4737_daily_bin170.fits
.....................!
real 8.62
user 8.34
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/970084/ft1_filtered_4FGL_J1740.0+4737_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/970084/ft2_4FGL_J1740.0+4737_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/970084/ltcube_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.fits outfile=/scratch/kocevski/970084/expmap_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.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/970084/ltcube_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.fits
.....................!
real 139.61
user 136.32
sys 3.07

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 214 point sources and 0 extended sources

Setting source of interest to:
4FGL J1740.0+4737 @ 265.023 47.6198

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/970084/ft1_filtered_4FGL_J1740.0+4737_daily_bin170.fits scfile=/scratch/kocevski/970084/ft2_4FGL_J1740.0+4737_daily_bin170.fits outfile=/scratch/kocevski/970084/cmap_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.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=265.023 yref=47.6198 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.44
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/970084/ft1_filtered_4FGL_J1740.0+4737_daily_bin170.fits scfile=/scratch/kocevski/970084/ft2_4FGL_J1740.0+4737_daily_bin170.fits outfile=/scratch/kocevski/970084/cmap_HighResolution_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.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=265.023 yref=47.6198 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.44
user 0.30
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/970084/ft1_filtered_4FGL_J1740.0+4737_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/970084/ft2_4FGL_J1740.0+4737_daily_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/970084/Model_4FGL_J1740.0+4737_daily_bin170.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/970084/ft1_filtered_4FGL_J1740.0+4737_daily_bin170.fits.....................!
real 55.19
user 54.09
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/970084/ft1_filtered_4FGL_J1740.0+4737_daily_bin170.fits', '/scratch/kocevski/970084/ft2_4FGL_J1740.0+4737_daily_bin170.fits', expMap='/scratch/kocevski/970084/expmap_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.fits', expCube='/scratch/kocevski/970084/ltcube_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/970084/Model_4FGL_J1740.0+4737_daily_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1740.0+4737'

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  7.827e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  2.090e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  2.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/970084/ft1_filtered_4FGL_J1740.0+4737_daily_bin170.fits
Spacecraft file(s): /scratch/kocevski/970084/ft2_4FGL_J1740.0+4737_daily_bin170.fits
Exposure map: /scratch/kocevski/970084/expmap_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.fits
Exposure cube: /scratch/kocevski/970084/ltcube_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/970084/Model_4FGL_J1740.0+4737_daily_bin170.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) = 8798.79484555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1003       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5237       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.3525       1.0000         .10000E-03   10000.    
     6 'norm      '    .21090       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7555       1.0000         .10000E-03   10000.    
     8 'norm      '    .83943       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4851       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .39033       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.8715       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5267       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.715       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    64.490       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.475       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.4374       1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.165       1.0000         .10000E-03   10000.    
    26 'norm      '    6.3522       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    11.747       1.0000         .10000E-03   10000.    
    29 'norm      '    7.5006       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4809       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .81310       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8798.791     FROM MIGRAD    STATUS=CONVERGED    785 CALLS     4131 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1000        4.0127       -.16149E-06   -.44688E-03
   2  Prefactor     .10000E-03    1.1994        .55803E-08** at limit **
   3  Prefactor     2.5236        2.0904        .43826E-08   -.51548E-04
   4  Prefactor     .10000E-03    5.4491        .69314E-07** at limit **
   5  norm          5.3524        2.0546        .53603E-08    .10859E-04
   6  norm          .21093        .50528        .38838E-06    .84550E-03
   7  Prefactor     6.7546        9.0026       -.46609E-06   -.26242E-03
   8  norm          .83953        1.0039        .16067E-06   -.27779E-03
   9  norm          3.4852        6.6835        .33282E-06   -.88071E-04
  10  Prefactor     .10000E-03    2.6013        .13182E-07** at limit **
  11  norm          .38950        1.3217        .33220E-06   -.53145E-03
  12  Prefactor     .10000E-03    1.0918        .94870E-09** at limit **
  13  Prefactor     .10000E-03    13.006        .12308E-05** at limit **
  14  norm          3.8714        3.4440       -.13523E-06   -.21370E-03
  15  Prefactor     .10000E-03    16.984       -.28039E-05** at limit **
  16  norm          .10000E-03    5.3602       -.43610E-07** at limit **
  17  Prefactor     .10000E-03    19.176       -.84762E-06** at limit **
  18  Prefactor     1.5264        3.5831        .73725E-06   -.21884E-03
  19  Prefactor     11.714        37.776       -.74289E-06   -.30031E-04
  20  Prefactor     .10001E-03    37.155       -.49485E-05** at limit **
  21  Prefactor     64.489        46.535       -.30791E-06   -.42433E-04
  22  Prefactor     14.475        8.6599       -.78608E-07   -.28243E-04
  23  Prefactor     .10000E-03    7.3835       -.64769E-07** at limit **
  24  norm          8.4370        8.1536        .11064E-05   -.38424E-03
  25  Prefactor     27.164        16.865       -.13447E-06   -.56956E-04
  26  norm          6.3514        7.1611        .23990E-05   -.77871E-03
  27  Prefactor     .10002E-03    25.007        .67867E-05** at limit **
  28  norm          11.746        10.420        .10588E-05   -.32041E-03
  29  norm          7.5010        9.4731        .44389E-06   -.14638E-03
  30  Normalizat    1.4810        .19988       -.78983E-06   -.18340E-03
  31  Prefactor     .81301        .12755       -.56210E-06   -.17453E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10005
  Prefactor  = 0.0001
  Prefactor  = 2.52358
  Prefactor  = 0.0001
  norm       = 5.35238
  norm       = 0.210929
  Prefactor  = 6.75457
  norm       = 0.839532
  norm       = 3.48516
  Prefactor  = 0.0001
  norm       = 0.389497
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.87139
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.52643
  Prefactor  = 11.714
  Prefactor  = 0.000100011
  Prefactor  = 64.4895
  Prefactor  = 14.4754
  Prefactor  = 0.0001
  norm       = 8.43701
  Prefactor  = 27.164
  norm       = 6.35141
  Prefactor  = 0.000100019
  norm       = 11.7464
  norm       = 7.501
  Normalizat = 1.48103
  Prefactor  = 0.813008
 **********
 **   18 **HESSE 
 **********

 FCN=   8798.791     FROM HESSE     STATUS=OK           630 CALLS     4761 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1000        4.0289        .14748E-03   -1.5214    
   2  Prefactor     .10000E-03    1.2111        .10024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5236        2.0903        .11975E-03   -1.5390    
   4  Prefactor     .10000E-03    5.4678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.3524        2.0549        .81126E-04   -1.5245    
   6  norm          .21093        .43468        .10021E-02   -1.5616    
   7  Prefactor     6.7546        8.6919        .15438E-03   -1.5188    
   8  norm          .83953        .92026        .91130E-03   -1.5525    
   9  norm          3.4852        6.6633        .21659E-03   -1.5335    
  10  Prefactor     .10000E-03    2.6060        .14775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .38950        1.7942        .17784E-02   -1.5583    
  12  Prefactor     .10000E-03    1.0952        .95700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8714        3.4439        .15904E-03   -1.5314    
  15  Prefactor     .10000E-03    17.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.4672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5264        3.5468        .25681E-03   -1.5461    
  19  Prefactor     11.714        37.633        .11704E-03   -1.5023    
  20  Prefactor     .10001E-03    38.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     64.489        46.399        .49972E-04   -1.4100    
  22  Prefactor     14.475        8.6548        .10527E-03   -1.4947    
  23  Prefactor     .10000E-03    7.3873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.4370        8.2150        .69004E-03   -1.5127    
  25  Prefactor     27.164        16.883        .76864E-04   -1.4665    
  26  norm          6.3514        7.3715        .79628E-03   -1.5204    
  27  Prefactor     .10002E-03    27.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          11.746        10.476        .58441E-03   -1.5022    
  29  norm          7.5010        9.4788        .73218E-03   -1.5160    
  30  Normalizat    1.4810        .23589        .27988E-03   -.78313    
  31  Prefactor     .81301        .14995        .24251E-03   -.99251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.35396e-09
Minuit parameter uncertainties:
  1  4.02911
  2  9.32982e-07
  3  2.09034
  4  6.22152e-06
  5  2.05494
  6  0.434682
  7  8.69353
  8  0.920276
  9  6.66471
  10  9.05004e-07
  11  1.67178
  12  2.5231e-07
  13  0.000188719
  14  3.44409
  15  0.000486887
  16  6.14235e-07
  17  0.000150888
  18  3.54734
  19  37.7098
  20  0.00128598
  21  46.4246
  22  8.65553
  23  6.62457e-06
  24  8.21613
  25  16.8857
  26  7.37258
  27  0.00143534
  28  10.4778
  29  9.48071
  30  0.236063
  31  0.150021
Done.

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

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  1.000e-04  1.509e-04  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  2.090e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  2.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  8.130e-01  1.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.481e+00  2.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 265.023 47.620
Photon Flux Upper Limit: 5.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/970084/likelihoodResults_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.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) = 8798.7917231
delta logL = -0.000247804582614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8798.79147544
delta logL = -1.40267729876e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1795       1.0000          .0000       10.000    
     3 'Normalizat'    1.4810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81301       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8798.791     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      229 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    952.43        .90712E-02** at limit **
   2  Index         2.1722        6.0858        .50000        .32063E-05
   3  Normalizat    1.4810        .37296E-01    .63279E-01    .95049E-03
   4  Prefactor     .81301        .24950E-01    .43886E-01    .81791E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17217
  Normalizat = 1.48104
  Prefactor  = 0.813006
 **********
 **   18 **HESSE 
 **********

 FCN=   8798.791     FROM HESSE     STATUS=OK            29 CALLS      258 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1722        6.0840        .50000       -.60112    
   3  Normalizat    1.4810        .21779        .27988E-03   -.78313    
   4  Prefactor     .81301        .14577        .24251E-03   -.99251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.01089e-10
Minuit parameter uncertainties:
  1  3.92461e-05
  2  4.16747
  3  0.217928
  4  0.145834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/970084': 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) = 8798.79147536
delta logL = -6.01321517024e-08

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  1.000e-04  3.925e-05  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  2.172e+00  4.167e+00  0.000e+00  1.000e+01 (-1.000e+00)
360        Scale:  2.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  8.130e-01  1.458e-01  0.000e+00  1.000e+01 ( 1.000e+00)
701        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
702        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
699   Normalization:  1.481e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 265.023 47.620

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/970084/cmap_HighResolution_283392001_283651201_4FGL_J1740.0+4737_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-03', job_status='DONE', photon_flux_upper_limit='5.25e-08', time_completed='2021-09-18 02:41:33.965730', job_id='970084', GAL2='0.81', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1631958093.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-6.01e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='170' AND source_name='4FGL J1740.0+4737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:41:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 970084: <4FGL_J1740.0+4737_daily_bin170> in cluster <slac> Done

Job <4FGL_J1740.0+4737_daily_bin170> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 18 02:25:36 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 02:25:37 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:25:37 2021
Terminated at Sat Sep 18 02:41:34 2021
Results reported at Sat Sep 18 02:41:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.0+4737_daily_bin170 265.023 47.6198 283392001 283651201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1740.0+4737 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   934.00 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             319.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            958 sec.

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

