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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1640
RA = 309.758, Dec = -10.7731
tmin = 664416001, tmax = 664675201
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='283610', job_status='RUN', time_executed='2022-01-24 00:36:54.099080', time_epoch_executed='1643013414.1' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283610

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283610/ft1_4FGL_J2039.0-1046_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283610/ft2_4FGL_J2039.0-1046_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283610/ft1_4FGL_J2039.0-1046_daily_bin1640.fits outfile=/scratch/kocevski/283610/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1640.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=664416001.0 tmax=664675201.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.65
user 3.38
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/283610/ft2_4FGL_J2039.0-1046_daily_bin1640.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/283610/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1640.fits evtable="EVENTS" outfile="/scratch/kocevski/283610/ft1_filtered_4FGL_J2039.0-1046_daily_bin1640.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283610/ft1_filtered_4FGL_J2039.0-1046_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/283610/ft2_4FGL_J2039.0-1046_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/283610/ltcube_664416001_664675201_4FGL_J2039.0-1046_daily_bin1640.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/283610/ft2_4FGL_J2039.0-1046_daily_bin1640.fits
.....................!
real 11.87
user 11.46
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283610/ft1_filtered_4FGL_J2039.0-1046_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/283610/ft2_4FGL_J2039.0-1046_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/283610/ltcube_664416001_664675201_4FGL_J2039.0-1046_daily_bin1640.fits outfile=/scratch/kocevski/283610/expmap_664416001_664675201_4FGL_J2039.0-1046_daily_bin1640.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/283610/ltcube_664416001_664675201_4FGL_J2039.0-1046_daily_bin1640.fits
.....................!
real 191.84
user 184.73
sys 6.79

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/283610/ft1_filtered_4FGL_J2039.0-1046_daily_bin1640.fits scfile=/scratch/kocevski/283610/ft2_4FGL_J2039.0-1046_daily_bin1640.fits outfile=/scratch/kocevski/283610/cmap_664416001_664675201_4FGL_J2039.0-1046_daily_bin1640.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283610/ft1_filtered_4FGL_J2039.0-1046_daily_bin1640.fits scfile=/scratch/kocevski/283610/ft2_4FGL_J2039.0-1046_daily_bin1640.fits outfile=/scratch/kocevski/283610/cmap_HighResolution_664416001_664675201_4FGL_J2039.0-1046_daily_bin1640.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/283610/ft1_filtered_4FGL_J2039.0-1046_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/283610/ft2_4FGL_J2039.0-1046_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/283610/Model_4FGL_J2039.0-1046_daily_bin1640.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/283610/ft1_filtered_4FGL_J2039.0-1046_daily_bin1640.fits.....................!
real 76.42
user 73.66
sys 2.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.768       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.372       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14665E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.245       1.0000         .10000E-03   10000.    
     8 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.621       1.0000         .10000E-03   10000.    
    12 'norm      '    10.854       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3761       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .73781       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3108       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=   7780.635     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2380 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8655        .38068E-06** at limit **
   2  Prefactor     49.739        83.913        .45350E-05    .32281E-04
   3  Prefactor     .10000E-03    8.7729       -.19862E-06** at limit **
   4  Prefactor     43.414        57.518       -.25147E-05    .38136E-04
   5  Prefactor     .10000E-03    1.8693       -.69270E-06** at limit **
   6  Prefactor     .10000E-03    11.989       -.69479E-06** at limit **
   7  Prefactor     41.334        27.016        .29611E-06    .24715E-03
   8  norm          .10000E-03    7.4951        .26842E-06** at limit **
   9  Prefactor     .10000E-03    10.455       -.15702E-06** at limit **
  10  Prefactor     .10000E-03    342.82       -.12309E-06** at limit **
  11  norm          19.613        14.955        .93774E-07   -.30516E-06
  12  norm          10.852        18.056        .40411E-06   -.56196E-05
  13  norm          .10000E-03    .28986       -.64713E-08** at limit **
  14  Prefactor     .10000E-03    5.8480       -.25819E-07** at limit **
  15  norm          .10000E-03    1.5052       -.10445E-07** at limit **
  16  Prefactor     4.3750        7.0578        .28770E-05   -.66314E-04
  17  Prefactor     .10000E-03    2.7546       -.38874E-07** at limit **
  18  Prefactor     .10000E-03    8.4390        .29488E-06** at limit **
  19  Prefactor     .10000E-03    11.758        .79096E-06** at limit **
  20  Prefactor     .10000E-03    7.6583       -.40554E-06** at limit **
  21  Normalizat    .73794        .30670       -.29958E-05    .29488E-04
  22  Prefactor     1.3108        .12192        .43540E-06    .16529E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 49.7388
  Prefactor  = 0.0001
  Prefactor  = 43.4141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.3339
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.613
  norm       = 10.8519
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.737937
  Prefactor  = 1.31076
 **********
 **   18 **HESSE 
 **********

 FCN=   7780.635     FROM HESSE     STATUS=OK           330 CALLS     2710 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9970        .33884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.739        84.343        .56845E-04   -1.4296    
   3  Prefactor     .10000E-03    8.7745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.414        57.313        .60873E-04   -1.4389    
   5  Prefactor     .10000E-03    3.0103        .21774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.334        25.605        .62417E-04   -1.4421    
   8  norm          .10000E-03    7.5162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    344.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.613        14.960        .90422E-04   -1.4822    
  12  norm          10.852        18.050        .12161E-03   -1.5049    
  13  norm          .10000E-03    .29227        .46364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.8716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5144        .10567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3750        7.0636        .96267E-03   -1.5290    
  17  Prefactor     .10000E-03    2.7722        .14294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.4618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .73794        .32863        .52318E-03   -1.0241    
  22  Prefactor     1.3108        .13291        .16342E-03   -.82988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39643e-10
