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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1010
RA = 309.758, Dec = -10.7731
tmin = 501120001, tmax = 501379201
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='101539', job_status='RUN', time_executed='2021-09-25 15:24:35.652331', time_epoch_executed='1632608675.65' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101539

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101539/ft1_4FGL_J2039.0-1046_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101539/ft2_4FGL_J2039.0-1046_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101539/ft1_4FGL_J2039.0-1046_daily_bin1010.fits outfile=/scratch/kocevski/101539/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1010.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=501120001.0 tmax=501379201.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.51
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101539/ft1_filtered_4FGL_J2039.0-1046_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/101539/ft2_4FGL_J2039.0-1046_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/101539/ltcube_501120001_501379201_4FGL_J2039.0-1046_daily_bin1010.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/101539/ft2_4FGL_J2039.0-1046_daily_bin1010.fits
.....................!
real 15.28
user 14.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101539/ft1_filtered_4FGL_J2039.0-1046_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/101539/ft2_4FGL_J2039.0-1046_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/101539/ltcube_501120001_501379201_4FGL_J2039.0-1046_daily_bin1010.fits outfile=/scratch/kocevski/101539/expmap_501120001_501379201_4FGL_J2039.0-1046_daily_bin1010.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/101539/ltcube_501120001_501379201_4FGL_J2039.0-1046_daily_bin1010.fits
.....................!
real 192.38
user 186.77
sys 5.05

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/101539/ft1_filtered_4FGL_J2039.0-1046_daily_bin1010.fits scfile=/scratch/kocevski/101539/ft2_4FGL_J2039.0-1046_daily_bin1010.fits outfile=/scratch/kocevski/101539/cmap_501120001_501379201_4FGL_J2039.0-1046_daily_bin1010.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/101539/ft1_filtered_4FGL_J2039.0-1046_daily_bin1010.fits scfile=/scratch/kocevski/101539/ft2_4FGL_J2039.0-1046_daily_bin1010.fits outfile=/scratch/kocevski/101539/cmap_HighResolution_501120001_501379201_4FGL_J2039.0-1046_daily_bin1010.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=309.758 yref=-10.7731 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101539/ft1_filtered_4FGL_J2039.0-1046_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/101539/ft2_4FGL_J2039.0-1046_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101539/Model_4FGL_J2039.0-1046_daily_bin1010.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/101539/ft1_filtered_4FGL_J2039.0-1046_daily_bin1010.fits.....................!
real 67.52
user 66.06
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.266       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.469       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.7435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.200       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    25.770       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7448       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11858E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4016       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.216       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .63565       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0744       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=   6725.166     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2365 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8414       -.30646E-06** at limit **
   2  Prefactor     .10000E-03    43.838        .34216E-04** at limit **
   3  Prefactor     40.097        37.031        .68658E-05   -.22573E-04
   4  Prefactor     25.271        29.556        .31528E-05   -.38938E-04
   5  Prefactor     .10000E-03    1.2163       -.29584E-06** at limit **
   6  Prefactor     19.478        33.586        .81910E-05   -.17335E-04
   7  Prefactor     .10000E-03    12.108        .12746E-04** at limit **
   8  norm          9.7232        14.462       -.12577E-05   -.21198E-03
   9  Prefactor     21.185        50.170       -.24273E-04   -.13119E-04
  10  Prefactor     .10000E-03    63.491       -.18895E-04** at limit **
  11  norm          .10000E-03    6.5563       -.62127E-06** at limit **
  12  norm          25.776        23.490        .14730E-05   -.51161E-05
  13  norm          1.7449        1.3781       -.26647E-06   -.67990E-03
  14  Prefactor     .10000E-03    7.6295        .12159E-05** at limit **
  15  norm          .10000E-03    2.0202       -.30379E-06** at limit **
  16  Prefactor     .10000E-03    2.4027       -.11418E-06** at limit **
  17  Prefactor     2.3985        6.4815       -.25371E-05   -.63190E-03
  18  Prefactor     .10000E-03    11.165       -.11714E-04** at limit **
  19  Prefactor     .10001E-03    29.025       -.13279E-04** at limit **
  20  Prefactor     53.176        24.436       -.11873E-04    .20563E-03
  21  Normalizat    .63676        .28849        .11193E-04    .63160E-04
  22  Prefactor     1.0740        .11468       -.13124E-05    .42900E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.0971
  Prefactor  = 25.2707
  Prefactor  = 0.0001
  Prefactor  = 19.4783
  Prefactor  = 0.0001
  norm       = 9.72321
  Prefactor  = 21.1852
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.7759
  norm       = 1.74486
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.39853
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 53.1761
  Normalizat = 0.636757
  Prefactor  = 1.07398
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.166     FROM HESSE     STATUS=OK           340 CALLS     2705 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9648        .35210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     40.097        37.112        .63309E-04   -1.4441    
   4  Prefactor     25.271        29.543        .79694E-04   -1.4702    
   5  Prefactor     .10000E-03    2.2716        .17391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.478        33.579        .90774E-04   -1.4825    
   7  Prefactor     .10000E-03    12.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.7232        14.339        .12838E-03   -1.5084    
   9  Prefactor     21.185        50.460        .86992E-04   -1.4787    
  10  Prefactor     .10000E-03    63.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.5620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.776        23.488        .78912E-04   -1.4692    
  13  norm          1.7449        1.3649        .81751E-04   -1.5444    
  14  Prefactor     .10000E-03    7.6527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.8547        .22624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4266        .12404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.3985        6.4797        .26422E-03   -1.5398    
  18  Prefactor     .10000E-03    11.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    28.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     53.176        24.357        .54982E-04   -1.4248    
  21  Normalizat    .63676        .31791        .48463E-03   -1.0645    
  22  Prefactor     1.0740        .12994        .15354E-03   -.90303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71377e-09
