/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 3 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 = 7469
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2350.6-3005_daily_bin221
RA = 357.665, Dec = -30.087
tmin = 296611201, tmax = 296870401
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='156828', job_status='RUN', time_executed='2021-09-30 07:01:08.402853', time_epoch_executed='1633010468.4' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156828

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156828/ft1_4FGL_J2350.6-3005_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156828/ft2_4FGL_J2350.6-3005_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156828/ft1_4FGL_J2350.6-3005_daily_bin221.fits outfile=/scratch/kocevski/156828/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin221.fits ra=357.665 dec=-30.087 rad=12.0 tmin=296611201.0 tmax=296870401.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 4.37
user 4.14
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/156828/ft2_4FGL_J2350.6-3005_daily_bin221.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/156828/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin221.fits evtable="EVENTS" outfile="/scratch/kocevski/156828/ft1_filtered_4FGL_J2350.6-3005_daily_bin221.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156828/ft1_filtered_4FGL_J2350.6-3005_daily_bin221.fits" evtable="EVENTS" scfile=/scratch/kocevski/156828/ft2_4FGL_J2350.6-3005_daily_bin221.fits sctable="SC_DATA" outfile=/scratch/kocevski/156828/ltcube_296611201_296870401_4FGL_J2350.6-3005_daily_bin221.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/156828/ft2_4FGL_J2350.6-3005_daily_bin221.fits
.....................!
real 11.83
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156828/ft1_filtered_4FGL_J2350.6-3005_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/156828/ft2_4FGL_J2350.6-3005_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/156828/ltcube_296611201_296870401_4FGL_J2350.6-3005_daily_bin221.fits outfile=/scratch/kocevski/156828/expmap_296611201_296870401_4FGL_J2350.6-3005_daily_bin221.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/156828/ltcube_296611201_296870401_4FGL_J2350.6-3005_daily_bin221.fits
.....................!
real 190.61
user 185.23
sys 5.01

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/156828/ft1_filtered_4FGL_J2350.6-3005_daily_bin221.fits scfile=/scratch/kocevski/156828/ft2_4FGL_J2350.6-3005_daily_bin221.fits outfile=/scratch/kocevski/156828/cmap_296611201_296870401_4FGL_J2350.6-3005_daily_bin221.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156828/ft1_filtered_4FGL_J2350.6-3005_daily_bin221.fits scfile=/scratch/kocevski/156828/ft2_4FGL_J2350.6-3005_daily_bin221.fits outfile=/scratch/kocevski/156828/cmap_HighResolution_296611201_296870401_4FGL_J2350.6-3005_daily_bin221.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.54
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/156828/ft1_filtered_4FGL_J2350.6-3005_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/156828/ft2_4FGL_J2350.6-3005_daily_bin221.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/156828/Model_4FGL_J2350.6-3005_daily_bin221.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/156828/ft1_filtered_4FGL_J2350.6-3005_daily_bin221.fits.....................!
real 35.16
user 33.83
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/156828/ft1_filtered_4FGL_J2350.6-3005_daily_bin221.fits', '/scratch/kocevski/156828/ft2_4FGL_J2350.6-3005_daily_bin221.fits', expMap='/scratch/kocevski/156828/expmap_296611201_296870401_4FGL_J2350.6-3005_daily_bin221.fits', expCube='/scratch/kocevski/156828/ltcube_296611201_296870401_4FGL_J2350.6-3005_daily_bin221.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/156828/Model_4FGL_J2350.6-3005_daily_bin221.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/156828/ft1_filtered_4FGL_J2350.6-3005_daily_bin221.fits
Spacecraft file(s): /scratch/kocevski/156828/ft2_4FGL_J2350.6-3005_daily_bin221.fits
Exposure map: /scratch/kocevski/156828/expmap_296611201_296870401_4FGL_J2350.6-3005_daily_bin221.fits
Exposure cube: /scratch/kocevski/156828/ltcube_296611201_296870401_4FGL_J2350.6-3005_daily_bin221.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/156828/Model_4FGL_J2350.6-3005_daily_bin221.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) = 4089.86862271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.007       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.901       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3566       1.0000         .10000E-03   10000.    
     7 'norm      '    .61663       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.5155       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12339E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .23740       1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.480       1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.555       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5008       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .43189E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1408       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .52875       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4089.868     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     2648 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.024        .18142E-02** at limit **
   2  Prefactor     42.001        60.995        .61851E-04   -.10753E-04
   3  Prefactor     .10000E-03    1.2961        .70905E-03** at limit **
   4  Prefactor     32.897        25.160        .69858E-04    .23729E-03
   5  Prefactor     .10000E-03    8.1166        .17754E-02** at limit **
   6  norm          5.3559        7.4284        .17364E-03    .53786E-04
   7  norm          .61664        .47851        .38100E-04   -.17038E-03
   8  Prefactor     .10000E-03    5.8052        .14994E-02** at limit **
   9  norm          .10000E-03    2.2219        .93079E-03** at limit **
  10  norm          3.5131        8.4601        .10781E-02   -.10134E-03
  11  Prefactor     .10000E-03    35.773        .18142E-02** at limit **
  12  norm          .10000E-03    3.4456        .22888E-03** at limit **
  13  norm          .10000E-03    4.2818        .19029E-02** at limit **
  14  Prefactor     .10000E-03    10.817        .18142E-02** at limit **
  15  norm          .22280        28.567        .21994E-02    .67755E-03
  16  Prefactor     40.483        41.229        .63002E-04    .12451E-04
  17  Prefactor     41.547        38.686        .62185E-04    .65176E-04
  18  Prefactor     2.4997        4.8071        .18649E-03    .30047E-03
  19  Prefactor     .10043E-03    47.409        .11814    ** at limit **
  20  Normalizat    1.1407        .20489        .18831E-03    .28667E-03
  21  Prefactor     .52894        .21836        .28645E-03    .19469E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 42.0006
  Prefactor  = 0.0001
  Prefactor  = 32.8966
  Prefactor  = 0.0001
  norm       = 5.35595
  norm       = 0.616636
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.5131
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.2228
  Prefactor  = 40.4826
  Prefactor  = 41.5472
  Prefactor  = 2.49971
  Prefactor  = 0.000100426
  Normalizat = 1.14073
  Prefactor  = 0.528938
 **********
 **   18 **HESSE 
 **********

 FCN=   4089.868     FROM HESSE     STATUS=OK           309 CALLS     2957 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.001        61.029        .24740E-05   -1.4411    
   3  Prefactor     .10000E-03    1.2961        .14181E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.897        25.160        .13972E-04   -1.4560    
   5  Prefactor     .10000E-03    8.1180        .35507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3559        7.4276        .69456E-05   -1.5245    
   7  norm          .61664        .47848        .15240E-05   -1.5551    
   8  Prefactor     .10000E-03    5.8063        .29988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2219        .18616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5131        8.4560        .43123E-04   -1.5333    
  11  Prefactor     .10000E-03    35.776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.4456        .45777E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.2931        .38059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.817        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .22280        28.525        .87974E-04   -1.5614    
  16  Prefactor     40.483        41.229        .25201E-05   -1.4435    
  17  Prefactor     41.547        38.684        .12437E-04   -1.4418    
  18  Prefactor     2.4997        4.8066        .74598E-05   -1.5392    
  19  Prefactor     .10043E-03    45.386        .12193       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1407        .20498        .37661E-04   -.88455    
  21  Prefactor     .52894        .21795        .11458E-04   -1.1067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91267e-09
