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


Performing analysis on: 4FGL_J1740.0+4737_daily_bin1205
RA = 265.023, Dec = 47.6198
tmin = 551664001, tmax = 551923201
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='977878', job_status='RUN', time_executed='2021-09-18 02:58:16.642140', time_epoch_executed='1631959096.64' WHERE source_name='4FGL J1740.0+4737' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/977878

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/977878/ft1_4FGL_J1740.0+4737_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/977878/ft2_4FGL_J1740.0+4737_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/977878/ft1_4FGL_J1740.0+4737_daily_bin1205.fits outfile=/scratch/kocevski/977878/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin1205.fits ra=265.023 dec=47.6198 rad=12.0 tmin=551664001.0 tmax=551923201.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.75
user 3.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/977878/ft2_4FGL_J1740.0+4737_daily_bin1205.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/977878/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/977878/ft1_filtered_4FGL_J1740.0+4737_daily_bin1205.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/977878/ft1_filtered_4FGL_J1740.0+4737_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/977878/ft2_4FGL_J1740.0+4737_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/977878/ltcube_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.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/977878/ft2_4FGL_J1740.0+4737_daily_bin1205.fits
.....................!
real 11.76
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/977878/ft1_filtered_4FGL_J1740.0+4737_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/977878/ft2_4FGL_J1740.0+4737_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/977878/ltcube_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.fits outfile=/scratch/kocevski/977878/expmap_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.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/977878/ltcube_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.fits
.....................!
real 190.07
user 185.41
sys 4.28

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/977878/ft1_filtered_4FGL_J1740.0+4737_daily_bin1205.fits scfile=/scratch/kocevski/977878/ft2_4FGL_J1740.0+4737_daily_bin1205.fits outfile=/scratch/kocevski/977878/cmap_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.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.56
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/977878/ft1_filtered_4FGL_J1740.0+4737_daily_bin1205.fits scfile=/scratch/kocevski/977878/ft2_4FGL_J1740.0+4737_daily_bin1205.fits outfile=/scratch/kocevski/977878/cmap_HighResolution_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.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.53
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/977878/ft1_filtered_4FGL_J1740.0+4737_daily_bin1205.fits', '/scratch/kocevski/977878/ft2_4FGL_J1740.0+4737_daily_bin1205.fits', expMap='/scratch/kocevski/977878/expmap_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.fits', expCube='/scratch/kocevski/977878/ltcube_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/977878/Model_4FGL_J1740.0+4737_daily_bin1205.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/977878/ft1_filtered_4FGL_J1740.0+4737_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/977878/ft2_4FGL_J1740.0+4737_daily_bin1205.fits
Exposure map: /scratch/kocevski/977878/expmap_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.fits
Exposure cube: /scratch/kocevski/977878/ltcube_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/977878/Model_4FGL_J1740.0+4737_daily_bin1205.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) = 175.345239949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.962       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17345E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11842E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    24.879       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    292.69       1.0000         .10000E-03   10000.    
    14 'norm      '    57.793       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10281E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37512E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .46162E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12035E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16656E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.1347       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14153E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10495E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10335E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .17064E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    167.02       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10011E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2853       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=   175.3358     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     4683 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.292        .28377E-04** at limit **
   2  Prefactor     .10000E-03    41.766       -.18040E-04** at limit **
   3  Prefactor     21.962        30.404        .11016E-05   -.93783E-05
   4  Prefactor     .10000E-03    282.36       -.52084E-04** at limit **
   5  norm          .10000E-03    17.552        .46907E-06** at limit **
   6  norm          .10000E-03    6.9880       -.10934E-07** at limit **
   7  Prefactor     .10000E-03    368.70        .11458E-03** at limit **
   8  norm          .10000E-03    4.1948       -.30726E-07** at limit **
   9  norm          .10000E-03    37.562        .11610E-05** at limit **
  10  Prefactor     .10000E-03    532.62        .13151E-03** at limit **
  11  norm          24.861        23.578       -.30604E-05   -.10082E-03
  12  Prefactor     .10000E-03    41.851       -.10100E-04** at limit **
  13  Prefactor     292.37        532.24       -.18669E-03    .81344E-05
  14  norm          57.854        62.569        .12329E-04    .66420E-05
  15  Prefactor     .10003E-03    913.82       -.22407E-03** at limit **
  16  norm          .10000E-03    60.926       -.25816E-05** at limit **
  17  Prefactor     .10001E-03    1023.3       -.10703E-04** at limit **
  18  Prefactor     .10000E-03    68.149        .10951E-04** at limit **
  19  Prefactor     .10000E-03    1202.8       -.38190E-04** at limit **
  20  Prefactor     .10000E-03    6623.9       -.39129E-03** at limit **
  21  Prefactor     .10001E-03    903.87       -.21085E-03** at limit **
  22  Prefactor     9.2520        675.78        .28438E-03    .29283E-04
  23  Prefactor     .10000E-03    621.18        .68026E-04** at limit **
  24  norm          .10000E-03    64.761       -.96794E-05** at limit **
  25  Prefactor     .10000E-03    336.28        .64807E-04** at limit **
  26  norm          .10000E-03    274.31       -.73956E-04** at limit **
  27  Prefactor     .10000E-03    728.02       -.32248E-04** at limit **
  28  norm          .10000E-03    114.92        .23180E-05** at limit **
  29  norm          167.09        260.41        .49868E-04    .10915E-05
  30  Normalizat    .10000E-01    1.6060       -.15502E-04** at limit **
  31  Prefactor     1.2856        .67067       -.27832E-04    .57790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9623
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 24.8615
  Prefactor  = 0.0001
  Prefactor  = 292.367
  norm       = 57.8544
  Prefactor  = 0.000100029
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 9.25199
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 167.089
  Normalizat = 0.01
  Prefactor  = 1.28559
 **********
 **   18 **HESSE 
 **********

 FCN=   175.3358     FROM HESSE     STATUS=OK           594 CALLS     5277 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.281        .84263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.762        .83743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.962        30.363        .83316E-04   -1.4770    
   4  Prefactor     .10000E-03    282.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    17.624        .54253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.9882        .34236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    372.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.1975        .26521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    37.564        .79415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    532.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          24.861        23.602        .59588E-04   -1.4710    
  12  Prefactor     .10000E-03    41.850        .83832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     292.37        531.43        .11865E-03   -1.2271    
  14  norm          57.854        62.581        .52771E-04   -1.4185    
  15  Prefactor     .10003E-03    915.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    60.927        .10118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    1023.3        .21293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    68.146        .10702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1202.8        .21196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6623.2        .20636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    904.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2520        673.11        .13261E-03   -1.5100    
  23  Prefactor     .10000E-03    621.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    64.774        .10433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    336.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    274.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    728.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    114.90        .13908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          167.09        260.55        .15607E-03   -1.3115    
  30  Normalizat    .10000E-01    1.7251        .97008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.2856        .64492        .21275E-03   -.83737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.47295e-10
