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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1342
RA = 309.758, Dec = -10.7731
tmin = 587174401, tmax = 587433601
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='103126', job_status='RUN', time_executed='2021-09-25 15:27:05.741004', time_epoch_executed='1632608825.74' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1342'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103126

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103126/ft1_4FGL_J2039.0-1046_daily_bin1342.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103126/ft2_4FGL_J2039.0-1046_daily_bin1342.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103126/ft1_4FGL_J2039.0-1046_daily_bin1342.fits outfile=/scratch/kocevski/103126/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1342.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=587174401.0 tmax=587433601.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.60
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103126/ft1_filtered_4FGL_J2039.0-1046_daily_bin1342.fits" evtable="EVENTS" scfile=/scratch/kocevski/103126/ft2_4FGL_J2039.0-1046_daily_bin1342.fits sctable="SC_DATA" outfile=/scratch/kocevski/103126/ltcube_587174401_587433601_4FGL_J2039.0-1046_daily_bin1342.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/103126/ft2_4FGL_J2039.0-1046_daily_bin1342.fits
.....................!
real 15.05
user 14.61
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103126/ft1_filtered_4FGL_J2039.0-1046_daily_bin1342.fits evtable="EVENTS" scfile=/scratch/kocevski/103126/ft2_4FGL_J2039.0-1046_daily_bin1342.fits sctable="SC_DATA" expcube=/scratch/kocevski/103126/ltcube_587174401_587433601_4FGL_J2039.0-1046_daily_bin1342.fits outfile=/scratch/kocevski/103126/expmap_587174401_587433601_4FGL_J2039.0-1046_daily_bin1342.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/103126/ltcube_587174401_587433601_4FGL_J2039.0-1046_daily_bin1342.fits
.....................!
real 195.89
user 190.29
sys 5.01

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/103126/ft1_filtered_4FGL_J2039.0-1046_daily_bin1342.fits scfile=/scratch/kocevski/103126/ft2_4FGL_J2039.0-1046_daily_bin1342.fits outfile=/scratch/kocevski/103126/cmap_587174401_587433601_4FGL_J2039.0-1046_daily_bin1342.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103126/ft1_filtered_4FGL_J2039.0-1046_daily_bin1342.fits scfile=/scratch/kocevski/103126/ft2_4FGL_J2039.0-1046_daily_bin1342.fits outfile=/scratch/kocevski/103126/cmap_HighResolution_587174401_587433601_4FGL_J2039.0-1046_daily_bin1342.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/103126/ft1_filtered_4FGL_J2039.0-1046_daily_bin1342.fits evtable="EVENTS" scfile=/scratch/kocevski/103126/ft2_4FGL_J2039.0-1046_daily_bin1342.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103126/Model_4FGL_J2039.0-1046_daily_bin1342.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/103126/ft1_filtered_4FGL_J2039.0-1046_daily_bin1342.fits.....................!
real 66.34
user 64.88
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4802       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.642       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.134       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .93149       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50525E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23182E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.1503       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10396E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .99929       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0804       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0412       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=   6613.076     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2383 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4806        5.8437       -.42089E-05   -.10128E-03
   2  Prefactor     .10000E-03    22.395        .54555E-05** at limit **
   3  Prefactor     20.644        36.184       -.11686E-05    .51927E-04
   4  Prefactor     22.123        52.454       -.23560E-05    .12691E-03
   5  Prefactor     .93199        2.0603       -.38235E-06   -.96943E-03
   6  Prefactor     .10000E-03    34.450       -.54316E-06** at limit **
   7  Prefactor     .10000E-03    9.8792        .12199E-05** at limit **
   8  norm          .10000E-03    9.9167       -.13315E-05** at limit **
   9  Prefactor     .10002E-03    41.647       -.10668E-05** at limit **
  10  Prefactor     .10000E-03    77.095        .72407E-06** at limit **
  11  norm          .10000E-03    5.6989        .19132E-07** at limit **
  12  norm          .10000E-03    13.170        .75608E-06** at limit **
  13  norm          3.1507        1.6640       -.15805E-07    .42312E-03
  14  Prefactor     .10000E-03    21.617       -.50025E-05** at limit **
  15  norm          .99761        4.0976       -.15045E-05   -.26363E-03
  16  Prefactor     .10000E-03    3.0289       -.23096E-07** at limit **
  17  Prefactor     .10000E-03    3.6000       -.46206E-07** at limit **
  18  Prefactor     .10000E-03    4.9550        .19434E-06** at limit **
  19  Prefactor     .10000E-03    14.262       -.54497E-06** at limit **
  20  Prefactor     .10000E-03    4.9590       -.19682E-06** at limit **
  21  Normalizat    1.0807        .27509        .28981E-06    .23071E-03
  22  Prefactor     1.0412        .11167        .93741E-06    .36355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.48065
  Prefactor  = 0.000100002
  Prefactor  = 20.6443
  Prefactor  = 22.1225
  Prefactor  = 0.931994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.15067
  Prefactor  = 0.000100002
  norm       = 0.99761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08067
  Prefactor  = 1.04117
 **********
 **   18 **HESSE 
 **********

 FCN=   6613.076     FROM HESSE     STATUS=OK           346 CALLS     2729 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4806        6.2310        .25959E-03   -1.5393    
   2  Prefactor     .10000E-03    21.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.644        36.296        .88157E-04   -1.4799    
   4  Prefactor     22.123        51.508        .85137E-04   -1.4767    
   5  Prefactor     .93199        1.8937        .16995E-02   -1.5515    
   6  Prefactor     .10000E-03    34.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.8928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    40.868        .15756       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    77.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.7041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    13.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1507        1.6564        .72707E-04   -1.5353    
  14  Prefactor     .10000E-03    21.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .99761        7.9789        .31385E-02   -1.5508    
  16  Prefactor     .10000E-03    3.0708        .13814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.6553        .15063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9603        .17676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9657        .17686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0807        .32367        .40101E-03   -.90375    
  22  Prefactor     1.0412        .13353        .16219E-03   -.91370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01555e-09