Minuit parameter uncertainties:
  1  8.3315e-05
  2  61.1198
  3  2.14865e-05
  4  25.1679
  5  5.46486e-05
  6  7.42887
  7  0.478485
  8  4.5008e-06
  9  1.73516e-06
  10  8.45891
  11  3.64759e-05
  12  1.28051e-05
  13  4.36296e-05
  14  9.95876e-05
  15  5.04329
  16  41.2581
  17  38.7074
  18  4.80729
  19  0.00880372
  20  0.20512
  21  0.218292
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  4.155e+01  3.871e+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:  5.289e-01  2.183e-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:  1.141e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.85
Ra Dec: 357.665 -30.087
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.17e-08 +/- 2.02e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.33e-05

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) = 4089.58073766
delta logL = 0.28704786659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4089.54716045
delta logL = 0.320625078044

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.815       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5894       1.0000          .0000       10.000    
     3 'Normalizat'    1.1471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52600       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4089.547     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.829        57.615        .25726E-03    .81976E-05
   2  Index         1.5895        .52561        .72914E-02    .91994E-04
   3  Normalizat    1.1470        .19993        .18785E-03   -.23270E-04
   4  Prefactor     .52601        .21464        .28720E-03    .15616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.8295
  Index      = 1.58945
  Normalizat = 1.14705
  Prefactor  = 0.526009
 **********
 **   18 **HESSE 
 **********

 FCN=   4089.547     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .88E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.829        57.447        .10290E-04   -1.4147    
   2  Index         1.5895        .52416        .14583E-02   -.75064    
   3  Normalizat    1.1470        .20008        .37571E-04   -.88255    
   4  Prefactor     .52601        .21480        .11488E-04   -1.1080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77896e-12
Minuit parameter uncertainties:
  1  57.499
  2  0.525974
  3  0.20021
  4  0.215138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156828': 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) = 4089.5471604
delta logL = 0.320625124577

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  6.083e+01  5.750e+01  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  1.589e+00  5.260e-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:  5.260e-01  2.151e-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:  1.147e+00  2.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.50
Ra Dec: 357.665 -30.087
Photon Index (Free Index): 1.59 +/- 0.53
Photon Flux (Free Index): 1.42e-08 +/- 1.65e-08
Energy Flux (Free Index): 3.32e-05 +/- 4.68e-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/156828/cmap_HighResolution_296611201_296870401_4FGL_J2350.6-3005_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.17e-08', energy_flux2='3.32e-05', photon_flux_error='2.02e-08', dlogl='3.21e-01', energy_flux='1.42e-05', photon_flux2='1.42e-08', job_status='DONE', time_completed='2021-09-30 07:09:51.125842', photon_index_error2='0.53', photon_index2='1.59', ts='4.85', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='4.68e-05', EG='1.14', time_epoch_completed='1633010991.13', return_code='0', job_id='156828', GAL2='0.53', EG2='1.15', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='1.65e-08', ts2='5.50', photon_index='2.02' WHERE bin_id='221' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:09:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 156828: <4FGL_J2350.6-3005_daily_bin221> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin221> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 07:00:50 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:00:52 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:00:52 2021
Terminated at Thu Sep 30 07:09:51 2021
Results reported at Thu Sep 30 07:09:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin221 357.665 -30.087 296611201 296870401 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 :                                   503.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            541 sec.

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

