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


Performing analysis on: 4FGL_J2040.5-1705_daily_bin1202
RA = 310.136, Dec = -17.0901
tmin = 550886401, tmax = 551145601
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='111829', job_status='RUN', time_executed='2021-09-25 15:58:37.026865', time_epoch_executed='1632610717.03' WHERE source_name='4FGL J2040.5-1705' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/111829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/111829/ft1_4FGL_J2040.5-1705_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/111829/ft2_4FGL_J2040.5-1705_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/111829/ft1_4FGL_J2040.5-1705_daily_bin1202.fits outfile=/scratch/kocevski/111829/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1202.fits ra=310.136 dec=-17.0901 rad=12.0 tmin=550886401.0 tmax=551145601.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.84
user 3.59
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/111829/ft2_4FGL_J2040.5-1705_daily_bin1202.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/111829/ft1_filteredMKT_4FGL_J2040.5-1705_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/111829/ft1_filtered_4FGL_J2040.5-1705_daily_bin1202.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.66
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/111829/ft1_filtered_4FGL_J2040.5-1705_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/111829/ft2_4FGL_J2040.5-1705_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/111829/ltcube_550886401_551145601_4FGL_J2040.5-1705_daily_bin1202.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/111829/ft2_4FGL_J2040.5-1705_daily_bin1202.fits
.....................!
real 14.52
user 13.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/111829/ft1_filtered_4FGL_J2040.5-1705_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/111829/ft2_4FGL_J2040.5-1705_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/111829/ltcube_550886401_551145601_4FGL_J2040.5-1705_daily_bin1202.fits outfile=/scratch/kocevski/111829/expmap_550886401_551145601_4FGL_J2040.5-1705_daily_bin1202.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/111829/ltcube_550886401_551145601_4FGL_J2040.5-1705_daily_bin1202.fits
.....................!
real 193.63
user 186.51
sys 4.65

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/111829/ft1_filtered_4FGL_J2040.5-1705_daily_bin1202.fits scfile=/scratch/kocevski/111829/ft2_4FGL_J2040.5-1705_daily_bin1202.fits outfile=/scratch/kocevski/111829/cmap_550886401_551145601_4FGL_J2040.5-1705_daily_bin1202.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.60
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/111829/ft1_filtered_4FGL_J2040.5-1705_daily_bin1202.fits scfile=/scratch/kocevski/111829/ft2_4FGL_J2040.5-1705_daily_bin1202.fits outfile=/scratch/kocevski/111829/cmap_HighResolution_550886401_551145601_4FGL_J2040.5-1705_daily_bin1202.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.081       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    57.233       1.0000         .10000E-03   10000.    
     5 'norm      '    17.427       1.0000         .10000E-03   10000.    
     6 'norm      '    13.021       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5237       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.592       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5008       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.832       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.516       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1499       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89558       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=   4651.780     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2896 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.564        .69446E-06** at limit **
   2  Prefactor     39.098        71.216       -.10408E-05   -.71140E-04
   3  Prefactor     .10000E-03    2.4944        .22690E-05** at limit **
   4  Prefactor     57.183        28.709       -.23393E-06   -.23982E-03
   5  norm          17.427        20.001        .12614E-06   -.59696E-04
   6  norm          13.018        12.928       -.73855E-07   -.12055E-03
   7  Prefactor     .10000E-03    86.321       -.13965E-06** at limit **
   8  norm          .10000E-03    47.568        .98266E-06** at limit **
   9  norm          .10000E-03    14.834        .63642E-08** at limit **
  10  norm          3.5237        2.3502        .55708E-07   -.15598E-04
  11  Prefactor     12.590        24.690        .20668E-06    .34777E-05
  12  Prefactor     .10000E-03    2.2957        .18563E-07** at limit **
  13  norm          .10000E-03    3.4985       -.12625E-07** at limit **
  14  Prefactor     1.5014        7.2330        .40130E-05   -.48284E-04
  15  Prefactor     .10000E-03    57.553       -.15803E-05** at limit **
  16  norm          .10000E-03    24.727       -.11386E-06** at limit **
  17  Prefactor     .10000E-03    10.029        .13826E-07** at limit **
  18  Prefactor     .10000E-03    2.9055       -.12984E-07** at limit **
  19  Prefactor     40.827        40.317        .43817E-06    .23406E-04
  20  Prefactor     39.525        32.834       -.11016E-07   -.26749E-04
  21  Normalizat    1.1495        .31738       -.13700E-05   -.95433E-04
  22  Prefactor     .89575        .13291       -.23923E-06   -.30629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 39.0979
  Prefactor  = 0.0001
  Prefactor  = 57.1831
  norm       = 17.427
  norm       = 13.0179
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.5237
  Prefactor  = 12.5898
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.50139
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.8273
  Prefactor  = 39.5246
  Normalizat = 1.14948
  Prefactor  = 0.895747
 **********
 **   18 **HESSE 
 **********

 FCN=   4651.780     FROM HESSE     STATUS=OK           334 CALLS     3230 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.098        71.720        .64115E-04   -1.4457    
   3  Prefactor     .10000E-03    2.4985        .20604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     57.183        28.901        .53027E-04   -1.4194    
   5  norm          17.427        20.044        .95943E-04   -1.4873    
   6  norm          13.018        12.931        .11100E-03   -1.4986    
   7  Prefactor     .10000E-03    86.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    48.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5237        2.3484        .80063E-04   -1.5333    
  11  Prefactor     12.590        24.708        .11289E-03   -1.4998    
  12  Prefactor     .10000E-03    2.2983        .10092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5317        .12457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5014        7.2701        .17142E-02   -1.5463    
  15  Prefactor     .10000E-03    57.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    24.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9109        .11352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.827        40.338        .62731E-04   -1.4429    
  20  Prefactor     39.525        32.862        .63763E-04   -1.4450    
  21  Normalizat    1.1495        .37754        .37973E-03   -.88179    
  22  Prefactor     .89575        .16018        .17637E-03   -.96290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69318e-09