Minuit parameter uncertainties:
  1  3.38818e-05
  2  84.5466
  3  5.292e-06
  4  57.3854
  5  2.10178e-05
  6  1.88196e-05
  7  25.6115
  8  1.81155e-06
  9  2.85135e-06
  10  0.000339631
  11  14.9627
  12  18.0595
  13  5.87634e-08
  14  1.10643e-06
  15  5.1305e-07
  16  7.06499
  17  1.25586e-06
  18  1.14241e-05
  19  2.3324e-05
  20  4.34409e-06
  21  0.329515
  22  0.132941
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  5.131e-07  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.311e+00  1.329e-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:  7.379e-01  3.295e-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: 5.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283610/likelihoodResults_664416001_664675201_4FGL_J2039.0-1046_daily_bin1640.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) = 7780.63819993
delta logL = -0.00310001658818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7780.63509992
delta logL = -6.28369889455e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9585       1.0000          .0000       5.0000    
     3 'Normalizat'    .73794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3108       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.

 FCN=   7780.284     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      272 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27225E-01    .39578E-01    .42498E-02   -.11249E-01
   2  alpha         5.0000        1.0983        .50000    ** at limit **
   3  Normalizat    .66948        .32406        .52318E-02    .85468E-04
   4  Prefactor     1.3275        .13042        .16342E-03    .20902E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0272248
  alpha      = 5
  Normalizat = 0.669479
  Prefactor  = 1.32752
 **********
 **   18 **HESSE 
 **********

 FCN=   7780.284     FROM HESSE     STATUS=OK            31 CALLS      303 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27225E-01    .37119E-01    .20357E-03   -1.5741    
   2  alpha         5.0000        3.1478        .81622E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .66948        .32397        .20927E-03   -1.0511    
   4  Prefactor     1.3275        .13009        .32684E-04   -.82492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74893e-10
Minuit parameter uncertainties:
  1  0.0371186
  2  4.93247e-05
  3  0.324899
  4  0.130123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283610': 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) = 7780.28425012
delta logL = 0.35084979315

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  2.722e-02  3.712e-02  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  5.000e+00  4.932e-05  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.328e+00  1.301e-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.695e-01  3.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 309.758 -10.773

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-05', job_status='DONE', photon_flux_upper_limit='5.57e-08', time_completed='2022-01-24 00:49:06.848901', job_id='283610', GAL2='1.33', fit_tolerance='1e-08', EG2='0.67', EG='0.74', time_epoch_completed='1643014146.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='3.51e-01', ts2='0.75', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1640' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:49:06 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 283610: <4FGL_J2039.0-1046_daily_bin1640> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1640> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Mon Jan 24 00:35:40 2022
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:35:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:35:42 2022
Terminated at Mon Jan 24 00:49:07 2022
Results reported at Mon Jan 24 00:49:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1640 309.758 -10.7731 664416001 664675201 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 :                                   735.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

