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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1364
RA = 309.758, Dec = -10.7731
tmin = 592876801, tmax = 593136001
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='103157', job_status='RUN', time_executed='2021-09-25 15:29:31.798839', time_epoch_executed='1632608971.8' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103157

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103157/ft1_4FGL_J2039.0-1046_daily_bin1364.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103157/ft2_4FGL_J2039.0-1046_daily_bin1364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103157/ft1_4FGL_J2039.0-1046_daily_bin1364.fits outfile=/scratch/kocevski/103157/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1364.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=592876801.0 tmax=593136001.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.90
user 3.63
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103157/ft1_filtered_4FGL_J2039.0-1046_daily_bin1364.fits" evtable="EVENTS" scfile=/scratch/kocevski/103157/ft2_4FGL_J2039.0-1046_daily_bin1364.fits sctable="SC_DATA" outfile=/scratch/kocevski/103157/ltcube_592876801_593136001_4FGL_J2039.0-1046_daily_bin1364.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/103157/ft2_4FGL_J2039.0-1046_daily_bin1364.fits
.....................!
real 13.80
user 13.36
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103157/ft1_filtered_4FGL_J2039.0-1046_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/103157/ft2_4FGL_J2039.0-1046_daily_bin1364.fits sctable="SC_DATA" expcube=/scratch/kocevski/103157/ltcube_592876801_593136001_4FGL_J2039.0-1046_daily_bin1364.fits outfile=/scratch/kocevski/103157/expmap_592876801_593136001_4FGL_J2039.0-1046_daily_bin1364.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/103157/ltcube_592876801_593136001_4FGL_J2039.0-1046_daily_bin1364.fits
.....................!
real 192.28
user 186.51
sys 5.10

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/103157/ft1_filtered_4FGL_J2039.0-1046_daily_bin1364.fits scfile=/scratch/kocevski/103157/ft2_4FGL_J2039.0-1046_daily_bin1364.fits outfile=/scratch/kocevski/103157/cmap_592876801_593136001_4FGL_J2039.0-1046_daily_bin1364.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103157/ft1_filtered_4FGL_J2039.0-1046_daily_bin1364.fits scfile=/scratch/kocevski/103157/ft2_4FGL_J2039.0-1046_daily_bin1364.fits outfile=/scratch/kocevski/103157/cmap_HighResolution_592876801_593136001_4FGL_J2039.0-1046_daily_bin1364.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/103157/ft1_filtered_4FGL_J2039.0-1046_daily_bin1364.fits evtable="EVENTS" scfile=/scratch/kocevski/103157/ft2_4FGL_J2039.0-1046_daily_bin1364.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103157/Model_4FGL_J2039.0-1046_daily_bin1364.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/103157/ft1_filtered_4FGL_J2039.0-1046_daily_bin1364.fits.....................!
real 72.50
user 71.10
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3287       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.435       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0271       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3816       1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    186.37       1.0000         .10000E-03   10000.    
    11 'norm      '    13.727       1.0000         .10000E-03   10000.    
    12 'norm      '    21.026       1.0000         .10000E-03   10000.    
    13 'norm      '    .11336E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .26300       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91960       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0157       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=   7579.328     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2382 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3264        3.3164        .77895E-06   -.25799E-04
   2  Prefactor     .10000E-03    63.705       -.34722E-06** at limit **
   3  Prefactor     25.433        32.655       -.12367E-06   -.28357E-04
   4  Prefactor     .10000E-03    16.354        .11240E-05** at limit **
   5  Prefactor     5.0275        2.8434       -.36008E-06   -.39804E-04
   6  Prefactor     .10000E-03    26.339        .16263E-05** at limit **
   7  Prefactor     7.3834        16.960        .41112E-05   -.52776E-04
   8  norm          .10000E-03    16.739        .50460E-06** at limit **
   9  Prefactor     .10000E-03    20.364       -.15587E-05** at limit **
  10  Prefactor     186.41        124.66        .37652E-05    .12677E-03
  11  norm          13.728        14.726        .19506E-07   -.15589E-04
  12  norm          21.027        20.721       -.32757E-07   -.69669E-05
  13  norm          .10000E-03    .81335        .18086E-07** at limit **
  14  Prefactor     .10000E-03    5.3844        .25408E-06** at limit **
  15  norm          .25944        2.1400        .54880E-06   -.39118E-03
  16  Prefactor     2.6722        3.2426        .64691E-07   -.47184E-04
  17  Prefactor     .10000E-03    7.4003       -.18842E-06** at limit **
  18  Prefactor     .10000E-03    6.6921        .34651E-06** at limit **
  19  Prefactor     .10000E-03    18.080       -.62749E-06** at limit **
  20  Prefactor     .10000E-03    5.5682       -.35834E-06** at limit **
  21  Normalizat    .91946        .24578       -.53154E-06   -.60375E-04
  22  Prefactor     1.0158        .10104       -.19536E-06   -.85398E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32641
  Prefactor  = 0.0001
  Prefactor  = 25.4329
  Prefactor  = 0.0001
  Prefactor  = 5.0275
  Prefactor  = 0.000100001
  Prefactor  = 7.38345
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 186.411
  norm       = 13.7278
  norm       = 21.0268
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.259444
  Prefactor  = 2.6722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.919464
  Prefactor  = 1.01583
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.328     FROM HESSE     STATUS=OK           342 CALLS     2724 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3264        3.2998        .24342E-03   -1.5478    
   2  Prefactor     .10000E-03    64.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.433        32.833        .79429E-04   -1.4699    
   4  Prefactor     .10000E-03    16.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0275        2.8590        .96258E-04   -1.5259    
   6  Prefactor     .10000E-03    26.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3834        17.407        .73811E-03   -1.5164    
   8  norm          .10000E-03    17.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     186.41        129.46        .14789E-03   -1.2969    
  11  norm          13.728        14.708        .10811E-03   -1.4967    
  12  norm          21.027        20.718        .87350E-04   -1.4791    
  13  norm          .10000E-03    2.4499        .15126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .25944        4.6520        .24281E-02   -1.5606    
  16  Prefactor     2.6722        3.2341        .16655E-03   -1.5381    
  17  Prefactor     .10000E-03    7.6357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91946        .29098        .41191E-03   -.95780    
  22  Prefactor     1.0158        .12096        .15876E-03   -.92204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61578e-08
