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


Performing analysis on: 4FGL_J1740.0+4737_daily_bin713
RA = 265.023, Dec = 47.6198
tmin = 424137601, tmax = 424396801
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='973889', job_status='RUN', time_executed='2021-09-18 02:40:40.171758', time_epoch_executed='1631958040.17' WHERE source_name='4FGL J1740.0+4737' and cadence='daily' and bin_id='713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/973889

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/973889/ft1_4FGL_J1740.0+4737_daily_bin713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/973889/ft2_4FGL_J1740.0+4737_daily_bin713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/973889/ft1_4FGL_J1740.0+4737_daily_bin713.fits outfile=/scratch/kocevski/973889/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin713.fits ra=265.023 dec=47.6198 rad=12.0 tmin=424137601.0 tmax=424396801.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 5.09
user 4.84
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/973889/ft1_filtered_4FGL_J1740.0+4737_daily_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/973889/ft2_4FGL_J1740.0+4737_daily_bin713.fits sctable="SC_DATA" expcube=/scratch/kocevski/973889/ltcube_424137601_424396801_4FGL_J1740.0+4737_daily_bin713.fits outfile=/scratch/kocevski/973889/expmap_424137601_424396801_4FGL_J1740.0+4737_daily_bin713.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/973889/ltcube_424137601_424396801_4FGL_J1740.0+4737_daily_bin713.fits
.....................!
real 190.86
user 185.36
sys 5.05

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/973889/ft1_filtered_4FGL_J1740.0+4737_daily_bin713.fits scfile=/scratch/kocevski/973889/ft2_4FGL_J1740.0+4737_daily_bin713.fits outfile=/scratch/kocevski/973889/cmap_424137601_424396801_4FGL_J1740.0+4737_daily_bin713.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/973889/ft1_filtered_4FGL_J1740.0+4737_daily_bin713.fits scfile=/scratch/kocevski/973889/ft2_4FGL_J1740.0+4737_daily_bin713.fits outfile=/scratch/kocevski/973889/cmap_HighResolution_424137601_424396801_4FGL_J1740.0+4737_daily_bin713.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8778       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.1641       1.0000         .10000E-03   10000.    
     6 'norm      '    .65974       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1489       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .27698E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1251       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4892       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2311       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4588       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.232       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.8885       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5782       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.884       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11149E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.145       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.6871       1.0000         .10000E-03   10000.    
    24 'norm      '    .11625E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    11.091       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.1144       1.0000         .10000E-03   10000.    
    29 'norm      '    .77723       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5633       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .73910       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=   5379.193     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4130 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3078       -.24658E-06** at limit **
   2  Prefactor     .10000E-03    1.9763       -.10126E-06** at limit **
   3  Prefactor     5.8777        4.4031        .11739E-06    .96551E-04
   4  Prefactor     .10000E-03    10.109       -.57771E-06** at limit **
   5  norm          7.1640        3.2595        .40160E-07    .67858E-04
   6  norm          .65991        1.2852       -.15358E-06   -.10322E-03
   7  Prefactor     4.1477        10.127        .77580E-06    .55248E-04
   8  norm          .10000E-03    .42633       -.27157E-06** at limit **
   9  norm          .10000E-03    7.5974       -.11058E-06** at limit **
  10  Prefactor     1.1227        14.983        .23303E-05   -.38232E-04
  11  norm          1.4902        2.2788        .73383E-06    .23097E-03
  12  Prefactor     1.2318        2.8481        .31077E-06    .14882E-04
  13  Prefactor     .10000E-03    28.138       -.49481E-06** at limit **
  14  norm          3.4531        6.8044        .28778E-06    .40640E-04
  15  Prefactor     .10000E-03    39.252        .12913E-06** at limit **
  16  norm          .10000E-03    3.6281        .11214E-05** at limit **
  17  Prefactor     48.188        68.576       -.13856E-06    .28697E-05
  18  Prefactor     7.8890        7.7076        .50860E-06   -.24696E-04
  19  Prefactor     3.5708        444.99       -.46958E-05   -.39117E-05
  20  Prefactor     35.890        101.88       -.93885E-07    .12472E-05
  21  Prefactor     .10000E-03    36.083        .36993E-05** at limit **
  22  Prefactor     10.144        10.250       -.33264E-07   -.36402E-05
  23  Prefactor     7.6629        23.092        .11534E-05    .28331E-04
  24  norm          .10000E-03    7.0771       -.11893E-05** at limit **
  25  Prefactor     .10000E-03    6.1788        .35619E-06** at limit **
  26  norm          11.092        10.125        .10554E-06   -.17828E-05
  27  Prefactor     .10000E-03    9.3933        .78445E-07** at limit **
  28  norm          1.1142        11.002       -.51326E-07   -.19832E-04
  29  norm          .76261        11.412        .42236E-07   -.72877E-04
  30  Normalizat    1.5632        .26320       -.16136E-05    .17417E-03
  31  Prefactor     .73918        .16720        .13353E-05   -.51184E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.87771
  Prefactor  = 0.0001
  norm       = 7.16399
  norm       = 0.659912
  Prefactor  = 4.14768
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.12271
  norm       = 1.49016
  Prefactor  = 1.23181
  Prefactor  = 0.0001
  norm       = 3.45314
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 48.1877
  Prefactor  = 7.889
  Prefactor  = 3.57075
  Prefactor  = 35.89
  Prefactor  = 0.0001
  Prefactor  = 10.1442
  Prefactor  = 7.6629
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0924
  Prefactor  = 0.0001
  norm       = 1.11421
  norm       = 0.762606
  Normalizat = 1.56316
  Prefactor  = 0.739182
 **********
 **   18 **HESSE 
 **********

 FCN=   5379.193     FROM HESSE     STATUS=OK           630 CALLS     4760 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3632        .14854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9913        .10053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8777        4.4008        .12788E-03   -1.5223    
   4  Prefactor     .10000E-03    10.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.1640        3.2592        .86747E-04   -1.5173    
   6  norm          .65991        1.2393        .10448E-03   -1.5546    
   7  Prefactor     4.1477        9.9588        .98943E-03   -1.5301    
   8  norm          .10000E-03    .53363        .92114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    29.949        .38389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1227        16.550        .22086E-02   -1.5496    
  11  norm          1.4902        2.2496        .12595E-03   -1.5464    
  12  Prefactor     1.2318        2.7745        .18222E-03   -1.5486    
  13  Prefactor     .10000E-03    28.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4531        6.6835        .21745E-03   -1.5336    
  15  Prefactor     .10000E-03    39.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6223        .13578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     48.188        68.726        .57739E-04   -1.4319    
  18  Prefactor     7.8890        7.5238        .71381E-03   -1.5146    
  19  Prefactor     3.5708        427.90        .21364E-03   -1.5330    
  20  Prefactor     35.890        102.01        .66901E-04   -1.4509    
  21  Prefactor     .10000E-03    36.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.144        10.212        .12580E-03   -1.5071    
  23  Prefactor     7.6629        23.119        .14463E-03   -1.5154    
  24  norm          .10000E-03    23.067        .31336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.1844        .17801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          11.092        10.115        .12030E-03   -1.5042    
  27  Prefactor     .10000E-03    9.3956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.1142        10.774        .44644E-03   -1.5497    
  29  norm          .76261        43.544        .46300E-02   -1.5533    
  30  Normalizat    1.5632        .30223        .26151E-03   -.76019    
  31  Prefactor     .73918        .19211        .24100E-03   -1.0201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35268e-08
