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


Performing analysis on: 4FGL_J2350.6-3005_daily_bin199
RA = 357.665, Dec = -30.087
tmin = 290908801, tmax = 291168001
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='156795', job_status='RUN', time_executed='2021-09-30 07:02:15.640275', time_epoch_executed='1633010535.64' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156795/ft1_4FGL_J2350.6-3005_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156795/ft2_4FGL_J2350.6-3005_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156795/ft1_4FGL_J2350.6-3005_daily_bin199.fits outfile=/scratch/kocevski/156795/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin199.fits ra=357.665 dec=-30.087 rad=12.0 tmin=290908801.0 tmax=291168001.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.47
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/156795/ft2_4FGL_J2350.6-3005_daily_bin199.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/156795/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin199.fits evtable="EVENTS" outfile="/scratch/kocevski/156795/ft1_filtered_4FGL_J2350.6-3005_daily_bin199.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156795/ft1_filtered_4FGL_J2350.6-3005_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/156795/ft2_4FGL_J2350.6-3005_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/156795/ltcube_290908801_291168001_4FGL_J2350.6-3005_daily_bin199.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/156795/ft2_4FGL_J2350.6-3005_daily_bin199.fits
.....................!
real 11.50
user 11.14
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156795/ft1_filtered_4FGL_J2350.6-3005_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/156795/ft2_4FGL_J2350.6-3005_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/156795/ltcube_290908801_291168001_4FGL_J2350.6-3005_daily_bin199.fits outfile=/scratch/kocevski/156795/expmap_290908801_291168001_4FGL_J2350.6-3005_daily_bin199.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/156795/ltcube_290908801_291168001_4FGL_J2350.6-3005_daily_bin199.fits
.....................!
real 191.31
user 185.71
sys 5.30

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/156795/ft1_filtered_4FGL_J2350.6-3005_daily_bin199.fits scfile=/scratch/kocevski/156795/ft2_4FGL_J2350.6-3005_daily_bin199.fits outfile=/scratch/kocevski/156795/cmap_290908801_291168001_4FGL_J2350.6-3005_daily_bin199.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=357.665 yref=-30.087 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156795/ft1_filtered_4FGL_J2350.6-3005_daily_bin199.fits scfile=/scratch/kocevski/156795/ft2_4FGL_J2350.6-3005_daily_bin199.fits outfile=/scratch/kocevski/156795/cmap_HighResolution_290908801_291168001_4FGL_J2350.6-3005_daily_bin199.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/156795/ft1_filtered_4FGL_J2350.6-3005_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/156795/ft2_4FGL_J2350.6-3005_daily_bin199.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/156795/Model_4FGL_J2350.6-3005_daily_bin199.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/156795/ft1_filtered_4FGL_J2350.6-3005_daily_bin199.fits.....................!
real 47.40
user 46.18
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.333       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.184       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6609       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-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      '    .95531       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7290       1.0000         .10000E-03   10000.    
    10 'norm      '    16.561       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.443       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0305       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.1018       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.384       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .66218       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0233       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6395.512     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2238 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.334        17.284        .31161E-02    .27301E-03
   2  Prefactor     18.184        43.143        .23481E-02   -.11413E-03
   3  Prefactor     8.6610        3.3558        .34051E-02    .21775E-03
   4  Prefactor     .10000E-03    11.363        .90712E-02** at limit **
   5  Prefactor     .10000E-03    3.0493        .90712E-02** at limit **
   6  norm          .10000E-03    1.7074        .90712E-02** at limit **
   7  norm          .95523        .57479        .10045E-01    .41582E-03
   8  Prefactor     .10000E-03    7.5013        .90712E-02** at limit **
   9  norm          3.7290        3.5624        .52276E-02   -.46594E-03
  10  norm          16.561        8.0026        .24604E-02    .69263E-03
  11  Prefactor     19.443        22.267        .22709E-02   -.81513E-04
  12  norm          .10000E-03    2.2452        .90712E-02** at limit **
  13  norm          1.0305        2.0594        .12506E-01    .10938E-02
  14  Prefactor     .10000E-03    7.0279        .90712E-02** at limit **
  15  norm          5.1020        3.7834        .44501E-02   -.16658E-03
  16  Prefactor     .10000E-03    47.588        .90712E-02** at limit **
  17  Prefactor     23.382        22.906        .20709E-02    .52668E-03
  18  Prefactor     .10000E-03    2.6427        .90712E-02** at limit **
  19  Prefactor     .10000E-03    17.734        .90712E-02** at limit **
  20  Normalizat    .66217        .13611        .41783E-01    .16125E-04
  21  Prefactor     1.0233        .15540        .41825E-01   -.10932E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3336
  Prefactor  = 18.1842
  Prefactor  = 8.66098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.955226
  Prefactor  = 0.0001
  norm       = 3.72904
  norm       = 16.5614
  Prefactor  = 19.443
  norm       = 0.0001
  norm       = 1.03051
  Prefactor  = 0.0001
  norm       = 5.10197
  Prefactor  = 0.0001
  Prefactor  = 23.3824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.662173
  Prefactor  = 1.02331
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.512     FROM HESSE     STATUS=OK           313 CALLS     2551 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.334        17.281        .62323E-03   -1.5065    
   2  Prefactor     18.184        43.151        .93924E-04   -1.4855    
   3  Prefactor     8.6610        3.3620        .86736E-04   -1.5119    
   4  Prefactor     .10000E-03    11.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0559        .13638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7128        .10205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .95523        .56098        .45386E-04   -1.5512    
   8  Prefactor     .10000E-03    7.5817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7290        3.5678        .14387E-03   -1.5322    
  10  norm          16.561        8.0025        .49209E-03   -1.4894    
  11  Prefactor     19.443        22.275        .90834E-04   -1.4826    
  12  norm          .10000E-03    2.2883        .11680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0305        2.0236        .15497E-03   -1.5505    
  14  Prefactor     .10000E-03    7.0373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.1020        3.7755        .12955E-03   -1.5256    
  16  Prefactor     .10000E-03    47.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.382        22.906        .41417E-03   -1.4740    
  18  Prefactor     .10000E-03    2.6868        .12685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .66217        .15910        .23012E-03   -1.0541    
  21  Prefactor     1.0233        .18210        .21838E-03   -.91957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.30131e-10
