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


Performing analysis on: 4FGL_J1740.0+4737_daily_bin1010
RA = 265.023, Dec = 47.6198
tmin = 501120001, tmax = 501379201
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='976531', job_status='RUN', time_executed='2021-09-18 02:53:13.899674', time_epoch_executed='1631958793.9' WHERE source_name='4FGL J1740.0+4737' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/976531

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/976531/ft1_4FGL_J1740.0+4737_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/976531/ft2_4FGL_J1740.0+4737_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/976531/ft1_4FGL_J1740.0+4737_daily_bin1010.fits outfile=/scratch/kocevski/976531/ft1_filteredMKT_4FGL_J1740.0+4737_daily_bin1010.fits ra=265.023 dec=47.6198 rad=12.0 tmin=501120001.0 tmax=501379201.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.62
user 2.39
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/976531/ft1_filtered_4FGL_J1740.0+4737_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/976531/ft2_4FGL_J1740.0+4737_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/976531/ltcube_501120001_501379201_4FGL_J1740.0+4737_daily_bin1010.fits outfile=/scratch/kocevski/976531/expmap_501120001_501379201_4FGL_J1740.0+4737_daily_bin1010.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/976531/ltcube_501120001_501379201_4FGL_J1740.0+4737_daily_bin1010.fits
.....................!
real 140.20
user 136.12
sys 3.85

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/976531/ft1_filtered_4FGL_J1740.0+4737_daily_bin1010.fits scfile=/scratch/kocevski/976531/ft2_4FGL_J1740.0+4737_daily_bin1010.fits outfile=/scratch/kocevski/976531/cmap_501120001_501379201_4FGL_J1740.0+4737_daily_bin1010.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.45
user 0.26
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/976531/ft1_filtered_4FGL_J1740.0+4737_daily_bin1010.fits scfile=/scratch/kocevski/976531/ft2_4FGL_J1740.0+4737_daily_bin1010.fits outfile=/scratch/kocevski/976531/cmap_HighResolution_501120001_501379201_4FGL_J1740.0+4737_daily_bin1010.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.28
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5323       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0417       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4697       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8660       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2551       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8573       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9571       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      '    8.2480       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.1502       1.0000         .10000E-03   10000.    
    17 'Prefactor '    93.473       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.5781       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.399       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.334       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    35.007       1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.294       1.0000         .10000E-03   10000.    
    26 'norm      '    15.045       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .83857E-01   1.0000         .10000E-03   10000.    
    29 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .55084       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3185       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=   7642.586     FROM MIGRAD    STATUS=CONVERGED    862 CALLS     4189 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5287        4.8161       -.41785E-05   -.12848E-02
   2  Prefactor     3.0415        3.2262       -.48501E-07   -.28526E-03
   3  Prefactor     4.4689        2.7433       -.10092E-06    .89201E-04
   4  Prefactor     .10000E-03    5.6295        .13485E-06** at limit **
   5  norm          1.8659        1.3542       -.53501E-07    .59509E-04
   6  norm          1.2547        1.0060       -.70642E-07   -.13716E-03
   7  Prefactor     .10000E-03    6.7184       -.37118E-07** at limit **
   8  norm          .10000E-03    .23362       -.82697E-07** at limit **
   9  norm          .10000E-03    1.7862       -.38498E-07** at limit **
  10  Prefactor     9.8580        8.5108        .14815E-05    .11994E-03
  11  norm          1.9563        1.6723       -.15046E-06   -.43229E-03
  12  Prefactor     .10000E-03    5.4761       -.44108E-06** at limit **
  13  Prefactor     .10000E-03    11.028       -.55169E-06** at limit **
  14  norm          8.2459        5.2819        .80798E-06   -.72675E-04
  15  Prefactor     .10000E-03    19.606       -.11905E-04** at limit **
  16  norm          8.1481        7.7571        .97251E-07   -.12256E-03
  17  Prefactor     93.471        57.455       -.84594E-05    .12992E-05
  18  Prefactor     9.5757        6.2764        .12948E-05   -.10013E-03
  19  Prefactor     .10000E-03    29.653       -.57469E-05** at limit **
  20  Prefactor     23.179        79.184       -.17418E-03    .63870E-05
  21  Prefactor     .10000E-03    20.940        .26754E-05** at limit **
  22  Prefactor     23.330        12.411       -.13209E-05    .61541E-05
  23  Prefactor     .10000E-03    21.830        .11840E-04** at limit **
  24  norm          35.004        12.437       -.12476E-05    .24965E-04
  25  Prefactor     14.286        18.461        .13345E-04   -.18689E-04
  26  norm          15.044        8.0367       -.13609E-05   -.24435E-04
  27  Prefactor     .10000E-03    7.7849       -.85746E-07** at limit **
  28  norm          .61078E-02    4.9248       -.11041E-05   -.26105E-03
  29  norm          .10000E-03    13.692        .18413E-05** at limit **
  30  Normalizat    .55113        .24105        .61344E-05    .18526E-03
  31  Prefactor     1.3185        .15518        .84912E-06    .23107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.52868
  Prefactor  = 3.04146
  Prefactor  = 4.46886
  Prefactor  = 0.0001
  norm       = 1.86588
  norm       = 1.25473
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.85801
  norm       = 1.95627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.24594
  Prefactor  = 0.0001
  norm       = 8.14809
  Prefactor  = 93.4706
  Prefactor  = 9.57575
  Prefactor  = 0.0001
  Prefactor  = 23.1787
  Prefactor  = 0.0001
  Prefactor  = 23.3299
  Prefactor  = 0.0001
  norm       = 35.0037
  Prefactor  = 14.2856
  norm       = 15.0437
  Prefactor  = 0.0001
  norm       = 0.00610784
  norm       = 0.0001
  Normalizat = 0.551129
  Prefactor  = 1.31855
 **********
 **   18 **HESSE 
 **********

 FCN=   7642.586     FROM HESSE     STATUS=OK           634 CALLS     4823 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5287        4.7908        .30786E-03   -1.5461    
   2  Prefactor     3.0415        3.1947        .15010E-03   -1.5359    
   3  Prefactor     4.4689        2.7397        .10913E-03   -1.5285    
   4  Prefactor     .10000E-03    5.6488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8659        1.3571        .84417E-04   -1.5435    
   6  norm          1.2547        .98231        .72486E-04   -1.5484    
   7  Prefactor     .10000E-03    6.8291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .31740        .81866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.7873        .11410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8580        8.5082        .12763E-03   -1.5080    
  11  norm          1.9563        1.6556        .98615E-04   -1.5428    
  12  Prefactor     .10000E-03    5.6993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.2459        5.2758        .13959E-03   -1.5134    
  15  Prefactor     .10000E-03    19.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.1481        7.7215        .14044E-03   -1.5137    
  17  Prefactor     93.471        57.389        .41568E-04   -1.3771    
  18  Prefactor     9.5757        6.2530        .12949E-03   -1.5089    
  19  Prefactor     .10000E-03    29.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.179        79.251        .82807E-04   -1.4745    
  21  Prefactor     .10000E-03    20.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.330        12.403        .82923E-04   -1.4742    
  23  Prefactor     .10000E-03    21.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          35.004        12.420        .67731E-04   -1.4524    
  25  Prefactor     14.286        18.379        .10594E-03   -1.4952    
  26  norm          15.044        8.0333        .10326E-03   -1.4932    
  27  Prefactor     .10000E-03    7.7865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .61078E-02    9.9025        .58848E-01   -1.5723    
  29  norm          .10000E-03    14.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .55113        .25091        .41079E-03   -1.1010    
  31  Prefactor     1.3185        .16601        .19665E-03   -.82757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88963e-09
