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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1283
RA = 309.758, Dec = -10.7731
tmin = 571881601, tmax = 572140801
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='103041', job_status='RUN', time_executed='2021-09-25 15:27:17.315954', time_epoch_executed='1632608837.32' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103041

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103041/ft1_4FGL_J2039.0-1046_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103041/ft2_4FGL_J2039.0-1046_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103041/ft1_4FGL_J2039.0-1046_daily_bin1283.fits outfile=/scratch/kocevski/103041/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1283.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=571881601.0 tmax=572140801.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.60
user 2.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/103041/ft2_4FGL_J2039.0-1046_daily_bin1283.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/103041/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1283.fits evtable="EVENTS" outfile="/scratch/kocevski/103041/ft1_filtered_4FGL_J2039.0-1046_daily_bin1283.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103041/ft1_filtered_4FGL_J2039.0-1046_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/103041/ft2_4FGL_J2039.0-1046_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/103041/ltcube_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.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/103041/ft2_4FGL_J2039.0-1046_daily_bin1283.fits
.....................!
real 14.08
user 13.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103041/ft1_filtered_4FGL_J2039.0-1046_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/103041/ft2_4FGL_J2039.0-1046_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/103041/ltcube_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.fits outfile=/scratch/kocevski/103041/expmap_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.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/103041/ltcube_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.fits
.....................!
real 192.90
user 187.37
sys 4.71

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/103041/ft1_filtered_4FGL_J2039.0-1046_daily_bin1283.fits scfile=/scratch/kocevski/103041/ft2_4FGL_J2039.0-1046_daily_bin1283.fits outfile=/scratch/kocevski/103041/cmap_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103041/ft1_filtered_4FGL_J2039.0-1046_daily_bin1283.fits scfile=/scratch/kocevski/103041/ft2_4FGL_J2039.0-1046_daily_bin1283.fits outfile=/scratch/kocevski/103041/cmap_HighResolution_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/103041/ft1_filtered_4FGL_J2039.0-1046_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/103041/ft2_4FGL_J2039.0-1046_daily_bin1283.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103041/Model_4FGL_J2039.0-1046_daily_bin1283.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/103041/ft1_filtered_4FGL_J2039.0-1046_daily_bin1283.fits.....................!
real 53.06
user 51.64
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/103041/ft1_filtered_4FGL_J2039.0-1046_daily_bin1283.fits', '/scratch/kocevski/103041/ft2_4FGL_J2039.0-1046_daily_bin1283.fits', expMap='/scratch/kocevski/103041/expmap_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.fits', expCube='/scratch/kocevski/103041/ltcube_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/103041/Model_4FGL_J2039.0-1046_daily_bin1283.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/103041/ft1_filtered_4FGL_J2039.0-1046_daily_bin1283.fits
Spacecraft file(s): /scratch/kocevski/103041/ft2_4FGL_J2039.0-1046_daily_bin1283.fits
Exposure map: /scratch/kocevski/103041/expmap_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.fits
Exposure cube: /scratch/kocevski/103041/ltcube_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/103041/Model_4FGL_J2039.0-1046_daily_bin1283.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) = 4289.43389878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3921       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12523E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79325       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4079       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.035       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    67.508       1.0000         .10000E-03   10000.    
    11 'norm      '    13.079       1.0000         .10000E-03   10000.    
    12 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.4538       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.613       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7296       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.891       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.544       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .38155       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1764       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=   4289.370     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     3053 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3935        8.4451        .14752E-03   -.15876E-04
   2  Prefactor     .10000E-03    41.893        .18142E-02** at limit **
   3  Prefactor     .10000E-03    106.94        .18142E-02** at limit **
   4  Prefactor     .53495        155.74        .16584        .50807E-04
   5  Prefactor     4.4085        3.7383        .11146E-03    .14688E-04
   6  Prefactor     .10000E-03    44.830        .18142E-02** at limit **
   7  Prefactor     .10000E-03    18.003        .18142E-02** at limit **
   8  norm          12.040        27.731        .11547E-03    .45288E-05
   9  Prefactor     .10000E-03    12.976        .18142E-02** at limit **
  10  Prefactor     67.611        490.72        .48850E-04    .46545E-07
  11  norm          13.088        23.626        .11076E-03   -.57480E-05
  12  norm          .10000E-03    13.524        .18142E-02** at limit **
  13  norm          5.4540        3.3483        .76041E-04   -.52028E-04
  14  Prefactor     38.594        37.210        .64502E-04    .12338E-04
  15  norm          3.7299        5.1330        .16938E-03   -.98668E-05
  16  Prefactor     .10000E-03    13.355        .18142E-02** at limit **
  17  Prefactor     .10000E-03    3.4488        .11851E-02** at limit **
  18  Prefactor     19.874        25.721        .89806E-04    .50637E-06
  19  Prefactor     24.521        39.512        .80856E-04    .15467E-04
  20  Prefactor     .10000E-03    21.905        .18142E-02** at limit **
  21  Normalizat    .38189        .52150        .76571E-03   -.79582E-05
  22  Prefactor     1.1763        .18183        .15708E-03   -.73606E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.3935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.534947
  Prefactor  = 4.40847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0404
  Prefactor  = 0.0001
  Prefactor  = 67.6108
  norm       = 13.0882
  norm       = 0.0001
  norm       = 5.45397
  Prefactor  = 38.5944
  norm       = 3.72991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8739
  Prefactor  = 24.5206
  Prefactor  = 0.0001
  Normalizat = 0.381891
  Prefactor  = 1.17626
 **********
 **   18 **HESSE 
 **********

 FCN=   4289.370     FROM HESSE     STATUS=OK           330 CALLS     3383 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3935        8.4545        .59007E-05   -1.5164    
   2  Prefactor     .10000E-03    41.894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    106.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .53495        161.19        .16290       -1.5562    
   5  Prefactor     4.4085        3.7382        .44582E-05   -1.5288    
   6  Prefactor     .10000E-03    44.833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.003        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.040        27.725        .46189E-05   -1.5014    
   9  Prefactor     .10000E-03    12.976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     67.611        489.50        .97700E-05   -1.4062    
  11  norm          13.088        23.623        .44304E-05   -1.4984    
  12  norm          .10000E-03    13.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.4540        3.3480        .30416E-05   -1.5241    
  14  Prefactor     38.594        37.210        .25801E-05   -1.4465    
  15  norm          3.7299        5.1329        .67750E-05   -1.5322    
  16  Prefactor     .10000E-03    13.357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4490        .23701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.874        25.716        .35922E-05   -1.4816    
  19  Prefactor     24.521        39.508        .32342E-05   -1.4717    
  20  Prefactor     .10000E-03    21.905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .38189        .52077        .30628E-04   -1.1825    
  22  Prefactor     1.1763        .18164        .62832E-05   -.87065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10581e-10
