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


Performing analysis on: 4FGL_J2350.6-3005_daily_bin941
RA = 357.665, Dec = -30.087
tmin = 483235201, tmax = 483494401
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='159959', job_status='RUN', time_executed='2021-09-30 07:14:46.618138', time_epoch_executed='1633011286.62' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/159959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/159959/ft1_4FGL_J2350.6-3005_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/159959/ft2_4FGL_J2350.6-3005_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/159959/ft1_4FGL_J2350.6-3005_daily_bin941.fits outfile=/scratch/kocevski/159959/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin941.fits ra=357.665 dec=-30.087 rad=12.0 tmin=483235201.0 tmax=483494401.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.42
user 3.21
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/159959/ft2_4FGL_J2350.6-3005_daily_bin941.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/159959/ft2_4FGL_J2350.6-3005_daily_bin941.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/159959/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin941.fits evtable="EVENTS" outfile="/scratch/kocevski/159959/ft1_filtered_4FGL_J2350.6-3005_daily_bin941.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/159959/ft1_filtered_4FGL_J2350.6-3005_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/159959/ft2_4FGL_J2350.6-3005_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/159959/ltcube_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.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/159959/ft2_4FGL_J2350.6-3005_daily_bin941.fits
.....................!
real 11.73
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/159959/ft1_filtered_4FGL_J2350.6-3005_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/159959/ft2_4FGL_J2350.6-3005_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/159959/ltcube_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.fits outfile=/scratch/kocevski/159959/expmap_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.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/159959/ltcube_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.fits
.....................!
real 189.27
user 183.89
sys 5.04

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J2350.6-3005 @ 357.665 -30.087

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/159959/ft1_filtered_4FGL_J2350.6-3005_daily_bin941.fits scfile=/scratch/kocevski/159959/ft2_4FGL_J2350.6-3005_daily_bin941.fits outfile=/scratch/kocevski/159959/cmap_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.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=357.665 yref=-30.087 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.52
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/159959/ft1_filtered_4FGL_J2350.6-3005_daily_bin941.fits scfile=/scratch/kocevski/159959/ft2_4FGL_J2350.6-3005_daily_bin941.fits outfile=/scratch/kocevski/159959/cmap_HighResolution_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.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=357.665 yref=-30.087 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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/159959/ft1_filtered_4FGL_J2350.6-3005_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/159959/ft2_4FGL_J2350.6-3005_daily_bin941.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/159959/Model_4FGL_J2350.6-3005_daily_bin941.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/159959/ft1_filtered_4FGL_J2350.6-3005_daily_bin941.fits.....................!
real 47.36
user 46.09
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/159959/ft1_filtered_4FGL_J2350.6-3005_daily_bin941.fits', '/scratch/kocevski/159959/ft2_4FGL_J2350.6-3005_daily_bin941.fits', expMap='/scratch/kocevski/159959/expmap_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.fits', expCube='/scratch/kocevski/159959/ltcube_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/159959/Model_4FGL_J2350.6-3005_daily_bin941.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2350.6-3005'

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  8.104e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.022e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/159959/ft1_filtered_4FGL_J2350.6-3005_daily_bin941.fits
Spacecraft file(s): /scratch/kocevski/159959/ft2_4FGL_J2350.6-3005_daily_bin941.fits
Exposure map: /scratch/kocevski/159959/expmap_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.fits
Exposure cube: /scratch/kocevski/159959/ltcube_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/159959/Model_4FGL_J2350.6-3005_daily_bin941.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) = 6377.17964608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6680       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7201       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .57912       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.247       1.0000         .10000E-03   10000.    
     9 'norm      '    2.8792       1.0000         .10000E-03   10000.    
    10 'norm      '    19.829       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12499E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3185       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25998E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.7003       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48559E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.744       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9556       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .86888       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0459       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6377.069     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     1964 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6767        83.342       -.89440E-05   -.29447E-04
   2  Prefactor     .10000E-03    22.348       -.31884E-06** at limit **
   3  Prefactor     1.7158        3.9532        .15459E-05    .54232E-03
   4  Prefactor     .10001E-03    79.997       -.40814E-04** at limit **
   5  Prefactor     .10000E-03    12.031       -.26961E-06** at limit **
   6  norm          .10000E-03    1.2030       -.42543E-07** at limit **
   7  norm          .57925        .59283       -.21463E-06   -.89780E-03
   8  Prefactor     19.247        13.498        .12427E-05    .41818E-04
   9  norm          2.8790        5.7568        .18448E-05   -.31892E-03
  10  norm          19.832        8.5478       -.37832E-05   -.96210E-04
  11  Prefactor     .10000E-03    107.29        .49190E-04** at limit **
  12  norm          2.3185        6.0397       -.29827E-05   -.80136E-03
  13  norm          .10000E-03    1.9635       -.22455E-06** at limit **
  14  Prefactor     .10002E-03    72.599        .77174E-04** at limit **
  15  norm          7.7007        4.4759        .53281E-06    .11221E-03
  16  Prefactor     .10058E-03    840.49       -.51996E-03** at limit **
  17  Prefactor     31.774        34.299       -.10818E-04    .19770E-03
  18  Prefactor     .10000E-03    3.5212        .31103E-06** at limit **
  19  Prefactor     4.0268        93.890       -.30650E-04    .73148E-04
  20  Normalizat    .86880        .15489        .30443E-05    .74514E-03
  21  Prefactor     1.0459        .17320        .42506E-06    .81049E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.67666
  Prefactor  = 0.0001
  Prefactor  = 1.71583
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.579247
  Prefactor  = 19.2471
  norm       = 2.87905
  norm       = 19.8319
  Prefactor  = 0.000100001
  norm       = 2.31853
  norm       = 0.0001
  Prefactor  = 0.000100016
  norm       = 7.70068
  Prefactor  = 0.000100582
  Prefactor  = 31.7741
  Prefactor  = 0.0001
  Prefactor  = 4.02677
  Normalizat = 0.868797
  Prefactor  = 1.04591
 **********
 **   18 **HESSE 
 **********

 FCN=   6377.069     FROM HESSE     STATUS=OK           311 CALLS     2275 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6767        83.754        .24951E-03   -1.5381    
   2  Prefactor     .10000E-03    22.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7158        3.8314        .20652E-03   -1.5446    
   4  Prefactor     .10001E-03    82.148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2041        .85540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .57925        .56909        .56058E-04   -1.5556    
   8  Prefactor     19.247        13.302        .91295E-04   -1.4830    
   9  norm          2.8790        5.7271        .22523E-03   -1.5369    
  10  norm          19.832        8.5532        .89946E-04   -1.4817    
  11  Prefactor     .10000E-03    109.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3185        5.9902        .24582E-03   -1.5403    
  13  norm          .10000E-03    2.0560        .21830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    74.550        .42898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.7007        4.4460        .11745E-03   -1.5153    
  16  Prefactor     .10058E-03    849.90        .38485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.774        34.218        .71117E-04   -1.4580    
  18  Prefactor     .10000E-03    3.5732        .14605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0268        89.939        .20281E-03   -1.5307    
  20  Normalizat    .86880        .18298        .22762E-03   -.97565    
  21  Prefactor     1.0459        .20479        .24002E-03   -.91214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06993e-09
