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


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1146
RA = 310.136, Dec = -17.0901
tmin = 536371201, tmax = 536630401
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='111729', job_status='RUN', time_executed='2021-09-25 15:56:25.870326', time_epoch_executed='1632610585.87' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/111729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/111729/ft1_4FGL_J2040.5-1705_daily_bin1146.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/111729/ft2_4FGL_J2040.5-1705_daily_bin1146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/111729/ft1_4FGL_J2040.5-1705_daily_bin1146.fits outfile=/scratch/kocevski/111729/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1146.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=536371201.0 tmax=536630401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.60
user 3.34
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/111729/ft2_4FGL_J2040.5-1705_daily_bin1146.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/111729/ft2_4FGL_J2040.5-1705_daily_bin1146.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/111729/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1146.fits evtable="EVENTS" outfile="/scratch/kocevski/111729/ft1_filtered_4FGL_J2040.5-1705_daily_bin1146.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/111729/ft1_filtered_4FGL_J2040.5-1705_daily_bin1146.fits" evtable="EVENTS" scfile=/scratch/kocevski/111729/ft2_4FGL_J2040.5-1705_daily_bin1146.fits sctable="SC_DATA" outfile=/scratch/kocevski/111729/ltcube_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.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/111729/ft2_4FGL_J2040.5-1705_daily_bin1146.fits
.....................!
real 13.56
user 13.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/111729/ft1_filtered_4FGL_J2040.5-1705_daily_bin1146.fits evtable="EVENTS" scfile=/scratch/kocevski/111729/ft2_4FGL_J2040.5-1705_daily_bin1146.fits sctable="SC_DATA" expcube=/scratch/kocevski/111729/ltcube_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.fits outfile=/scratch/kocevski/111729/expmap_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.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/111729/ltcube_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.fits
.....................!
real 192.92
user 187.59
sys 4.89

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 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J2040.5-1705 @ 310.136 -17.0901

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/111729/ft1_filtered_4FGL_J2040.5-1705_daily_bin1146.fits scfile=/scratch/kocevski/111729/ft2_4FGL_J2040.5-1705_daily_bin1146.fits outfile=/scratch/kocevski/111729/cmap_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.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=310.136 yref=-17.0901 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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/111729/ft1_filtered_4FGL_J2040.5-1705_daily_bin1146.fits scfile=/scratch/kocevski/111729/ft2_4FGL_J2040.5-1705_daily_bin1146.fits outfile=/scratch/kocevski/111729/cmap_HighResolution_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.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=310.136 yref=-17.0901 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.57
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/111729/ft1_filtered_4FGL_J2040.5-1705_daily_bin1146.fits evtable="EVENTS" scfile=/scratch/kocevski/111729/ft2_4FGL_J2040.5-1705_daily_bin1146.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/111729/Model_4FGL_J2040.5-1705_daily_bin1146.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/111729/ft1_filtered_4FGL_J2040.5-1705_daily_bin1146.fits.....................!
real 67.34
user 65.83
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/111729/ft1_filtered_4FGL_J2040.5-1705_daily_bin1146.fits', '/scratch/kocevski/111729/ft2_4FGL_J2040.5-1705_daily_bin1146.fits', expMap='/scratch/kocevski/111729/expmap_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.fits', expCube='/scratch/kocevski/111729/ltcube_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/111729/Model_4FGL_J2040.5-1705_daily_bin1146.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2040.5-1705'

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.223e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/111729/ft1_filtered_4FGL_J2040.5-1705_daily_bin1146.fits
Spacecraft file(s): /scratch/kocevski/111729/ft2_4FGL_J2040.5-1705_daily_bin1146.fits
Exposure map: /scratch/kocevski/111729/expmap_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.fits
Exposure cube: /scratch/kocevski/111729/ltcube_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/111729/Model_4FGL_J2040.5-1705_daily_bin1146.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) = 7119.4416226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8546       1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.752       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5964       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.887       1.0000         .10000E-03   10000.    
     5 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    29.777       1.0000         .10000E-03   10000.    
     9 'norm      '    48.956       1.0000         .10000E-03   10000.    
    10 'norm      '    .11026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.003       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .40464       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1202       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .36788E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.688       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73226       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1715       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7119.424     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2399 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8909        121.22        .39685E-05    .23692E-04
   2  Prefactor     60.749        61.936       -.38720E-06   -.32770E-04
   3  Prefactor     1.5956        3.3834        .19482E-05    .92317E-04
   4  Prefactor     25.891        23.579       -.24914E-05   -.11270E-03
   5  norm          .10000E-03    8.0941        .30506E-07** at limit **
   6  norm          .10000E-03    15.421       -.98787E-06** at limit **
   7  Prefactor     .10000E-03    77.000        .15466E-06** at limit **
   8  norm          29.771        23.363        .16548E-06   -.99386E-05
   9  norm          48.942        39.381       -.98179E-06   -.83560E-04
  10  norm          .10000E-03    .85667       -.14042E-06** at limit **
  11  Prefactor     25.003        17.406        .36140E-06    .18926E-04
  12  Prefactor     .10000E-03    3.5701        .38802E-08** at limit **
  13  norm          .40410        2.3105        .57289E-06   -.45972E-03
  14  Prefactor     4.1210        5.9969        .31653E-06   -.60904E-04
  15  Prefactor     .10000E-03    19.109        .33835E-06** at limit **
  16  norm          .10000E-03    10.029       -.74418E-07** at limit **
  17  Prefactor     .10000E-03    13.655        .65130E-06** at limit **
  18  Prefactor     .10000E-03    5.5179       -.17820E-06** at limit **
  19  Prefactor     15.683        13.535        .16531E-06    .18398E-04
  20  Prefactor     .10000E-03    4.3859        .11652E-07** at limit **
  21  Normalizat    .73215        .29692        .14021E-05   -.79197E-04
  22  Prefactor     1.1715        .12849       -.89328E-06   -.67677E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89094
  Prefactor  = 60.7489
  Prefactor  = 1.59562
  Prefactor  = 25.8912
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 29.7709
  norm       = 48.9417
  norm       = 0.0001
  Prefactor  = 25.0028
  Prefactor  = 0.0001
  norm       = 0.404097
  Prefactor  = 4.12103
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 15.6834
  Prefactor  = 0.0001
  Normalizat = 0.732152
  Prefactor  = 1.17152
 **********
 **   18 **HESSE 
 **********

 FCN=   7119.424     FROM HESSE     STATUS=OK           346 CALLS     2745 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8909        122.54        .20555E-03   -1.5313    
   2  Prefactor     60.749        62.182        .51477E-04   -1.4148    
   3  Prefactor     1.5956        3.4074        .17053E-03   -1.5455    
   4  Prefactor     25.891        23.655        .78734E-04   -1.4690    
   5  norm          .10000E-03    8.1538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    77.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          29.771        23.308        .73423E-04   -1.4616    
   9  norm          48.942        39.569        .57312E-04   -1.4308    
  10  norm          .10000E-03    1.4845        .14653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.003        16.998        .40056E-03   -1.4707    
  12  Prefactor     .10000E-03    3.5900        .15568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .40410        8.5902        .24038E-02   -1.5581    
  14  Prefactor     4.1210        5.9738        .19859E-03   -1.5302    
  15  Prefactor     .10000E-03    19.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    10.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.679        .38093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.683        13.536        .10112E-03   -1.4916    
  20  Prefactor     .10000E-03    4.3884        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73215        .32762        .47712E-03   -1.0264    
  22  Prefactor     1.1715        .14504        .16468E-03   -.87212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78387e-10