Minuit parameter uncertainties:
  1  17.2891
  2  43.2254
  3  3.36209
  4  6.5383e-07
  5  6.82957e-07
  6  2.44489e-06
  7  0.560979
  8  2.65005e-06
  9  3.56796
  10  8.00304
  11  22.2844
  12  3.25736e-07
  13  2.02373
  14  1.67495e-06
  15  3.77567
  16  4.67098e-06
  17  22.9141
  18  9.68684e-07
  19  4.71703e-06
  20  0.159207
  21  0.182207
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.023e+00  1.822e-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.622e-01  1.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.10
Ra Dec: 357.665 -30.087
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.22e-08 +/- 1.20e-08
Energy Flux (Fixed Index): 8.02e-06 +/- 7.86e-06

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

Saving results to:
/scratch/kocevski/156795/likelihoodResults_290908801_291168001_4FGL_J2350.6-3005_daily_bin199.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) = 6395.45410994
delta logL = 0.0577679675525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6395.45234122
delta logL = 0.0595366938542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.975       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8040       1.0000          .0000       10.000    
     3 'Normalizat'    .66442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0219       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=   6395.452     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      268 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.990        34.490        .36590E-03    .37191E-04
   2  Index         1.8039        .62860        .91366E-02    .28453E-03
   3  Normalizat    .66442        .15510        .22976E-03   -.60020E-04
   4  Prefactor     1.0219        .18079        .21851E-03   -.57230E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.9903
  Index      = 1.80392
  Normalizat = 0.664425
  Prefactor  = 1.02194
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.452     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.990        33.665        .14636E-04   -1.4612    
   2  Index         1.8039        .61390        .18273E-02   -.69348    
   3  Normalizat    .66442        .15524        .91904E-05   -1.0531    
   4  Prefactor     1.0219        .18097        .87406E-05   -.92002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25668e-11
Minuit parameter uncertainties:
  1  33.6861
  2  0.616535
  3  0.155347
  4  0.181076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156795': 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) = 6395.45234111
delta logL = 0.0595368022559

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.022e+00  1.811e-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.644e-01  1.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 357.665 -30.087
Photon Index (Free Index): 1.80 +/- 0.62
Photon Flux (Free Index): 1.01e-08 +/- 1.18e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.87e-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/156795/cmap_HighResolution_290908801_291168001_4FGL_J2350.6-3005_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-03', comment='SUCCESS', photon_flux='1.22e-08', energy_flux2='1.19e-05', photon_flux_error='1.20e-08', dlogl='5.95e-02', energy_flux='8.02e-06', photon_flux2='1.01e-08', job_status='DONE', time_completed='2021-09-30 07:12:45.678777', photon_index_error2='0.62', photon_index2='1.80', ts='3.10', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='4.65e-08', energy_flux_error2='1.87e-05', EG='0.66', time_epoch_completed='1633011165.68', return_code='0', job_id='156795', GAL2='1.02', EG2='0.66', return_code2='0', energy_flux_error='7.86e-06', photon_flux_error2='1.18e-08', ts2='3.22', photon_index='2.02' WHERE bin_id='199' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:12:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 156795: <4FGL_J2350.6-3005_daily_bin199> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin199> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep 30 07:00:47 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:00:49 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:49 2021
Terminated at Thu Sep 30 07:12:46 2021
Results reported at Thu Sep 30 07:12:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin199 357.665 -30.087 290908801 291168001 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 :                                   627.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            719 sec.

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

