/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 144 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2350.6-3005_daily_bin93
RA = 357.665, Dec = -30.087
tmin = 263433601, tmax = 263692801
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='156639', job_status='RUN', time_executed='2021-09-30 07:03:10.625023', time_epoch_executed='1633010590.63' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156639

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156639/ft1_4FGL_J2350.6-3005_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156639/ft2_4FGL_J2350.6-3005_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156639/ft1_4FGL_J2350.6-3005_daily_bin93.fits outfile=/scratch/kocevski/156639/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin93.fits ra=357.665 dec=-30.087 rad=12.0 tmin=263433601.0 tmax=263692801.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.48
user 3.25
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/156639/ft2_4FGL_J2350.6-3005_daily_bin93.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/156639/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/156639/ft1_filtered_4FGL_J2350.6-3005_daily_bin93.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/156639/ft1_filtered_4FGL_J2350.6-3005_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/156639/ft2_4FGL_J2350.6-3005_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/156639/ltcube_263433601_263692801_4FGL_J2350.6-3005_daily_bin93.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/156639/ft2_4FGL_J2350.6-3005_daily_bin93.fits
.....................!
real 12.12
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156639/ft1_filtered_4FGL_J2350.6-3005_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/156639/ft2_4FGL_J2350.6-3005_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/156639/ltcube_263433601_263692801_4FGL_J2350.6-3005_daily_bin93.fits outfile=/scratch/kocevski/156639/expmap_263433601_263692801_4FGL_J2350.6-3005_daily_bin93.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/156639/ltcube_263433601_263692801_4FGL_J2350.6-3005_daily_bin93.fits
.....................!
real 191.48
user 185.76
sys 5.42

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/156639/ft1_filtered_4FGL_J2350.6-3005_daily_bin93.fits scfile=/scratch/kocevski/156639/ft2_4FGL_J2350.6-3005_daily_bin93.fits outfile=/scratch/kocevski/156639/cmap_263433601_263692801_4FGL_J2350.6-3005_daily_bin93.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.56
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156639/ft1_filtered_4FGL_J2350.6-3005_daily_bin93.fits scfile=/scratch/kocevski/156639/ft2_4FGL_J2350.6-3005_daily_bin93.fits outfile=/scratch/kocevski/156639/cmap_HighResolution_263433601_263692801_4FGL_J2350.6-3005_daily_bin93.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.212       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .13272       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8665       1.0000         .10000E-03   10000.    
     9 'norm      '    6.7022       1.0000         .10000E-03   10000.    
    10 'norm      '    7.2523       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5203       1.0000         .10000E-03   10000.    
    12 'norm      '    9.8067       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .87536       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.443       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1781       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97278       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91057       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=   6652.916     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2878 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.348        .10104E-05** at limit **
   2  Prefactor     37.213        37.534        .11265E-05    .10541E-04
   3  Prefactor     .38366        1.6760       -.76021E-06   -.11527E-03
   4  Prefactor     .10000E-03    6.6375        .62874E-06** at limit **
   5  Prefactor     .10000E-03    7.2313       -.11640E-05** at limit **
   6  norm          .10000E-03    2.8357       -.83945E-07** at limit **
   7  norm          .13281        .41186       -.27819E-06   -.67383E-03
   8  Prefactor     4.8665        8.2409       -.50294E-07   -.38223E-04
   9  norm          6.7023        5.3847        .10081E-06    .53718E-04
  10  norm          7.2540        5.7076        .72337E-07   -.76380E-03
  11  Prefactor     1.4845        85.938       -.72070E-04   -.21743E-04
  12  norm          9.8072        4.0862        .33722E-06    .14569E-03
  13  norm          4.4470        2.6294       -.12891E-06    .21309E-03
  14  Prefactor     .10000E-03    24.159       -.18513E-04** at limit **
  15  norm          .87333        2.0053       -.43483E-06   -.14062E-02
  16  Prefactor     .10000E-03    27.430        .17352E-04** at limit **
  17  Prefactor     45.440        47.859       -.38766E-05    .46980E-04
  18  Prefactor     3.1783        4.3151        .28441E-06   -.29620E-03
  19  Prefactor     .10000E-03    25.986        .43995E-05** at limit **
  20  Normalizat    .97276        .14658        .67998E-06    .71790E-03
  21  Prefactor     .91060        .16317        .22013E-05    .50755E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 37.213
  Prefactor  = 0.383662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.132807
  Prefactor  = 4.86653
  norm       = 6.70233
  norm       = 7.25404
  Prefactor  = 1.48447
  norm       = 9.80716
  norm       = 4.44697
  Prefactor  = 0.0001
  norm       = 0.873325
  Prefactor  = 0.0001
  Prefactor  = 45.4401
  Prefactor  = 3.17834
  Prefactor  = 0.0001
  Normalizat = 0.972756
  Prefactor  = 0.910596
 **********
 **   18 **HESSE 
 **********

 FCN=   6652.916     FROM HESSE     STATUS=OK           323 CALLS     3201 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.213        37.537        .65701E-04   -1.4487    
   3  Prefactor     .38366        5.5549        .19731E-02   -1.5584    
   4  Prefactor     .10000E-03    6.6434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.8573        .13412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .13281        .61415        .79080E-03   -1.5635    
   8  Prefactor     4.8665        8.1823        .18234E-03   -1.5267    
   9  norm          6.7023        5.3888        .15500E-03   -1.5190    
  10  norm          7.2540        5.7075        .74472E-03   -1.5169    
  11  Prefactor     1.4845        88.193        .34653E-03   -1.5464    
  12  norm          9.8072        4.0861        .10175E-03   -1.5082    
  13  norm          4.4470        2.6276        .97645E-04   -1.5286    
  14  Prefactor     .10000E-03    24.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .87333        1.5298        .17121E-02   -1.5521    
  16  Prefactor     .10000E-03    27.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.440        47.835        .59476E-04   -1.4359    
  18  Prefactor     3.1783        4.3118        .18785E-03   -1.5351    
  19  Prefactor     .10000E-03    26.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97276        .17338        .21462E-03   -.93949    
  21  Prefactor     .91060        .19331        .24990E-03   -.95772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60504e-08