Minuit parameter uncertainties:
  1  43.7694
  2  62.2488
  3  3.40785
  4  23.6638
  5  6.48394e-06
  6  5.05499e-05
  7  5.1557e-05
  8  23.3154
  9  39.5906
  10  1.16814e-05
  11  17.0009
  12  7.69395e-07
  13  3.72642
  14  5.97469
  15  2.75612e-05
  16  2.80181e-06
  17  3.90219e-05
  18  0.000472401
  19  13.5388
  20  1.04817e-08
  21  0.328498
  22  0.145086
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  4.121e+00  5.975e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.172e+00  1.451e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  7.322e-01  3.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 310.136 -17.090
Photon Flux Upper Limit: 1.94e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/111729/likelihoodResults_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.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) = 7119.38570608
delta logL = 0.0385314461737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7119.37305769
delta logL = 0.0511798417247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0462       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1173       1.0000          .0000       10.000    
     3 'Normalizat'    .75744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1637       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7119.373     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      217 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0462        7.0447         .0000        .58931E-02
   2  Index         2.1174        1.0681         .0000       -.43934E-03
   3  Normalizat    .75738        .28844         .0000        .35816E-04
   4  Prefactor     1.1637        .12172         .0000       -.57442E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.04619
  Index      = 2.11741
  Normalizat = 0.757379
  Prefactor  = 1.16368
 **********
 **   18 **HESSE 
 **********

 FCN=   7119.373     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0462        6.9989        .89501E-03   -1.5259    
   2  Index         2.1174        1.0683        .50310E-02   -.61446    
   3  Normalizat    .75738        .32550        .46963E-03   -1.0167    
   4  Prefactor     1.1637        .13798        .16514E-03   -.87456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15374e-11
Minuit parameter uncertainties:
  1  7.00003
  2  1.08086
  3  0.326337
  4  0.138026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/111729': 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) = 7119.37305765
delta logL = 0.0511798820289

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  5.046e+00  7.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.117e+00  1.081e+00  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  7.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.164e+00  1.380e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  7.574e-01  3.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.57
Ra Dec: 310.136 -17.090

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/111729/cmap_HighResolution_536371201_536630401_4FGL_J2040.5-1705_daily_bin1146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.51e-02', job_status='DONE', photon_flux_upper_limit='1.94e-07', time_completed='2021-09-25 16:08:09.588469', job_id='111729', GAL2='1.16', fit_tolerance='1e-08', EG2='0.76', EG='0.73', time_epoch_completed='1632611289.59', return_code2='0', ts='0.57', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='5.12e-02', ts2='0.66', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1146' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 16:08:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 111729: <4FGL_J2040.5-1705_daily_bin1146> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1146> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 15:55:42 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:56:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 15:56:12 2021
Terminated at Sat Sep 25 16:08:10 2021
Results reported at Sat Sep 25 16:08:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1146 310.136 -17.0901 536371201 536630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2040.5-1705 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   700.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            748 sec.

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

