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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1509
RA = 309.758, Dec = -10.7731
tmin = 630460801, tmax = 630720001
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='105479', job_status='RUN', time_executed='2021-09-25 15:36:55.810202', time_epoch_executed='1632609415.81' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105479

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105479/ft1_4FGL_J2039.0-1046_daily_bin1509.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105479/ft2_4FGL_J2039.0-1046_daily_bin1509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105479/ft1_4FGL_J2039.0-1046_daily_bin1509.fits outfile=/scratch/kocevski/105479/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1509.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=630460801.0 tmax=630720001.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.84
user 2.61
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105479/ft1_filtered_4FGL_J2039.0-1046_daily_bin1509.fits" evtable="EVENTS" scfile=/scratch/kocevski/105479/ft2_4FGL_J2039.0-1046_daily_bin1509.fits sctable="SC_DATA" outfile=/scratch/kocevski/105479/ltcube_630460801_630720001_4FGL_J2039.0-1046_daily_bin1509.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/105479/ft2_4FGL_J2039.0-1046_daily_bin1509.fits
.....................!
real 15.45
user 15.07
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105479/ft1_filtered_4FGL_J2039.0-1046_daily_bin1509.fits evtable="EVENTS" scfile=/scratch/kocevski/105479/ft2_4FGL_J2039.0-1046_daily_bin1509.fits sctable="SC_DATA" expcube=/scratch/kocevski/105479/ltcube_630460801_630720001_4FGL_J2039.0-1046_daily_bin1509.fits outfile=/scratch/kocevski/105479/expmap_630460801_630720001_4FGL_J2039.0-1046_daily_bin1509.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/105479/ltcube_630460801_630720001_4FGL_J2039.0-1046_daily_bin1509.fits
.....................!
real 192.61
user 186.65
sys 4.50

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/105479/ft1_filtered_4FGL_J2039.0-1046_daily_bin1509.fits scfile=/scratch/kocevski/105479/ft2_4FGL_J2039.0-1046_daily_bin1509.fits outfile=/scratch/kocevski/105479/cmap_630460801_630720001_4FGL_J2039.0-1046_daily_bin1509.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105479/ft1_filtered_4FGL_J2039.0-1046_daily_bin1509.fits scfile=/scratch/kocevski/105479/ft2_4FGL_J2039.0-1046_daily_bin1509.fits outfile=/scratch/kocevski/105479/cmap_HighResolution_630460801_630720001_4FGL_J2039.0-1046_daily_bin1509.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/105479/ft1_filtered_4FGL_J2039.0-1046_daily_bin1509.fits evtable="EVENTS" scfile=/scratch/kocevski/105479/ft2_4FGL_J2039.0-1046_daily_bin1509.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/105479/Model_4FGL_J2039.0-1046_daily_bin1509.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/105479/ft1_filtered_4FGL_J2039.0-1046_daily_bin1509.fits.....................!
real 78.14
user 76.62
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11682E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.089       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    66.878       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    319.95       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.641       1.0000         .10000E-03   10000.    
    13 'norm      '    6.1358       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.629       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5246       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9772       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0546       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3631       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80230       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1018       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=   7787.253     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2433 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.264        .16330E-04** at limit **
   2  Prefactor     .10000E-03    61.579       -.40058E-05** at limit **
   3  Prefactor     49.095        50.456       -.46218E-06    .38246E-04
   4  Prefactor     .10000E-03    75.884        .87202E-05** at limit **
   5  Prefactor     .10000E-03    1.4829        .39770E-07** at limit **
   6  Prefactor     66.906        70.730       -.13468E-05    .29816E-04
   7  Prefactor     .10000E-03    15.505       -.15533E-06** at limit **
   8  norm          .10000E-03    7.0194        .27199E-06** at limit **
   9  Prefactor     .10000E-03    38.111        .35522E-05** at limit **
  10  Prefactor     319.93        205.01        .26101E-05    .50978E-04
  11  norm          .10000E-03    12.091       -.43728E-06** at limit **
  12  norm          25.638        32.771        .18619E-06    .53328E-04
  13  norm          6.1358        2.3483       -.52856E-07    .47335E-03
  14  Prefactor     21.630        22.902       -.29353E-06    .93387E-04
  15  norm          .10000E-03    2.3483        .29119E-07** at limit **
  16  Prefactor     3.5245        4.4950       -.11062E-05   -.17130E-04
  17  Prefactor     7.9768        5.5867       -.69114E-06    .10254E-03
  18  Prefactor     1.0469        8.8015       -.26352E-05   -.51057E-04
  19  Prefactor     7.3620        9.9038       -.47066E-06    .25722E-04
  20  Prefactor     .10000E-03    5.8010        .28063E-07** at limit **
  21  Normalizat    .80273        .28259       -.10612E-06    .38578E-03
  22  Prefactor     1.1017        .11677        .22008E-05    .26525E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 49.0949
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 66.9056
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 319.931
  norm       = 0.0001
  norm       = 25.6378
  norm       = 6.1358
  Prefactor  = 21.6305
  norm       = 0.0001
  Prefactor  = 3.52451
  Prefactor  = 7.97676
  Prefactor  = 1.0469
  Prefactor  = 7.36202
  Prefactor  = 0.0001
  Normalizat = 0.802733
  Prefactor  = 1.10167
 **********
 **   18 **HESSE 
 **********

 FCN=   7787.253     FROM HESSE     STATUS=OK           340 CALLS     2773 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.928        .36788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    61.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.095        50.455        .57235E-04   -1.4305    
   4  Prefactor     .10000E-03    76.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4913        .10491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     66.906        70.497        .49078E-04   -1.4070    
   7  Prefactor     .10000E-03    15.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.0396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     319.93        205.39        .11365E-03   -1.2111    
  11  norm          .10000E-03    12.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.638        32.789        .79110E-04   -1.4695    
  13  norm          6.1358        2.3509        .71553E-04   -1.5213    
  14  Prefactor     21.630        22.935        .86125E-04   -1.4777    
  15  norm          .10000E-03    2.4346        .26397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5245        4.5188        .20286E-03   -1.5332    
  17  Prefactor     7.9768        5.5882        .14196E-03   -1.5143    
  18  Prefactor     1.0469        48.672        .46421E-02   -1.5503    
  19  Prefactor     7.3620        9.9067        .14781E-03   -1.5165    
  20  Prefactor     .10000E-03    5.8402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .80273        .30799        .46210E-03   -.99967    
  22  Prefactor     1.1017        .12491        .16634E-03   -.89413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28798e-08