Minuit parameter uncertainties:
  1  8.45585
  2  6.35122e-05
  3  0.000428687
  4  18.621
  5  3.7384
  6  3.97039e-05
  7  1.1432e-06
  8  27.7547
  9  8.02005e-06
  10  368.177
  11  23.64
  12  6.8604e-06
  13  3.34807
  14  37.2326
  15  5.13353
  16  1.144e-05
  17  2.02238e-06
  18  25.7305
  19  39.5501
  20  1.2766e-05
  21  0.527581
  22  0.181735
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.730e+00  5.134e+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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.176e+00  1.817e-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:  3.819e-01  5.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 2.89e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 2.60e-05

TS (Fixed Index): 1.05
Ra Dec: 309.758 -10.773
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/103041/likelihoodResults_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.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) = 4289.36589003
delta logL = 0.0039622554259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4289.36574921
delta logL = 0.00410307420043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7454       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0966       1.0000          .0000       5.0000    
     3 'Normalizat'    .37582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1775       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.

 FCN=   4289.366     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7529        312.48        .52157E-02    .11521E-03
   2  alpha         2.0993        3.3404        .41850        .14361E-04
   3  Normalizat    .37557        .80852        .17468       -.14442E-04
   4  Prefactor     1.1775        .14221        .35187E-01   -.21923E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.75288
  alpha      = 2.09932
  Normalizat = 0.375567
  Prefactor  = 1.1775
 **********
 **   18 **HESSE 
 **********

 FCN=   4289.366     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7529        5.1332        .16807E-03   -1.5320    
   2  alpha         2.0993        1.5211        .32377E-01   -.16097    
   3  Normalizat    .37557        .50002        .77167E-03   -1.1858    
   4  Prefactor     1.1775        .17493        .15700E-03   -.87026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83477e-10
Minuit parameter uncertainties:
  1  5.13381
  2  1.63897
  3  0.506141
  4  0.175015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103041': 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) = 4289.3657467
delta logL = 0.00410558515705

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.753e+00  5.134e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.099e+00  1.639e+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.178e+00  1.750e-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:  3.756e-01  5.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 2.10 +/- 1.64
Photon Flux (Free Index): 3.48e-08 +/- 8.56e-08
Energy Flux (Free Index): 1.78e-05 +/- 2.61e-05

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/103041/cmap_HighResolution_571881601_572140801_4FGL_J2039.0-1046_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-04', comment='SUCCESS', photon_flux='2.89e-08', energy_flux2='1.78e-05', photon_flux_error='3.97e-08', dlogl='4.11e-03', energy_flux='1.89e-05', photon_flux2='3.48e-08', job_status='DONE', time_completed='2021-09-25 15:37:01.851917', photon_index_error2='1.64', photon_index2='2.10', ts='1.05', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='2.61e-05', EG='0.38', time_epoch_completed='1632609421.85', return_code='0', job_id='103041', GAL2='1.18', EG2='0.38', return_code2='0', energy_flux_error='2.60e-05', photon_flux_error2='8.56e-08', ts2='1.06', photon_index='1.96' WHERE bin_id='1283' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:37:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 103041: <4FGL_J2039.0-1046_daily_bin1283> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1283> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:25:19 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:25:44 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:25:44 2021
Terminated at Sat Sep 25 15:37:02 2021
Results reported at Sat Sep 25 15:37:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1283 309.758 -10.7731 571881601 572140801 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 :                                   582.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            703 sec.

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

