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


Performing analysis on: 4FGL_J2350.6-3005_daily_bin201
RA = 357.665, Dec = -30.087
tmin = 291427201, tmax = 291686401
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='156798', job_status='RUN', time_executed='2021-09-30 07:02:47.496864', time_epoch_executed='1633010567.5' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='201'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156798

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156798/ft1_4FGL_J2350.6-3005_daily_bin201.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156798/ft2_4FGL_J2350.6-3005_daily_bin201.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156798/ft1_4FGL_J2350.6-3005_daily_bin201.fits outfile=/scratch/kocevski/156798/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin201.fits ra=357.665 dec=-30.087 rad=12.0 tmin=291427201.0 tmax=291686401.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.50
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156798/ft1_filtered_4FGL_J2350.6-3005_daily_bin201.fits" evtable="EVENTS" scfile=/scratch/kocevski/156798/ft2_4FGL_J2350.6-3005_daily_bin201.fits sctable="SC_DATA" outfile=/scratch/kocevski/156798/ltcube_291427201_291686401_4FGL_J2350.6-3005_daily_bin201.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/156798/ft2_4FGL_J2350.6-3005_daily_bin201.fits
.....................!
real 11.74
user 11.36
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156798/ft1_filtered_4FGL_J2350.6-3005_daily_bin201.fits evtable="EVENTS" scfile=/scratch/kocevski/156798/ft2_4FGL_J2350.6-3005_daily_bin201.fits sctable="SC_DATA" expcube=/scratch/kocevski/156798/ltcube_291427201_291686401_4FGL_J2350.6-3005_daily_bin201.fits outfile=/scratch/kocevski/156798/expmap_291427201_291686401_4FGL_J2350.6-3005_daily_bin201.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/156798/ltcube_291427201_291686401_4FGL_J2350.6-3005_daily_bin201.fits
.....................!
real 189.64
user 183.55
sys 5.78

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/156798/ft1_filtered_4FGL_J2350.6-3005_daily_bin201.fits scfile=/scratch/kocevski/156798/ft2_4FGL_J2350.6-3005_daily_bin201.fits outfile=/scratch/kocevski/156798/cmap_291427201_291686401_4FGL_J2350.6-3005_daily_bin201.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156798/ft1_filtered_4FGL_J2350.6-3005_daily_bin201.fits scfile=/scratch/kocevski/156798/ft2_4FGL_J2350.6-3005_daily_bin201.fits outfile=/scratch/kocevski/156798/cmap_HighResolution_291427201_291686401_4FGL_J2350.6-3005_daily_bin201.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.96
user 0.37
sys 0.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/156798/ft1_filtered_4FGL_J2350.6-3005_daily_bin201.fits evtable="EVENTS" scfile=/scratch/kocevski/156798/ft2_4FGL_J2350.6-3005_daily_bin201.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/156798/Model_4FGL_J2350.6-3005_daily_bin201.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/156798/ft1_filtered_4FGL_J2350.6-3005_daily_bin201.fits.....................!
real 46.46
user 45.19
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .31850E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .84138       1.0000         .10000E-03   10000.    
     7 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .33119E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.3383       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.739       1.0000         .10000E-03   10000.    
    12 'norm      '    4.0591       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5886       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7635       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1762       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5433       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18518E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .82791       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0407       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=   6185.621     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     1949 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.722        .12557E-06** at limit **
   2  Prefactor     .10000E-03    68.535        .13226E-05** at limit **
   3  Prefactor     .10001E-03    1.2043        .21835E-06** at limit **
   4  Prefactor     .10000E-03    4.9508        .87991E-07** at limit **
   5  Prefactor     .10000E-03    4.6029        .18110E-06** at limit **
   6  norm          .84117        5.0301        .31765E-05    .15669E-04
   7  norm          .10000E-03    .25498        .93417E-07** at limit **
   8  Prefactor     .10000E-03    4.1486        .19718E-06** at limit **
   9  norm          .10000E-03    4.5170       -.35149E-06** at limit **
  10  norm          7.3388        6.0875        .11901E-06   -.52694E-05
  11  Prefactor     15.707        26.790        .69005E-07   -.26551E-04
  12  norm          4.0731        3.8830       -.20033E-06    .15151E-03
  13  norm          4.5878        2.5335        .16624E-07    .13451E-04
  14  Prefactor     .10000E-03    18.375       -.12945E-05** at limit **
  15  norm          1.7623        2.7895        .31034E-06    .40267E-04
  16  Prefactor     4.0268        306.32       -.12968E-04   -.14613E-04
  17  Prefactor     .10000E-03    14.005       -.22691E-06** at limit **
  18  Prefactor     5.5446        4.1342        .10993E-05   -.11489E-04
  19  Prefactor     .10000E-03    68.499        .48755E-06** at limit **
  20  Normalizat    .82783        .15018       -.20309E-06   -.21865E-03
  21  Prefactor     1.0409        .17308       -.15671E-05   -.11608E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.841167
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 7.33877
  Prefactor  = 15.7066
  norm       = 4.07311
  norm       = 4.58782
  Prefactor  = 0.0001
  norm       = 1.76228
  Prefactor  = 4.0268
  Prefactor  = 0.0001
  Prefactor  = 5.54463
  Prefactor  = 0.0001
  Normalizat = 0.827835
  Prefactor  = 1.04087
 **********
 **   18 **HESSE 
 **********

 FCN=   6185.621     FROM HESSE     STATUS=OK           325 CALLS     2274 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    68.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    16.164        .16586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9529        .17091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6127        .16479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .84117        5.0716        .34355E-03   -1.5525    
   7  norm          .10000E-03    3.6242        .76847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1725        .15641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.4590        .30370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.3388        6.0838        .14806E-03   -1.5166    
  11  Prefactor     15.707        26.801        .10096E-03   -1.4915    
  12  norm          4.0731        3.6233        .13451E-03   -1.5304    
  13  norm          4.5878        2.5308        .89758E-04   -1.5280    
  14  Prefactor     .10000E-03    18.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7623        2.7596        .15771E-03   -1.5442    
  16  Prefactor     4.0268        317.97        .19722E-03   -1.5307    
  17  Prefactor     .10000E-03    14.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.5446        4.1470        .66454E-03   -1.5237    
  19  Prefactor     .10000E-03    69.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .82783        .17874        .22188E-03   -.99044    
  21  Prefactor     1.0409        .20544        .23097E-03   -.91379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51879e-10
