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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1508
RA = 309.758, Dec = -10.7731
tmin = 630201601, tmax = 630460801
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='105477', job_status='RUN', time_executed='2021-09-25 15:35:47.985337', time_epoch_executed='1632609347.99' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105477

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105477/ft1_4FGL_J2039.0-1046_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105477/ft2_4FGL_J2039.0-1046_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105477/ft1_4FGL_J2039.0-1046_daily_bin1508.fits outfile=/scratch/kocevski/105477/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1508.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=630201601.0 tmax=630460801.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.03
user 2.82
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/105477/ft2_4FGL_J2039.0-1046_daily_bin1508.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/105477/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1508.fits evtable="EVENTS" outfile="/scratch/kocevski/105477/ft1_filtered_4FGL_J2039.0-1046_daily_bin1508.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.44
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105477/ft1_filtered_4FGL_J2039.0-1046_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/105477/ft2_4FGL_J2039.0-1046_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/105477/ltcube_630201601_630460801_4FGL_J2039.0-1046_daily_bin1508.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/105477/ft2_4FGL_J2039.0-1046_daily_bin1508.fits
.....................!
real 11.61
user 11.24
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105477/ft1_filtered_4FGL_J2039.0-1046_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/105477/ft2_4FGL_J2039.0-1046_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/105477/ltcube_630201601_630460801_4FGL_J2039.0-1046_daily_bin1508.fits outfile=/scratch/kocevski/105477/expmap_630201601_630460801_4FGL_J2039.0-1046_daily_bin1508.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/105477/ltcube_630201601_630460801_4FGL_J2039.0-1046_daily_bin1508.fits
.....................!
real 156.51
user 151.84
sys 4.15

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/105477/ft1_filtered_4FGL_J2039.0-1046_daily_bin1508.fits scfile=/scratch/kocevski/105477/ft2_4FGL_J2039.0-1046_daily_bin1508.fits outfile=/scratch/kocevski/105477/cmap_630201601_630460801_4FGL_J2039.0-1046_daily_bin1508.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.80
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105477/ft1_filtered_4FGL_J2039.0-1046_daily_bin1508.fits scfile=/scratch/kocevski/105477/ft2_4FGL_J2039.0-1046_daily_bin1508.fits outfile=/scratch/kocevski/105477/cmap_HighResolution_630201601_630460801_4FGL_J2039.0-1046_daily_bin1508.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.60
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/105477/ft1_filtered_4FGL_J2039.0-1046_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/105477/ft2_4FGL_J2039.0-1046_daily_bin1508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/105477/Model_4FGL_J2039.0-1046_daily_bin1508.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/105477/ft1_filtered_4FGL_J2039.0-1046_daily_bin1508.fits.....................!
real 73.62
user 64.41
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    51.623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0512       1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.047       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.414       1.0000         .10000E-03   10000.    
     8 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    143.51       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.1446       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.076       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0026       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5325       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.6419       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0863       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0747       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=   8145.969     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2357 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3900        .28201E-07** at limit **
   2  Prefactor     51.606        65.703       -.19394E-04   -.70831E-06
   3  Prefactor     .10000E-03    33.955       -.12498E-06** at limit **
   4  Prefactor     .10000E-03    80.121        .10840E-05** at limit **
   5  Prefactor     3.0512        3.8970        .11533E-05   -.43351E-03
   6  Prefactor     82.046        61.852       -.78769E-06    .56635E-05
   7  Prefactor     11.407        24.614       -.30026E-05   -.15482E-04
   8  norm          .10000E-03    6.3563        .14125E-06** at limit **
   9  Prefactor     .10000E-03    33.946        .15226E-07** at limit **
  10  Prefactor     143.49        117.00       -.13008E-04    .28446E-05
  11  norm          .10000E-03    10.772        .15528E-05** at limit **
  12  norm          .10000E-03    14.588       -.18815E-05** at limit **
  13  norm          5.1445        2.0902       -.28460E-09    .24428E-04
  14  Prefactor     17.075        21.708       -.52189E-06    .10870E-04
  15  norm          1.0018        2.6276       -.82602E-06   -.12238E-02
  16  Prefactor     1.5326        3.2332       -.74024E-06   -.10029E-02
  17  Prefactor     .10000E-03    2.9466       -.50883E-07** at limit **
  18  Prefactor     4.6418        9.4152       -.45005E-06   -.94221E-04
  19  Prefactor     .10000E-03    11.089       -.22713E-05** at limit **
  20  Prefactor     .10000E-03    13.628        .23773E-05** at limit **
  21  Normalizat    1.0863        .25572        .20406E-06    .64271E-04
  22  Prefactor     1.0747        .10485        .85792E-06   -.12510E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 51.6059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.05124
  Prefactor  = 82.046
  Prefactor  = 11.4069
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 143.492
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.14451
  Prefactor  = 17.0751
  norm       = 1.00179
  Prefactor  = 1.53257
  Prefactor  = 0.0001
  Prefactor  = 4.64182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08634
  Prefactor  = 1.07467
 **********
 **   18 **HESSE 
 **********

 FCN=   8145.969     FROM HESSE     STATUS=OK           340 CALLS     2697 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4042        .13624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.606        64.573        .55819E-04   -1.4270    
   3  Prefactor     .10000E-03    33.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    80.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0512        3.8359        .16197E-03   -1.5359    
   6  Prefactor     82.046        62.082        .44343E-04   -1.3894    
   7  Prefactor     11.407        24.414        .11858E-03   -1.5032    
   8  norm          .10000E-03    6.3857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     143.49        116.37        .16816E-03   -1.3306    
  11  norm          .10000E-03    10.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.1445        2.0847        .73478E-04   -1.5254    
  14  Prefactor     17.075        21.671        .96923E-04   -1.4881    
  15  norm          1.0018        2.5931        .23280E-02   -1.5508    
  16  Prefactor     1.5326        3.2504        .23048E-03   -1.5460    
  17  Prefactor     .10000E-03    2.9855        .15122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.6418        9.4127        .18680E-03   -1.5277    
  19  Prefactor     .10000E-03    11.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0863        .29286        .41725E-03   -.90192    
  22  Prefactor     1.0747        .12140        .17159E-03   -.90280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62657e-09
