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


Performing analysis on: 4FGL_J1740.0+4737_daily_bin1339
RA = 265.023, Dec = 47.6198
tmin = 586396801, tmax = 586656001
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='978095', job_status='RUN', time_executed='2021-09-18 02:55:51.790138', time_epoch_executed='1631958951.79' WHERE source_name='4FGL J1740.0+4737' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978095

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978095/ft1_4FGL_J1740.0+4737_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978095/ft2_4FGL_J1740.0+4737_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978095/ft1_4FGL_J1740.0+4737_daily_bin1339.fits outfile=/scratch/kocevski/978095/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin1339.fits ra=265.023 dec=47.6198 rad=12.0 tmin=586396801.0 tmax=586656001.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.66
user 2.46
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/978095/ft2_4FGL_J1740.0+4737_daily_bin1339.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/978095/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin1339.fits evtable="EVENTS" outfile="/scratch/kocevski/978095/ft1_filtered_4FGL_J1740.0+4737_daily_bin1339.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.47
user 0.30
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978095/ft1_filtered_4FGL_J1740.0+4737_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/978095/ft2_4FGL_J1740.0+4737_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/978095/ltcube_586396801_586656001_4FGL_J1740.0+4737_daily_bin1339.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/978095/ft2_4FGL_J1740.0+4737_daily_bin1339.fits
.....................!
real 8.36
user 8.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978095/ft1_filtered_4FGL_J1740.0+4737_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/978095/ft2_4FGL_J1740.0+4737_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/978095/ltcube_586396801_586656001_4FGL_J1740.0+4737_daily_bin1339.fits outfile=/scratch/kocevski/978095/expmap_586396801_586656001_4FGL_J1740.0+4737_daily_bin1339.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/978095/ltcube_586396801_586656001_4FGL_J1740.0+4737_daily_bin1339.fits
.....................!
real 189.51
user 184.98
sys 4.14

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/978095/ft1_filtered_4FGL_J1740.0+4737_daily_bin1339.fits scfile=/scratch/kocevski/978095/ft2_4FGL_J1740.0+4737_daily_bin1339.fits outfile=/scratch/kocevski/978095/cmap_586396801_586656001_4FGL_J1740.0+4737_daily_bin1339.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978095/ft1_filtered_4FGL_J1740.0+4737_daily_bin1339.fits scfile=/scratch/kocevski/978095/ft2_4FGL_J1740.0+4737_daily_bin1339.fits outfile=/scratch/kocevski/978095/cmap_HighResolution_586396801_586656001_4FGL_J1740.0+4737_daily_bin1339.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8186       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1256       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.1977       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3811       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8826       1.0000         .10000E-03   10000.    
     9 'norm      '    12.970       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.101       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7058       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    98.203       1.0000         .10000E-03   10000.    
    14 'norm      '    8.2433       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44211E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    60.182       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.448       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9039       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.9745       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .24666       1.0000         .10000E-03   10000.    
    26 'norm      '    9.9356       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.8925       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2227       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75226       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=   5479.196     FROM MIGRAD    STATUS=CONVERGED    816 CALLS     4132 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8150        6.3997       -.22558E-05   -.30691E-04
   2  Prefactor     1.1251        3.7691       -.66593E-06    .11785E-03
   3  Prefactor     .10000E-03    1.4787        .61323E-06** at limit **
   4  Prefactor     .10000E-03    7.8374        .67316E-06** at limit **
   5  norm          5.1972        2.6706       -.41041E-08   -.36730E-04
   6  norm          1.3804        1.0905       -.37108E-06    .73560E-05
   7  Prefactor     .10000E-03    4.3088        .11278E-05** at limit **
   8  norm          1.8822        1.0412       -.25132E-07   -.10371E-03
   9  norm          12.964        12.316       -.47372E-07   -.43235E-05
  10  Prefactor     16.099        10.750       -.95601E-07    .17955E-04
  11  norm          1.7047        2.1625        .28002E-06    .15261E-03
  12  Prefactor     .10000E-03    1.0790        .28348E-06** at limit **
  13  Prefactor     98.185        70.213       -.22500E-05   -.99271E-05
  14  norm          8.2395        7.5816       -.24091E-06   -.10696E-04
  15  Prefactor     .10000E-03    66.787       -.11759E-05** at limit **
  16  norm          .10000E-03    2.4910        .12418E-05** at limit **
  17  Prefactor     .10000E-03    26.175        .25497E-05** at limit **
  18  Prefactor     .10002E-03    92.958        .20531E-04** at limit **
  19  Prefactor     60.248        47.180        .71358E-05    .17679E-03
  20  Prefactor     20.433        53.522       -.35849E-05   -.39367E-05
  21  Prefactor     1.8818        317.08       -.56663E-05    .27814E-05
  22  Prefactor     .10000E-03    5.2424        .11107E-05** at limit **
  23  Prefactor     .10000E-03    18.106        .10546E-05** at limit **
  24  norm          3.9722        6.7737       -.39452E-06   -.36327E-04
  25  Prefactor     .10645        30.925       -.95311E-05   -.12560E-03
  26  norm          9.9378        7.8799       -.94057E-06   -.59014E-04
  27  Prefactor     .10000E-03    7.6736        .11908E-06** at limit **
  28  norm          2.8902        9.0476       -.82620E-06   -.29606E-04
  29  norm          .10000E-03    2.9060        .10420E-07** at limit **
  30  Normalizat    1.2230        .23522        .25231E-05   -.21180E-03
  31  Prefactor     .75227        .15308       -.37808E-05    .23058E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.81497
  Prefactor  = 1.12509
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.19717
  norm       = 1.38044
  Prefactor  = 0.0001
  norm       = 1.8822
  norm       = 12.964
  Prefactor  = 16.0989
  norm       = 1.70468
  Prefactor  = 0.0001
  Prefactor  = 98.1847
  norm       = 8.23952
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 60.2475
  Prefactor  = 20.433
  Prefactor  = 1.88177
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.97222
  Prefactor  = 0.106448
  norm       = 9.93782
  Prefactor  = 0.0001
  norm       = 2.89018
  norm       = 0.0001
  Normalizat = 1.22303
  Prefactor  = 0.752268
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.196     FROM HESSE     STATUS=OK           642 CALLS     4774 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8150        6.3124        .20655E-03   -1.5317    
   2  Prefactor     1.1251        3.6916        .23690E-03   -1.5496    
   3  Prefactor     .10000E-03    1.4935        .87993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.1972        2.6703        .84340E-04   -1.5252    
   6  norm          1.3804        1.0688        .63711E-04   -1.5473    
   7  Prefactor     .10000E-03    4.3510        .15019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8822        1.0409        .30338E-04   -1.5434    
   9  norm          12.964        12.312        .11122E-03   -1.4988    
  10  Prefactor     16.099        10.756        .99815E-04   -1.4905    
  11  norm          1.7047        2.1487        .11428E-03   -1.5447    
  12  Prefactor     .10000E-03    1.0803        .75100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     98.185        70.131        .20282E-03   -1.3723    
  14  norm          8.2395        7.5706        .13963E-03   -1.5134    
  15  Prefactor     .10000E-03    66.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5098        .11412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    6.7675        .39483E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     60.248        48.877        .25860E-03   -1.4154    
  20  Prefactor     20.433        53.509        .88576E-04   -1.4804    
  21  Prefactor     1.8818        318.78        .30138E-03   -1.5434    
  22  Prefactor     .10000E-03    5.2616        .16560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.9722        6.7665        .20232E-03   -1.5309    
  25  Prefactor     .10645        14.104        .75185E-01   -1.5643    
  26  norm          9.9378        7.8737        .12713E-03   -1.5077    
  27  Prefactor     .10000E-03    7.6748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.8902        9.0469        .23894E-03   -1.5368    
  29  norm          .10000E-03    2.9062        .12324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2230        .27573        .26722E-03   -.85894    
  31  Prefactor     .75227        .17683        .22406E-03   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3391e-09
