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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1132
RA = 309.758, Dec = -10.7731
tmin = 532742401, tmax = 533001601
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='101724', job_status='RUN', time_executed='2021-09-25 15:26:45.647489', time_epoch_executed='1632608805.65' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101724

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101724/ft1_4FGL_J2039.0-1046_daily_bin1132.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101724/ft2_4FGL_J2039.0-1046_daily_bin1132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101724/ft1_4FGL_J2039.0-1046_daily_bin1132.fits outfile=/scratch/kocevski/101724/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1132.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=532742401.0 tmax=533001601.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.09
user 2.88
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101724/ft2_4FGL_J2039.0-1046_daily_bin1132.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/101724/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1132.fits evtable="EVENTS" outfile="/scratch/kocevski/101724/ft1_filtered_4FGL_J2039.0-1046_daily_bin1132.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.43
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101724/ft1_filtered_4FGL_J2039.0-1046_daily_bin1132.fits" evtable="EVENTS" scfile=/scratch/kocevski/101724/ft2_4FGL_J2039.0-1046_daily_bin1132.fits sctable="SC_DATA" outfile=/scratch/kocevski/101724/ltcube_532742401_533001601_4FGL_J2039.0-1046_daily_bin1132.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/101724/ft2_4FGL_J2039.0-1046_daily_bin1132.fits
.....................!
real 9.86
user 9.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101724/ft1_filtered_4FGL_J2039.0-1046_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/101724/ft2_4FGL_J2039.0-1046_daily_bin1132.fits sctable="SC_DATA" expcube=/scratch/kocevski/101724/ltcube_532742401_533001601_4FGL_J2039.0-1046_daily_bin1132.fits outfile=/scratch/kocevski/101724/expmap_532742401_533001601_4FGL_J2039.0-1046_daily_bin1132.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/101724/ltcube_532742401_533001601_4FGL_J2039.0-1046_daily_bin1132.fits
.....................!
real 155.62
user 150.48
sys 4.88

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/101724/ft1_filtered_4FGL_J2039.0-1046_daily_bin1132.fits scfile=/scratch/kocevski/101724/ft2_4FGL_J2039.0-1046_daily_bin1132.fits outfile=/scratch/kocevski/101724/cmap_532742401_533001601_4FGL_J2039.0-1046_daily_bin1132.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.47
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101724/ft1_filtered_4FGL_J2039.0-1046_daily_bin1132.fits scfile=/scratch/kocevski/101724/ft2_4FGL_J2039.0-1046_daily_bin1132.fits outfile=/scratch/kocevski/101724/cmap_HighResolution_532742401_533001601_4FGL_J2039.0-1046_daily_bin1132.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.48
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101724/ft1_filtered_4FGL_J2039.0-1046_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/101724/ft2_4FGL_J2039.0-1046_daily_bin1132.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101724/Model_4FGL_J2039.0-1046_daily_bin1132.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/101724/ft1_filtered_4FGL_J2039.0-1046_daily_bin1132.fits.....................!
real 52.32
user 51.14
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4190       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    64.213       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56113       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7177       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.288       1.0000         .10000E-03   10000.    
     8 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.087       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16249E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.267       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3242       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18467       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4997       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.857       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77445       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1187       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=   6706.906     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2923 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4131        5.7166        .44476E-05   -.66674E-04
   2  Prefactor     .10000E-03    20.247        .34602E-06** at limit **
   3  Prefactor     .10000E-03    29.594        .10165E-07** at limit **
   4  Prefactor     64.254        54.012       -.21354E-05    .56571E-04
   5  Prefactor     .55642        1.5991       -.16912E-05    .87378E-04
   6  Prefactor     2.7170        242.41       -.12345E-05    .14080E-04
   7  Prefactor     26.298        21.947        .27112E-05    .32202E-03
   8  norm          .10000E-03    5.2965       -.94407E-07** at limit **
   9  Prefactor     23.085        31.702        .25697E-06    .79652E-05
  10  Prefactor     .10000E-03    80.816       -.24825E-06** at limit **
  11  norm          .10000E-03    17.637       -.50746E-06** at limit **
  12  norm          13.283        29.719       -.43758E-06    .17116E-04
  13  norm          1.3245        1.2808        .38363E-07    .16936E-03
  14  Prefactor     .10000E-03    14.669        .35497E-06** at limit **
  15  norm          .10000E-03    3.6409        .95935E-07** at limit **
  16  Prefactor     .17571        3.7980        .16354E-05   -.25060E-03
  17  Prefactor     7.5001        6.7409        .87709E-07    .20671E-04
  18  Prefactor     .10000E-03    8.0395        .15355E-06** at limit **
  19  Prefactor     32.838        20.000        .16791E-07    .14709E-04
  20  Prefactor     .10000E-03    5.0778        .50906E-07** at limit **
  21  Normalizat    .77401        .30881        .78684E-06    .22361E-03
  22  Prefactor     1.1188        .12214       -.63614E-06    .60811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.2537
  Prefactor  = 0.556424
  Prefactor  = 2.71697
  Prefactor  = 26.2983
  norm       = 0.0001
  Prefactor  = 23.0849
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.2827
  norm       = 1.32455
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.175712
  Prefactor  = 7.50006
  Prefactor  = 0.0001
  Prefactor  = 32.838
  Prefactor  = 0.0001
  Normalizat = 0.774012
  Prefactor  = 1.11885
 **********
 **   18 **HESSE 
 **********

 FCN=   6706.906     FROM HESSE     STATUS=OK           346 CALLS     3269 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4131        5.8866        .18112E-02   -1.5470    
   2  Prefactor     .10000E-03    20.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     64.254        54.279        .50080E-04   -1.4103    
   5  Prefactor     .55642        1.6130        .17133E-02   -1.5559    
   6  Prefactor     2.7170        244.81        .24705E-03   -1.5378    
   7  Prefactor     26.298        22.526        .78133E-04   -1.4682    
   8  norm          .10000E-03    5.3141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.085        31.715        .83364E-04   -1.4747    
  10  Prefactor     .10000E-03    80.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    17.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.283        29.705        .10997E-03   -1.4979    
  13  norm          1.3245        1.2571        .87064E-04   -1.5478    
  14  Prefactor     .10000E-03    14.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.7835        .30502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .17571        44.659        .26314E-02   -1.5624    
  17  Prefactor     7.5001        6.7392        .14645E-03   -1.5160    
  18  Prefactor     .10000E-03    8.0749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.838        20.025        .69906E-04   -1.4561    
  20  Prefactor     .10000E-03    5.0815        .18022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .77401        .35016        .46602E-03   -1.0104    
  22  Prefactor     1.1188        .13829        .15793E-03   -.88866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97078e-09