Minuit parameter uncertainties:
  1  3.29447e-06
  2  64.6606
  3  8.08557e-07
  4  0.000371249
  5  3.83618
  6  62.1312
  7  24.4357
  8  3.36114e-05
  9  2.3269e-05
  10  116.557
  11  4.05632e-06
  12  7.14756e-06
  13  2.0847
  14  21.6812
  15  2.59343
  16  3.25074
  17  5.66127e-06
  18  9.41565
  19  1.18622e-05
  20  2.65116e-05
  21  0.293297
  22  0.121426
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.002e+00  2.593e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.956e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.320e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.019e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.075e+00  1.214e-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.086e+00  2.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/105477/likelihoodResults_630201601_630460801_4FGL_J2039.0-1046_daily_bin1508.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): 102
logL (Free Index) = 8145.91044021
delta logL = 0.0590033893532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8145.84180396
delta logL = 0.127639639648

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27560       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7591       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0852       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=   8145.842     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      238 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27348        6.8693        .10317E-01    .28657E-02
   2  alpha         3.7633        4.3476        .50000        .72735E-04
   3  Normalizat    1.0430        .43977E-01    .95855E-01    .11481E-03
   4  Prefactor     1.0852        .18097E-01    .38176E-01    .24472E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.273477
  alpha      = 3.7633
  Normalizat = 1.04297
  Prefactor  = 1.0852
 **********
 **   18 **HESSE 
 **********

 FCN=   8145.842     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27348        33.902        .72119E-04   -1.5603    
   2  alpha         3.7633        3.1128        .25679E-01    .52975    
   3  Normalizat    1.0430        .24678        .42466E-03   -.91605    
   4  Prefactor     1.0852        .10167        .17082E-03   -.89941    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.30211e-09
Minuit parameter uncertainties:
  1  6.09224
  2  11.5127
  3  0.247047
  4  0.101689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105477': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8145.84180161
delta logL = 0.127641990365

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.735e-01  6.092e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.763e+00  1.151e+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:  1.085e+00  1.017e-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.043e+00  2.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.20
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/105477/cmap_HighResolution_630201601_630460801_4FGL_J2039.0-1046_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-05', job_status='DONE', photon_flux_upper_limit='7.17e-08', time_completed='2021-09-25 15:46:37.526947', job_id='105477', GAL2='1.09', fit_tolerance='1e-08', EG2='1.04', EG='1.09', time_epoch_completed='1632609997.53', return_code2='102', ts='0.20', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.28e-01', ts2='0.47', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1508' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:46:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 105477: <4FGL_J2039.0-1046_daily_bin1508> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1508> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 15:35:17 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:35:21 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:35:21 2021
Terminated at Sat Sep 25 15:46:38 2021
Results reported at Sat Sep 25 15:46:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1508 309.758 -10.7731 630201601 630460801 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 :                                   629.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            681 sec.

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