Minuit parameter uncertainties:
  1  0.000852306
  2  0.000489271
  3  50.4991
  4  0.000622584
  5  6.46481e-06
  6  70.5856
  7  5.77804e-05
  8  2.97971e-05
  9  0.000138484
  10  205.858
  11  3.84393e-05
  12  32.8117
  13  2.35095
  14  22.9442
  15  1.66623e-05
  16  4.51923
  17  5.58855
  18  14.2883
  19  9.90892
  20  1.53617e-05
  21  0.308659
  22  0.124943
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  1.666e-05  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.102e+00  1.249e-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:  8.027e-01  3.087e-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: 5.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105479/likelihoodResults_630460801_630720001_4FGL_J2039.0-1046_daily_bin1509.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) = 7787.25511616
delta logL = -0.00195933282703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7787.18880232
delta logL = 0.0643545145458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19523       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7452       1.0000          .0000       5.0000    
     3 'Normalizat'    .77259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1073       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=   7787.189     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      330 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19518        68.059        .81992E-03    .10138E-02
   2  alpha         3.7447        4.1831        .41588E-01    .14640E-04
   3  Normalizat    .77256        .19158        .47022E-03    .11363E-03
   4  Prefactor     1.1073        .80496E-01    .16594E-03    .30192E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.195184
  alpha      = 3.74469
  Normalizat = 0.772558
  Prefactor  = 1.10726
 **********
 **   18 **HESSE 
 **********

 FCN=   7787.189     FROM HESSE     STATUS=OK            27 CALLS      357 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19518        1.0820        .32797E-04   -1.5620    
   2  alpha         3.7447        3.8342        .16635E-02    .52115    
   3  Normalizat    .77256        .30411        .18809E-04   -1.0109    
   4  Prefactor     1.1073        .12320        .33188E-04   -.89235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05385e-10
Minuit parameter uncertainties:
  1  0.918902
  2  2.44363
  3  0.304783
  4  0.123227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105479': 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) = 7787.18880215
delta logL = 0.0643546782931

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.952e-01  9.189e-01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.745e+00  2.444e+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.107e+00  1.232e-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:  7.726e-01  3.048e-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/105479/cmap_HighResolution_630460801_630720001_4FGL_J2039.0-1046_daily_bin1509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-05', job_status='DONE', photon_flux_upper_limit='5.68e-08', time_completed='2021-09-25 15:49:40.515890', job_id='105479', GAL2='1.11', fit_tolerance='1e-08', EG2='0.77', EG='0.80', time_epoch_completed='1632610180.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='6.44e-02', ts2='0.14', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1509' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:49:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 105479: <4FGL_J2039.0-1046_daily_bin1509> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1509> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 15:35:17 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:35:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 15:35:21 2021
Terminated at Sat Sep 25 15:49:41 2021
Results reported at Sat Sep 25 15:49:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1509 309.758 -10.7731 630460801 630720001 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 :                                   761.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            864 sec.

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

