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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1097
RA = 309.758, Dec = -10.7731
tmin = 523670401, tmax = 523929601
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='101668', job_status='RUN', time_executed='2021-09-25 15:26:09.591939', time_epoch_executed='1632608769.59' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101668/ft1_4FGL_J2039.0-1046_daily_bin1097.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101668/ft2_4FGL_J2039.0-1046_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101668/ft1_4FGL_J2039.0-1046_daily_bin1097.fits outfile=/scratch/kocevski/101668/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1097.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=523670401.0 tmax=523929601.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.86
user 2.63
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101668/ft1_filtered_4FGL_J2039.0-1046_daily_bin1097.fits" evtable="EVENTS" scfile=/scratch/kocevski/101668/ft2_4FGL_J2039.0-1046_daily_bin1097.fits sctable="SC_DATA" outfile=/scratch/kocevski/101668/ltcube_523670401_523929601_4FGL_J2039.0-1046_daily_bin1097.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/101668/ft2_4FGL_J2039.0-1046_daily_bin1097.fits
.....................!
real 10.82
user 10.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101668/ft1_filtered_4FGL_J2039.0-1046_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/101668/ft2_4FGL_J2039.0-1046_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/101668/ltcube_523670401_523929601_4FGL_J2039.0-1046_daily_bin1097.fits outfile=/scratch/kocevski/101668/expmap_523670401_523929601_4FGL_J2039.0-1046_daily_bin1097.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/101668/ltcube_523670401_523929601_4FGL_J2039.0-1046_daily_bin1097.fits
.....................!
real 156.21
user 151.24
sys 4.64

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/101668/ft1_filtered_4FGL_J2039.0-1046_daily_bin1097.fits scfile=/scratch/kocevski/101668/ft2_4FGL_J2039.0-1046_daily_bin1097.fits outfile=/scratch/kocevski/101668/cmap_523670401_523929601_4FGL_J2039.0-1046_daily_bin1097.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101668/ft1_filtered_4FGL_J2039.0-1046_daily_bin1097.fits scfile=/scratch/kocevski/101668/ft2_4FGL_J2039.0-1046_daily_bin1097.fits outfile=/scratch/kocevski/101668/cmap_HighResolution_523670401_523929601_4FGL_J2039.0-1046_daily_bin1097.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.49
user 0.31
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101668/ft1_filtered_4FGL_J2039.0-1046_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/101668/ft2_4FGL_J2039.0-1046_daily_bin1097.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101668/Model_4FGL_J2039.0-1046_daily_bin1097.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/101668/ft1_filtered_4FGL_J2039.0-1046_daily_bin1097.fits.....................!
real 57.74
user 56.53
sys 1.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70842       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.259       1.0000         .10000E-03   10000.    
     8 'norm      '    25.636       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    27.367       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2785       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1265       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4650       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4450       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.224       1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.318       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4097       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5477       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90745       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=   7192.407     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2433 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0116        .32762E-07** at limit **
   2  Prefactor     .10000E-03    25.365       -.34665E-06** at limit **
   3  Prefactor     .10000E-03    20.062        .11449E-05** at limit **
   4  Prefactor     .10000E-03    154.79       -.89418E-05** at limit **
   5  Prefactor     .70754        1.9531       -.78523E-06   -.13601E-02
   6  Prefactor     .10000E-03    13.201        .19240E-06** at limit **
   7  Prefactor     15.262        18.630        .88761E-06    .89961E-04
   8  norm          25.638        14.897        .13360E-05    .13990E-03
   9  Prefactor     .10000E-03    15.723       -.95290E-06** at limit **
  10  Prefactor     .10000E-03    55.966       -.48462E-05** at limit **
  11  norm          .10000E-03    7.1733       -.84869E-09** at limit **
  12  norm          27.369        25.709       -.23032E-06    .33616E-05
  13  norm          3.2783        1.6976        .86764E-07   -.23912E-03
  14  Prefactor     .10000E-03    13.141        .28549E-06** at limit **
  15  norm          4.1265        3.5715        .11820E-06    .31173E-04
  16  Prefactor     2.4644        6.1269       -.24977E-05   -.59773E-03
  17  Prefactor     6.4446        6.8636        .31254E-05   -.23826E-03
  18  Prefactor     11.220        20.046        .19643E-05   -.64813E-04
  19  Prefactor     50.293        31.485        .14543E-05   -.30679E-03
  20  Prefactor     1.3457        111.52        .27110E-04   -.11953E-03
  21  Normalizat    1.5478        .31321       -.36036E-05   -.17048E-04
  22  Prefactor     .90739        .10877        .18404E-06   -.20856E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.707539
  Prefactor  = 0.0001
  Prefactor  = 15.2618
  norm       = 25.6378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.3687
  norm       = 3.27832
  Prefactor  = 0.0001
  norm       = 4.12645
  Prefactor  = 2.46444
  Prefactor  = 6.44461
  Prefactor  = 11.2203
  Prefactor  = 50.2929
  Prefactor  = 1.34571
  Normalizat = 1.5478
  Prefactor  = 0.907394
 **********
 **   18 **HESSE 
 **********

 FCN=   7192.407     FROM HESSE     STATUS=OK           340 CALLS     2773 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0398        .11744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    156.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .70754        1.9362        .18249E-03   -1.5540    
   6  Prefactor     .10000E-03    13.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.262        18.204        .10253E-03   -1.4926    
   8  norm          25.638        14.863        .79119E-04   -1.4695    
   9  Prefactor     .10000E-03    15.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    55.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.1854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          27.369        25.713        .76579E-04   -1.4661    
  13  norm          3.2783        1.6946        .75610E-04   -1.5346    
  14  Prefactor     .10000E-03    13.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1265        3.5737        .14473E-03   -1.5302    
  16  Prefactor     2.4644        6.4272        .26047E-03   -1.5394    
  17  Prefactor     6.4446        6.7147        .15809E-03   -1.5200    
  18  Prefactor     11.220        20.157        .11958E-03   -1.5038    
  19  Prefactor     50.293        30.507        .56534E-04   -1.4288    
  20  Prefactor     1.3457        96.426        .36495E-03   -1.5476    
  21  Normalizat    1.5478        .37396        .37838E-03   -.76444    
  22  Prefactor     .90739        .13181        .18271E-03   -.95883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53706e-09
