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


Performing analysis on: 4FGL_J2350.6-3005_daily_bin982
RA = 357.665, Dec = -30.087
tmin = 493862401, tmax = 494121601
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='160027', job_status='RUN', time_executed='2021-09-30 07:13:54.280677', time_epoch_executed='1633011234.28' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/160027

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/160027/ft1_4FGL_J2350.6-3005_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/160027/ft2_4FGL_J2350.6-3005_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/160027/ft1_4FGL_J2350.6-3005_daily_bin982.fits outfile=/scratch/kocevski/160027/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin982.fits ra=357.665 dec=-30.087 rad=12.0 tmin=493862401.0 tmax=494121601.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.61
user 3.42
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/160027/ft1_filtered_4FGL_J2350.6-3005_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/160027/ft2_4FGL_J2350.6-3005_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/160027/ltcube_493862401_494121601_4FGL_J2350.6-3005_daily_bin982.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/160027/ft2_4FGL_J2350.6-3005_daily_bin982.fits
.....................!
real 12.01
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/160027/ft1_filtered_4FGL_J2350.6-3005_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/160027/ft2_4FGL_J2350.6-3005_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/160027/ltcube_493862401_494121601_4FGL_J2350.6-3005_daily_bin982.fits outfile=/scratch/kocevski/160027/expmap_493862401_494121601_4FGL_J2350.6-3005_daily_bin982.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/160027/ltcube_493862401_494121601_4FGL_J2350.6-3005_daily_bin982.fits
.....................!
real 190.54
user 185.48
sys 4.76

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/160027/ft1_filtered_4FGL_J2350.6-3005_daily_bin982.fits scfile=/scratch/kocevski/160027/ft2_4FGL_J2350.6-3005_daily_bin982.fits outfile=/scratch/kocevski/160027/cmap_493862401_494121601_4FGL_J2350.6-3005_daily_bin982.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/160027/ft1_filtered_4FGL_J2350.6-3005_daily_bin982.fits scfile=/scratch/kocevski/160027/ft2_4FGL_J2350.6-3005_daily_bin982.fits outfile=/scratch/kocevski/160027/cmap_HighResolution_493862401_494121601_4FGL_J2350.6-3005_daily_bin982.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.71
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/160027/ft1_filtered_4FGL_J2350.6-3005_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/160027/ft2_4FGL_J2350.6-3005_daily_bin982.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/160027/Model_4FGL_J2350.6-3005_daily_bin982.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/160027/ft1_filtered_4FGL_J2350.6-3005_daily_bin982.fits.....................!
real 42.08
user 40.86
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    36.368       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5472       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46353       1.0000         .10000E-03   10000.    
     9 'norm      '    6.4107       1.0000         .10000E-03   10000.    
    10 'norm      '    9.3561       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8863       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .21148       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.028       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .63030       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2959       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=   5624.942     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2194 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.581       -.26649E-05** at limit **
   2  Prefactor     36.368        60.900        .16561E-06   -.21730E-05
   3  Prefactor     4.5465        2.8081        .87027E-06   -.28334E-02
   4  Prefactor     .10001E-03    36.302        .80501E-05** at limit **
   5  Prefactor     .10000E-03    2.4813       -.16369E-08** at limit **
   6  norm          .10000E-03    1.3566       -.27797E-08** at limit **
   7  norm          .10000E-03    .16797       -.50857E-08** at limit **
   8  Prefactor     .42262        6.5583        .33381E-07   -.94955E-04
   9  norm          6.4107        4.6683        .24635E-07    .64070E-04
  10  norm          9.3555        6.2944        .96383E-07    .22678E-04
  11  Prefactor     .10000E-03    23.927       -.74295E-07** at limit **
  12  norm          4.8862        3.2056       -.11998E-07   -.91199E-05
  13  norm          .10000E-03    1.3069        .19165E-07** at limit **
  14  Prefactor     .10000E-03    13.476        .39311E-05** at limit **
  15  norm          .21529        2.1560        .11914E-06   -.31704E-03
  16  Prefactor     .10001E-03    43.471       -.83802E-05** at limit **
  17  Prefactor     .10000E-03    12.670       -.24261E-05** at limit **
  18  Prefactor     .10000E-03    2.5438       -.44698E-07** at limit **
  19  Prefactor     17.027        21.892       -.61626E-06   -.42625E-04
  20  Normalizat    .63020        .15722       -.47130E-06   -.51029E-04
  21  Prefactor     1.2960        .18101       -.18580E-07   -.48754E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 36.3682
  Prefactor  = 4.54645
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.422625
  norm       = 6.4107
  norm       = 9.35546
  Prefactor  = 0.0001
  norm       = 4.88618
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.215289
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 17.0273
  Normalizat = 0.630204
  Prefactor  = 1.296
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.942     FROM HESSE     STATUS=OK           319 CALLS     2513 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.368        60.924        .66456E-04   -1.4501    
   3  Prefactor     4.5465        3.9371        .64378E-03   -1.5281    
   4  Prefactor     .10001E-03    37.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.4821        .11538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3571        .85310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .17353        .59656E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .42262        25.540        .36974E-02   -1.5578    
   9  norm          6.4107        4.6737        .13432E-03   -1.5202    
  10  norm          9.3555        6.2945        .13102E-03   -1.5096    
  11  Prefactor     .10000E-03    23.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8862        3.2032        .10480E-03   -1.5266    
  13  norm          .10000E-03    1.3332        .83687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .21529        5.1037        .21443E-02   -1.5615    
  16  Prefactor     .10001E-03    44.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0178        .23113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.027        21.883        .97058E-04   -1.4882    
  20  Normalizat    .63020        .18829        .25476E-03   -1.0672    
  21  Prefactor     1.2960        .21681        .21492E-03   -.83426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18265e-08
