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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1202
RA = 309.758, Dec = -10.7731
tmin = 550886401, tmax = 551145601
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='101824', job_status='RUN', time_executed='2021-09-25 15:26:48.766864', time_epoch_executed='1632608808.77' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101824/ft1_4FGL_J2039.0-1046_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101824/ft2_4FGL_J2039.0-1046_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101824/ft1_4FGL_J2039.0-1046_daily_bin1202.fits outfile=/scratch/kocevski/101824/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1202.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=550886401.0 tmax=551145601.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.86
user 3.54
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101824/ft1_filtered_4FGL_J2039.0-1046_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/101824/ft2_4FGL_J2039.0-1046_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/101824/ltcube_550886401_551145601_4FGL_J2039.0-1046_daily_bin1202.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/101824/ft2_4FGL_J2039.0-1046_daily_bin1202.fits
.....................!
real 15.08
user 14.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101824/ft1_filtered_4FGL_J2039.0-1046_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/101824/ft2_4FGL_J2039.0-1046_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/101824/ltcube_550886401_551145601_4FGL_J2039.0-1046_daily_bin1202.fits outfile=/scratch/kocevski/101824/expmap_550886401_551145601_4FGL_J2039.0-1046_daily_bin1202.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/101824/ltcube_550886401_551145601_4FGL_J2039.0-1046_daily_bin1202.fits
.....................!
real 193.32
user 186.40
sys 4.53

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/101824/ft1_filtered_4FGL_J2039.0-1046_daily_bin1202.fits scfile=/scratch/kocevski/101824/ft2_4FGL_J2039.0-1046_daily_bin1202.fits outfile=/scratch/kocevski/101824/cmap_550886401_551145601_4FGL_J2039.0-1046_daily_bin1202.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101824/ft1_filtered_4FGL_J2039.0-1046_daily_bin1202.fits scfile=/scratch/kocevski/101824/ft2_4FGL_J2039.0-1046_daily_bin1202.fits outfile=/scratch/kocevski/101824/cmap_HighResolution_550886401_551145601_4FGL_J2039.0-1046_daily_bin1202.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=309.758 yref=-10.7731 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101824/ft1_filtered_4FGL_J2039.0-1046_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/101824/ft2_4FGL_J2039.0-1046_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101824/Model_4FGL_J2039.0-1046_daily_bin1202.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/101824/ft1_filtered_4FGL_J2039.0-1046_daily_bin1202.fits.....................!
real 44.71
user 42.90
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.547       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.036       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.471       1.0000         .10000E-03   10000.    
     8 'norm      '    13.863       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5807       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11171E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4693       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1193       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.932       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.158       1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.180       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92016       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97121       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=   3998.150     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2408 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.543        10.483        .26481E-06    .16773E-04
   2  Prefactor     .10000E-03    42.361        .12545E-05** at limit **
   3  Prefactor     .10000E-03    13.305        .89630E-09** at limit **
   4  Prefactor     23.118        74.053        .51139E-06   -.32702E-05
   5  Prefactor     .10000E-03    1.1989        .35217E-06** at limit **
   6  Prefactor     .10000E-03    18.675        .60812E-08** at limit **
   7  Prefactor     45.485        28.252       -.57866E-08   -.27232E-04
   8  norm          13.863        13.439        .21080E-06   -.67429E-05
   9  Prefactor     5.7459        261.48       -.11036E-04   -.25981E-04
  10  Prefactor     .10000E-03    84.448        .54810E-07** at limit **
  11  norm          .10000E-03    31.811       -.72530E-06** at limit **
  12  norm          .10000E-03    14.469       -.14201E-06** at limit **
  13  norm          3.2281        2.2121        .47584E-07    .54160E-04
  14  Prefactor     8.4735        22.159        .49063E-06    .10848E-04
  15  norm          .10000E-03    3.4511       -.47371E-06** at limit **
  16  Prefactor     2.1181        7.0068        .46047E-06    .91741E-04
  17  Prefactor     10.935        12.170        .63516E-07    .28065E-04
  18  Prefactor     .10000E-03    7.9303       -.20296E-06** at limit **
  19  Prefactor     44.164        41.432       -.35475E-06    .13001E-04
  20  Prefactor     45.198        35.011       -.34897E-06    .19796E-04
  21  Normalizat    .92079        .45779        .11864E-04    .26483E-04
  22  Prefactor     .97090        .18037       -.43062E-05    .18195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.4847
  norm       = 13.8627
  Prefactor  = 5.74589
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.22815
  Prefactor  = 8.47349
  norm       = 0.0001
  Prefactor  = 2.11809
  Prefactor  = 10.9346
  Prefactor  = 0.0001
  Prefactor  = 44.164
  Prefactor  = 45.1981
  Normalizat = 0.920792
  Prefactor  = 0.970901
 **********
 **   18 **HESSE 
 **********

 FCN=   3998.150     FROM HESSE     STATUS=OK           344 CALLS     2752 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.543        10.469        .90593E-04   -1.4824    
   2  Prefactor     .10000E-03    42.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.118        73.828        .83457E-04   -1.4746    
   5  Prefactor     .10000E-03    1.2094        .67691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.485        28.201        .59458E-04   -1.4358    
   8  norm          13.863        13.426        .10758E-03   -1.4963    
   9  Prefactor     5.7459        265.84        .17006E-03   -1.5229    
  10  Prefactor     .10000E-03    84.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    32.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2281        2.2066        .72531E-04   -1.5349    
  14  Prefactor     8.4735        22.130        .13775E-03   -1.5126    
  15  norm          .10000E-03    3.5016        .11500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1181        6.9717        .27754E-03   -1.5417    
  17  Prefactor     10.935        12.161        .12117E-03   -1.5046    
  18  Prefactor     .10000E-03    7.9394        .17397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.164        41.424        .60331E-04   -1.4378    
  20  Prefactor     45.198        35.002        .59648E-04   -1.4362    
  21  Normalizat    .92079        .46101        .44535E-03   -.95733    
  22  Prefactor     .97090        .18267        .17301E-03   -.93706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03951e-10
