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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1284
RA = 309.758, Dec = -10.7731
tmin = 572140801, tmax = 572400001
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='103042', job_status='RUN', time_executed='2021-09-25 15:27:29.837603', time_epoch_executed='1632608849.84' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103042

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103042/ft1_4FGL_J2039.0-1046_daily_bin1284.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103042/ft2_4FGL_J2039.0-1046_daily_bin1284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103042/ft1_4FGL_J2039.0-1046_daily_bin1284.fits outfile=/scratch/kocevski/103042/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1284.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=572140801.0 tmax=572400001.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.28
user 3.02
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103042/ft1_filtered_4FGL_J2039.0-1046_daily_bin1284.fits" evtable="EVENTS" scfile=/scratch/kocevski/103042/ft2_4FGL_J2039.0-1046_daily_bin1284.fits sctable="SC_DATA" outfile=/scratch/kocevski/103042/ltcube_572140801_572400001_4FGL_J2039.0-1046_daily_bin1284.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/103042/ft2_4FGL_J2039.0-1046_daily_bin1284.fits
.....................!
real 16.04
user 15.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103042/ft1_filtered_4FGL_J2039.0-1046_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/103042/ft2_4FGL_J2039.0-1046_daily_bin1284.fits sctable="SC_DATA" expcube=/scratch/kocevski/103042/ltcube_572140801_572400001_4FGL_J2039.0-1046_daily_bin1284.fits outfile=/scratch/kocevski/103042/expmap_572140801_572400001_4FGL_J2039.0-1046_daily_bin1284.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/103042/ltcube_572140801_572400001_4FGL_J2039.0-1046_daily_bin1284.fits
.....................!
real 193.88
user 189.09
sys 4.06

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/103042/ft1_filtered_4FGL_J2039.0-1046_daily_bin1284.fits scfile=/scratch/kocevski/103042/ft2_4FGL_J2039.0-1046_daily_bin1284.fits outfile=/scratch/kocevski/103042/cmap_572140801_572400001_4FGL_J2039.0-1046_daily_bin1284.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103042/ft1_filtered_4FGL_J2039.0-1046_daily_bin1284.fits scfile=/scratch/kocevski/103042/ft2_4FGL_J2039.0-1046_daily_bin1284.fits outfile=/scratch/kocevski/103042/cmap_HighResolution_572140801_572400001_4FGL_J2039.0-1046_daily_bin1284.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/103042/ft1_filtered_4FGL_J2039.0-1046_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/103042/ft2_4FGL_J2039.0-1046_daily_bin1284.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103042/Model_4FGL_J2039.0-1046_daily_bin1284.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/103042/ft1_filtered_4FGL_J2039.0-1046_daily_bin1284.fits.....................!
real 85.07
user 83.04
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1127       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 '    8.2943       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0211       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.428       1.0000         .10000E-03   10000.    
     8 'norm      '    11.160       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    35.692       1.0000         .10000E-03   10000.    
    12 'norm      '    .40273E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.3693       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.6813       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37920E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.0663       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6023       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .56680       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84641       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1046       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=   8386.004     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2422 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1147        4.4179        .30894E-06    .25369E-04
   2  Prefactor     .10000E-03    36.254       -.95190E-06** at limit **
   3  Prefactor     .10000E-03    38.656       -.10193E-05** at limit **
   4  Prefactor     8.3091        35.310        .36947E-05    .11613E-03
   5  Prefactor     1.0200        2.2810        .11197E-05    .36526E-03
   6  Prefactor     .10000E-03    30.907        .12136E-05** at limit **
   7  Prefactor     16.440        19.144       -.10968E-05   -.55782E-04
   8  norm          11.162        11.317       -.10766E-06   -.94383E-04
   9  Prefactor     .10000E-03    13.698       -.15050E-07** at limit **
  10  Prefactor     .10000E-03    51.896        .97192E-06** at limit **
  11  norm          35.696        21.302        .58279E-06    .17513E-03
  12  norm          .10000E-03    111.57       -.23801E-05** at limit **
  13  norm          4.3705        1.6150        .32892E-08   -.53029E-04
  14  Prefactor     .10000E-03    4.5161       -.82778E-08** at limit **
  15  norm          4.6820        3.5716        .71224E-06    .19806E-03
  16  Prefactor     .13911        4.0889       -.20352E-06    .11826E-03
  17  Prefactor     5.0740        5.4077        .26344E-06   -.50943E-05
  18  Prefactor     .10000E-03    8.4190       -.34359E-07** at limit **
  19  Prefactor     4.5954        12.732       -.37123E-06   -.17667E-03
  20  Prefactor     .67900        14.458        .29577E-05   -.50235E-03
  21  Normalizat    .84446        .27140        .33558E-06   -.16804E-03
  22  Prefactor     1.1049        .10486       -.69628E-06   -.24033E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.11466
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.30907
  Prefactor  = 1.02004
  Prefactor  = 0.000100001
  Prefactor  = 16.4404
  norm       = 11.1622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 35.6956
  norm       = 0.000100002
  norm       = 4.37049
  Prefactor  = 0.0001
  norm       = 4.68199
  Prefactor  = 0.139111
  Prefactor  = 5.07398
  Prefactor  = 0.0001
  Prefactor  = 4.59539
  Prefactor  = 0.679
  Normalizat = 0.84446
  Prefactor  = 1.10494
 **********
 **   18 **HESSE 
 **********

 FCN=   8386.004     FROM HESSE     STATUS=OK           348 CALLS     2770 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1147        4.4235        .18786E-03   -1.5302    
   2  Prefactor     .10000E-03    36.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.3091        37.043        .13920E-03   -1.5131    
   5  Prefactor     1.0200        2.2519        .17738E-03   -1.5506    
   6  Prefactor     .10000E-03    31.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.440        18.829        .98816E-04   -1.4897    
   8  norm          11.162        11.310        .11993E-03   -1.5040    
   9  Prefactor     .10000E-03    13.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    52.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          35.696        21.409        .67080E-04   -1.4512    
  12  norm          .10000E-03    116.89        .42521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3705        1.6139        .67097E-04   -1.5290    
  14  Prefactor     .10000E-03    4.5203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6820        3.5812        .73465E-03   -1.5275    
  16  Prefactor     .13911        42.128        .33960E-02   -1.5633    
  17  Prefactor     5.0740        5.4105        .17864E-03   -1.5257    
  18  Prefactor     .10000E-03    8.4530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5954        12.779        .18762E-03   -1.5279    
  20  Prefactor     .67900        92.365        .56764E-02   -1.5543    
  21  Normalizat    .84446        .30998        .45906E-03   -.98440    
  22  Prefactor     1.1049        .11897        .16136E-03   -.89309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82089e-09
