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


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1077
RA = 310.136, Dec = -17.0901
tmin = 518486401, tmax = 518745601
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='111625', job_status='RUN', time_executed='2021-09-25 15:57:11.812994', time_epoch_executed='1632610631.81' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/111625

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/111625/ft1_4FGL_J2040.5-1705_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/111625/ft2_4FGL_J2040.5-1705_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/111625/ft1_4FGL_J2040.5-1705_daily_bin1077.fits outfile=/scratch/kocevski/111625/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1077.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=518486401.0 tmax=518745601.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 6.85
user 6.51
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/111625/ft2_4FGL_J2040.5-1705_daily_bin1077.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/111625/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1077.fits evtable="EVENTS" outfile="/scratch/kocevski/111625/ft1_filtered_4FGL_J2040.5-1705_daily_bin1077.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/111625/ft1_filtered_4FGL_J2040.5-1705_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/111625/ft2_4FGL_J2040.5-1705_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/111625/ltcube_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.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/111625/ft2_4FGL_J2040.5-1705_daily_bin1077.fits
.....................!
real 13.65
user 13.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/111625/ft1_filtered_4FGL_J2040.5-1705_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/111625/ft2_4FGL_J2040.5-1705_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/111625/ltcube_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.fits outfile=/scratch/kocevski/111625/expmap_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.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/111625/ltcube_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.fits
.....................!
real 192.15
user 186.39
sys 5.15

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/111625/ft1_filtered_4FGL_J2040.5-1705_daily_bin1077.fits scfile=/scratch/kocevski/111625/ft2_4FGL_J2040.5-1705_daily_bin1077.fits outfile=/scratch/kocevski/111625/cmap_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/111625/ft1_filtered_4FGL_J2040.5-1705_daily_bin1077.fits scfile=/scratch/kocevski/111625/ft2_4FGL_J2040.5-1705_daily_bin1077.fits outfile=/scratch/kocevski/111625/cmap_HighResolution_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/111625/ft1_filtered_4FGL_J2040.5-1705_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/111625/ft2_4FGL_J2040.5-1705_daily_bin1077.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/111625/Model_4FGL_J2040.5-1705_daily_bin1077.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/111625/ft1_filtered_4FGL_J2040.5-1705_daily_bin1077.fits.....................!
real 51.08
user 49.43
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/111625/ft1_filtered_4FGL_J2040.5-1705_daily_bin1077.fits', '/scratch/kocevski/111625/ft2_4FGL_J2040.5-1705_daily_bin1077.fits', expMap='/scratch/kocevski/111625/expmap_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.fits', expCube='/scratch/kocevski/111625/ltcube_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/111625/Model_4FGL_J2040.5-1705_daily_bin1077.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/111625/ft1_filtered_4FGL_J2040.5-1705_daily_bin1077.fits
Spacecraft file(s): /scratch/kocevski/111625/ft2_4FGL_J2040.5-1705_daily_bin1077.fits
Exposure map: /scratch/kocevski/111625/expmap_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.fits
Exposure cube: /scratch/kocevski/111625/ltcube_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/111625/Model_4FGL_J2040.5-1705_daily_bin1077.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) = 4864.4927133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.257       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.809       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25970       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    25.629       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2633       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4342       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4484       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.618       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7647       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.586       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6261       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .68406       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=   4864.463     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2400 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.236        51.494       -.14587E-04   -.84751E-04
   2  Prefactor     34.748        59.084       -.70700E-04   -.18935E-04
   3  Prefactor     .27146        2.2979        .15058E-05   -.46120E-03
   4  Prefactor     .10000E-03    18.932        .11729E-04** at limit **
   5  norm          25.628        22.366       -.16946E-05   -.64087E-04
   6  norm          .10000E-03    4.5193        .95191E-07** at limit **
   7  Prefactor     .10000E-03    44.099        .10749E-04** at limit **
   8  norm          .10000E-03    11.679        .44642E-06** at limit **
   9  norm          .10000E-03    37.134       -.12414E-04** at limit **
  10  norm          4.2634        1.9130       -.18861E-06    .12799E-03
  11  Prefactor     .10000E-03    8.7984       -.10517E-06** at limit **
  12  Prefactor     .10000E-03    3.1770       -.50007E-07** at limit **
  13  norm          4.4340        3.9946       -.41218E-06   -.47091E-04
  14  Prefactor     2.4504        5.1195       -.18702E-05   -.51685E-03
  15  Prefactor     .10000E-03    110.91        .76388E-05** at limit **
  16  norm          .10000E-03    17.836       -.10314E-04** at limit **
  17  Prefactor     27.631        25.263       -.10444E-05   -.19632E-04
  18  Prefactor     .10000E-03    2.6282       -.86609E-08** at limit **
  19  Prefactor     1.7865        158.74        .28595E-04   -.17709E-04
  20  Prefactor     18.584        23.644       -.77557E-05   -.17957E-03
  21  Normalizat    1.6248        .31104       -.10395E-05    .15292E-04
  22  Prefactor     .68461        .12676        .70925E-05   -.73129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.236
  Prefactor  = 34.7477
  Prefactor  = 0.271458
  Prefactor  = 0.0001
  norm       = 25.6283
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.26339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.43403
  Prefactor  = 2.45043
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.6307
  Prefactor  = 0.0001
  Prefactor  = 1.78647
  Prefactor  = 18.5836
  Normalizat = 1.62483
  Prefactor  = 0.68461
 **********
 **   18 **HESSE 
 **********

 FCN=   4864.463     FROM HESSE     STATUS=OK           342 CALLS     2742 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.236        51.184        .55481E-04   -1.4261    
   2  Prefactor     34.748        59.051        .67923E-04   -1.4528    
   3  Prefactor     .27146        4.8033        .19210E-02   -1.5604    
   4  Prefactor     .10000E-03    19.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          25.628        22.382        .79129E-04   -1.4695    
   6  norm          .10000E-03    4.5342        .14479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    37.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2634        1.9111        .62011E-04   -1.5295    
  11  Prefactor     .10000E-03    8.8190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1812        .12141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4340        3.9906        .12825E-03   -1.5287    
  14  Prefactor     2.4504        5.1162        .21613E-03   -1.5395    
  15  Prefactor     .10000E-03    111.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    17.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.631        25.441        .76232E-04   -1.4656    
  18  Prefactor     .10000E-03    2.6311        .11042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7865        148.96        .31534E-03   -1.5441    
  20  Prefactor     18.584        22.986        .92903E-04   -1.4846    
  21  Normalizat    1.6248        .37722        .31961E-03   -.74329    
  22  Prefactor     .68461        .15287        .18897E-03   -1.0413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49907e-09