Minuit parameter uncertainties:
  1  1.14819e-06
  2  1.4104e-06
  3  30.384
  4  5.21916e-06
  5  0.000177451
  6  3.05547e-07
  7  0.00251897
  8  9.8869e-06
  9  6.91655e-05
  10  2.34903e-06
  11  23.6111
  12  2.6279e-05
  13  540.659
  14  62.6518
  15  0.0104426
  16  8.75228e-05
  17  0.00468055
  18  2.3788e-05
  19  5.52059e-05
  20  1.7862e-05
  21  0.00465775
  22  159.733
  23  2.21481e-06
  24  0.000502516
  25  1.9567e-05
  26  2.86415e-07
  27  4.37956e-05
  28  0.00040653
  29  262.379
  30  6.88433e-05
  31  0.648977
Done.

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

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  1.000e-04  4.681e-03  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:  1.286e+00  6.490e-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.000e-02  6.884e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 265.023 47.620
Photon Flux Upper Limit: 1.47e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/977878/likelihoodResults_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.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) = 175.335836897
delta logL = -4.64496949348e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 175.335839103
delta logL = -6.85048766513e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96105E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0896       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2858       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=   175.3358     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      213 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    847.75        .90737E-02** at limit **
   2  Index         2.0716        5.1468        .50000        .13066E-06
   3  Normalizat    .10000E-01    .22792E-02    .25049    ** at limit **
   4  Prefactor     1.2856        .22177E-01    .48137E-01    .74301E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07163
  Normalizat = 0.01
  Prefactor  = 1.28559
 **********
 **   18 **HESSE 
 **********

 FCN=   175.3358     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      246 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6879.3        .18147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0716        8.9511        .50000       -.62571    
   3  Normalizat    .10000E-01    .14969E-01    .97006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2856        .49684E-01    .21276E-03   -.83737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.49011e-10
Minuit parameter uncertainties:
  1  0.00201405
  2  984.611
  3  1.36233e-07
  4  0.0496857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/977878': 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): 102
logL (Free Index) = 175.335832252
delta logL = 8.16896772449e-10

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  1.000e-04  2.014e-03  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  2.072e+00  9.846e+02  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:  1.286e+00  4.969e-02  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.000e-02  1.362e-07  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/977878/cmap_HighResolution_551664001_551923201_4FGL_J1740.0+4737_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-01', job_status='DONE', photon_flux_upper_limit='1.47e-06', time_completed='2021-09-18 03:04:17.970713', job_id='977878', GAL2='1.29', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631959457.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='8.17e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1205' AND source_name='4FGL J1740.0+4737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 03:04:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 977878: <4FGL_J1740.0+4737_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1740.0+4737_daily_bin1205> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 18 02:55:24 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 02:55:25 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:55:25 2021
Terminated at Sat Sep 18 03:04:19 2021
Results reported at Sat Sep 18 03:04:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.0+4737_daily_bin1205 265.023 47.6198 551664001 551923201 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 :                                   355.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   533 sec.
    Turnaround time :                            535 sec.

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