Minuit parameter uncertainties:
  1  1.50722e-06
  2  2.40815e-06
  3  4.40099
  4  1.44252e-05
  5  3.25926
  6  1.23937
  7  9.96274
  8  7.34121e-07
  9  8.86229e-05
  10  8.62351
  11  2.24975
  12  2.7748
  13  4.56355e-05
  14  6.68492
  15  1.53708e-05
  16  3.50123e-06
  17  68.8395
  18  7.52467
  19  78.7591
  20  102.508
  21  8.19838e-05
  22  10.2139
  23  23.1459
  24  0.000145187
  25  2.72945e-06
  26  10.1163
  27  5.71106e-06
  28  6.93087
  29  11.5331
  30  0.30258
  31  0.192284
Done.

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

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  4.819e+01  6.884e+01  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.392e-01  1.923e-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.563e+00  3.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.73
Ra Dec: 265.023 47.620
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/973889/likelihoodResults_424137601_424396801_4FGL_J1740.0+4737_daily_bin713.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) = 5377.99567515
delta logL = 1.19718390173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5377.98479579
delta logL = 1.20806326119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.482       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2554       1.0000          .0000       10.000    
     3 'Normalizat'    1.4676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77388       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=   5377.985     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      268 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.454        139.30        .30938E-02    .13048E-03
   2  Index         3.2562        2.3152        .86317E-01    .18116E-03
   3  Normalizat    1.4677        .89866E-01    .60585E-01    .26781E-05
   4  Prefactor     .77392        .55717E-01    .43376E-01    .91127E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4542
  Index      = 3.25619
  Normalizat = 1.46771
  Prefactor  = 0.77392
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.985     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.454        71.921        .12375E-03   -1.5061    
   2  Index         3.2562        1.9951        .32599E-02   -.35625    
   3  Normalizat    1.4677        .28653        .26794E-03   -.78690    
   4  Prefactor     .77392        .18629        .23579E-03   -1.0070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20647e-10
Minuit parameter uncertainties:
  1  54.9352
  2  2.06085
  3  0.286848
  4  0.186437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/973889': 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) = 5377.98479445
delta logL = 1.20806460224

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  1.045e+01  5.494e+01  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  3.256e+00  2.061e+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:  7.739e-01  1.864e-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.468e+00  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 265.023 47.620
Photon Index (Free Index): 3.26 +/- 2.06
Photon Flux (Free Index): 1.06e-07 +/- 7.57e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.60e-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/973889/cmap_HighResolution_424137601_424396801_4FGL_J1740.0+4737_daily_bin713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.31e-03', comment='SUCCESS', energy_flux2='1.90e-05', dlogl='1.21e+00', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-18 02:56:26.716877', photon_index_error2='2.06', photon_index2='3.26', ts='0.73', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.60e-05', EG='1.56', time_epoch_completed='1631958986.72', return_code='0', job_id='973889', GAL2='0.77', EG2='1.47', return_code2='0', photon_flux_error2='7.57e-08', ts2='3.26', photon_index='2.09' WHERE bin_id='713' AND source_name='4FGL J1740.0+4737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 02:56:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 973889: <4FGL_J1740.0+4737_daily_bin713> in cluster <slac> Done

Job <4FGL_J1740.0+4737_daily_bin713> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 18 02:40:21 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 02:40:23 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:40:23 2021
Terminated at Sat Sep 18 02:56:27 2021
Results reported at Sat Sep 18 02:56:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.0+4737_daily_bin713 265.023 47.6198 424137601 424396801 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 :                                   943.15 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             308.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            966 sec.

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