Minuit parameter uncertainties:
  1  6.31354
  2  3.69231
  3  7.03117e-06
  4  3.23751e-05
  5  2.6704
  6  1.06878
  7  2.52642e-05
  8  1.04089
  9  12.3146
  10  10.7569
  11  2.14883
  12  1.85613e-06
  13  70.1905
  14  7.57148
  15  0.00016665
  16  1.24926e-05
  17  9.10273e-05
  18  0.000791527
  19  48.9091
  20  53.6347
  21  49.252
  22  1.9145e-05
  23  1.75924e-05
  24  6.76782
  25  2.45001
  26  7.87456
  27  4.87694e-06
  28  9.05122
  29  2.28584e-06
  30  0.276061
  31  0.176966
Done.

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

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  1.000e-04  9.103e-05  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:  7.523e-01  1.770e-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.223e+00  2.761e-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: 6.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978095/likelihoodResults_586396801_586656001_4FGL_J1740.0+4737_daily_bin1339.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) = 5479.19605057
delta logL = -0.00018184385317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5479.19586932
delta logL = -5.90534000366e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3895       1.0000          .0000       10.000    
     3 'Normalizat'    1.2230       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75226       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5479.196     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      268 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10086E-03    111.73        .18142E-02** at limit **
   2  Index         2.3440        7.7614        .50000        .91362E-05
   3  Normalizat    1.2230        .12329E-01    .26722E-03   -.16877E-03
   4  Prefactor     .75226        .83594E-02    .22406E-03   -.47787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100864
  Index      = 2.34403
  Normalizat = 1.22304
  Prefactor  = 0.752259
 **********
 **   18 **HESSE 
 **********

 FCN=   5479.196     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10086E-03    516.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3440        6.3460        .50000       -.56001    
   3  Normalizat    1.2230        .27240E-01    .53445E-04   -.85894    
   4  Prefactor     .75226        .18468E-01    .44813E-04   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.26318e-09
Minuit parameter uncertainties:
  1  0.042609
  2  490.075
  3  0.02724
  4  0.018468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978095': 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) = 5479.19586916
delta logL = -4.25818143412e-07

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  1.009e-04  4.261e-02  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  2.344e+00  4.901e+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:  7.523e-01  1.847e-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.223e+00  2.724e-02  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/978095/cmap_HighResolution_586396801_586656001_4FGL_J1740.0+4737_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-09-18 03:11:16.140331', job_id='978095', GAL2='0.75', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631959876.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='-4.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1339' AND source_name='4FGL J1740.0+4737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 03:11:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 978095: <4FGL_J1740.0+4737_daily_bin1339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.0+4737_daily_bin1339 265.023 47.6198 586396801 586656001 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 :                                   921.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            936 sec.

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