Minuit parameter uncertainties:
  1  6.23262
  2  0.000416147
  3  36.3349
  4  51.6122
  5  1.8938
  6  0.00010658
  7  5.37927e-05
  8  8.74836e-05
  9  0.00197696
  10  0.000100771
  11  8.0281e-07
  12  4.56687e-05
  13  1.65646
  14  0.000407571
  15  5.64337
  16  4.69483e-06
  17  8.06347e-06
  18  1.00943e-05
  19  1.91036e-05
  20  4.42742e-06
  21  0.324261
  22  0.133569
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  9.976e-01  5.643e+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.041e+00  1.336e-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.081e+00  3.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/103126/likelihoodResults_587174401_587433601_4FGL_J2039.0-1046_daily_bin1342.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) = 6610.82392373
delta logL = 2.25227574701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6610.8017987
delta logL = 2.27440077191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43076       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3346       1.0000          .0000       5.0000    
     3 'Normalizat'    .82804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0998       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=   6610.802     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      231 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42976        3.3325        .59391E-02   -.82452E-03
   2  alpha         4.3357        4.3605        .26905        .51837E-05
   3  Normalizat    .82800        .91574E-01    .10169       -.18425E-03
   4  Prefactor     1.0998        .36649E-01    .37594E-01   -.64834E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.429762
  alpha      = 4.33573
  Normalizat = 0.828
  Prefactor  = 1.09984
 **********
 **   18 **HESSE 
 **********

 FCN=   6610.802     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      262 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42976        5.5055        .26719E-04   -1.5577    
   2  alpha         4.3357        4.6209        .12288E-01    .82462    
   3  Normalizat    .82800        .30408        .45065E-03   -.99038    
   4  Prefactor     1.0998        .12010        .15802E-03   -.89472    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.3893e-10
Minuit parameter uncertainties:
  1  3.07638
  2  3.59846
  3  0.304705
  4  0.120132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103126': 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): 102
logL (Free Index) = 6610.80179828
delta logL = 2.2744011915

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  4.298e-01  3.076e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  4.336e+00  3.598e+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.100e+00  1.201e-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.280e-01  3.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 4.34 +/- 3.60
Photon Flux (Free Index): 2.07e-07 +/- 1.09e-07
Energy Flux (Free Index): 3.07e-05 +/- 2.27e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/103126/cmap_HighResolution_587174401_587433601_4FGL_J2039.0-1046_daily_bin1342.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-05', comment='SUCCESS', energy_flux2='3.07e-05', dlogl='2.27e+00', photon_flux2='2.07e-07', job_status='DONE', time_completed='2021-09-25 15:38:41.446536', photon_index_error2='3.60', photon_index2='4.34', ts='0.03', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='2.27e-05', EG='1.08', time_epoch_completed='1632609521.45', return_code='0', job_id='103126', GAL2='1.10', EG2='0.83', return_code2='102', photon_flux_error2='1.09e-07', ts2='5.14', photon_index='1.96' WHERE bin_id='1342' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:38:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 103126: <4FGL_J2039.0-1046_daily_bin1342> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1342> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:25:25 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:26:03 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:26:03 2021
Terminated at Sat Sep 25 15:38:42 2021
Results reported at Sat Sep 25 15:38:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1342 309.758 -10.7731 587174401 587433601 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 :                                   695.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            797 sec.

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