Minuit parameter uncertainties:
  1  7.05886e-06
  2  37.5607
  3  2.91968
  4  1.27305e-06
  5  1.71097e-05
  6  6.94089e-06
  7  0.570982
  8  8.18416
  9  5.38914
  10  5.70792
  11  22.9187
  12  4.08624
  13  2.62767
  14  1.93333e-05
  15  1.52988
  16  2.41825e-06
  17  47.875
  18  4.31221
  19  1.8518e-05
  20  0.173482
  21  0.193455
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  4.544e+01  4.787e+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:  9.106e-01  1.935e-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:  9.728e-01  1.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 357.665 -30.087
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.38e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.64e-05

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

Saving results to:
/scratch/kocevski/156639/likelihoodResults_263433601_263692801_4FGL_J2350.6-3005_daily_bin93.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) = 6652.24705346
delta logL = 0.668996684612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6652.2240367
delta logL = 0.692013450617

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.283       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7421       1.0000          .0000       10.000    
     3 'Normalizat'    .94082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93043       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6652.224     FROM MIGRAD    STATUS=FAILED        95 CALLS      293 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.307        50.358        .48171E-03   -.35850E-04
   2  Index         2.7422        1.1727        .38803E-02    .65978E-03
   3  Normalizat    .94087        .17364        .21766E-03   -.23150E-03
   4  Prefactor     .93053        .19472        .24737E-03   -.24146E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6652.224     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      369 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.307        50.358        .30757E-03   -1.4876    
   2  Index         2.7422        1.1727        .78668E-03   -.46851    
   3  Normalizat    .94087        .17364        .22620E-03   -.95039    
   4  Prefactor     .93053        .19472        .20275E-03   -.95082    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6652.224     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      398 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.307        31.021        .19268E-04   -.35401E-04
   2  Index         2.7422        .72617        .77605E-03    .21681E-05
   3  Normalizat    .94087        .17236        .43532E-04   -.73541E-04
   4  Prefactor     .93053        .19315        .49474E-04   -.76015E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3072
  Index      = 2.7422
  Normalizat = 0.940866
  Prefactor  = 0.930528
 **********
 **   18 **HESSE 
 **********

 FCN=   6652.224     FROM HESSE     STATUS=OK            23 CALLS      421 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.307        29.351        .38537E-05   -1.4876    
   2  Index         2.7422        .68718        .31042E-04   -.46851    
   3  Normalizat    .94087        .17230        .87065E-05   -.95039    
   4  Prefactor     .93053        .19307        .98948E-05   -.95082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18943e-11
Minuit parameter uncertainties:
  1  29.3753
  2  0.689928
  3  0.172397
  4  0.19321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156639': 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) = 6652.22403213
delta logL = 0.692018016564

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.731e+01  2.938e+01  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.742e+00  6.899e-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:  9.305e-01  1.932e-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:  9.409e-01  1.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 357.665 -30.087
Photon Index (Free Index): 2.74 +/- 0.69
Photon Flux (Free Index): 4.99e-08 +/- 3.73e-08
Energy Flux (Free Index): 1.16e-05 +/- 9.03e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/156639/cmap_HighResolution_263433601_263692801_4FGL_J2350.6-3005_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', comment='SUCCESS', photon_flux='2.38e-08', energy_flux2='1.16e-05', photon_flux_error='2.50e-08', dlogl='6.92e-01', energy_flux='1.56e-05', photon_flux2='4.99e-08', job_status='DONE', time_completed='2021-09-30 07:15:00.503854', photon_index_error2='0.69', photon_index2='2.74', ts='1.13', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='7.70e-08', energy_flux_error2='9.03e-06', EG='0.97', time_epoch_completed='1633011300.5', return_code='0', job_id='156639', GAL2='0.93', EG2='0.94', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='3.73e-08', ts2='2.54', photon_index='2.02' WHERE bin_id='93' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:15:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 156639: <4FGL_J2350.6-3005_daily_bin93> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin93> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 07:00:34 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:00:35 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:35 2021
Terminated at Thu Sep 30 07:15:01 2021
Results reported at Thu Sep 30 07:15:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin93 357.665 -30.087 263433601 263692801 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 :                                   709.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            867 sec.

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

