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


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1470
RA = 310.136, Dec = -17.0901
tmin = 620352001, tmax = 620611201
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='113410', job_status='RUN', time_executed='2021-09-25 16:01:52.028985', time_epoch_executed='1632610912.03' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113410

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113410/ft1_4FGL_J2040.5-1705_daily_bin1470.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113410/ft2_4FGL_J2040.5-1705_daily_bin1470.fits


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

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

Done.
real 5.08
user 4.83
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113410/ft1_filtered_4FGL_J2040.5-1705_daily_bin1470.fits" evtable="EVENTS" scfile=/scratch/kocevski/113410/ft2_4FGL_J2040.5-1705_daily_bin1470.fits sctable="SC_DATA" outfile=/scratch/kocevski/113410/ltcube_620352001_620611201_4FGL_J2040.5-1705_daily_bin1470.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/113410/ft2_4FGL_J2040.5-1705_daily_bin1470.fits
.....................!
real 13.87
user 13.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113410/ft1_filtered_4FGL_J2040.5-1705_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/113410/ft2_4FGL_J2040.5-1705_daily_bin1470.fits sctable="SC_DATA" expcube=/scratch/kocevski/113410/ltcube_620352001_620611201_4FGL_J2040.5-1705_daily_bin1470.fits outfile=/scratch/kocevski/113410/expmap_620352001_620611201_4FGL_J2040.5-1705_daily_bin1470.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/113410/ltcube_620352001_620611201_4FGL_J2040.5-1705_daily_bin1470.fits
.....................!
real 190.75
user 185.83
sys 4.44

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/113410/ft1_filtered_4FGL_J2040.5-1705_daily_bin1470.fits scfile=/scratch/kocevski/113410/ft2_4FGL_J2040.5-1705_daily_bin1470.fits outfile=/scratch/kocevski/113410/cmap_620352001_620611201_4FGL_J2040.5-1705_daily_bin1470.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.55
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/113410/ft1_filtered_4FGL_J2040.5-1705_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/113410/ft2_4FGL_J2040.5-1705_daily_bin1470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/113410/Model_4FGL_J2040.5-1705_daily_bin1470.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/113410/ft1_filtered_4FGL_J2040.5-1705_daily_bin1470.fits.....................!
real 64.21
user 62.89
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6644       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20258E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.074       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3869       1.0000         .10000E-03   10000.    
     6 'norm      '    .25418E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.8575       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.779       1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12550E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7217       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4937       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7248       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74636       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=   6713.776     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2411 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6591        119.17        .19900E-05   -.11988E-05
   2  Prefactor     .10000E-03    109.95        .41448E-05** at limit **
   3  Prefactor     .10001E-03    1.3707        .37757E-06** at limit **
   4  Prefactor     25.045        25.642        .18064E-06    .11290E-03
   5  norm          2.3903        19.555        .80065E-05    .78795E-04
   6  norm          .10006E-03    9.4077       -.17237E-05** at limit **
   7  Prefactor     .10000E-03    44.498        .44593E-05** at limit **
   8  norm          .10000E-03    8.6005        .20461E-06** at limit **
   9  norm          .10000E-03    23.223       -.20332E-06** at limit **
  10  norm          3.8575        1.6492        .87855E-08    .14972E-05
  11  Prefactor     .10000E-03    9.8420       -.84710E-09** at limit **
  12  Prefactor     12.779        9.2109       -.94098E-08    .27998E-04
  13  norm          .10000E-03    1.5079       -.85288E-08** at limit **
  14  Prefactor     .10000E-03    2.2240        .28696E-06** at limit **
  15  Prefactor     .10000E-03    54.978       -.70295E-05** at limit **
  16  norm          .10000E-03    7.9088        .18920E-06** at limit **
  17  Prefactor     .10000E-03    3.6273       -.20076E-07** at limit **
  18  Prefactor     3.7209        5.6797        .54555E-06    .25908E-04
  19  Prefactor     .10000E-03    6.6279       -.21174E-07** at limit **
  20  Prefactor     9.4906        13.928        .16103E-06    .28950E-05
  21  Normalizat    1.7253        .26264        .34735E-06    .69003E-04
  22  Prefactor     .74625        .11140       -.65871E-06    .19341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.65907
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 25.0447
  norm       = 2.3903
  norm       = 0.000100056
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.8575
  Prefactor  = 0.0001
  Prefactor  = 12.7785
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.72086
  Prefactor  = 0.0001
  Prefactor  = 9.49059
  Normalizat = 1.72532
  Prefactor  = 0.746245
 **********
 **   18 **HESSE 
 **********

 FCN=   6713.776     FROM HESSE     STATUS=OK           344 CALLS     2755 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6591        118.49        .21101E-03   -1.5325    
   2  Prefactor     .10000E-03    110.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    8.3306        .15902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.045        22.299        .79998E-04   -1.4707    
   5  norm          2.3903        19.839        .13255E-02   -1.5399    
   6  norm          .10006E-03    57.413        .43573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.6208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    23.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.8575        1.6482        .66604E-04   -1.5315    
  11  Prefactor     .10000E-03    9.8692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.779        9.2164        .11205E-03   -1.4993    
  13  norm          .10000E-03    1.5261        .98251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9681        .23249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.9121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6288        .15241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7209        5.6697        .20932E-03   -1.5322    
  19  Prefactor     .10000E-03    6.6319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.4906        13.927        .13006E-03   -1.5092    
  21  Normalizat    1.7253        .31394        .31523E-03   -.71629    
  22  Prefactor     .74625        .13409        .18873E-03   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69316e-09