Minuit parameter uncertainties:
  1  0.000251782
  2  61.0288
  3  3.93731
  4  0.000936872
  5  1.59919e-07
  6  8.71684e-08
  7  1.93581e-07
  8  6.57293
  9  4.67395
  10  6.29499
  11  7.83638e-06
  12  3.20327
  13  1.68716e-07
  14  0.000319971
  15  2.09615
  16  0.00123541
  17  0.000191108
  18  2.49002e-06
  19  21.8928
  20  0.188487
  21  0.216957
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.000e-04  1.911e-04  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.296e+00  2.170e-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:  6.302e-01  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/160027/likelihoodResults_493862401_494121601_4FGL_J2350.6-3005_daily_bin982.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) = 5624.94236915
delta logL = -0.00037146100658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5624.9419978
delta logL = -1.10911059892e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0031       1.0000          .0000       10.000    
     3 'Normalizat'    .63030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2959       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=   5624.942     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10267E-03    5.7834        .18142E-01** at limit **
   2  Index         1.9000        6.8229        .50000        .89338E-05
   3  Normalizat    .63020        .24177E-02    .25476E-03    .63814E-05
   4  Prefactor     1.2960        .28427E-02    .21492E-03    .65382E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102668
  Index      = 1.89997
  Normalizat = 0.630205
  Prefactor  = 1.296
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.942     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10267E-03    141.94        .27289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9000        7.1074        .50000       -.66875    
   3  Normalizat    .63020        .12122E-01    .10190E-04   -1.0672    
   4  Prefactor     1.2960        .14253E-01    .42983E-04   -.83426    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.50134e-08
Minuit parameter uncertainties:
  1  0.0390104
  2  662.014
  3  0.0121223
  4  0.0142533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/160027': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5624.94199747
delta logL = 2.16217813431e-07

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.027e-04  3.901e-02  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  1.900e+00  6.620e+02  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.296e+00  1.425e-02  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:  6.302e-01  1.212e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.665 -30.087

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/160027/cmap_HighResolution_493862401_494121601_4FGL_J2350.6-3005_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.65e-03', job_status='DONE', photon_flux_upper_limit='3.52e-08', time_completed='2021-09-30 07:23:35.915876', job_id='160027', GAL2='1.30', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1633011815.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='2.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='982' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:23:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 160027: <4FGL_J2350.6-3005_daily_bin982> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin982> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 07:11:04 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:11:06 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:11:06 2021
Terminated at Thu Sep 30 07:23:36 2021
Results reported at Thu Sep 30 07:23:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin982 357.665 -30.087 493862401 494121601 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 :                                   578.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            752 sec.

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

