aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 71 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 = 74112
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1740.0+4737_monthly_bin169
RA = 265.023, Dec = 47.6198
tmin = 675043201, tmax = 677635201
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='182810', job_status='RUN', time_executed='2022-06-23 02:41:47.042199', time_epoch_executed='1655977307.04' WHERE source_name='4FGL J1740.0+4737' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/182810

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/182810/ft1_4FGL_J1740.0+4737_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/182810/ft2_4FGL_J1740.0+4737_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/182810/ft1_4FGL_J1740.0+4737_monthly_bin169.fits outfile=/scratch/kocevski/182810/ft1_filteredMKT_4FGL_J1740.0+4737_monthly_bin169.fits ra=265.023 dec=47.6198 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.54
user 26.75
sys 0.69

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

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

Number of photons that the gtmktime cut: 11179

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/182810/ft1_filtered_4FGL_J1740.0+4737_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/182810/ft2_4FGL_J1740.0+4737_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/182810/ltcube_675043201_677635201_4FGL_J1740.0+4737_monthly_bin169.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/182810/ft2_4FGL_J1740.0+4737_monthly_bin169.fits
.....................!
real 142.75
user 141.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/182810/ft1_filtered_4FGL_J1740.0+4737_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/182810/ft2_4FGL_J1740.0+4737_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/182810/ltcube_675043201_677635201_4FGL_J1740.0+4737_monthly_bin169.fits outfile=/scratch/kocevski/182810/expmap_675043201_677635201_4FGL_J1740.0+4737_monthly_bin169.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/182810/ltcube_675043201_677635201_4FGL_J1740.0+4737_monthly_bin169.fits
.....................!
real 193.27
user 187.37
sys 5.33

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/182810/ft1_filtered_4FGL_J1740.0+4737_monthly_bin169.fits scfile=/scratch/kocevski/182810/ft2_4FGL_J1740.0+4737_monthly_bin169.fits outfile=/scratch/kocevski/182810/cmap_675043201_677635201_4FGL_J1740.0+4737_monthly_bin169.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.80
user 0.64
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/182810/ft1_filtered_4FGL_J1740.0+4737_monthly_bin169.fits scfile=/scratch/kocevski/182810/ft2_4FGL_J1740.0+4737_monthly_bin169.fits outfile=/scratch/kocevski/182810/cmap_HighResolution_675043201_677635201_4FGL_J1740.0+4737_monthly_bin169.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.81
user 0.63
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63246       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0921       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .98657       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8984       1.0000         .10000E-03   10000.    
     6 'norm      '    .52350E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5679       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.9897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5968       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3263       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.3163       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0563       1.0000         .10000E-03   10000.    
    16 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4095       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8967       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.410       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.379       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5310       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8628       1.0000         .10000E-03   10000.    
    24 'norm      '    1.3839       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12899E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.0381       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.5393       1.0000         .10000E-03   10000.    
    28 'norm      '    8.8648       1.0000         .10000E-03   10000.    
    29 'norm      '    11.246       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1453       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98296       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   119355.0     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     3645 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63249        .56229         .0000        .10440E-01
   2  Prefactor     1.0921        .59008         .0000        .15222E-01
   3  Prefactor     .10000E-03    .12812         .0000    ** at limit **
   4  Prefactor     .98662        1.0580         .0000        .91762E-02
   5  norm          3.8984        .50283         .0000       -.49351E-03
   6  norm          .52368E-01    .72681E-01     .0000        .44365E-01
   7  Prefactor     1.5678        1.5143         .0000        .34872    
   8  norm          .10000E-03    .22845E-01     .0000    ** at limit **
   9  norm          2.9896        1.6479         .0000        .43503E-02
  10  Prefactor     2.5970        1.7168         .0000        .52405E-02
  11  norm          4.0428        .50048         .0000        .38526E-02
  12  Prefactor     2.3263        .61615         .0000       -.68557E-03
  13  Prefactor     .10000E-03    2.3112         .0000    ** at limit **
  14  norm          3.3161        1.2149         .0000        .84303E-02
  15  Prefactor     9.0564        14.271         .0000        .58505E-03
  16  norm          .10000E-03    .16391         .0000    ** at limit **
  17  Prefactor     3.4089        5.1188         .0000        .57490E-02
  18  Prefactor     3.8969        1.0186         .0000        .51051E-02
  19  Prefactor     12.410        7.8153         .0000        .21500E-03
  20  Prefactor     13.379        11.958         .0000        .69141E-03
  21  Prefactor     .10000E-03    3.9914         .0000    ** at limit **
  22  Prefactor     2.5310        1.5346         .0000        .26262E-02
  23  Prefactor     4.8631        2.9549         .0000        .93823E-02
  24  norm          1.3839        1.6364         .0000        .13889E-01
  25  Prefactor     .10000E-03    .52505         .0000    ** at limit **
  26  norm          7.0382        1.8166         .0000        .36549E-01
  27  Prefactor     1.5398        2.4538         .0000        .39788E-02
  28  norm          8.8648        2.2170         .0000       -.35309E-02
  29  norm          11.246        2.4823         .0000       -.18445E-02
  30  Normalizat    1.1453        .51867E-01     .0000        .23468E-04
  31  Prefactor     .98296        .33774E-01     .0000       -.42176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.632489
  Prefactor  = 1.09206
  Prefactor  = 0.0001
  Prefactor  = 0.986617
  norm       = 3.8984
  norm       = 0.0523678
  Prefactor  = 1.56778
  norm       = 0.0001
  norm       = 2.98959
  Prefactor  = 2.59695
  norm       = 4.04275
  Prefactor  = 2.32629
  Prefactor  = 0.0001
  norm       = 3.31611
  Prefactor  = 9.05637
  norm       = 0.0001
  Prefactor  = 3.40894
  Prefactor  = 3.89689
  Prefactor  = 12.41
  Prefactor  = 13.3793
  Prefactor  = 0.0001
  Prefactor  = 2.53104
  Prefactor  = 4.86306
  norm       = 1.38385
  Prefactor  = 0.0001
  norm       = 7.03821
  Prefactor  = 1.53975
  norm       = 8.86483
  norm       = 11.2464
  Normalizat = 1.14528
  Prefactor  = 0.982958
 **********
 **   18 **HESSE 
 **********

 FCN=   119355.0     FROM HESSE     STATUS=OK           650 CALLS     4295 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63249        .58283        .23077E-02   -1.5549    
   2  Prefactor     1.0921        .56621        .18289E-03   -1.5499    
   3  Prefactor     .10000E-03    .31476        .23797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98662        1.1317        .35219E-02   -1.5509    
   5  norm          3.8984        .50213        .85541E-04   -1.5313    
   6  norm          .52368E-01    .82297E-01    .10323E-02   -1.5662    
   7  Prefactor     1.5678        1.4815        .16980E-02   -1.5458    
   8  norm          .10000E-03    .43429E-01    .99958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.9896        1.6406        .23478E-03   -1.5362    
  10  Prefactor     2.5970        1.7112        .25319E-03   -1.5386    
  11  norm          4.0428        .49892        .80896E-04   -1.5306    
  12  Prefactor     2.3263        .61516        .13537E-03   -1.5403    
  13  Prefactor     .10000E-03    2.3184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.3161        1.2052        .21036E-03   -1.5344    
  15  Prefactor     9.0564        14.174        .13318E-03   -1.5106    
  16  norm          .10000E-03    .40836        .26891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4089        5.1009        .10954E-02   -1.5339    
  18  Prefactor     3.8969        1.0114        .16786E-03   -1.5313    
  19  Prefactor     12.410        7.8062        .11371E-03   -1.5003    
  20  Prefactor     13.379        11.948        .10951E-03   -1.4976    
  21  Prefactor     .10000E-03    4.0252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.5310        1.5319        .25674E-03   -1.5390    
  23  Prefactor     4.8631        2.9492        .91207E-03   -1.5267    
  24  norm          1.3839        1.6254        .36980E-03   -1.5473    
  25  Prefactor     .10000E-03    2.6231        .48072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.0382        1.8132        .75607E-03   -1.5177    
  27  Prefactor     1.5398        2.4270        .34369E-03   -1.5460    
  28  norm          8.8648        2.2148        .13462E-03   -1.5112    
  29  norm          11.246        2.4830        .11946E-03   -1.5037    
  30  Normalizat    1.1453        .60804E-01    .28865E-03   -.88311    
  31  Prefactor     .98296        .40566E-01    .21337E-03   -.93300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16486e-07
