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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1602
RA = 309.758, Dec = -10.7731
tmin = 654566401, tmax = 654825601
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='860066', job_status='RUN', time_executed='2021-10-02 00:17:02.302333', time_epoch_executed='1633159022.3' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/860066

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/860066/ft1_4FGL_J2039.0-1046_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/860066/ft2_4FGL_J2039.0-1046_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/860066/ft1_4FGL_J2039.0-1046_daily_bin1602.fits outfile=/scratch/kocevski/860066/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1602.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=654566401.0 tmax=654825601.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 4.98
user 4.75
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/860066/ft2_4FGL_J2039.0-1046_daily_bin1602.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/860066/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1602.fits evtable="EVENTS" outfile="/scratch/kocevski/860066/ft1_filtered_4FGL_J2039.0-1046_daily_bin1602.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/860066/ft1_filtered_4FGL_J2039.0-1046_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/860066/ft2_4FGL_J2039.0-1046_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/860066/ltcube_654566401_654825601_4FGL_J2039.0-1046_daily_bin1602.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/860066/ft2_4FGL_J2039.0-1046_daily_bin1602.fits
.....................!
real 12.20
user 11.67
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/860066/ft1_filtered_4FGL_J2039.0-1046_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/860066/ft2_4FGL_J2039.0-1046_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/860066/ltcube_654566401_654825601_4FGL_J2039.0-1046_daily_bin1602.fits outfile=/scratch/kocevski/860066/expmap_654566401_654825601_4FGL_J2039.0-1046_daily_bin1602.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/860066/ltcube_654566401_654825601_4FGL_J2039.0-1046_daily_bin1602.fits
.....................!
real 190.88
user 186.33
sys 3.89

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/860066/ft1_filtered_4FGL_J2039.0-1046_daily_bin1602.fits scfile=/scratch/kocevski/860066/ft2_4FGL_J2039.0-1046_daily_bin1602.fits outfile=/scratch/kocevski/860066/cmap_654566401_654825601_4FGL_J2039.0-1046_daily_bin1602.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/860066/ft1_filtered_4FGL_J2039.0-1046_daily_bin1602.fits scfile=/scratch/kocevski/860066/ft2_4FGL_J2039.0-1046_daily_bin1602.fits outfile=/scratch/kocevski/860066/cmap_HighResolution_654566401_654825601_4FGL_J2039.0-1046_daily_bin1602.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/860066/ft1_filtered_4FGL_J2039.0-1046_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/860066/ft2_4FGL_J2039.0-1046_daily_bin1602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/860066/Model_4FGL_J2039.0-1046_daily_bin1602.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/860066/ft1_filtered_4FGL_J2039.0-1046_daily_bin1602.fits.....................!
real 79.25
user 77.95
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83931       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2640       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.946       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.087       1.0000         .10000E-03   10000.    
     8 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.720       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3072       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1790       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5994       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .94585       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79244       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0188       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=   8390.887     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2388 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .83846        3.1705       -.41719E-06   -.32880E-04
   2  Prefactor     .10000E-03    35.968        .16905E-05** at limit **
   3  Prefactor     .10000E-03    13.239       -.13260E-05** at limit **
   4  Prefactor     .10000E-03    17.390        .18342E-05** at limit **
   5  Prefactor     4.2638        2.5879       -.12379E-06   -.39306E-04
   6  Prefactor     44.950        40.083        .40951E-05    .29213E-03
   7  Prefactor     10.086        16.960        .10437E-05    .91044E-04
   8  norm          .10000E-03    3.8839       -.24362E-07** at limit **
   9  Prefactor     15.645        29.118       -.13014E-05   -.60923E-04
  10  Prefactor     .10000E-03    93.995        .16790E-05** at limit **
  11  norm          10.720        11.815       -.21681E-07    .96640E-05
  12  norm          .10000E-03    11.726        .52075E-06** at limit **
  13  norm          2.3075        1.2986       -.19707E-07   -.13344E-04
  14  Prefactor     .10000E-03    6.4314       -.26468E-07** at limit **
  15  norm          .10000E-03    1.1997       -.89158E-08** at limit **
  16  Prefactor     .10000E-03    2.6669        .83788E-09** at limit **
  17  Prefactor     3.1795        .94569        .98307E-07   -.32923E-03
  18  Prefactor     .10000E-03    5.8443       -.71450E-08** at limit **
  19  Prefactor     4.6269        23.280       -.41167E-06    .90343E-04
  20  Prefactor     .88021        15.534       -.28710E-05    .56776E-03
  21  Normalizat    .79255        .23212        .95821E-06    .16486E-03
  22  Prefactor     1.0188        .94093E-01   -.32385E-06    .44079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.838464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.26383
  Prefactor  = 44.9503
  Prefactor  = 10.0861
  norm       = 0.0001
  Prefactor  = 15.6447
  Prefactor  = 0.0001
  norm       = 10.7197
  norm       = 0.0001
  norm       = 2.30747
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.17945
  Prefactor  = 0.0001
  Prefactor  = 4.62695
  Prefactor  = 0.880209
  Normalizat = 0.792547
  Prefactor  = 1.01879
 **********
 **   18 **HESSE 
 **********

 FCN=   8390.887     FROM HESSE     STATUS=OK           344 CALLS     2732 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .83846        5.8097        .29505E-02   -1.5525    
   2  Prefactor     .10000E-03    36.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2638        2.5815        .96517E-04   -1.5295    
   6  Prefactor     44.950        40.717        .59803E-04   -1.4366    
   7  Prefactor     10.086        16.916        .12616E-03   -1.5073    
   8  norm          .10000E-03    3.9037        .17619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.645        29.195        .10125E-03   -1.4917    
  10  Prefactor     .10000E-03    94.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.720        11.820        .12237E-03   -1.5053    
  12  norm          .10000E-03    11.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3075        1.2942        .74774E-04   -1.5404    
  14  Prefactor     .10000E-03    6.4499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.2074        .97965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7246        .14588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.1795        5.6854        .11364E-02   -1.5351    
  18  Prefactor     .10000E-03    5.8558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6269        26.581        .18768E-03   -1.5278    
  20  Prefactor     .88021        79.543        .49295E-02   -1.5520    
  21  Normalizat    .79255        .26704        .42859E-03   -1.0035    
  22  Prefactor     1.0188        .10923        .15403E-03   -.92106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93191e-08
