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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1007
RA = 309.758, Dec = -10.7731
tmin = 500342401, tmax = 500601601
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='101535', job_status='RUN', time_executed='2021-09-25 15:21:56.528753', time_epoch_executed='1632608516.53' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101535

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101535/ft1_4FGL_J2039.0-1046_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101535/ft2_4FGL_J2039.0-1046_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101535/ft1_4FGL_J2039.0-1046_daily_bin1007.fits outfile=/scratch/kocevski/101535/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1007.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=500342401.0 tmax=500601601.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.88
user 3.61
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101535/ft1_filtered_4FGL_J2039.0-1046_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/101535/ft2_4FGL_J2039.0-1046_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/101535/ltcube_500342401_500601601_4FGL_J2039.0-1046_daily_bin1007.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/101535/ft2_4FGL_J2039.0-1046_daily_bin1007.fits
.....................!
real 11.45
user 10.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101535/ft1_filtered_4FGL_J2039.0-1046_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/101535/ft2_4FGL_J2039.0-1046_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/101535/ltcube_500342401_500601601_4FGL_J2039.0-1046_daily_bin1007.fits outfile=/scratch/kocevski/101535/expmap_500342401_500601601_4FGL_J2039.0-1046_daily_bin1007.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/101535/ltcube_500342401_500601601_4FGL_J2039.0-1046_daily_bin1007.fits
.....................!
real 153.47
user 148.68
sys 3.85

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/101535/ft1_filtered_4FGL_J2039.0-1046_daily_bin1007.fits scfile=/scratch/kocevski/101535/ft2_4FGL_J2039.0-1046_daily_bin1007.fits outfile=/scratch/kocevski/101535/cmap_500342401_500601601_4FGL_J2039.0-1046_daily_bin1007.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.46
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101535/ft1_filtered_4FGL_J2039.0-1046_daily_bin1007.fits scfile=/scratch/kocevski/101535/ft2_4FGL_J2039.0-1046_daily_bin1007.fits outfile=/scratch/kocevski/101535/cmap_HighResolution_500342401_500601601_4FGL_J2039.0-1046_daily_bin1007.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.53
user 0.30
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101535/ft1_filtered_4FGL_J2039.0-1046_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/101535/ft2_4FGL_J2039.0-1046_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101535/Model_4FGL_J2039.0-1046_daily_bin1007.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/101535/ft1_filtered_4FGL_J2039.0-1046_daily_bin1007.fits.....................!
real 88.44
user 86.41
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15391E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.426       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4781       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0575       1.0000         .10000E-03   10000.    
     8 'norm      '    14.209       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.396       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    31.952       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0333       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.547       1.0000         .10000E-03   10000.    
    15 'norm      '    .96375       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5974       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6083       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.432       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2765       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93405       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0510       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=   11745.12     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2407 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    1.4825       -.12150E-05** at limit **
   2  Prefactor     .10000E-03    16.122       -.10684E-05** at limit **
   3  Prefactor     10.428        17.558       -.91484E-07   -.45263E-04
   4  Prefactor     28.185        32.771        .12861E-05    .42491E-03
   5  Prefactor     2.4781        1.7206       -.10367E-06    .81124E-04
   6  Prefactor     .10001E-03    10.791        .26719E-05** at limit **
   7  Prefactor     7.0580        8.4494        .21546E-05    .42633E-04
   8  norm          14.209        8.7109       -.93176E-07    .28969E-04
   9  Prefactor     .10000E-03    98.575       -.63298E-06** at limit **
  10  Prefactor     53.384        88.232       -.26963E-05   -.11332E-03
  11  norm          .10000E-03    18.152        .10838E-05** at limit **
  12  norm          31.953        23.983        .40386E-07   -.71208E-05
  13  norm          2.0332        1.1300       -.66715E-09   -.42637E-06
  14  Prefactor     14.546        13.849        .32525E-06    .88315E-04
  15  norm          .96389        2.3778        .12663E-05    .82052E-04
  16  Prefactor     1.5973        2.5007        .50273E-06    .28066E-04
  17  Prefactor     .10000E-03    1.4712        .97101E-08** at limit **
  18  Prefactor     5.6066        10.201        .42145E-06    .36854E-04
  19  Prefactor     20.430        18.750        .31888E-06    .87427E-04
  20  Prefactor     4.2763        6.7268        .62906E-06    .32170E-03
  21  Normalizat    .93429        .21931       -.71512E-06    .79012E-04
  22  Prefactor     1.0509        .84829E-01   -.20056E-06    .35527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100215
  Prefactor  = 0.000100001
  Prefactor  = 10.4284
  Prefactor  = 28.1853
  Prefactor  = 2.47814
  Prefactor  = 0.000100008
  Prefactor  = 7.05798
  norm       = 14.2094
  Prefactor  = 0.0001
  Prefactor  = 53.3835
  norm       = 0.000100001
  norm       = 31.953
  norm       = 2.03323
  Prefactor  = 14.5462
  norm       = 0.963889
  Prefactor  = 1.59726
  Prefactor  = 0.0001
  Prefactor  = 5.60664
  Prefactor  = 20.4301
  Prefactor  = 4.27634
  Normalizat = 0.934288
  Prefactor  = 1.05089
 **********
 **   18 **HESSE 
 **********

 FCN=   11745.12     FROM HESSE     STATUS=OK           348 CALLS     2755 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    11.450        .21615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.428        17.623        .12409E-03   -1.5062    
   4  Prefactor     28.185        32.875        .75474E-04   -1.4646    
   5  Prefactor     2.4781        1.7079        .10882E-03   -1.5393    
   6  Prefactor     .10001E-03    11.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.0580        8.6148        .75502E-03   -1.5177    
   8  norm          14.209        8.6954        .10626E-03   -1.4954    
   9  Prefactor     .10000E-03    100.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     53.384        89.414        .54889E-04   -1.4245    
  11  norm          .10000E-03    18.822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          31.953        23.986        .70886E-04   -1.4577    
  13  norm          2.0332        1.1281        .29009E-04   -1.5423    
  14  Prefactor     14.546        13.841        .10501E-03   -1.4945    
  15  norm          .96389        2.3833        .25821E-03   -1.5512    
  16  Prefactor     1.5973        2.4824        .20615E-03   -1.5455    
  17  Prefactor     .10000E-03    1.4822        .12835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6066        10.208        .16964E-03   -1.5234    
  19  Prefactor     20.430        18.761        .88610E-04   -1.4804    
  20  Prefactor     4.2763        6.7464        .19482E-03   -1.5294    
  21  Normalizat    .93429        .25278        .42912E-03   -.95266    
  22  Prefactor     1.0509        .99020E-01    .16074E-03   -.91052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97145e-08
