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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1603
RA = 309.758, Dec = -10.7731
tmin = 654825601, tmax = 655084801
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='917257', job_status='RUN', time_executed='2021-10-05 00:15:26.346861', time_epoch_executed='1633418126.35' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917257

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917257/ft1_4FGL_J2039.0-1046_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917257/ft2_4FGL_J2039.0-1046_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917257/ft1_4FGL_J2039.0-1046_daily_bin1603.fits outfile=/scratch/kocevski/917257/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1603.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=654825601.0 tmax=655084801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.03
user 2.79
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/917257/ft2_4FGL_J2039.0-1046_daily_bin1603.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/917257/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1603.fits evtable="EVENTS" outfile="/scratch/kocevski/917257/ft1_filtered_4FGL_J2039.0-1046_daily_bin1603.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917257/ft1_filtered_4FGL_J2039.0-1046_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/917257/ft2_4FGL_J2039.0-1046_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/917257/ltcube_654825601_655084801_4FGL_J2039.0-1046_daily_bin1603.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/917257/ft2_4FGL_J2039.0-1046_daily_bin1603.fits
.....................!
real 12.49
user 12.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917257/ft1_filtered_4FGL_J2039.0-1046_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917257/ft2_4FGL_J2039.0-1046_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/917257/ltcube_654825601_655084801_4FGL_J2039.0-1046_daily_bin1603.fits outfile=/scratch/kocevski/917257/expmap_654825601_655084801_4FGL_J2039.0-1046_daily_bin1603.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/917257/ltcube_654825601_655084801_4FGL_J2039.0-1046_daily_bin1603.fits
.....................!
real 191.27
user 185.60
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/917257/ft1_filtered_4FGL_J2039.0-1046_daily_bin1603.fits scfile=/scratch/kocevski/917257/ft2_4FGL_J2039.0-1046_daily_bin1603.fits outfile=/scratch/kocevski/917257/cmap_654825601_655084801_4FGL_J2039.0-1046_daily_bin1603.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917257/ft1_filtered_4FGL_J2039.0-1046_daily_bin1603.fits scfile=/scratch/kocevski/917257/ft2_4FGL_J2039.0-1046_daily_bin1603.fits outfile=/scratch/kocevski/917257/cmap_HighResolution_654825601_655084801_4FGL_J2039.0-1046_daily_bin1603.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917257/ft1_filtered_4FGL_J2039.0-1046_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917257/ft2_4FGL_J2039.0-1046_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917257/Model_4FGL_J2039.0-1046_daily_bin1603.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/917257/ft1_filtered_4FGL_J2039.0-1046_daily_bin1603.fits.....................!
real 99.91
user 98.56
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8414       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 '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9483       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0388       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.476       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7689       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.068       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .39526       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2745       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0190       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0033       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10975.09     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2024 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8414        3.6065         .0000        .11526E-02
   2  Prefactor     .10003E-03    8.8784         .0000    ** at limit **
   3  Prefactor     .10007E-03    11.520         .0000    ** at limit **
   4  Prefactor     .10002E-03    9.9652         .0000    ** at limit **
   5  Prefactor     4.9482        1.6783         .0000        .97147E-04
   6  Prefactor     .10003E-03    23.695         .0000    ** at limit **
   7  Prefactor     .10000E-03    3.6748         .0000    ** at limit **
   8  norm          1.0379        6.8000         .0000        .48573E-01
   9  Prefactor     .10017E-03    14.701         .0000    ** at limit **
  10  Prefactor     .10002E-03    63.118         .0000    ** at limit **
  11  norm          14.476        10.091         .0000       -.25461E-04
  12  norm          .10000E-03    4.9457         .0000    ** at limit **
  13  norm          1.7689        1.0182         .0000        .35893E-03
  14  Prefactor     10.068        9.6780         .0000        .12690E-02
  15  norm          .10000E-03    .69276         .0000    ** at limit **
  16  Prefactor     .39986        1.5151         .0000        .25210E-02
  17  Prefactor     .10000E-03    4.8715         .0000    ** at limit **
  18  Prefactor     .10002E-03    8.3980         .0000    ** at limit **
  19  Prefactor     .10005E-03    12.612         .0000    ** at limit **
  20  Prefactor     9.2775        11.264         .0000        .57390E-04
  21  Normalizat    1.0190        .21168         .0000        .14768E-04
  22  Prefactor     1.0033        .82227E-01     .0000       -.42679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.84144
  Prefactor  = 0.00010003
  Prefactor  = 0.000100067
  Prefactor  = 0.00010002
  Prefactor  = 4.94821
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  norm       = 1.03786
  Prefactor  = 0.000100169
  Prefactor  = 0.000100016
  norm       = 14.4761
  norm       = 0.000100004
  norm       = 1.76889
  Prefactor  = 10.0681
  norm       = 0.0001
  Prefactor  = 0.399859
  Prefactor  = 0.000100004
  Prefactor  = 0.000100019
  Prefactor  = 0.000100048
  Prefactor  = 9.27749
  Normalizat = 1.01896
  Prefactor  = 1.00334
 **********
 **   18 **HESSE 
 **********

 FCN=   10975.09     FROM HESSE     STATUS=OK           342 CALLS     2366 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8414        3.6106        .21296E-03   -1.5371    
   2  Prefactor     .10003E-03    8.8808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10007E-03    11.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    9.9795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9482        1.6737        .76076E-04   -1.5263    
   6  Prefactor     .10003E-03    23.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0379        6.9591        .24622E-02   -1.5504    
   9  Prefactor     .10017E-03    14.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    63.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.476        10.092        .10527E-03   -1.4947    
  12  norm          .10000E-03    4.9471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7689        1.0160        .74724E-04   -1.5442    
  14  Prefactor     10.068        9.6678        .63142E-03   -1.5073    
  15  norm          .10000E-03    .69461        .85147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .39986        6.5437        .23165E-02   -1.5582    
  17  Prefactor     .10000E-03    5.0296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    8.4449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10005E-03    12.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.2775        11.293        .13160E-03   -1.5099    
  21  Normalizat    1.0190        .25155        .39550E-03   -.92398    
  22  Prefactor     1.0033        .99117E-01    .15902E-03   -.92618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23676e-08
