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


Performing analysis on: 4FGL_J2039.0-1046_daily_bin1252
RA = 309.758, Dec = -10.7731
tmin = 563846401, tmax = 564105601
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='102997', job_status='RUN', time_executed='2021-09-25 15:26:23.294734', time_epoch_executed='1632608783.29' WHERE source_name='4FGL J2039.0-1046' and cadence='daily' and bin_id='1252'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102997

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102997/ft1_4FGL_J2039.0-1046_daily_bin1252.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102997/ft2_4FGL_J2039.0-1046_daily_bin1252.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102997/ft1_4FGL_J2039.0-1046_daily_bin1252.fits outfile=/scratch/kocevski/102997/ft1_filteredMKT_4FGL_J2039.0-1046_daily_bin1252.fits ra=309.758 dec=-10.7731 rad=12.0 tmin=563846401.0 tmax=564105601.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 2.87
user 2.67
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102997/ft1_filtered_4FGL_J2039.0-1046_daily_bin1252.fits" evtable="EVENTS" scfile=/scratch/kocevski/102997/ft2_4FGL_J2039.0-1046_daily_bin1252.fits sctable="SC_DATA" outfile=/scratch/kocevski/102997/ltcube_563846401_564105601_4FGL_J2039.0-1046_daily_bin1252.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/102997/ft2_4FGL_J2039.0-1046_daily_bin1252.fits
.....................!
real 13.86
user 12.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102997/ft1_filtered_4FGL_J2039.0-1046_daily_bin1252.fits evtable="EVENTS" scfile=/scratch/kocevski/102997/ft2_4FGL_J2039.0-1046_daily_bin1252.fits sctable="SC_DATA" expcube=/scratch/kocevski/102997/ltcube_563846401_564105601_4FGL_J2039.0-1046_daily_bin1252.fits outfile=/scratch/kocevski/102997/expmap_563846401_564105601_4FGL_J2039.0-1046_daily_bin1252.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/102997/ltcube_563846401_564105601_4FGL_J2039.0-1046_daily_bin1252.fits
.....................!
real 190.95
user 185.16
sys 5.37

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/102997/ft1_filtered_4FGL_J2039.0-1046_daily_bin1252.fits scfile=/scratch/kocevski/102997/ft2_4FGL_J2039.0-1046_daily_bin1252.fits outfile=/scratch/kocevski/102997/cmap_563846401_564105601_4FGL_J2039.0-1046_daily_bin1252.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.16

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

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

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/102997/ft1_filtered_4FGL_J2039.0-1046_daily_bin1252.fits evtable="EVENTS" scfile=/scratch/kocevski/102997/ft2_4FGL_J2039.0-1046_daily_bin1252.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/102997/Model_4FGL_J2039.0-1046_daily_bin1252.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/102997/ft1_filtered_4FGL_J2039.0-1046_daily_bin1252.fits.....................!
real 91.49
user 90.07
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9815       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.614       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4025       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15720       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.582       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.534       1.0000         .10000E-03   10000.    
     8 'norm      '    7.5856       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.733       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.873       1.0000         .10000E-03   10000.    
    12 'norm      '    25.318       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6982       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0654       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .52400       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4161       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89369       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=   10130.82     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2390 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9818        2.6365        .58781E-02    .51426E-03
   2  Prefactor     13.615        19.878        .27139E-02   -.18242E-03
   3  Prefactor     4.4048        13.926        .47985E-02    .14793E-02
   4  Prefactor     .10000E-03    6.2599        .90712E-02** at limit **
   5  Prefactor     .15748        .86643        .32264E-01    .22313E-02
   6  Prefactor     38.581        29.416        .16132E-02    .83524E-03
   7  Prefactor     11.534        10.273        .29490E-02   -.32414E-04
   8  norm          7.5857        7.1074        .36402E-02    .99783E-04
   9  Prefactor     13.733        15.998        .27021E-02    .20852E-04
  10  Prefactor     .10000E-03    30.081        .90712E-02** at limit **
  11  norm          19.873        12.253        .22461E-02    .49096E-04
  12  norm          25.319        19.582        .19903E-02    .11915E-04
  13  norm          1.6981        .89160        .80714E-02    .58434E-03
  14  Prefactor     .10000E-03    2.3681        .90712E-02** at limit **
  15  norm          .10000E-03    1.1483        .43506E-01** at limit **
  16  Prefactor     .10000E-03    2.6634        .90712E-02** at limit **
  17  Prefactor     3.0654        3.6826        .57923E-02    .28233E-02
  18  Prefactor     .10000E-03    22.132        .90712E-02** at limit **
  19  Prefactor     .51368        7.4769        .11368        .64268E-03
  20  Prefactor     .10000E-03    9.0015        .90712E-02** at limit **
  21  Normalizat    1.4163        .21042        .79296E-01    .95048E-04
  22  Prefactor     .89362        .84755E-01    .44925E-01    .16015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.98177
  Prefactor  = 13.6146
  Prefactor  = 4.40478
  Prefactor  = 0.0001
  Prefactor  = 0.157485
  Prefactor  = 38.5814
  Prefactor  = 11.5339
  norm       = 7.58573
  Prefactor  = 13.7333
  Prefactor  = 0.000100001
  norm       = 19.8732
  norm       = 25.3185
  norm       = 1.69813
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.06544
  Prefactor  = 0.0001
  Prefactor  = 0.513676
  Prefactor  = 0.0001
  Normalizat = 1.41632
  Prefactor  = 0.893618
 **********
 **   18 **HESSE 
 **********

 FCN=   10130.82     FROM HESSE     STATUS=OK           350 CALLS     2740 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9818        2.6408        .14903E-03   -1.5363    
   2  Prefactor     13.615        19.865        .10856E-03   -1.4970    
   3  Prefactor     4.4048        13.928        .95970E-03   -1.5288    
   4  Prefactor     .10000E-03    6.2641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15748        1.7509        .17595E-02   -1.5629    
   6  Prefactor     38.581        29.436        .64528E-04   -1.4465    
   7  Prefactor     11.534        10.191        .11796E-03   -1.5029    
   8  norm          7.5857        7.0950        .14561E-03   -1.5157    
   9  Prefactor     13.733        16.001        .10808E-03   -1.4967    
  10  Prefactor     .10000E-03    30.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.873        12.253        .89846E-04   -1.4816    
  12  norm          25.319        19.582        .79612E-04   -1.4701    
  13  norm          1.6981        .89223        .66565E-04   -1.5447    
  14  Prefactor     .10000E-03    2.3705        .15125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9883        .20996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7030        .16026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0654        3.6737        .20397E-03   -1.5358    
  18  Prefactor     .10000E-03    22.889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .51368        59.505        .52998E-02   -1.5565    
  20  Prefactor     .10000E-03    9.0983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4163        .25085        .35097E-03   -.80158    
  22  Prefactor     .89362        .10174        .17171E-03   -.96364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07986e-08