Minuit parameter uncertainties:
  1  4.79201
  2  3.19485
  3  2.73982
  4  1.30964e-05
  5  1.35715
  6  0.982323
  7  2.77819e-05
  8  5.49396e-06
  9  5.02797e-06
  10  8.50924
  11  1.65566
  12  5.02674e-05
  13  1.25427e-05
  14  5.2761
  15  4.06595e-05
  16  7.72248
  17  57.4227
  18  6.25339
  19  7.96606e-06
  20  79.6147
  21  5.86389e-05
  22  12.4039
  23  8.65717e-05
  24  12.4208
  25  18.386
  26  8.0339
  27  1.64266e-05
  28  0.487904
  29  7.7619e-05
  30  0.251428
  31  0.166078
Done.

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

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  9.347e+01  5.742e+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:  1.319e+00  1.661e-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:  5.511e-01  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.22
Ra Dec: 265.023 47.620
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 1.85e-05

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) = 7642.5824881
delta logL = 0.00367807742168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7642.57888554
delta logL = 0.00728063480528

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    99.988       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0394       1.0000          .0000       10.000    
     3 'Normalizat'    .55331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3177       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=   7642.579     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      259 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     99.986        83.693        .40204E-04    .11469E-03
   2  Index         2.0394        .43053        .51762E-02    .79318E-04
   3  Normalizat    .55357        .22607        .40994E-03   -.87691E-04
   4  Prefactor     1.3175        .16198        .19672E-03   -.14669E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 99.9859
  Index      = 2.03935
  Normalizat = 0.55357
  Prefactor  = 1.31753
 **********
 **   18 **HESSE 
 **********

 FCN=   7642.579     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     99.986        80.248        .80409E-05   -1.3705    
   2  Index         2.0394        .41269        .20705E-03   -.63370    
   3  Normalizat    .55357        .22603        .16398E-04   -1.0999    
   4  Prefactor     1.3175        .16199        .39343E-04   -.82787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54967e-11
Minuit parameter uncertainties:
  1  80.3353
  2  0.413415
  3  0.226406
  4  0.162052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/976531': 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) = 7642.57888483
delta logL = 0.00728134509973

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  9.999e+01  8.034e+01  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  2.039e+00  4.134e-01  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.318e+00  1.621e-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:  5.536e-01  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.24
Ra Dec: 265.023 47.620
Photon Index (Free Index): 2.04 +/- 0.41
Photon Flux (Free Index): 5.15e-08 +/- 3.59e-08
Energy Flux (Free Index): 3.24e-05 +/- 2.80e-05

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/976531/cmap_HighResolution_501120001_501379201_4FGL_J1740.0+4737_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='3.24e-05', photon_flux_error='3.29e-08', dlogl='7.28e-03', energy_flux='3.01e-05', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-09-18 03:06:02.919735', photon_index_error2='0.41', photon_index2='2.04', ts='6.22', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='0.55', time_epoch_completed='1631959562.92', return_code='0', job_id='976531', GAL2='1.32', EG2='0.55', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='3.59e-08', ts2='6.24', photon_index='2.09' WHERE bin_id='1010' AND source_name='4FGL J1740.0+4737' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 03:06:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 976531: <4FGL_J1740.0+4737_daily_bin1010> in cluster <slac> Done

Job <4FGL_J1740.0+4737_daily_bin1010> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 02:50:30 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 02:50:31 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:50:31 2021
Terminated at Sat Sep 18 03:06:03 2021
Results reported at Sat Sep 18 03:06:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.0+4737_daily_bin1010 265.023 47.6198 501120001 501379201 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 :                                   765.44 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             303.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