Minuit parameter uncertainties:
  1  3.61086
  2  0.00103032
  3  0.00175526
  4  0.000902244
  5  1.67371
  6  0.00175574
  7  1.45991e-05
  8  5.3756
  9  0.00315596
  10  0.00199158
  11  10.0931
  12  0.000296925
  13  1.01601
  14  9.66931
  15  5.42766e-07
  16  3.23517
  17  0.000281629
  18  0.000790839
  19  0.00156217
  20  11.296
  21  0.251844
  22  0.0991354
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  5.428e-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.003e+00  9.914e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.019e+00  2.518e-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: 2.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917257/likelihoodResults_654825601_655084801_4FGL_J2039.0-1046_daily_bin1603.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) = 10975.0930784
delta logL = -0.000127682502352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10975.0929508
delta logL = -1.32240529638e-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.9540       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0033       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10975.09     FROM MIGRAD    STATUS=FAILED        80 CALLS      228 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    1.3640        .85153E-03** at limit **
   2  alpha         1.9373        3.4681        .16986        .37525E-05
   3  Normalizat    1.0190        .23925        .39550E-03   -.14907E-03
   4  Prefactor     1.0033        .96311E-01    .15902E-03   -.24743E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10975.09     FROM SIMPLEX   STATUS=UNCHANGED    129 CALLS      357 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    1.3640        .81476E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9373        3.4681        .10592E-02   -.22704    
   3  Normalizat    1.0190        .23925        .11855E-03   -.92398    
   4  Prefactor     1.0033        .96311E-01    .55777E-04   -.92618    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10975.09     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      387 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .69520        .17031E-03** at limit **
   2  alpha         1.9174        2.5745        .67946E-02    .13386E-08
   3  Normalizat    1.0190        .23942        .15820E-04    .80487E-04
   4  Prefactor     1.0033        .96383E-01    .31803E-04    .13541E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.91738
  Normalizat = 1.01896
  Prefactor  = 1.00334
 **********
 **   18 **HESSE 
 **********

 FCN=   10975.09     FROM HESSE     STATUS=OK            23 CALLS      410 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .69519        .34061E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9174        2.5266        .13589E-02   -.23521    
   3  Normalizat    1.0190        .23960        .31640E-05   -.92398    
   4  Prefactor     1.0033        .96448E-01    .63607E-05   -.92618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1258e-11
Minuit parameter uncertainties:
  1  6.21547e-08
  2  113.475
  3  0.239857
  4  0.0964646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917257': 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) = 10975.0929507
delta logL = 5.76219463255e-08

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  6.215e-08  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.917e+00  1.135e+02  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.003e+00  9.646e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.019e+00  2.399e-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/917257/cmap_HighResolution_654825601_655084801_4FGL_J2039.0-1046_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.95e-05', job_status='DONE', photon_flux_upper_limit='2.98e-08', time_completed='2021-10-05 00:30:20.270226', job_id='917257', GAL2='1.00', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1633419020.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='5.76e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1603' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:30:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 917257: <4FGL_J2039.0-1046_daily_bin1603> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:15:14 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:15:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:15:15 2021
Terminated at Tue Oct  5 00:30:21 2021
Results reported at Tue Oct  5 00:30:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1603 309.758 -10.7731 654825601 655084801 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 :                                   895.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             393.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