Minuit parameter uncertainties:
  1  0.0031404
  2  0.000289094
  3  17.632
  4  32.8961
  5  1.70791
  6  0.000592707
  7  8.61632
  8  8.69616
  9  0.00031242
  10  89.6404
  11  0.000273598
  12  23.9932
  13  1.12808
  14  13.8441
  15  2.38357
  16  2.48261
  17  1.29665e-06
  18  10.2116
  19  18.766
  20  6.74762
  21  0.253105
  22  0.0990369
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  9.639e-01  2.384e+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.051e+00  9.904e-02  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:  9.343e-01  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/101535/likelihoodResults_500342401_500601601_4FGL_J2039.0-1046_daily_bin1007.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) = 11745.1003564
delta logL = 0.0201846903474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11745.1002842
delta logL = 0.0202568957611

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96222       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1731       1.0000          .0000       5.0000    
     3 'Normalizat'    .93193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0512       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11745.10     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      203 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96051        133.22         .0000        .20866E-02
   2  alpha         2.1734        3.8686         .0000        .10930E-04
   3  Normalizat    .93194        .21027         .0000        .46078E-04
   4  Prefactor     1.0512        .89190E-01     .0000       -.53139E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.960513
  alpha      = 2.17342
  Normalizat = 0.931939
  Prefactor  = 1.05122
 **********
 **   18 **HESSE 
 **********

 FCN=   11745.10     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96051        2.2621        .23581E-03   -1.5512    
   2  alpha         2.1734        1.0552        .16642E-02   -.13100    
   3  Normalizat    .93194        .24085        .42960E-03   -.95347    
   4  Prefactor     1.0512        .95828E-01    .16071E-03   -.91041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12797e-12
Minuit parameter uncertainties:
  1  2.26225
  2  1.08995
  3  0.241134
  4  0.0958435
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101535': 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) = 11745.1002839
delta logL = 0.0202571922982

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  9.605e-01  2.262e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.173e+00  1.090e+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.051e+00  9.584e-02  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:  9.319e-01  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/101535/cmap_HighResolution_500342401_500601601_4FGL_J2039.0-1046_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-05', job_status='DONE', photon_flux_upper_limit='5.69e-08', time_completed='2021-09-25 15:35:46.493797', job_id='101535', GAL2='1.05', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632609346.49', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.03e-02', ts2='0.23', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1007' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:35:46 PDT 2021


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

Job <4FGL_J2039.0-1046_daily_bin1007> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:20:18 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:21:29 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:21:29 2021
Terminated at Sat Sep 25 15:35:47 2021
Results reported at Sat Sep 25 15:35:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1007 309.758 -10.7731 500342401 500601601 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 :                                   811.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            929 sec.

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

