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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1045
RA = 309.758, Dec = -10.7731
tmin = 510192001, tmax = 510451201
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='101595', job_status='RUN', time_executed='2021-09-25 15:23:03.282889', time_epoch_executed='1632608583.28' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101595

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101595/ft1_4FGL_J2039.0-1046_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101595/ft2_4FGL_J2039.0-1046_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101595/ft1_4FGL_J2039.0-1046_daily_bin1045.fits outfile=/scratch/kocevski/101595/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1045.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=510192001.0 tmax=510451201.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.59
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101595/ft1_filtered_4FGL_J2039.0-1046_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/101595/ft2_4FGL_J2039.0-1046_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/101595/ltcube_510192001_510451201_4FGL_J2039.0-1046_daily_bin1045.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/101595/ft2_4FGL_J2039.0-1046_daily_bin1045.fits
.....................!
real 10.95
user 10.64
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101595/ft1_filtered_4FGL_J2039.0-1046_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/101595/ft2_4FGL_J2039.0-1046_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/101595/ltcube_510192001_510451201_4FGL_J2039.0-1046_daily_bin1045.fits outfile=/scratch/kocevski/101595/expmap_510192001_510451201_4FGL_J2039.0-1046_daily_bin1045.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/101595/ltcube_510192001_510451201_4FGL_J2039.0-1046_daily_bin1045.fits
.....................!
real 156.60
user 151.48
sys 4.79

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/101595/ft1_filtered_4FGL_J2039.0-1046_daily_bin1045.fits scfile=/scratch/kocevski/101595/ft2_4FGL_J2039.0-1046_daily_bin1045.fits outfile=/scratch/kocevski/101595/cmap_510192001_510451201_4FGL_J2039.0-1046_daily_bin1045.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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101595/ft1_filtered_4FGL_J2039.0-1046_daily_bin1045.fits scfile=/scratch/kocevski/101595/ft2_4FGL_J2039.0-1046_daily_bin1045.fits outfile=/scratch/kocevski/101595/cmap_HighResolution_510192001_510451201_4FGL_J2039.0-1046_daily_bin1045.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.56
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101595/ft1_filtered_4FGL_J2039.0-1046_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/101595/ft2_4FGL_J2039.0-1046_daily_bin1045.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101595/Model_4FGL_J2039.0-1046_daily_bin1045.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/101595/ft1_filtered_4FGL_J2039.0-1046_daily_bin1045.fits.....................!
real 56.72
user 55.50
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8799       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.688       1.0000         .10000E-03   10000.    
     8 'norm      '    .10176E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.692       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    30.793       1.0000         .10000E-03   10000.    
    12 'norm      '    30.715       1.0000         .10000E-03   10000.    
    13 'norm      '    3.6824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2991       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9500       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.836       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2912       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84673       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0689       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=   6925.881     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2067 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0100        .20544E-07** at limit **
   2  Prefactor     .10000E-03    31.467       -.29729E-05** at limit **
   3  Prefactor     .10000E-03    16.379        .36956E-06** at limit **
   4  Prefactor     .10000E-03    16.827       -.44347E-06** at limit **
   5  Prefactor     1.8819        2.7731        .14650E-06    .50477E-04
   6  Prefactor     .10000E-03    77.615       -.32787E-05** at limit **
   7  Prefactor     16.674        18.761       -.22872E-07    .10889E-04
   8  norm          .10000E-03    5.4407        .31726E-08** at limit **
   9  Prefactor     39.693        30.150        .44275E-07   -.46568E-05
  10  Prefactor     .10000E-03    151.95        .17040E-05** at limit **
  11  norm          30.798        20.905       -.42350E-08   -.56859E-05
  12  norm          30.679        37.258        .21617E-05    .95457E-04
  13  norm          3.6804        1.7792       -.96899E-07   -.61536E-03
  14  Prefactor     .10000E-03    27.362        .17641E-05** at limit **
  15  norm          4.3000        5.8131        .23005E-05   -.35677E-03
  16  Prefactor     7.9500        5.4271        .53891E-06   -.13870E-03
  17  Prefactor     .10000E-03    6.7029        .68969E-07** at limit **
  18  Prefactor     .10000E-03    46.690        .24014E-05** at limit **
  19  Prefactor     19.836        17.947        .10737E-06   -.21737E-04
  20  Prefactor     7.2905        14.483        .29932E-06   -.10989E-04
  21  Normalizat    .84718        .29140       -.30308E-05   -.12887E-03
  22  Prefactor     1.0687        .11379        .27370E-06   -.22119E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.88195
  Prefactor  = 0.000100001
  Prefactor  = 16.6745
  norm       = 0.0001
  Prefactor  = 39.6932
  Prefactor  = 0.0001
  norm       = 30.7984
  norm       = 30.6785
  norm       = 3.68038
  Prefactor  = 0.0001
  norm       = 4.30001
  Prefactor  = 7.95004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8363
  Prefactor  = 7.29048
  Normalizat = 0.847176
  Prefactor  = 1.06867
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.881     FROM HESSE     STATUS=OK           338 CALLS     2405 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0224        .11521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8819        2.7413        .14197E-03   -1.5434    
   6  Prefactor     .10000E-03    77.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.674        18.642        .98043E-04   -1.4891    
   8  norm          .10000E-03    5.4765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.693        30.155        .63622E-04   -1.4447    
  10  Prefactor     .10000E-03    152.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          30.798        20.914        .72204E-04   -1.4597    
  12  norm          30.679        37.509        .72296E-04   -1.4600    
  13  norm          3.6804        1.7758        .73373E-04   -1.5324    
  14  Prefactor     .10000E-03    27.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.3000        5.8570        .97149E-03   -1.5293    
  16  Prefactor     7.9500        5.4249        .71103E-03   -1.5144    
  17  Prefactor     .10000E-03    6.8894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.995        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.836        17.940        .89930E-04   -1.4817    
  20  Prefactor     7.2905        14.467        .14854E-03   -1.5168    
  21  Normalizat    .84718        .33164        .45560E-03   -.98342    
  22  Prefactor     1.0687        .13153        .16339E-03   -.90474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62933e-10
