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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1436
RA = 309.758, Dec = -10.7731
tmin = 611539201, tmax = 611798401
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='104209', job_status='RUN', time_executed='2021-09-25 15:32:03.395081', time_epoch_executed='1632609123.4' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104209

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104209/ft1_4FGL_J2039.0-1046_daily_bin1436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104209/ft2_4FGL_J2039.0-1046_daily_bin1436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104209/ft1_4FGL_J2039.0-1046_daily_bin1436.fits outfile=/scratch/kocevski/104209/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1436.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=611539201.0 tmax=611798401.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 2.92
user 2.66
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/104209/ft2_4FGL_J2039.0-1046_daily_bin1436.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104209/ft2_4FGL_J2039.0-1046_daily_bin1436.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/104209/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1436.fits evtable="EVENTS" outfile="/scratch/kocevski/104209/ft1_filtered_4FGL_J2039.0-1046_daily_bin1436.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.56
user 0.28
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104209/ft1_filtered_4FGL_J2039.0-1046_daily_bin1436.fits" evtable="EVENTS" scfile=/scratch/kocevski/104209/ft2_4FGL_J2039.0-1046_daily_bin1436.fits sctable="SC_DATA" outfile=/scratch/kocevski/104209/ltcube_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.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/104209/ft2_4FGL_J2039.0-1046_daily_bin1436.fits
.....................!
real 12.83
user 11.20
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104209/ft1_filtered_4FGL_J2039.0-1046_daily_bin1436.fits evtable="EVENTS" scfile=/scratch/kocevski/104209/ft2_4FGL_J2039.0-1046_daily_bin1436.fits sctable="SC_DATA" expcube=/scratch/kocevski/104209/ltcube_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.fits outfile=/scratch/kocevski/104209/expmap_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.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/104209/ltcube_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.fits
.....................!
real 180.95
user 153.01
sys 4.48

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

Setting source of interest to:
4FGL J2039.0-1046 @ 309.758 -10.7731

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/104209/ft1_filtered_4FGL_J2039.0-1046_daily_bin1436.fits scfile=/scratch/kocevski/104209/ft2_4FGL_J2039.0-1046_daily_bin1436.fits outfile=/scratch/kocevski/104209/cmap_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.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=309.758 yref=-10.7731 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.51
user 0.30
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104209/ft1_filtered_4FGL_J2039.0-1046_daily_bin1436.fits scfile=/scratch/kocevski/104209/ft2_4FGL_J2039.0-1046_daily_bin1436.fits outfile=/scratch/kocevski/104209/cmap_HighResolution_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.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=309.758 yref=-10.7731 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.52
user 0.33
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104209/ft1_filtered_4FGL_J2039.0-1046_daily_bin1436.fits evtable="EVENTS" scfile=/scratch/kocevski/104209/ft2_4FGL_J2039.0-1046_daily_bin1436.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104209/Model_4FGL_J2039.0-1046_daily_bin1436.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/104209/ft1_filtered_4FGL_J2039.0-1046_daily_bin1436.fits.....................!
real 78.47
user 76.65
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/104209/ft1_filtered_4FGL_J2039.0-1046_daily_bin1436.fits', '/scratch/kocevski/104209/ft2_4FGL_J2039.0-1046_daily_bin1436.fits', expMap='/scratch/kocevski/104209/expmap_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.fits', expCube='/scratch/kocevski/104209/ltcube_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/104209/Model_4FGL_J2039.0-1046_daily_bin1436.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2039.0-1046'

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.263e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.956e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.320e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/104209/ft1_filtered_4FGL_J2039.0-1046_daily_bin1436.fits
Spacecraft file(s): /scratch/kocevski/104209/ft2_4FGL_J2039.0-1046_daily_bin1436.fits
Exposure map: /scratch/kocevski/104209/expmap_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.fits
Exposure cube: /scratch/kocevski/104209/ltcube_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/104209/Model_4FGL_J2039.0-1046_daily_bin1436.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) = 10499.5368726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24935E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.798       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    74.708       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.194       1.0000         .10000E-03   10000.    
     8 'norm      '    8.4038       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.935       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22486E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.922       1.0000         .10000E-03   10000.    
    13 'norm      '    7.2116       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6748       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3174       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .51203       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1601       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10499.53     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2434 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.582        .20662E-05** at limit **
   2  Prefactor     45.798        43.763       -.55348E-06   -.18395E-04
   3  Prefactor     .10000E-03    6.4491       -.57316E-06** at limit **
   4  Prefactor     .10000E-03    32.748       -.77998E-06** at limit **
   5  Prefactor     .10000E-03    .88097        .20922E-06** at limit **
   6  Prefactor     74.710        44.279       -.77000E-06   -.25721E-04
   7  Prefactor     20.193        15.187       -.37436E-06   -.72350E-04
   8  norm          8.3995        7.9572        .62211E-07   -.16151E-04
   9  Prefactor     13.935        24.271       -.26296E-06   -.10598E-04
  10  Prefactor     .10000E-03    219.20       -.11053E-05** at limit **
  11  norm          .10000E-03    3.6098       -.20640E-08** at limit **
  12  norm          12.919        16.162        .35536E-06   -.43371E-05
  13  norm          7.2118        1.6786        .49097E-07   -.38627E-03
  14  Prefactor     .10000E-03    6.4692        .22279E-06** at limit **
  15  norm          .10000E-03    2.3239       -.35725E-06** at limit **
  16  Prefactor     3.6751        3.0608       -.21474E-06    .73933E-04
  17  Prefactor     .10000E-03    1.7842       -.31917E-06** at limit **
  18  Prefactor     4.3203        11.719       -.94057E-06   -.16399E-04
  19  Prefactor     .10000E-03    5.1125       -.28305E-06** at limit **
  20  Prefactor     .10000E-03    4.4704       -.56448E-06** at limit **
  21  Normalizat    .51184        .24587        .63009E-05   -.12271E-04
  22  Prefactor     1.1601        .10300       -.14456E-05    .14169E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.7983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.71
  Prefactor  = 20.1933
  norm       = 8.39945
  Prefactor  = 13.9347
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.919
  norm       = 7.21176
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.6751
  Prefactor  = 0.0001
  Prefactor  = 4.32035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.511843
  Prefactor  = 1.16014
 **********
 **   18 **HESSE 
 **********

 FCN=   10499.53     FROM HESSE     STATUS=OK           348 CALLS     2782 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9189        .42193E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.798        43.941        .59246E-04   -1.4353    
   3  Prefactor     .10000E-03    6.4559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .90401        .18733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     74.710        44.712        .46453E-04   -1.3977    
   7  Prefactor     20.193        15.186        .89129E-04   -1.4809    
   8  norm          8.3995        7.9615        .13829E-03   -1.5128    
   9  Prefactor     13.935        24.307        .10730E-03   -1.4961    
  10  Prefactor     .10000E-03    220.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.6112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.919        16.159        .11143E-03   -1.4989    
  13  norm          7.2118        1.6681        .60682E-04   -1.5171    
  14  Prefactor     .10000E-03    6.4816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4422        .30555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6751        3.0645        .78269E-03   -1.5325    
  17  Prefactor     .10000E-03    1.8120        .13392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3203        11.702        .19387E-03   -1.5292    
  19  Prefactor     .10000E-03    5.1330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.5066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .51184        .24825        .52891E-03   -1.1187    
  22  Prefactor     1.1601        .10488        .15289E-03   -.87567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83373e-11