Minuit parameter uncertainties:
  1  5.76902
  2  0.000102609
  3  6.8474e-05
  4  54.3212
  5  1.61312
  6  51.8001
  7  22.5335
  8  2.28384e-05
  9  31.7381
  10  0.000206395
  11  1.74852e-05
  12  29.7382
  13  1.25717
  14  6.75406e-05
  15  1.38155e-05
  16  5.6052
  17  6.7399
  18  2.73392e-05
  19  20.0296
  20  6.81498e-06
  21  0.351181
  22  0.13833
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  1.382e-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:  1.119e+00  1.383e-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.740e-01  3.512e-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: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101724/likelihoodResults_532742401_533001601_4FGL_J2039.0-1046_daily_bin1132.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) = 6706.90758948
delta logL = -0.00126160039144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6706.90632524
delta logL = 2.64714799414e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5667       1.0000          .0000       5.0000    
     3 'Normalizat'    .77398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1189       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=   6706.906     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      250 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .87695        .35981E-01** at limit **
   2  alpha         2.5683        3.6633        .41170       -.19507E-05
   3  Normalizat    .77400        .45837E-02    .10513       -.14301E-03
   4  Prefactor     1.1189        .18443E-02    .36911E-01   -.36412E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.56833
  Normalizat = 0.774
  Prefactor  = 1.11885
 **********
 **   18 **HESSE 
 **********

 FCN=   6706.906     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    261.89        .22602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5683        3.7287        .50000        .27334E-01
   3  Normalizat    .77400        .55114E-01    .46602E-03   -1.0104    
   4  Prefactor     1.1189        .22253E-01    .15793E-03   -.88866    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73364e-06
Minuit parameter uncertainties:
  1  0.000101955
  2  1699.07
  3  0.0551182
  4  0.0222529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101724': 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) = 6706.90632522
delta logL = 2.6656589398e-06

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  1.020e-04  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.568e+00  1.699e+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:  1.119e+00  2.225e-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:  7.740e-01  5.512e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/101724/cmap_HighResolution_532742401_533001601_4FGL_J2039.0-1046_daily_bin1132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-05', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-25 15:36:41.667890', job_id='101724', GAL2='1.12', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632609401.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1132' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:36:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 101724: <4FGL_J2039.0-1046_daily_bin1132> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1132> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:20:31 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:23:45 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:23:45 2021
Terminated at Sat Sep 25 15:36:42 2021
Results reported at Sat Sep 25 15:36:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1132 309.758 -10.7731 532742401 533001601 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 :                                   593.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            971 sec.

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