Minuit parameter uncertainties:
  1  0.582835
  2  0.566214
  3  1.19301e-06
  4  1.13173
  5  0.502128
  6  0.0822967
  7  1.48157
  8  9.79232e-08
  9  1.64065
  10  1.71123
  11  0.498923
  12  0.615159
  13  3.04839e-05
  14  1.20525
  15  14.1789
  16  1.44989e-06
  17  5.10154
  18  1.01144
  19  7.8068
  20  11.9506
  21  3.29436e-05
  22  1.53193
  23  2.94931
  24  1.62546
  25  1.8805e-06
  26  1.81318
  27  2.42712
  28  2.2148
  29  2.48303
  30  0.0608081
  31  0.0405675
Done.

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

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  3.409e+00  5.102e+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

GAL_V02
   Spectrum: PowerLaw
700    Prefactor:  9.830e-01  4.057e-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.145e+00  6.081e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 265.023 47.620
Photon Flux Upper Limit: 1.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.01e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/182810/likelihoodResults_675043201_677635201_4FGL_J1740.0+4737_monthly_bin169.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) = 119354.935005
delta logL = 0.0925140575127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 119354.927709
delta logL = 0.099809900421

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8347       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5011       1.0000          .0000       10.000    
     3 'Normalizat'    1.1466       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98272       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   119354.9     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      264 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8362        4.3754        .24153E-03   -.37656E-05
   2  Index         1.5013        .92809        .38646E-01   -.62436E-04
   3  Normalizat    1.1466        .57362E-01    .28851E-03    .88268E-05
   4  Prefactor     .98272        .39842E-01    .21339E-03    .44326E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.83621
  Index      = 1.5013
  Normalizat = 1.1466
  Prefactor  = 0.982722
 **********
 **   18 **HESSE 
 **********

 FCN=   119354.9     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .53E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8362        4.6134        .96611E-05   -1.5371    
   2  Index         1.5013        .97874        .15458E-02   -.77503    
   3  Normalizat    1.1466        .57411E-01    .57701E-04   -.88269    
   4  Prefactor     .98272        .39877E-01    .42678E-04   -.93308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25462e-13