Minuit parameter uncertainties:
  1  1.80661e-05
  2  43.9718
  3  2.23182e-06
  4  1.11014e-05
  5  5.94351e-07
  6  44.7323
  7  15.1889
  8  7.96246
  9  24.3241
  10  0.000262231
  11  5.35556e-07
  12  16.1645
  13  1.66812
  14  7.27013e-06
  15  2.39157e-06
  16  3.06466
  17  1.81468e-06
  18  11.7077
  19  3.46754e-06
  20  5.03182e-06
  21  0.248786
  22  0.104898
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  2.392e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.956e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.320e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.160e+00  1.049e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  5.118e-01  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 309.758 -10.773
Photon Flux Upper Limit: 4.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104209/likelihoodResults_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.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) = 10499.5342569
delta logL = -0.00195502222596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10499.436097
delta logL = 0.0962048871115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26798       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3133       1.0000          .0000       5.0000    
     3 'Normalizat'    .49150       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    .5980E+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=   10499.44     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      330 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26790        17.064        .12044E-03   -.16190E-02
   2  alpha         3.3134        3.0043        .36016E-01   -.50937E-04
   3  Normalizat    .49148        .24282        .53921E-03   -.29092E-03
   4  Prefactor     1.1637        .10276        .15267E-03   -.10679E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.267897
  alpha      = 3.31342
  Normalizat = 0.491484
  Prefactor  = 1.16374
 **********
 **   18 **HESSE 
 **********

 FCN=   10499.44     FROM HESSE     STATUS=OK            25 CALLS      355 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26790        1.0242        .48176E-05   -1.5604    
   2  alpha         3.3134        1.7163        .14406E-02    .33140    
   3  Normalizat    .49148        .24200        .21568E-04   -1.1281    
   4  Prefactor     1.1637        .10158        .30534E-04   -.87454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2313e-09
Minuit parameter uncertainties:
  1  1.02427
  2  1.92075
  3  0.242516
  4  0.101597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104209': 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) = 10499.436097
delta logL = 0.0962049020654

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.679e-01  1.024e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.313e+00  1.921e+00  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  9.320e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
594   Normalization:  4.915e-01  2.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 309.758 -10.773

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/104209/cmap_HighResolution_611539201_611798401_4FGL_J2039.0-1046_daily_bin1436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', job_status='DONE', photon_flux_upper_limit='4.86e-08', time_completed='2021-09-25 15:45:19.879322', job_id='104209', GAL2='1.16', fit_tolerance='1e-08', EG2='0.49', EG='0.51', time_epoch_completed='1632609919.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='9.62e-02', ts2='0.20', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1436' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:45:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 104209: <4FGL_J2039.0-1046_daily_bin1436> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1436> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 25 15:30:19 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:30:32 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:30:32 2021
Terminated at Sat Sep 25 15:45:21 2021
Results reported at Sat Sep 25 15:45:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1436 309.758 -10.7731 611539201 611798401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2039.0-1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   767.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            902 sec.

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