Minuit parameter uncertainties:
  1  1.7541e-06
  2  0.000313915
  3  3.4754e-05
  4  3.22769e-05
  5  2.74145
  6  0.000482804
  7  18.649
  8  3.87507e-07
  9  30.1666
  10  0.000330991
  11  20.9187
  12  37.538
  13  1.77581
  14  0.000182336
  15  5.85779
  16  5.42526
  17  1.6413e-05
  18  0.000204881
  19  17.9445
  20  14.4741
  21  0.33244
  22  0.131571
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  4.300e+00  5.858e+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.069e+00  1.316e-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.472e-01  3.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/101595/likelihoodResults_510192001_510451201_4FGL_J2039.0-1046_daily_bin1045.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) = 6924.71239858
delta logL = 1.16881006144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6924.70791224
delta logL = 1.17329639929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0173       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8464       1.0000          .0000       5.0000    
     3 'Normalizat'    .76592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0816       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=   6924.708     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0165        54.554        .50300E-02    .50921E-03
   2  alpha         2.8469        3.8914        .27094        .75431E-04
   3  Normalizat    .76582        .10176        .10742        .46454E-04
   4  Prefactor     1.0816        .39859E-01    .38331E-01    .31065E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01648
  alpha      = 2.84686
  Normalizat = 0.765821
  Prefactor  = 1.0816
 **********
 **   18 **HESSE 
 **********

 FCN=   6924.708     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0165        4.4733        .10539E-03   -1.5307    
   2  alpha         2.8469        .62076        .10558E-01    .13919    
   3  Normalizat    .76582        .32710        .47624E-03   -1.0135    
   4  Prefactor     1.0816        .12974        .16230E-03   -.90057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14626e-11
Minuit parameter uncertainties:
  1  4.47368
  2  0.627453
  3  0.32794
  4  0.129776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101595': 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) = 6924.70791144
delta logL = 1.17329719387

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  4.016e+00  4.474e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.847e+00  6.275e-01  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.082e+00  1.298e-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.658e-01  3.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 2.85 +/- 0.63
Photon Flux (Free Index): 1.18e-07 +/- 8.22e-08
Energy Flux (Free Index): 2.79e-05 +/- 1.97e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/101595/cmap_HighResolution_510192001_510451201_4FGL_J2039.0-1046_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-05', comment='SUCCESS', energy_flux2='2.79e-05', dlogl='1.17e+00', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-25 15:32:20.107761', photon_index_error2='0.63', photon_index2='2.85', ts='0.66', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.97e-05', EG='0.85', time_epoch_completed='1632609140.11', return_code='0', job_id='101595', GAL2='1.08', EG2='0.77', return_code2='0', photon_flux_error2='8.22e-08', ts2='3.08', photon_index='1.96' WHERE bin_id='1045' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:32:20 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1045 309.758 -10.7731 510192001 510451201 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 :                                   552.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            719 sec.

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