Minuit parameter uncertainties:
  1  0.00015449
  2  71.8791
  3  1.46287e-05
  4  28.9082
  5  20.0513
  6  12.9334
  7  2.91306e-05
  8  0.000147323
  9  3.93696e-06
  10  2.3485
  11  24.7278
  12  1.55659e-06
  13  7.10677e-07
  14  6.60873
  15  0.000431845
  16  6.11775e-06
  17  1.67621e-06
  18  1.02411e-06
  19  40.3652
  20  32.8774
  21  0.378436
  22  0.160266
Done.

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

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.501e+00  6.609e+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:  8.957e-01  1.603e-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.149e+00  3.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/111829/likelihoodResults_550886401_551145601_4FGL_J2040.5-1705_daily_bin1202.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) = 4651.77898102
delta logL = 0.000997817245661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4651.77865395
delta logL = 0.0013248829855

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4651.779     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      259 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6889        9.5774        .32388E-03   -.53705E-05
   2  Index         2.4302        2.0607        .88584E-02   -.82573E-05
   3  Normalizat    1.1507        .37241        .37955E-03   -.25286E-03
   4  Prefactor     .89522        .15467        .17642E-03   -.48931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68894
  Index      = 2.43018
  Normalizat = 1.15073
  Prefactor  = 0.895216
 **********
 **   18 **HESSE 
 **********

 FCN=   4651.779     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6889        8.9484        .12955E-04   -1.5448    
   2  Index         2.4302        1.9977        .35434E-03   -.53980    
   3  Normalizat    1.1507        .37278        .75910E-04   -.88139    
   4  Prefactor     .89522        .15475        .35284E-04   -.96308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34154e-10
Minuit parameter uncertainties:
  1  7.77674
  2  2.07807
  3  0.373644
  4  0.154822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/111829': 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) = 4651.77865394
delta logL = 0.00132489850148

Extracting fit parameters...

4FGL J2040.5-1705
   Spectrum: PowerLaw
323    Prefactor:  1.689e+00  7.777e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.430e+00  2.078e+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:  8.952e-01  1.548e-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.151e+00  3.736e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/111829/cmap_HighResolution_550886401_551145601_4FGL_J2040.5-1705_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', job_status='DONE', photon_flux_upper_limit='2.15e-07', time_completed='2021-09-25 16:08:42.591128', job_id='111829', GAL2='0.90', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632611322.59', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.32e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1202' AND source_name='4FGL J2040.5-1705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 16:08:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 111829: <4FGL_J2040.5-1705_daily_bin1202> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2040.5-1705_daily_bin1202 310.136 -17.0901 550886401 551145601 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 :                                   596.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            774 sec.

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