Minuit parameter uncertainties:
  1  4.42382
  2  0.000318334
  3  0.000263964
  4  35.1243
  5  2.25205
  6  0.000303742
  7  18.8361
  8  11.312
  9  1.51899e-06
  10  0.000309899
  11  21.4138
  12  0.000868374
  13  1.61391
  14  2.76418e-07
  15  3.58136
  16  4.84335
  17  5.41097
  18  8.21835e-07
  19  12.7866
  20  15.8626
  21  0.310638
  22  0.119001
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  4.682e+00  3.581e+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.105e+00  1.190e-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:  8.445e-01  3.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.16
Ra Dec: 309.758 -10.773
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 3.62e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.81e-05

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) = 8385.85003665
delta logL = 0.154196490503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8385.83537731
delta logL = 0.168855824004

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1025       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5407       1.0000          .0000       5.0000    
     3 'Normalizat'    .86066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1024       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=   8385.835     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      200 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1025        3.4253        .49759E-02    .10780E-02
   2  alpha         1.5407        .52178        .45845       -.43239E-04
   3  Normalizat    .86066        .25241        .10269       -.84745E-04
   4  Prefactor     1.1024        .10022        .37498E-01   -.38046E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.10247
  alpha      = 1.54066
  Normalizat = 0.86066
  Prefactor  = 1.10236
 **********
 **   18 **HESSE 
 **********

 FCN=   8385.835     FROM HESSE     STATUS=OK            29 CALLS      229 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1025        3.6885        .14353E-03   -1.5303    
   2  alpha         1.5407        .66015        .19187E-01   -.39384    
   3  Normalizat    .86066        .28337        .45513E-03   -.97857    
   4  Prefactor     1.1024        .11332        .16154E-03   -.89391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23115e-10
Minuit parameter uncertainties:
  1  3.6887
  2  0.66949
  3  0.283864
  4  0.113349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103042': 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) = 8385.83537731
delta logL = 0.168855830876

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  4.102e+00  3.689e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.541e+00  6.695e-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.102e+00  1.133e-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:  8.607e-01  2.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 309.758 -10.773
Photon Index (Free Index): 1.54 +/- 0.67
Photon Flux (Free Index): 2.13e-08 +/- 2.52e-08
Energy Flux (Free Index): 3.48e-05 +/- 3.96e-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/103042/cmap_HighResolution_572140801_572400001_4FGL_J2039.0-1046_daily_bin1284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.62e-08', energy_flux2='3.48e-05', photon_flux_error='2.77e-08', dlogl='1.69e-01', energy_flux='2.37e-05', photon_flux2='2.13e-08', job_status='DONE', time_completed='2021-09-25 15:39:32.969321', photon_index_error2='0.67', photon_index2='1.54', ts='4.16', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='3.96e-05', EG='0.84', time_epoch_completed='1632609572.97', return_code='0', job_id='103042', GAL2='1.10', EG2='0.86', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='2.52e-08', ts2='4.50', photon_index='1.96' WHERE bin_id='1284' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:39:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 103042: <4FGL_J2039.0-1046_daily_bin1284> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1284> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:25:19 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:25: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:25:44 2021
Terminated at Sat Sep 25 15:39:33 2021
Results reported at Sat Sep 25 15:39:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1284 309.758 -10.7731 572140801 572400001 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 :                                   721.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            854 sec.

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