Minuit parameter uncertainties:
  1  4.41453
  2  0.000253059
  3  0.000137849
  4  0.000189469
  5  2.58152
  6  40.7424
  7  16.9242
  8  4.5146e-06
  9  29.2216
  10  0.000397618
  11  11.8222
  12  4.32038e-05
  13  1.29425
  14  2.47303e-06
  15  3.3979e-07
  16  1.06094e-06
  17  5.68637
  18  1.65797e-07
  19  22.1947
  20  16.757
  21  0.267479
  22  0.109252
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  3.398e-07  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.019e+00  1.093e-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.925e-01  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 309.758 -10.773
Photon Flux Upper Limit: 4.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/860066/likelihoodResults_654566401_654825601_4FGL_J2039.0-1046_daily_bin1602.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) = 8390.89123701
delta logL = -0.00392887402995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8390.88730115
delta logL = 6.9803390943e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5785       1.0000          .0000       5.0000    
     3 'Normalizat'    .79256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0188       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=   8390.887     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      400 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.2978        .21232E-03** at limit **
   2  alpha         2.7305        2.8467        .50000        .21323E-06
   3  Normalizat    .79254        .25555        .42859E-03   -.11401E-03
   4  Prefactor     1.0188        .10394        .15403E-03   -.37724E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.73048
  Normalizat = 0.792545
  Prefactor  = 1.01879
 **********
 **   18 **HESSE 
 **********

 FCN=   8390.887     FROM HESSE     STATUS=OK            29 CALLS      429 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5174        .42465E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7305        3.8623        .50000        .92322E-01
   3  Normalizat    .79254        .25568        .17143E-04   -1.0035    
   4  Prefactor     1.0188        .10400        .30807E-04   -.92106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93136e-10
Minuit parameter uncertainties:
  1  4.37622e-06
  2  144.739
  3  0.256069
  4  0.10402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/860066': 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) = 8390.88730057
delta logL = 7.56767622079e-06

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  4.376e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.730e+00  1.447e+02  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.019e+00  1.040e-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.925e-01  2.561e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/860066/cmap_HighResolution_654566401_654825601_4FGL_J2039.0-1046_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-05', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2021-10-02 00:30:12.308168', job_id='860066', GAL2='1.02', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1633159812.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='7.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1602' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:30:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 860066: <4FGL_J2039.0-1046_daily_bin1602> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1602> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Oct  2 00:15:34 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:15:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:15:36 2021
Terminated at Sat Oct  2 00:30:13 2021
Results reported at Sat Oct  2 00:30:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1602 309.758 -10.7731 654566401 654825601 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 :                                   792.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            879 sec.

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