Minuit parameter uncertainties:
  1  4.32885e-06
  2  1.39934e-05
  3  1.28474e-05
  4  0.000584604
  5  1.93638
  6  6.9151e-06
  7  18.2108
  8  14.8651
  9  6.78052e-06
  10  8.06629e-06
  11  4.28554e-06
  12  25.7229
  13  1.69458
  14  1.78595e-05
  15  3.57389
  16  6.42904
  17  6.71552
  18  20.1695
  19  30.5169
  20  22.8201
  21  0.374639
  22  0.131857
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  4.126e+00  3.574e+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:  9.074e-01  1.319e-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.548e+00  3.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.95
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.19e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.81e-05

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) = 7192.35056907
delta logL = 0.0560011820662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7192.33744101
delta logL = 0.0691292477622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4496       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6166       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90626       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=   7192.337     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4385        3.2645        .54439E-02    .16456E-02
   2  alpha         1.6151        .61914        .44990        .94029E-04
   3  Normalizat    1.5598        .27944        .85212E-01    .37811E-04
   4  Prefactor     .90629        .10712        .45085E-01    .14301E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.43851
  alpha      = 1.61514
  Normalizat = 1.55978
  Prefactor  = 0.906289
 **********
 **   18 **HESSE 
 **********

 FCN=   7192.337     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4385        4.0671        .14257E-03   -1.5337    
   2  alpha         1.6151        .90570        .21547E-01   -.36179    
   3  Normalizat    1.5598        .33132        .37723E-03   -.76112    
   4  Prefactor     .90629        .12741        .18284E-03   -.95922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92411e-09
Minuit parameter uncertainties:
  1  4.06747
  2  0.930029
  3  0.331784
  4  0.127456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101668': 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) = 7192.3374373
delta logL = 0.0691329575375

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  3.439e+00  4.067e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.615e+00  9.300e-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:  9.063e-01  1.275e-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.560e+00  3.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.09
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 1.62 +/- 0.93
Photon Flux (Free Index): 1.88e-08 +/- 3.27e-08
Energy Flux (Free Index): 2.57e-05 +/- 3.14e-05

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/101668/cmap_HighResolution_523670401_523929601_4FGL_J2039.0-1046_daily_bin1097.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.19e-08', energy_flux2='2.57e-05', photon_flux_error='2.76e-08', dlogl='6.91e-02', energy_flux='2.09e-05', photon_flux2='1.88e-08', job_status='DONE', time_completed='2021-09-25 15:35:12.277379', photon_index_error2='0.93', photon_index2='1.62', ts='5.95', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='3.14e-05', EG='1.55', time_epoch_completed='1632609312.28', return_code='0', job_id='101668', GAL2='0.91', EG2='1.56', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='3.27e-08', ts2='6.09', photon_index='1.96' WHERE bin_id='1097' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:35:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 101668: <4FGL_J2039.0-1046_daily_bin1097> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1097 309.758 -10.7731 523670401 523929601 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 :                                   541.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            886 sec.

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