Minuit parameter uncertainties:
  1  2.64092
  2  19.8746
  3  13.9378
  4  4.84004e-05
  5  1.04992
  6  29.447
  7  10.1924
  8  7.09576
  9  16.0056
  10  0.00028112
  11  12.2545
  12  19.5871
  13  0.892239
  14  6.70458e-06
  15  2.66386e-05
  16  1.41795e-05
  17  3.67397
  18  0.000206468
  19  11.0676
  20  2.34606e-05
  21  0.251064
  22  0.101758
Done.

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

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  2.664e-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:  8.936e-01  1.018e-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:  1.416e+00  2.511e-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: 4.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102997/likelihoodResults_563846401_564105601_4FGL_J2039.0-1046_daily_bin1252.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) = 10130.8223114
delta logL = -0.00239488225816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10130.8199163
delta logL = 2.75700585917e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9730       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89362       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=   10130.82     FROM MIGRAD    STATUS=FAILED        87 CALLS      254 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10243E-03    106.57        .20975E-02** at limit **
   2  alpha         2.1634        3.3042        .50000       -.16289E-04
   3  Normalizat    1.4163        .40788E-01    .35097E-03    .14479E-03
   4  Prefactor     .89362        .16404E-01    .17171E-03    .22813E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10130.82     FROM SIMPLEX   STATUS=PROGRESS     135 CALLS      389 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10115E-03    106.57        .17323E-03** at limit **
   2  alpha         2.1629        3.3042        .28559E-03   -.16289E-04
   3  Normalizat    1.4163        .40788E-01    .52800E-05    .14479E-03
   4  Prefactor     .89361        .16404E-01    .28650E-05    .22813E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10130.82     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      433 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    319.22        .41949E-03** at limit **
   2  alpha         2.2823        2.5785        .50000        .10928E-06
   3  Normalizat    1.4163        .83708E-01    .14039E-04    .39842E-04
   4  Prefactor     .89362        .33665E-01    .34342E-04   -.18936E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.28228
  Normalizat = 1.41632
  Prefactor  = 0.893617
 **********
 **   18 **HESSE 
 **********

 FCN=   10130.82     FROM HESSE     STATUS=OK            29 CALLS      462 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9847        .83898E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2823        3.8588        .50000       -.87197E-01
   3  Normalizat    1.4163        .24688        .28078E-05   -.80158    
   4  Prefactor     .89362        .99382E-01    .68683E-05   -.96364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52829e-11
Minuit parameter uncertainties:
  1  3.7585e-06
  2  121.087
  3  0.247091
  4  0.0994021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102997': 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) = 10130.8199137
delta logL = 2.83108965959e-06

Extracting fit parameters...

4FGL J2039.0-1046
   Spectrum: LogParabola
308         norm:  1.000e-04  3.758e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.282e+00  1.211e+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:  8.936e-01  9.940e-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.416e+00  2.471e-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/102997/cmap_HighResolution_563846401_564105601_4FGL_J2039.0-1046_daily_bin1252.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-05', job_status='DONE', photon_flux_upper_limit='4.37e-08', time_completed='2021-09-25 15:41:31.021946', job_id='102997', GAL2='0.89', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1632609691.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1252' AND source_name='4FGL J2039.0-1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 15:41:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 102997: <4FGL_J2039.0-1046_daily_bin1252> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2039.0-1046_daily_bin1252 309.758 -10.7731 563846401 564105601 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 :                                   905.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            976 sec.

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

