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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1481
RA = 309.758, Dec = -10.7731
tmin = 623203201, tmax = 623462401
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='104272', job_status='RUN', time_executed='2021-09-25 15:32:48.958413', time_epoch_executed='1632609168.96' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/104272

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/104272/ft1_4FGL_J2039.0-1046_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/104272/ft2_4FGL_J2039.0-1046_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/104272/ft1_4FGL_J2039.0-1046_daily_bin1481.fits outfile=/scratch/kocevski/104272/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1481.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=623203201.0 tmax=623462401.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.92
user 2.68
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/104272/ft2_4FGL_J2039.0-1046_daily_bin1481.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/104272/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1481.fits evtable="EVENTS" outfile="/scratch/kocevski/104272/ft1_filtered_4FGL_J2039.0-1046_daily_bin1481.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/104272/ft1_filtered_4FGL_J2039.0-1046_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/104272/ft2_4FGL_J2039.0-1046_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/104272/ltcube_623203201_623462401_4FGL_J2039.0-1046_daily_bin1481.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/104272/ft2_4FGL_J2039.0-1046_daily_bin1481.fits
.....................!
real 15.12
user 14.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/104272/ft1_filtered_4FGL_J2039.0-1046_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/104272/ft2_4FGL_J2039.0-1046_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/104272/ltcube_623203201_623462401_4FGL_J2039.0-1046_daily_bin1481.fits outfile=/scratch/kocevski/104272/expmap_623203201_623462401_4FGL_J2039.0-1046_daily_bin1481.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/104272/ltcube_623203201_623462401_4FGL_J2039.0-1046_daily_bin1481.fits
.....................!
real 191.55
user 186.00
sys 4.84

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/104272/ft1_filtered_4FGL_J2039.0-1046_daily_bin1481.fits scfile=/scratch/kocevski/104272/ft2_4FGL_J2039.0-1046_daily_bin1481.fits outfile=/scratch/kocevski/104272/cmap_623203201_623462401_4FGL_J2039.0-1046_daily_bin1481.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/104272/ft1_filtered_4FGL_J2039.0-1046_daily_bin1481.fits scfile=/scratch/kocevski/104272/ft2_4FGL_J2039.0-1046_daily_bin1481.fits outfile=/scratch/kocevski/104272/cmap_HighResolution_623203201_623462401_4FGL_J2039.0-1046_daily_bin1481.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/104272/ft1_filtered_4FGL_J2039.0-1046_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/104272/ft2_4FGL_J2039.0-1046_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/104272/Model_4FGL_J2039.0-1046_daily_bin1481.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/104272/ft1_filtered_4FGL_J2039.0-1046_daily_bin1481.fits....................!
real 86.67
user 84.89
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4186       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.560       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.155       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6812       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      '    14.868       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2976       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5891       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .93912       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7636       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8397       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2202       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .62401       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1997       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=   9112.721     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2065 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4186        3.4936        .15150E-06   -.12797E-02
   2  Prefactor     .10000E-03    22.578       -.28031E-05** at limit **
   3  Prefactor     .10000E-03    13.921       -.19014E-07** at limit **
   4  Prefactor     25.561        27.211        .54763E-06    .16949E-04
   5  Prefactor     4.9275        2.3432        .69590E-07    .32762E-04
   6  Prefactor     3.7186        71.978        .99317E-05    .25932E-04
   7  Prefactor     19.155        13.689        .18231E-07    .42653E-05
   8  norm          2.6816        5.1634       -.12258E-05   -.23004E-03
   9  Prefactor     .10000E-03    23.862        .37381E-05** at limit **
  10  Prefactor     .10000E-03    39.813       -.66845E-06** at limit **
  11  norm          14.868        12.695       -.74894E-08   -.39723E-05
  12  norm          .10000E-03    9.9508        .11674E-06** at limit **
  13  norm          3.2978        1.6156       -.34947E-07   -.89148E-04
  14  Prefactor     4.5882        11.143        .15212E-05   -.46154E-03
  15  norm          .10000E-03    .95563        .48600E-08** at limit **
  16  Prefactor     .93958        2.9358        .48979E-06   -.36757E-03
  17  Prefactor     1.7635        4.9540       -.14414E-05   -.33374E-03
  18  Prefactor     6.8390        20.788       -.17985E-06   -.11188E-04
  19  Prefactor     .10000E-03    5.7578       -.46877E-07** at limit **
  20  Prefactor     7.2200        10.360        .45918E-06   -.32730E-03
  21  Normalizat    .62400        .29111       -.94251E-07   -.26575E-04
  22  Prefactor     1.1997        .11078       -.20197E-06    .14034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.41863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.5608
  Prefactor  = 4.9275
  Prefactor  = 3.71857
  Prefactor  = 19.1552
  norm       = 2.68162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.8679
  norm       = 0.0001
  norm       = 3.29776
  Prefactor  = 4.58816
  norm       = 0.0001
  Prefactor  = 0.939579
  Prefactor  = 1.76349
  Prefactor  = 6.83905
  Prefactor  = 0.0001
  Prefactor  = 7.21997
  Normalizat = 0.624002
  Prefactor  = 1.19967
 **********
 **   18 **HESSE 
 **********

 FCN=   9112.721     FROM HESSE     STATUS=OK           350 CALLS     2415 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4186        3.7820        .68185E-03   -1.5201    
   2  Prefactor     .10000E-03    22.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.561        27.235        .79236E-04   -1.4696    
   5  Prefactor     4.9275        2.3417        .92167E-04   -1.5264    
   6  Prefactor     3.7186        72.560        .20954E-03   -1.5322    
   7  Prefactor     19.155        13.677        .91513E-04   -1.4832    
   8  norm          2.6816        5.2023        .24885E-03   -1.5380    
   9  Prefactor     .10000E-03    23.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.868        12.693        .10387E-03   -1.4937    
  12  norm          .10000E-03    9.9620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2978        1.6166        .77589E-04   -1.5345    
  14  Prefactor     4.5882        13.674        .93949E-03   -1.5280    
  15  norm          .10000E-03    .95728        .91122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .93958        3.0085        .28176E-03   -1.5514    
  17  Prefactor     1.7635        5.1127        .31546E-03   -1.5442    
  18  Prefactor     6.8390        20.700        .15341E-03   -1.5185    
  19  Prefactor     .10000E-03    5.7598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.2200        10.772        .74639E-03   -1.5171    
  21  Normalizat    .62400        .30694        .53081E-03   -1.0697    
  22  Prefactor     1.1997        .11949        .15812E-03   -.86342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84422e-09
