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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin828
RA = 309.758, Dec = -10.7731
tmin = 453945601, tmax = 454204801
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='100159', job_status='RUN', time_executed='2021-09-25 15:17:13.050261', time_epoch_executed='1632608233.05' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='828'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100159

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100159/ft1_4FGL_J2039.0-1046_daily_bin828.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100159/ft2_4FGL_J2039.0-1046_daily_bin828.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100159/ft1_4FGL_J2039.0-1046_daily_bin828.fits outfile=/scratch/kocevski/100159/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin828.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=453945601.0 tmax=454204801.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.08
user 3.82
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100159/ft2_4FGL_J2039.0-1046_daily_bin828.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/100159/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin828.fits evtable="EVENTS" outfile="/scratch/kocevski/100159/ft1_filtered_4FGL_J2039.0-1046_daily_bin828.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.58
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100159/ft1_filtered_4FGL_J2039.0-1046_daily_bin828.fits" evtable="EVENTS" scfile=/scratch/kocevski/100159/ft2_4FGL_J2039.0-1046_daily_bin828.fits sctable="SC_DATA" outfile=/scratch/kocevski/100159/ltcube_453945601_454204801_4FGL_J2039.0-1046_daily_bin828.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/100159/ft2_4FGL_J2039.0-1046_daily_bin828.fits
.....................!
real 14.39
user 14.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100159/ft1_filtered_4FGL_J2039.0-1046_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/100159/ft2_4FGL_J2039.0-1046_daily_bin828.fits sctable="SC_DATA" expcube=/scratch/kocevski/100159/ltcube_453945601_454204801_4FGL_J2039.0-1046_daily_bin828.fits outfile=/scratch/kocevski/100159/expmap_453945601_454204801_4FGL_J2039.0-1046_daily_bin828.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/100159/ltcube_453945601_454204801_4FGL_J2039.0-1046_daily_bin828.fits
.....................!
real 193.07
user 187.25
sys 5.34

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/100159/ft1_filtered_4FGL_J2039.0-1046_daily_bin828.fits scfile=/scratch/kocevski/100159/ft2_4FGL_J2039.0-1046_daily_bin828.fits outfile=/scratch/kocevski/100159/cmap_453945601_454204801_4FGL_J2039.0-1046_daily_bin828.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.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100159/ft1_filtered_4FGL_J2039.0-1046_daily_bin828.fits scfile=/scratch/kocevski/100159/ft2_4FGL_J2039.0-1046_daily_bin828.fits outfile=/scratch/kocevski/100159/cmap_HighResolution_453945601_454204801_4FGL_J2039.0-1046_daily_bin828.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.57
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100159/ft1_filtered_4FGL_J2039.0-1046_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/100159/ft2_4FGL_J2039.0-1046_daily_bin828.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100159/Model_4FGL_J2039.0-1046_daily_bin828.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/100159/ft1_filtered_4FGL_J2039.0-1046_daily_bin828.fits.....................!
real 76.71
user 74.84
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7594       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.546       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.645       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1176       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.105       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0025       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.3160       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4300       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.5303       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.556       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.522       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11137E-02   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .54668       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1130       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=   8009.009     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2470 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7595        2.7008        .34934E-07    .24248E-03
   2  Prefactor     35.614        54.167       -.11011E-05    .51715E-04
   3  Prefactor     23.638        29.467        .14458E-06    .89516E-04
   4  Prefactor     .10000E-03    83.162       -.35750E-05** at limit **
   5  Prefactor     .10000E-03    1.3581       -.81271E-06** at limit **
   6  Prefactor     .10000E-03    16.044       -.29816E-06** at limit **
   7  Prefactor     .10000E-03    12.541        .27184E-06** at limit **
   8  norm          .10000E-03    5.5247       -.89641E-07** at limit **
   9  Prefactor     7.1142        24.866       -.18571E-06    .18693E-04
  10  Prefactor     .10000E-03    35.379        .76914E-06** at limit **
  11  norm          11.106        12.643       -.13992E-06    .34892E-04
  12  norm          .10000E-03    10.135       -.12196E-06** at limit **
  13  norm          1.0024        1.3309        .30034E-07    .30224E-03
  14  Prefactor     .10000E-03    7.6873        .19190E-07** at limit **
  15  norm          2.3160        2.3394       -.27184E-07    .45700E-04
  16  Prefactor     3.4293        4.4459        .48302E-06    .46709E-03
  17  Prefactor     2.5303        4.9854        .74424E-06    .37597E-03
  18  Prefactor     23.554        18.538       -.26841E-06   -.57947E-05
  19  Prefactor     18.531        20.998       -.40662E-06   -.24401E-03
  20  Prefactor     .10040E-03    15.939        .32860E-05** at limit **
  21  Normalizat    .54678        .29020       -.22411E-05    .27358E-03
  22  Prefactor     1.1130        .11116        .14779E-05    .11738E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.75951
  Prefactor  = 35.6143
  Prefactor  = 23.6383
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.11423
  Prefactor  = 0.0001
  norm       = 11.106
  norm       = 0.0001
  norm       = 1.00239
  Prefactor  = 0.0001
  norm       = 2.31598
  Prefactor  = 3.4293
  Prefactor  = 2.5303
  Prefactor  = 23.5537
  Prefactor  = 18.5306
  Prefactor  = 0.000100401
  Normalizat = 0.546784
  Prefactor  = 1.11305
 **********
 **   18 **HESSE 
 **********

 FCN=   8009.009     FROM HESSE     STATUS=OK           346 CALLS     2816 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7595        2.7024        .14113E-03   -1.5376    
   2  Prefactor     35.614        54.578        .67218E-04   -1.4514    
   3  Prefactor     23.638        29.571        .82376E-04   -1.4735    
   4  Prefactor     .10000E-03    85.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.7375        .17590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.6567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1142        24.886        .15036E-03   -1.5174    
  10  Prefactor     .10000E-03    35.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.106        12.618        .60111E-03   -1.5041    
  12  norm          .10000E-03    10.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0024        1.2825        .11051E-03   -1.5508    
  14  Prefactor     .10000E-03    7.7117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.3160        2.3324        .13378E-03   -1.5404    
  16  Prefactor     3.4293        4.4992        .10172E-02   -1.5338    
  17  Prefactor     2.5303        5.1355        .12839E-02   -1.5390    
  18  Prefactor     23.554        18.508        .82531E-04   -1.4737    
  19  Prefactor     18.531        20.093        .93063E-04   -1.4847    
  20  Prefactor     .10040E-03    63.464        .48056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .54678        .30385        .51216E-03   -1.1029    
  22  Prefactor     1.1130        .11929        .14901E-03   -.89051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86994e-09
