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


Performing analysis on: 4FGL_J2350.6-3005_daily_bin63
RA = 357.665, Dec = -30.087
tmin = 255657601, tmax = 255916801
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='156595', job_status='RUN', time_executed='2021-09-30 07:02:59.887698', time_epoch_executed='1633010579.89' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='63'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156595

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156595/ft1_4FGL_J2350.6-3005_daily_bin63.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156595/ft2_4FGL_J2350.6-3005_daily_bin63.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156595/ft1_4FGL_J2350.6-3005_daily_bin63.fits outfile=/scratch/kocevski/156595/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin63.fits ra=357.665 dec=-30.087 rad=12.0 tmin=255657601.0 tmax=255916801.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 1.45
user 1.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156595/ft1_filtered_4FGL_J2350.6-3005_daily_bin63.fits" evtable="EVENTS" scfile=/scratch/kocevski/156595/ft2_4FGL_J2350.6-3005_daily_bin63.fits sctable="SC_DATA" outfile=/scratch/kocevski/156595/ltcube_255657601_255916801_4FGL_J2350.6-3005_daily_bin63.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/156595/ft2_4FGL_J2350.6-3005_daily_bin63.fits
.....................!
real 12.52
user 12.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156595/ft1_filtered_4FGL_J2350.6-3005_daily_bin63.fits evtable="EVENTS" scfile=/scratch/kocevski/156595/ft2_4FGL_J2350.6-3005_daily_bin63.fits sctable="SC_DATA" expcube=/scratch/kocevski/156595/ltcube_255657601_255916801_4FGL_J2350.6-3005_daily_bin63.fits outfile=/scratch/kocevski/156595/expmap_255657601_255916801_4FGL_J2350.6-3005_daily_bin63.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/156595/ltcube_255657601_255916801_4FGL_J2350.6-3005_daily_bin63.fits
.....................!
real 190.65
user 185.05
sys 5.29

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/156595/ft1_filtered_4FGL_J2350.6-3005_daily_bin63.fits scfile=/scratch/kocevski/156595/ft2_4FGL_J2350.6-3005_daily_bin63.fits outfile=/scratch/kocevski/156595/cmap_255657601_255916801_4FGL_J2350.6-3005_daily_bin63.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.35
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/156595/ft1_filtered_4FGL_J2350.6-3005_daily_bin63.fits evtable="EVENTS" scfile=/scratch/kocevski/156595/ft2_4FGL_J2350.6-3005_daily_bin63.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/156595/Model_4FGL_J2350.6-3005_daily_bin63.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/156595/ft1_filtered_4FGL_J2350.6-3005_daily_bin63.fits.....................!
real 43.85
user 42.50
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    71.079       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8739       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .59954       1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.567       1.0000         .10000E-03   10000.    
     9 'norm      '    2.5931       1.0000         .10000E-03   10000.    
    10 'norm      '    29.402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.776       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    76.176       1.0000         .10000E-03   10000.    
    15 'norm      '    .21539       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5366       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8604       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1452       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .74643       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=   5637.754     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2269 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          71.078        40.481       -.11998E-05    .18440E-04
   2  Prefactor     .10000E-03    210.56       -.13684E-05** at limit **
   3  Prefactor     1.8731        2.9230       -.82476E-06   -.47455E-03
   4  Prefactor     .10000E-03    7.2326        .73099E-06** at limit **
   5  Prefactor     .10000E-03    7.3673       -.82392E-06** at limit **
   6  norm          .60261        4.3306       -.38297E-05    .82949E-03
   7  norm          .10000E-03    .17974       -.24089E-07** at limit **
   8  Prefactor     12.567        11.339       -.40556E-06    .29797E-04
   9  norm          2.5927        4.3177       -.35623E-06   -.16754E-03
  10  norm          29.402        12.471        .16660E-05    .12886E-03
  11  Prefactor     41.743        51.893       -.27027E-04    .42596E-04
  12  norm          .10000E-03    1.7622       -.19258E-07** at limit **
  13  norm          .10000E-03    1.7477       -.43760E-06** at limit **
  14  Prefactor     76.176        35.768        .22207E-05    .21932E-03
  15  norm          .21143        2.6607       -.18205E-05   -.11144E-03
  16  Prefactor     6.4723        329.06       -.21197E-03    .12701E-04
  17  Prefactor     .10000E-03    25.136       -.10167E-05** at limit **
  18  Prefactor     2.8574        6.2153       -.16401E-05   -.44361E-03
  19  Prefactor     .10000E-03    20.368        .61903E-06** at limit **
  20  Normalizat    1.1455        .18127        .56690E-05    .56134E-03
  21  Prefactor     .74620        .18692        .23053E-05    .57488E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 71.0782
  Prefactor  = 0.000100004
  Prefactor  = 1.87308
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.602609
  norm       = 0.0001
  Prefactor  = 12.5668
  norm       = 2.59272
  norm       = 29.402
  Prefactor  = 41.7434
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 76.1761
  norm       = 0.211433
  Prefactor  = 6.47228
  Prefactor  = 0.0001
  Prefactor  = 2.85743
  Prefactor  = 0.0001
  Normalizat = 1.14549
  Prefactor  = 0.746201
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.754     FROM HESSE     STATUS=OK           317 CALLS     2586 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          71.078        40.485        .47616E-04   -1.4020    
   2  Prefactor     .10000E-03    216.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8731        2.9082        .15336E-03   -1.5434    
   4  Prefactor     .10000E-03    7.2351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .60261        17.499        .29677E-02   -1.5553    
   7  norm          .10000E-03    .18221        .31021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.567        11.321        .11300E-03   -1.4999    
   9  norm          2.5927        4.3012        .19631E-03   -1.5386    
  10  norm          29.402        12.466        .73888E-04   -1.4623    
  11  Prefactor     41.743        52.016        .62021E-04   -1.4415    
  12  norm          .10000E-03    1.7735        .97295E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.3642        .18980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     76.176        35.322        .46007E-04   -1.3960    
  15  norm          .21143        7.1543        .23791E-02   -1.5616    
  16  Prefactor     6.4723        331.99        .15697E-03   -1.5199    
  17  Prefactor     .10000E-03    25.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8574        6.2262        .24037E-03   -1.5370    
  19  Prefactor     .10000E-03    20.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1455        .21348        .21722E-03   -.88304    
  21  Prefactor     .74620        .22004        .28397E-03   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58657e-08