Minuit parameter uncertainties:
  1  3.78211
  2  0.000119545
  3  2.72858e-05
  4  27.248
  5  2.34173
  6  32.8979
  7  13.6796
  8  5.20313
  9  0.00016519
  10  3.11682e-05
  11  12.6952
  12  3.4538e-06
  13  1.61665
  14  13.6831
  15  4.13909e-08
  16  3.00897
  17  5.11398
  18  20.7221
  19  1.03591e-06
  20  10.7753
  21  0.307785
  22  0.119517
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  4.139e-08  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.200e+00  1.195e-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:  6.240e-01  3.078e-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.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/104272/likelihoodResults_623203201_623462401_4FGL_J2039.0-1046_daily_bin1481.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) = 9112.72624935
delta logL = -0.00481521264192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9112.72143394
delta logL = 2.04348907573e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9657       1.0000          .0000       5.0000    
     3 'Normalizat'    .62400       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1997       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=   9112.721     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      197 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3662        .90712E-02** at limit **
   2  alpha         1.9758        3.4702        .42407       -.51522E-04
   3  Normalizat    .62400        .26218        .11968        .92697E-04
   4  Prefactor     1.1997        .10610        .34639E-01    .10461E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97585
  Normalizat = 0.624003
  Prefactor  = 1.19967
 **********
 **   18 **HESSE 
 **********

 FCN=   9112.721     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .97069        .91483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9758        3.4094        .50000       -.21123    
   3  Normalizat    .62400        .27898        .53081E-03   -1.0697    
   4  Prefactor     1.1997        .11338        .15812E-03   -.86342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.671e-09
Minuit parameter uncertainties:
  1  2.21349e-06
  2  2.45207
  3  0.279609
  4  0.113404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/104272': 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) = 9112.72143372
delta logL = 4.19155185227e-07

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  2.213e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.976e+00  2.452e+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.200e+00  1.134e-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:  6.240e-01  2.796e-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/104272/cmap_HighResolution_623203201_623462401_4FGL_J2039.0-1046_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='4.12e-08', time_completed='2021-09-25 15:45:57.001938', job_id='104272', GAL2='1.20', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632609957.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='4.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1481' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:45:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 104272: <4FGL_J2039.0-1046_daily_bin1481> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1481> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 25 15:30:23 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:30:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 15:30:44 2021
Terminated at Sat Sep 25 15:45:57 2021
Results reported at Sat Sep 25 15:45:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1481 309.758 -10.7731 623203201 623462401 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 :                                   785.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            934 sec.

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