Minuit parameter uncertainties:
  1  51.2274
  2  59.151
  3  2.28355
  4  3.57046e-05
  5  22.3897
  6  1.78819e-05
  7  6.63249e-05
  8  1.94286e-05
  9  7.62681e-05
  10  1.91113
  11  8.44816e-06
  12  7.81562e-06
  13  3.99081
  14  5.11711
  15  0.000321805
  16  3.98866e-05
  17  25.4507
  18  6.10755e-06
  19  32.71
  20  22.9972
  21  0.377881
  22  0.152968
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  2.450e+00  5.117e+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:  6.846e-01  1.530e-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:  1.625e+00  3.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/111625/likelihoodResults_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.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) = 4864.45284844
delta logL = 0.0104133773712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4864.45098968
delta logL = 0.0122721417038

Fit tolerance = 1e-08

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

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

 FCN=   4864.451     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1925        171.22        .69438E-02    .51623E-03
   2  Index         2.7466        6.0385        .22751        .42446E-04
   3  Normalizat    1.6180        .80944E-01    .72364E-01    .58946E-06
   4  Prefactor     .68627        .32604E-01    .42220E-01    .70300E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.19249
  Index      = 2.74665
  Normalizat = 1.61802
  Prefactor  = 0.686271
 **********
 **   18 **HESSE 
 **********

 FCN=   4864.451     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1925        5.3647        .19315E-03   -1.5412    
   2  Index         2.7466        1.4175        .11967E-01   -.46752    
   3  Normalizat    1.6180        .36090        .32016E-03   -.74514    
   4  Prefactor     .68627        .14456        .18876E-03   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24073e-09
Minuit parameter uncertainties:
  1  5.36592
  2  1.44244
  3  0.361486
  4  0.144643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/111625': 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) = 4864.45098836
delta logL = 0.0122734566694

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  2.192e+00  5.366e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.747e+00  1.442e+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:  6.863e-01  1.446e-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:  1.618e+00  3.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/111625/cmap_HighResolution_518486401_518745601_4FGL_J2040.5-1705_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', job_status='DONE', photon_flux_upper_limit='1.80e-07', time_completed='2021-09-25 16:07:18.647119', job_id='111625', GAL2='0.69', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1632611238.65', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='1.23e-02', ts2='0.32', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1077' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 16:07:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 111625: <4FGL_J2040.5-1705_daily_bin1077> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1077> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 15:55:32 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:55:56 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:55:56 2021
Terminated at Sat Sep 25 16:07:19 2021
Results reported at Sat Sep 25 16:07:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1077 310.136 -17.0901 518486401 518745601 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 :                                   601.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            707 sec.

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

