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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1390
RA = 309.758, Dec = -10.7731
tmin = 599616001, tmax = 599875201
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='104143', job_status='RUN', time_executed='2021-09-25 15:34:04.100145', time_epoch_executed='1632609244.1' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104143

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104143/ft1_4FGL_J2039.0-1046_daily_bin1390.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104143/ft2_4FGL_J2039.0-1046_daily_bin1390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104143/ft1_4FGL_J2039.0-1046_daily_bin1390.fits outfile=/scratch/kocevski/104143/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1390.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=599616001.0 tmax=599875201.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.71
user 2.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104143/ft2_4FGL_J2039.0-1046_daily_bin1390.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/104143/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1390.fits evtable="EVENTS" outfile="/scratch/kocevski/104143/ft1_filtered_4FGL_J2039.0-1046_daily_bin1390.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.59
user 0.37
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/104143/ft1_filtered_4FGL_J2039.0-1046_daily_bin1390.fits" evtable="EVENTS" scfile=/scratch/kocevski/104143/ft2_4FGL_J2039.0-1046_daily_bin1390.fits sctable="SC_DATA" outfile=/scratch/kocevski/104143/ltcube_599616001_599875201_4FGL_J2039.0-1046_daily_bin1390.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/104143/ft2_4FGL_J2039.0-1046_daily_bin1390.fits
.....................!
real 21.24
user 20.65
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104143/ft1_filtered_4FGL_J2039.0-1046_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/104143/ft2_4FGL_J2039.0-1046_daily_bin1390.fits sctable="SC_DATA" expcube=/scratch/kocevski/104143/ltcube_599616001_599875201_4FGL_J2039.0-1046_daily_bin1390.fits outfile=/scratch/kocevski/104143/expmap_599616001_599875201_4FGL_J2039.0-1046_daily_bin1390.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/104143/ltcube_599616001_599875201_4FGL_J2039.0-1046_daily_bin1390.fits
.....................!
real 195.48
user 188.94
sys 5.59

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/104143/ft1_filtered_4FGL_J2039.0-1046_daily_bin1390.fits scfile=/scratch/kocevski/104143/ft2_4FGL_J2039.0-1046_daily_bin1390.fits outfile=/scratch/kocevski/104143/cmap_599616001_599875201_4FGL_J2039.0-1046_daily_bin1390.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104143/ft1_filtered_4FGL_J2039.0-1046_daily_bin1390.fits scfile=/scratch/kocevski/104143/ft2_4FGL_J2039.0-1046_daily_bin1390.fits outfile=/scratch/kocevski/104143/cmap_HighResolution_599616001_599875201_4FGL_J2039.0-1046_daily_bin1390.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104143/ft1_filtered_4FGL_J2039.0-1046_daily_bin1390.fits evtable="EVENTS" scfile=/scratch/kocevski/104143/ft2_4FGL_J2039.0-1046_daily_bin1390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104143/Model_4FGL_J2039.0-1046_daily_bin1390.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/104143/ft1_filtered_4FGL_J2039.0-1046_daily_bin1390.fits.....................!
real 62.62
user 61.03
sys 1.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10937E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    76.397       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14246E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.148       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4989       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.210       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    19.336       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.535       1.0000         .10000E-03   10000.    
    10 'Prefactor '    529.79       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.8042       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9710       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2439       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89348       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=   5719.560     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2400 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4158       -.18576E-05** at limit **
   2  Prefactor     76.321        112.48       -.11520E-05   -.42057E-04
   3  Prefactor     .10000E-03    94.470       -.59362E-05** at limit **
   4  Prefactor     14.118        116.71       -.27137E-05   -.90184E-05
   5  Prefactor     5.4983        6.0269        .19581E-07   -.23879E-05
   6  Prefactor     14.155        102.52       -.34951E-05   -.12744E-04
   7  Prefactor     .10000E-03    16.671       -.18724E-06** at limit **
   8  norm          19.333        24.187       -.19445E-06   -.35773E-05
   9  Prefactor     19.511        47.285       -.14349E-05   -.21789E-04
  10  Prefactor     529.81        301.46       -.38897E-06    .24117E-05
  11  norm          .10000E-03    11.406       -.22012E-06** at limit **
  12  norm          .10000E-03    12.271       -.22977E-07** at limit **
  13  norm          7.7992        2.6268       -.36528E-07   -.63923E-04
  14  Prefactor     .10000E-03    29.373        .18116E-06** at limit **
  15  norm          1.9712        5.0094        .11398E-05    .22530E-03
  16  Prefactor     .10000E-03    10.970        .51902E-06** at limit **
  17  Prefactor     .10000E-03    2.2722        .19296E-06** at limit **
  18  Prefactor     .10000E-03    5.3308        .11736E-06** at limit **
  19  Prefactor     .10000E-03    10.047        .22564E-06** at limit **
  20  Prefactor     .10000E-03    14.269        .42601E-06** at limit **
  21  Normalizat    1.2441        .33427       -.74533E-05    .41057E-04
  22  Prefactor     .89337        .13882        .34781E-05   -.15629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 76.3209
  Prefactor  = 0.000100004
  Prefactor  = 14.1184
  Prefactor  = 5.49834
  Prefactor  = 14.1546
  Prefactor  = 0.0001
  norm       = 19.3334
  Prefactor  = 19.5107
  Prefactor  = 529.809
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.79921
  Prefactor  = 0.0001
  norm       = 1.97117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24407
  Prefactor  = 0.893367
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.560     FROM HESSE     STATUS=OK           336 CALLS     2736 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     76.321        112.92        .22970E-03   -1.3958    
   3  Prefactor     .10000E-03    96.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.118        116.61        .10649E-03   -1.4956    
   5  Prefactor     5.4983        6.0221        .17134E-03   -1.5239    
   6  Prefactor     14.155        102.71        .10625E-03   -1.4955    
   7  Prefactor     .10000E-03    16.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.333        24.161        .91084E-04   -1.4828    
   9  Prefactor     19.511        47.352        .90620E-04   -1.4824    
  10  Prefactor     529.81        301.38        .89289E-04   -1.1063    
  11  norm          .10000E-03    11.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.7992        2.6240        .67391E-04   -1.5149    
  14  Prefactor     .10000E-03    29.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9712        5.0872        .26352E-03   -1.5427    
  16  Prefactor     .10000E-03    11.432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2943        .11138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.3401        .17056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2441        .34191        .38146E-03   -.85252    
  22  Prefactor     .89337        .14205        .17537E-03   -.96373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28578e-10