Minuit parameter uncertainties:
  1  4.61393
  2  0.991424
  3  0.0574141
  4  0.0398787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/182810': 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) = 119354.927709
delta logL = 0.0998099706485

Extracting fit parameters...

4FGL J1740.0+4737
   Spectrum: PowerLaw
358    Prefactor:  2.836e+00  4.614e+00  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  1.501e+00  9.914e-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:  9.827e-01  3.988e-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.147e+00  5.741e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.76
Ra Dec: 265.023 47.620

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/182810/cmap_HighResolution_675043201_677635201_4FGL_J1740.0+4737_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-04', job_status='DONE', photon_flux_upper_limit='1.06e-08', time_completed='2022-06-23 06:22:07.765683', job_id='182810', GAL2='0.98', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1655990527.77', return_code2='0', ts='0.76', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='9.98e-02', ts2='0.96', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='169' AND source_name='4FGL J1740.0+4737' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 06:22:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 182810: <4FGL_J1740.0+4737_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1740.0+4737_monthly_bin169> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jun 23 02:40:24 2022
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:40:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:40:27 2022
Terminated at Thu Jun 23 06:22:09 2022
Results reported at Thu Jun 23 06:22:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1740.0+4737_monthly_bin169 265.023 47.6198 675043201 677635201 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 :                                   13157.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             488.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13301 sec.
    Turnaround time :                            13305 sec.

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