Minuit parameter uncertainties:
  1  4.05494e-06
  2  0.000115368
  3  0.00066879
  4  2.05456e-06
  5  5.22043e-08
  6  4.13116
  7  5.25066e-05
  8  5.7808e-06
  9  0.000339698
  10  6.0843
  11  26.821
  12  3.62353
  13  2.53085
  14  3.78461e-05
  15  2.75977
  16  71.9645
  17  1.22752e-05
  18  4.14723
  19  1.04946e-06
  20  0.178871
  21  0.2056
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.000e-04  1.228e-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:  1.041e+00  2.056e-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:  8.278e-01  1.789e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/156798/likelihoodResults_291427201_291686401_4FGL_J2350.6-3005_daily_bin201.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) = 6185.62144057
delta logL = -0.000339703831742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6185.62110086
delta logL = 3.70437192032e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9968       1.0000          .0000       10.000    
     3 'Normalizat'    .82786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0408       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=   6185.621     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      236 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148E-03    120.05        .18142E-02** at limit **
   2  Index         1.9394        8.3649        .50000        .11507E-04
   3  Normalizat    .82784        .10044E-01    .22187E-03    .15321E-04
   4  Prefactor     1.0409        .11661E-01    .23097E-03    .12305E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101478
  Index      = 1.93937
  Normalizat = 0.827836
  Prefactor  = 1.04087
 **********
 **   18 **HESSE 
 **********

 FCN=   6185.621     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 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     .10148E-03    515.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9394        9.0271        .50000       -.65875    
   3  Normalizat    .82784        .21598E-01    .88749E-05   -.99044    
   4  Prefactor     1.0409        .25075E-01    .92388E-05   -.91379    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.52931e-08
Minuit parameter uncertainties:
  1  0.0557092
  2  661.73
  3  0.0215981
  4  0.0250756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156798': 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) = 6185.62110065
delta logL = 2.17979504669e-07

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.015e-04  5.571e-02  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  1.939e+00  6.617e+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.041e+00  2.508e-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:  8.278e-01  2.160e-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/156798/cmap_HighResolution_291427201_291686401_4FGL_J2350.6-3005_daily_bin201.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-03', job_status='DONE', photon_flux_upper_limit='3.45e-08', time_completed='2021-09-30 07:12:43.488783', job_id='156798', GAL2='1.04', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1633011163.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='201' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:12:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 156798: <4FGL_J2350.6-3005_daily_bin201> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin201> 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) <bullet0241>, 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:44 2021
Results reported at Thu Sep 30 07:12:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin201 357.665 -30.087 291427201 291686401 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 :                                   593.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            717 sec.

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