Minuit parameter uncertainties:
  1  0.00012321
  2  113.243
  3  0.00124497
  4  81.3669
  5  6.02276
  6  76.4422
  7  2.10358e-05
  8  24.1733
  9  47.4438
  10  302.296
  11  2.10541e-05
  12  2.81913e-06
  13  2.62401
  14  5.92043e-05
  15  5.08833
  16  5.44387e-05
  17  8.95903e-06
  18  1.13055e-05
  19  3.06783e-05
  20  7.53878e-05
  21  0.342528
  22  0.142112
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.971e+00  5.088e+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:  8.934e-01  1.421e-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:  1.244e+00  3.425e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 309.758 -10.773
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104143/likelihoodResults_599616001_599875201_4FGL_J2039.0-1046_daily_bin1390.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) = 5719.52976348
delta logL = 0.0301586567302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5719.52916847
delta logL = 0.030753664284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0846       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3295       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2344       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89468       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=   5719.529     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      250 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0836        5.1010        .22833E-03    .41078E-04
   2  alpha         2.3297        1.4995        .30443E-01    .84277E-05
   3  Normalizat    1.2344        .34035        .38268E-03   -.58822E-05
   4  Prefactor     .89467        .13521        .17523E-03   -.83046E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.08363
  alpha      = 2.32972
  Normalizat = 1.23442
  Prefactor  = 0.894667
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.529     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0836        4.8485        .91330E-05   -1.5419    
   2  alpha         2.3297        1.4347        .12177E-02   -.68165E-01
   3  Normalizat    1.2344        .34032        .15307E-04   -.85546    
   4  Prefactor     .89467        .13519        .70091E-05   -.96328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05925e-11
Minuit parameter uncertainties:
  1  4.84938
  2  1.52864
  3  0.340939
  4  0.135237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104143': 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) = 5719.52916844
delta logL = 0.0307537001108

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.084e+00  4.849e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.330e+00  1.529e+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:  8.947e-01  1.352e-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:  1.234e+00  3.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/104143/cmap_HighResolution_599616001_599875201_4FGL_J2039.0-1046_daily_bin1390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-05', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-25 15:44:54.239687', job_id='104143', GAL2='0.89', fit_tolerance='1e-08', EG2='1.23', EG='1.24', time_epoch_completed='1632609894.24', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.08e-02', ts2='0.24', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1390' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:44:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 104143: <4FGL_J2039.0-1046_daily_bin1390> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1390> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 25 15:30:13 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:30:16 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:16 2021
Terminated at Sat Sep 25 15:44:55 2021
Results reported at Sat Sep 25 15:44:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1390 309.758 -10.7731 599616001 599875201 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 :                                   647.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            882 sec.

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

