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


Performing analysis on: 4FGL_J2350.6-3005_daily_bin701
RA = 357.665, Dec = -30.087
tmin = 421027201, tmax = 421286401
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='158523', job_status='RUN', time_executed='2021-09-30 07:10:05.306792', time_epoch_executed='1633011005.31' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158523

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158523/ft1_4FGL_J2350.6-3005_daily_bin701.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158523/ft2_4FGL_J2350.6-3005_daily_bin701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158523/ft1_4FGL_J2350.6-3005_daily_bin701.fits outfile=/scratch/kocevski/158523/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin701.fits ra=357.665 dec=-30.087 rad=12.0 tmin=421027201.0 tmax=421286401.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.74
user 3.52
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158523/ft2_4FGL_J2350.6-3005_daily_bin701.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/158523/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin701.fits evtable="EVENTS" outfile="/scratch/kocevski/158523/ft1_filtered_4FGL_J2350.6-3005_daily_bin701.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/158523/ft1_filtered_4FGL_J2350.6-3005_daily_bin701.fits" evtable="EVENTS" scfile=/scratch/kocevski/158523/ft2_4FGL_J2350.6-3005_daily_bin701.fits sctable="SC_DATA" outfile=/scratch/kocevski/158523/ltcube_421027201_421286401_4FGL_J2350.6-3005_daily_bin701.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/158523/ft2_4FGL_J2350.6-3005_daily_bin701.fits
.....................!
real 12.15
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158523/ft1_filtered_4FGL_J2350.6-3005_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/158523/ft2_4FGL_J2350.6-3005_daily_bin701.fits sctable="SC_DATA" expcube=/scratch/kocevski/158523/ltcube_421027201_421286401_4FGL_J2350.6-3005_daily_bin701.fits outfile=/scratch/kocevski/158523/expmap_421027201_421286401_4FGL_J2350.6-3005_daily_bin701.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/158523/ltcube_421027201_421286401_4FGL_J2350.6-3005_daily_bin701.fits
.....................!
real 193.23
user 187.64
sys 5.23

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/158523/ft1_filtered_4FGL_J2350.6-3005_daily_bin701.fits scfile=/scratch/kocevski/158523/ft2_4FGL_J2350.6-3005_daily_bin701.fits outfile=/scratch/kocevski/158523/cmap_421027201_421286401_4FGL_J2350.6-3005_daily_bin701.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.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158523/ft1_filtered_4FGL_J2350.6-3005_daily_bin701.fits scfile=/scratch/kocevski/158523/ft2_4FGL_J2350.6-3005_daily_bin701.fits outfile=/scratch/kocevski/158523/cmap_HighResolution_421027201_421286401_4FGL_J2350.6-3005_daily_bin701.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158523/ft1_filtered_4FGL_J2350.6-3005_daily_bin701.fits evtable="EVENTS" scfile=/scratch/kocevski/158523/ft2_4FGL_J2350.6-3005_daily_bin701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158523/Model_4FGL_J2350.6-3005_daily_bin701.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/158523/ft1_filtered_4FGL_J2350.6-3005_daily_bin701.fits.....................!
real 41.41
user 39.99
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.5742       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29018E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .18663       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.6239       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23883E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    8.3341       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8093       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.670       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2598       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75904       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=   5086.400     FROM MIGRAD    STATUS=CONVERGED    813 CALLS     2547 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.612        .18142E-02** at limit **
   2  Prefactor     8.5638        70.150        .13690E-03    .31557E-05
   3  Prefactor     .10000E-03    29.724        .18832E-02** at limit **
   4  Prefactor     .10000E-03    6.0672        .17155E-02** at limit **
   5  Prefactor     .10000E-03    4.9842        .15541E-02** at limit **
   6  norm          .10000E-03    1.9122        .96291E-03** at limit **
   7  norm          .18653        .47985        .75933E-04   -.22937E-03
   8  Prefactor     .10000E-03    16.099        .36285E-03** at limit **
   9  norm          .10000E-03    2.2966        .10553E-02** at limit **
  10  norm          3.6255        6.7583        .21223E-03    .58120E-04
  11  Prefactor     .10001E-03    55.193        .13926    ** at limit **
  12  norm          8.3358        5.5713        .13261E-03   -.47152E-05
  13  norm          1.8096        2.7588        .14136E-03   -.98116E-04
  14  Prefactor     .10000E-03    21.517        .18142E-02** at limit **
  15  norm          .10000E-03    2.4447        .10850E-02** at limit **
  16  Prefactor     .10000E-03    46.969        .18142E-02** at limit **
  17  Prefactor     .10000E-03    22.351        .18142E-02** at limit **
  18  Prefactor     .10000E-03    4.5731        .14806E-02** at limit **
  19  Prefactor     39.734        46.991        .63639E-04   -.14827E-04
  20  Normalizat    1.2598        .21428        .20703E-03    .19668E-03
  21  Prefactor     .75916        .22618        .27990E-03    .85863E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.56375
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.186525
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.6255
  Prefactor  = 0.000100009
  norm       = 8.33576
  norm       = 1.80955
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.7341
  Normalizat = 1.25984
  Prefactor  = 0.759159
 **********
 **   18 **HESSE 
 **********

 FCN=   5086.400     FROM HESSE     STATUS=OK           305 CALLS     2852 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.5638        70.101        .54759E-05   -1.5123    
   3  Prefactor     .10000E-03    30.930        .75327E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.0672        .34311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9844        .31082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.9123        .19258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .18653        .47982        .30373E-05   -1.5622    
   8  Prefactor     .10000E-03    16.099        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.2966        .21106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6255        6.7579        .84893E-05   -1.5327    
  11  Prefactor     .10001E-03    56.862        .13655       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.3358        5.5712        .53043E-05   -1.5130    
  13  norm          1.8096        2.7586        .56544E-05   -1.5439    
  14  Prefactor     .10000E-03    21.519        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4449        .21700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    46.970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.5742        .29613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.734        46.983        .25456E-05   -1.4446    
  20  Normalizat    1.2598        .21445        .41407E-04   -.84773    
  21  Prefactor     .75916        .22638        .11196E-04   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82759e-10