Minuit parameter uncertainties:
  1  40.5005
  2  0.00186871
  3  2.9084
  4  7.39445e-06
  5  3.25696e-05
  6  6.49623
  7  9.7948e-07
  8  11.3227
  9  4.3017
  10  12.467
  11  52.0728
  12  4.27161e-06
  13  9.2637e-05
  14  35.3316
  15  2.45955
  16  93.2594
  17  9.79332e-05
  18  6.22758
  19  2.60912e-05
  20  0.21364
  21  0.220302
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.000e-04  9.793e-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.462e-01  2.203e-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.145e+00  2.136e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/156595/likelihoodResults_255657601_255916801_4FGL_J2350.6-3005_daily_bin63.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) = 5637.75381731
delta logL = -0.00018933400861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5637.75362792
delta logL = 5.64177753404e-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     '    2.1010       1.0000          .0000       10.000    
     3 'Normalizat'    1.1455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74620       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=   5637.754     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1650.0        .90712E-02** at limit **
   2  Index         2.1116        5.1066        .50000       -.35468E-05
   3  Normalizat    1.1455        .37545E-01    .36391E-01    .99317E-05
   4  Prefactor     .74620        .40656E-01    .64192E-01    .21705E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11161
  Normalizat = 1.14549
  Prefactor  = 0.746198
 **********
 **   18 **HESSE 
 **********

 FCN=   5637.754     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6897.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1116        5.8049        .50000       -.61588    
   3  Normalizat    1.1455        .75927E-01    .21722E-03   -.88304    
   4  Prefactor     .74620        .82105E-01    .28397E-03   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96217e-09
Minuit parameter uncertainties:
  1  0.000107568
  2  53.3404
  3  0.0759344
  4  0.0821185
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156595': 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) = 5637.75362791
delta logL = 6.68005668558e-08

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  1.000e-04  1.076e-04  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.112e+00  5.334e+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:  7.462e-01  8.212e-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:  1.145e+00  7.593e-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/156595/cmap_HighResolution_255657601_255916801_4FGL_J2350.6-3005_daily_bin63.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-30 07:12:39.825788', job_id='156595', GAL2='0.75', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1633011159.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='6.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='63' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:12:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 156595: <4FGL_J2350.6-3005_daily_bin63> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin63 357.665 -30.087 255657601 255916801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2350.6-3005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   578.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            731 sec.

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