Minuit parameter uncertainties:
  1  6.68439e-05
  2  0.000110993
  3  37.1333
  4  29.5599
  5  4.49079e-05
  6  33.6119
  7  3.64052e-05
  8  14.3442
  9  50.5615
  10  3.79667e-05
  11  1.00441e-05
  12  23.496
  13  1.36495
  14  1.42657e-05
  15  5.3891e-05
  16  1.92014e-05
  17  6.48156
  18  2.5432e-05
  19  0.000968549
  20  24.3615
  21  0.318834
  22  0.129982
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  5.389e-05  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.074e+00  1.300e-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.368e-01  3.188e-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: 6.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101539/likelihoodResults_501120001_501379201_4FGL_J2039.0-1046_daily_bin1010.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) = 6725.16705507
delta logL = -0.0012350571651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6725.16581999
delta logL = 2.76786522591e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9740       1.0000          .0000       5.0000    
     3 'Normalizat'    .63674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0740       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6725.166     FROM MIGRAD    STATUS=FAILED        93 CALLS      254 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10346E-03    5.9292        .22703E-02** at limit **
   2  alpha         2.2282        2.5560        .16946       -.85196E-05
   3  Normalizat    .63676        .30504        .48462E-03    .91560E-04
   4  Prefactor     1.0740        .12426        .15354E-03    .26053E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6725.166     FROM SIMPLEX   STATUS=UNCHANGED    100 CALLS      354 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10346E-03    5.9292        .18544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2282        2.5560        .98023E-03   -.10893    
   3  Normalizat    .63676        .30504        .23380E-03   -1.0645    
   4  Prefactor     1.0740        .12426        .93226E-04   -.90303    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6725.166     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      392 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6157        .45407E-03** at limit **
   2  alpha         2.5525        2.7689        .67785E-01   -.44612E-07
   3  Normalizat    .63676        .30514        .19385E-04   -.14943E-03
   4  Prefactor     1.0740        .12430        .30708E-04   -.42649E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.55251
  Normalizat = 0.636757
  Prefactor  = 1.07398
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.166     FROM HESSE     STATUS=OK            23 CALLS      415 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6145        .90813E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5525        2.5198        .27114E-02    .21006E-01
   3  Normalizat    .63676        .30511        .38770E-05   -1.0645    
   4  Prefactor     1.0740        .12429        .61417E-05   -.90303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81547e-10
Minuit parameter uncertainties:
  1  4.046e-05
  2  518.288
  3  0.305927
  4  0.124328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101539': 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) = 6725.16581793
delta logL = 2.08543406188e-06

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  4.046e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.553e+00  5.183e+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.074e+00  1.243e-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.368e-01  3.059e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/101539/cmap_HighResolution_501120001_501379201_4FGL_J2039.0-1046_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-05', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-09-25 15:36:11.315928', job_id='101539', GAL2='1.07', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1632609371.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1010' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:36:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 101539: <4FGL_J2039.0-1046_daily_bin1010> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1010> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:20:18 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:21:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 15:21:31 2021
Terminated at Sat Sep 25 15:36:12 2021
Results reported at Sat Sep 25 15:36:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1010 309.758 -10.7731 501120001 501379201 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.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            954 sec.

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