Minuit parameter uncertainties:
  1  10.4698
  2  0.00020383
  3  3.60313e-06
  4  74.1219
  5  9.00026e-06
  6  3.06846e-06
  7  28.2093
  8  13.4288
  9  78.5391
  10  3.56226e-05
  11  9.06958e-05
  12  1.99695e-05
  13  2.20668
  14  22.151
  15  2.41574e-05
  16  6.9744
  17  12.1641
  18  1.89048e-05
  19  41.4506
  20  35.0184
  21  0.463009
  22  0.182782
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.709e-01  1.828e-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:  9.208e-01  4.630e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101824/likelihoodResults_550886401_551145601_4FGL_J2039.0-1046_daily_bin1202.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) = 3998.15145343
delta logL = -0.00135890767206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3998.15009454
delta logL = -1.89575075638e-08

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.9559       1.0000          .0000       5.0000    
     3 'Normalizat'    .92079       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97092       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=   3998.150     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      194 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    69.500        .90712E-02** at limit **
   2  alpha         1.9558        2.6805        .42456        .10461E-06
   3  Normalizat    .92079        .42422E-01    .10050        .16651E-04
   4  Prefactor     .97090        .16969E-01    .45903E-01    .43475E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.95577
  Normalizat = 0.920794
  Prefactor  = 0.9709
 **********
 **   18 **HESSE 
 **********

 FCN=   3998.150     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      223 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    823.40        .11500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9558        3.2068        .16983       -.21945    
   3  Normalizat    .92079        .35057        .44535E-03   -.95733    
   4  Prefactor     .97090        .14094        .17301E-03   -.93706    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58521e-08
Minuit parameter uncertainties:
  1  9.8697e-05
  2  3178.5
  3  0.35144
  4  0.140989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101824': 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) = 3998.15009452
delta logL = 4.22915036324e-11

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  9.870e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.956e+00  3.179e+03  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:  9.709e-01  1.410e-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:  9.208e-01  3.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/101824/cmap_HighResolution_550886401_551145601_4FGL_J2039.0-1046_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-25 15:35:50.213722', job_id='101824', GAL2='0.97', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632609350.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.23e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1202' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:35:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 101824: <4FGL_J2039.0-1046_daily_bin1202> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1202> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:20:38 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:25:09 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:09 2021
Terminated at Sat Sep 25 15:35:50 2021
Results reported at Sat Sep 25 15:35:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1202 309.758 -10.7731 550886401 551145601 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 :                                   534.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            912 sec.

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