Minuit parameter uncertainties:
  1  3.25323e-06
  2  49.0813
  3  0.000774704
  4  5.20459e-06
  5  3.86806e-06
  6  7.56634e-07
  7  0.47983
  8  0.000166453
  9  1.68637e-07
  10  6.75933
  11  0.00145283
  12  5.57158
  13  2.7588
  14  4.53998e-05
  15  2.21965e-06
  16  1.17913e-05
  17  3.82525e-05
  18  3.17153e-05
  19  47.027
  20  0.214603
  21  0.226656
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.000e-04  3.825e-05  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:  7.592e-01  2.267e-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.260e+00  2.146e-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: 5.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158523/likelihoodResults_421027201_421286401_4FGL_J2350.6-3005_daily_bin701.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) = 5086.39971504
delta logL = -0.000213033794353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5086.39950207
delta logL = -6.30370777799e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9779       1.0000          .0000       10.000    
     3 'Normalizat'    1.2599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75914       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=   5086.400     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      231 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6887.4        .18142E-02** at limit **
   2  Index         1.9707        5.7258        .50000        .24135E-05
   3  Normalizat    1.2598        .94259E-01    .20703E-03    .68396E-03
   4  Prefactor     .75916        .10192        .27991E-03    .40063E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97066
  Normalizat = 1.25984
  Prefactor  = 0.759159
 **********
 **   18 **HESSE 
 **********

 FCN=   5086.400     FROM HESSE     STATUS=OK            29 CALLS      260 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9707        5.9620        .50000       -.65086    
   3  Normalizat    1.2598        .20628        .41406E-04   -.84773    
   4  Prefactor     .75916        .22297        .55981E-04   -1.0125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36394e-10
Minuit parameter uncertainties:
  1  0.00011556
  2  4.20277
  3  0.206415
  4  0.223235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158523': 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) = 5086.39950197
delta logL = 3.36258381139e-08

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.000e-04  1.156e-04  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  1.971e+00  4.203e+00  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:  7.592e-01  2.232e-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.260e+00  2.064e-01  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/158523/cmap_HighResolution_421027201_421286401_4FGL_J2350.6-3005_daily_bin701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='5.02e-08', time_completed='2021-09-30 07:19:47.006440', job_id='158523', GAL2='0.76', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1633011587.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.36e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='701' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:19:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 158523: <4FGL_J2350.6-3005_daily_bin701> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin701> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 07:06:00 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:06:02 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:06:02 2021
Terminated at Thu Sep 30 07:19:47 2021
Results reported at Thu Sep 30 07:19:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin701 357.665 -30.087 421027201 421286401 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 :                                   582.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