Minuit parameter uncertainties:
  1  3.30024
  2  0.000107048
  3  32.8558
  4  0.000130072
  5  2.85903
  6  0.00026838
  7  17.4193
  8  9.66723e-05
  9  0.000217903
  10  129.661
  11  14.7118
  12  20.7246
  13  5.15555e-06
  14  1.98935e-05
  15  2.19699
  16  3.23434
  17  8.3832e-08
  18  3.15436e-05
  19  6.39208e-05
  20  2.35151e-05
  21  0.291484
  22  0.12099
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  1.016e+00  1.210e-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.195e-01  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 309.758 -10.773
Photon Flux Upper Limit: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/103157/likelihoodResults_592876801_593136001_4FGL_J2039.0-1046_daily_bin1364.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): 102
logL (Free Index) = 7579.31004207
delta logL = 0.0182708114671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7579.30512717
delta logL = 0.023185703928

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7579.305     FROM MIGRAD    STATUS=FAILED       100 CALLS      274 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45028        3.0166        .23874E-03    .12286E-04
   2  alpha         2.6491        3.7591        .62801E-01    .12214E-03
   3  Normalizat    .91207        .29307        .41343E-03    .39873E-05
   4  Prefactor     1.0168        .11762        .15869E-03    .13899E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7579.305     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      349 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45028        3.0166        .15357E-03   -1.5574    
   2  alpha         2.6491        3.7591        .51795E-02    .59666E-01
   3  Normalizat    .91207        .29307        .37347E-03   -.96037    
   4  Prefactor     1.0168        .11762        .18206E-03   -.92172    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7579.305     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      384 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45028        2.3705        .95497E-05    .88095E-05
   2  alpha         2.6491        3.6895        .12560E-01   -.22719E-06
   3  Normalizat    .91207        .29273        .16537E-04    .38498E-05
   4  Prefactor     1.0168        .11753        .63474E-05    .13970E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.450275
  alpha      = 2.64908
  Normalizat = 0.912067
  Prefactor  = 1.01678
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.305     FROM HESSE     STATUS=OK            25 CALLS      409 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45028        2.3009        .19099E-05   -1.5574    
   2  alpha         2.6491        3.6790        .50240E-03    .59666E-01
   3  Normalizat    .91207        .29268        .33074E-05   -.96037    
   4  Prefactor     1.0168        .11752        .12695E-05   -.92172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68184e-13
Minuit parameter uncertainties:
  1  2.03561
  2  2.8525
  3  0.293189
  4  0.11755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103157': 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) = 7579.30512706
delta logL = 0.0231858212574

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  4.503e-01  2.036e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.649e+00  2.852e+00  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.017e+00  1.175e-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.121e-01  2.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/103157/cmap_HighResolution_592876801_593136001_4FGL_J2039.0-1046_daily_bin1364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-05', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-09-25 15:41:56.410755', job_id='103157', GAL2='1.02', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1632609716.41', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.32e-02', ts2='0.06', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1364' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:41:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 103157: <4FGL_J2039.0-1046_daily_bin1364> in cluster <slac> Done

Job <4FGL_J2039.0-1046_daily_bin1364> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 15:25:27 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 15:26:08 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:26:08 2021
Terminated at Sat Sep 25 15:41:57 2021
Results reported at Sat Sep 25 15:41:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1364 309.758 -10.7731 592876801 593136001 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            990 sec.

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