Minuit parameter uncertainties:
  1  29.9907
  2  2.30578e-05
  3  3.83195
  4  0.00165414
  5  6.29376e-05
  6  1.41141e-06
  7  0.569096
  8  13.3038
  9  5.72819
  10  8.55371
  11  0.000516869
  12  5.99174
  13  3.94413e-05
  14  0.00216201
  15  4.4462
  16  0.0451384
  17  34.2396
  18  6.33679e-05
  19  38.1257
  20  0.183115
  21  0.204947
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  3.177e+01  3.424e+01  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.022e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.046e+00  2.049e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  8.688e-01  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 357.665 -30.087
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.66e-08 +/- 1.79e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.17e-05

TS (Fixed Index): 1.99
Ra Dec: 357.665 -30.087
Photon Flux Upper Limit: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/159959/likelihoodResults_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.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) = 6377.06539029
delta logL = 0.00328062912922

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6377.06369221
delta logL = 0.00497871186508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.489       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0994       1.0000          .0000       10.000    
     3 'Normalizat'    .86698       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0464       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6377.064     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      242 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.423        1050.2        .18445E-02    .35730E-04
   2  Index         2.0952        5.9577        .14642        .11604E-03
   3  Normalizat    .86713        .69460E-01    .44478E-01    .13609E-03
   4  Prefactor     1.0469        .64099E-01    .40127E-01    .47834E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4227
  Index      = 2.09521
  Normalizat = 0.867128
  Prefactor  = 1.04687
 **********
 **   18 **HESSE 
 **********

 FCN=   6377.064     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.423        42.317        .73780E-04   -1.4623    
   2  Index         2.0952        .78081        .80838E-02   -.61990    
   3  Normalizat    .86713        .17723        .22782E-03   -.97625    
   4  Prefactor     1.0469        .20322        .23992E-03   -.91183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57334e-11
Minuit parameter uncertainties:
  1  42.3605
  2  0.785678
  3  0.177353
  4  0.20337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/159959': 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) = 6377.06363694
delta logL = 0.00503397882221

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  2.942e+01  4.236e+01  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.095e+00  7.857e-01  0.000e+00  1.000e+01 (-1.000e+00)
528        Scale:  2.236e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.047e+00  2.034e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  8.671e-01  1.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.00
Ra Dec: 357.665 -30.087
Photon Index (Free Index): 2.10 +/- 0.79
Photon Flux (Free Index): 1.80e-08 +/- 2.32e-08
Energy Flux (Free Index): 1.00e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/159959/cmap_HighResolution_483235201_483494401_4FGL_J2350.6-3005_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', comment='SUCCESS', photon_flux='1.66e-08', energy_flux2='1.00e-05', photon_flux_error='1.79e-08', dlogl='5.03e-03', energy_flux='1.09e-05', photon_flux2='1.80e-08', job_status='DONE', time_completed='2021-09-30 07:24:50.666777', photon_index_error2='0.79', photon_index2='2.10', ts='1.99', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='6.47e-08', energy_flux_error2='1.43e-05', EG='0.87', time_epoch_completed='1633011890.67', return_code='0', job_id='159959', GAL2='1.05', EG2='0.87', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='2.32e-08', ts2='2.00', photon_index='2.02' WHERE bin_id='941' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:24:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 159959: <4FGL_J2350.6-3005_daily_bin941> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin941> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 07:10:57 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:10:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 07:10:59 2021
Terminated at Thu Sep 30 07:24:51 2021
Results reported at Thu Sep 30 07:24:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin941 357.665 -30.087 483235201 483494401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2350.6-3005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   603.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             236.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            834 sec.

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