Minuit parameter uncertainties:
  1  41.7349
  2  0.000129041
  3  0.000423576
  4  22.3063
  5  13.7785
  6  0.00358924
  7  3.39691e-06
  8  9.3602e-08
  9  3.95278e-06
  10  1.64818
  11  6.18949e-07
  12  9.21747
  13  2.50289e-08
  14  7.48963e-05
  15  2.63402e-05
  16  4.37685e-07
  17  2.56317e-07
  18  5.67051
  19  7.10163e-07
  20  13.9321
  21  0.314304
  22  0.134146
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  7.490e-05  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:  7.462e-01  1.341e-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.725e+00  3.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 310.136 -17.090
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113410/likelihoodResults_620352001_620611201_4FGL_J2040.5-1705_daily_bin1470.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): 102
logL (Free Index) = 6713.77644915
delta logL = -0.000597327716605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6713.77584167
delta logL = 1.01475552583e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77235E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6728       1.0000          .0000       10.000    
     3 'Normalizat'    1.7251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74632       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=   6711.320     FROM MIGRAD    STATUS=CONVERGED    170 CALLS      356 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21632E-02    .43580E-01    .55870E-03** at limit **
   2  Index         7.4587        3.5469        .12322        .11486E-03
   3  Normalizat    1.5477        .27203        .74237E-01   -.23841E-03
   4  Prefactor     .79489        .10492        .43015E-01   -.14103E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00216322
  Index      = 7.45866
  Normalizat = 1.5477
  Prefactor  = 0.794888
 **********
 **   18 **HESSE 
 **********

 FCN=   6711.320     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      389 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21632E-02    .40889E-01    .22444E-04   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.4587        7.4330        .50808E-02    .51408    
   3  Normalizat    1.5477        .31334        .32850E-03   -.76447    
   4  Prefactor     .79489        .12932        .18330E-03   -.99917    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03891e-07
Minuit parameter uncertainties:
  1  0.0183699
  2  4.42508
  3  0.31374
  4  0.129368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113410': 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): 102
logL (Free Index) = 6711.32023194
delta logL = 2.45561988304

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  2.163e-03  1.837e-02  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  7.459e+00  4.425e+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:  7.949e-01  1.294e-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.548e+00  3.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.17
Ra Dec: 310.136 -17.090
Photon Index (Free Index): 7.46 +/- 4.43
Photon Flux (Free Index): 1.43e-07 +/- 2.36e-06
Energy Flux (Free Index): 1.68e-05 +/- 2.77e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/113410/cmap_HighResolution_620352001_620611201_4FGL_J2040.5-1705_daily_bin1470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', comment='SUCCESS', energy_flux2='1.68e-05', dlogl='2.46e+00', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-25 16:13:44.789845', photon_index_error2='4.43', photon_index2='7.46', ts='-0.00', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='2.77e-04', EG='1.73', time_epoch_completed='1632611624.79', return_code='0', job_id='113410', GAL2='0.79', EG2='1.55', return_code2='102', photon_flux_error2='2.36e-06', ts2='5.17', photon_index='2.54' WHERE bin_id='1470' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 16:13:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 113410: <4FGL_J2040.5-1705_daily_bin1470> in cluster <slac> Done

Job <4FGL_J2040.5-1705_daily_bin1470> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 25 16:00:57 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 16:01:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 16:01:21 2021
Terminated at Sat Sep 25 16:13:45 2021
Results reported at Sat Sep 25 16:13:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1470 310.136 -17.0901 620352001 620611201 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 :                                   707.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            768 sec.

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