Minuit parameter uncertainties:
  1  2.70251
  2  54.6548
  3  29.5892
  4  0.00120124
  5  2.96407e-05
  6  5.60297e-05
  7  5.30057e-05
  8  1.00711e-05
  9  24.9219
  10  0.000170333
  11  12.6208
  12  1.94325e-05
  13  1.28251
  14  6.50472e-06
  15  2.3325
  16  4.49965
  17  5.13636
  18  18.5129
  19  20.1008
  20  0.0101046
  21  0.304779
  22  0.119316
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.316e+00  2.333e+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.113e+00  1.193e-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:  5.468e-01  3.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.20
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.79e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/100159/likelihoodResults_453945601_454204801_4FGL_J2039.0-1046_daily_bin828.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) = 8008.97524576
delta logL = 0.0341042980845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8008.97450326
delta logL = 0.0348467974663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2670       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2114       1.0000          .0000       5.0000    
     3 'Normalizat'    .53928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1145       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=   8008.975     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2663        73.539        .68196E-02    .19453E-03
   2  alpha         2.2115        3.0740        .41503        .27772E-04
   3  Normalizat    .53872        .14567        .11633        .58125E-04
   4  Prefactor     1.1146        .38208E-01    .37061E-01   -.11935E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26628
  alpha      = 2.21147
  Normalizat = 0.53872
  Prefactor  = 1.11463
 **********
 **   18 **HESSE 
 **********

 FCN=   8008.975     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2663        2.3076        .12588E-03   -1.5407    
   2  alpha         2.2115        .96110        .24573E-01   -.11567    
   3  Normalizat    .53872        .28344        .51577E-03   -1.1065    
   4  Prefactor     1.1146        .11496        .14890E-03   -.89000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61265e-12
Minuit parameter uncertainties:
  1  2.30768
  2  0.986877
  3  0.284207
  4  0.114983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100159': 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) = 8008.97450098
delta logL = 0.0348490862098

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.266e+00  2.308e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.211e+00  9.869e-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.115e+00  1.150e-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:  5.387e-01  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 2.21 +/- 0.99
Photon Flux (Free Index): 2.45e-08 +/- 3.47e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.07e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-05', comment='SUCCESS', photon_flux='1.79e-08', energy_flux2='1.06e-05', photon_flux_error='1.80e-08', dlogl='3.48e-02', energy_flux='1.17e-05', photon_flux2='2.45e-08', job_status='DONE', time_completed='2021-09-25 15:30:10.893588', photon_index_error2='0.99', photon_index2='2.21', ts='2.20', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='6.91e-08', energy_flux_error2='1.07e-05', EG='0.55', time_epoch_completed='1632609010.89', return_code='0', job_id='100159', GAL2='1.11', EG2='0.54', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='3.47e-08', ts2='2.27', photon_index='1.96' WHERE bin_id='828' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:30:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 100159: <4FGL_J2039.0-1046_daily_bin828> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin828> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 25 15:15:24 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:16:57 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:16:57 2021
Terminated at Sat Sep 25 15:30:11 2021
Results reported at Sat Sep 25 15:30:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin828 309.758 -10.7731 453945601 454204801 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 :                                   776.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            887 sec.

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

