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


Performing analysis on: 4FGL_J2350.6-3005_daily_bin347
RA = 357.665, Dec = -30.087
tmin = 329270401, tmax = 329529601
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='157998', job_status='RUN', time_executed='2021-09-30 07:08:22.747906', time_epoch_executed='1633010902.75' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157998

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157998/ft1_4FGL_J2350.6-3005_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157998/ft2_4FGL_J2350.6-3005_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157998/ft1_4FGL_J2350.6-3005_daily_bin347.fits outfile=/scratch/kocevski/157998/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin347.fits ra=357.665 dec=-30.087 rad=12.0 tmin=329270401.0 tmax=329529601.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.62
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/157998/ft1_filtered_4FGL_J2350.6-3005_daily_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/157998/ft2_4FGL_J2350.6-3005_daily_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/157998/ltcube_329270401_329529601_4FGL_J2350.6-3005_daily_bin347.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/157998/ft2_4FGL_J2350.6-3005_daily_bin347.fits
.....................!
real 11.88
user 11.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157998/ft1_filtered_4FGL_J2350.6-3005_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/157998/ft2_4FGL_J2350.6-3005_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/157998/ltcube_329270401_329529601_4FGL_J2350.6-3005_daily_bin347.fits outfile=/scratch/kocevski/157998/expmap_329270401_329529601_4FGL_J2350.6-3005_daily_bin347.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/157998/ltcube_329270401_329529601_4FGL_J2350.6-3005_daily_bin347.fits
.....................!
real 191.28
user 185.69
sys 5.27

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/157998/ft1_filtered_4FGL_J2350.6-3005_daily_bin347.fits scfile=/scratch/kocevski/157998/ft2_4FGL_J2350.6-3005_daily_bin347.fits outfile=/scratch/kocevski/157998/cmap_329270401_329529601_4FGL_J2350.6-3005_daily_bin347.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/157998/ft1_filtered_4FGL_J2350.6-3005_daily_bin347.fits scfile=/scratch/kocevski/157998/ft2_4FGL_J2350.6-3005_daily_bin347.fits outfile=/scratch/kocevski/157998/cmap_HighResolution_329270401_329529601_4FGL_J2350.6-3005_daily_bin347.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/157998/ft1_filtered_4FGL_J2350.6-3005_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/157998/ft2_4FGL_J2350.6-3005_daily_bin347.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/157998/Model_4FGL_J2350.6-3005_daily_bin347.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/157998/ft1_filtered_4FGL_J2350.6-3005_daily_bin347.fits.....................!
real 38.12
user 36.85
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4346       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.586       1.0000         .10000E-03   10000.    
     7 'norm      '    .35744       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64532       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6902       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6958       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.022       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.562       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5993       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    87.996       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4455       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3439       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .30312       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=   4334.631     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2286 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    51.427        .28022E-04** at limit **
   2  Prefactor     .10000E-03    35.458       -.64970E-05** at limit **
   3  Prefactor     .10000E-03    1.8788        .22358E-06** at limit **
   4  Prefactor     7.4327        20.519       -.38609E-06   -.26038E-04
   5  Prefactor     .10000E-03    7.0599       -.32564E-06** at limit **
   6  norm          20.586        10.264       -.46872E-06   -.12511E-04
   7  norm          .35741        .39418       -.43497E-07    .54259E-03
   8  Prefactor     .65108        6.3387       -.16466E-05   -.22056E-04
   9  norm          2.6900        3.8650       -.22637E-06   -.36859E-04
  10  norm          3.6951        4.9786        .69575E-06   -.11997E-03
  11  Prefactor     30.015        38.578       -.92794E-05    .52053E-05
  12  norm          .10000E-03    1.9048       -.15343E-07** at limit **
  13  norm          .10000E-03    1.6314       -.10362E-06** at limit **
  14  Prefactor     29.562        32.219       -.72463E-06    .23793E-04
  15  norm          1.5989        3.0239       -.71857E-06   -.34613E-03
  16  Prefactor     .10000E-03    61.363       -.20311E-04** at limit **
  17  Prefactor     87.917        64.263       -.71729E-04   -.52742E-05
  18  Prefactor     5.4475        6.5127       -.13166E-06   -.17145E-03
  19  Prefactor     .10000E-03    16.029        .87744E-06** at limit **
  20  Normalizat    1.3436        .19749        .36082E-05   -.12191E-03
  21  Prefactor     .30350        .20159        .76415E-05    .19371E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.43272
  Prefactor  = 0.0001
  norm       = 20.5856
  norm       = 0.357406
  Prefactor  = 0.651081
  norm       = 2.69002
  norm       = 3.69514
  Prefactor  = 30.0147
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 29.5622
  norm       = 1.59885
  Prefactor  = 0.000100001
  Prefactor  = 87.9169
  Prefactor  = 5.44755
  Prefactor  = 0.000100001
  Normalizat = 1.34363
  Prefactor  = 0.3035
 **********
 **   18 **HESSE 
 **********

 FCN=   4334.631     FROM HESSE     STATUS=OK           321 CALLS     2607 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    52.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8870        .87807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4327        20.469        .14709E-03   -1.5163    
   5  Prefactor     .10000E-03    7.0852        .17084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.586        10.273        .88278E-04   -1.4800    
   7  norm          .35741        .38564        .41255E-04   -1.5588    
   8  Prefactor     .65108        29.332        .31180E-02   -1.5547    
   9  norm          2.6900        3.8520        .15127E-03   -1.5380    
  10  norm          3.6951        4.9654        .16489E-03   -1.5323    
  11  Prefactor     30.015        38.580        .73122E-04   -1.4612    
  12  norm          .10000E-03    1.9183        .88696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.6519        .82037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.562        32.271        .73688E-04   -1.4620    
  15  norm          1.5989        2.9859        .15284E-03   -1.5455    
  16  Prefactor     .10000E-03    61.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     87.917        64.307        .21415E-03   -1.3830    
  18  Prefactor     5.4475        6.5352        .17219E-03   -1.5241    
  19  Prefactor     .10000E-03    16.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3436        .20801        .18141E-03   -.82273    
  21  Prefactor     .30350        .20869        .37371E-03   -1.2206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30876e-08
Minuit parameter uncertainties:
  1  0.00068888
  2  0.000106755
  3  2.24569e-05
  4  20.4883
  5  2.79407e-05
  6  10.2742
  7  0.38564
  8  8.74402
  9  3.85237
  10  4.96599
  11  38.6122
  12  1.02012e-05
  13  1.74821e-05
  14  32.2895
  15  2.98616
  16  0.000380613
  17  64.3583
  18  6.53601
  19  0.000235773
  20  0.208144
  21  0.20921
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  8.792e+01  6.436e+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:  3.035e-01  2.092e-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.344e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.87
Ra Dec: 357.665 -30.087
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.60e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 3.02e-05 +/- 2.21e-05

TS (Fixed Index): 2.87
Ra Dec: 357.665 -30.087
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/157998/likelihoodResults_329270401_329529601_4FGL_J2350.6-3005_daily_bin347.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) = 4334.49771451
delta logL = 0.133571419236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4334.49495219
delta logL = 0.136333745715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.223       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2932       1.0000          .0000       10.000    
     3 'Normalizat'    1.3286       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .31308       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=   4334.495     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      283 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.182        76.832        .51280E-04    .35219E-03
   2  Index         2.2932        .59924        .40411E-02    .26393E-03
   3  Normalizat    1.3283        .20263        .18223E-03   -.19755E-02
   4  Prefactor     .31375        .20770        .36779E-03   -.13400E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.1819
  Index      = 2.29319
  Normalizat = 1.32834
  Prefactor  = 0.313747
 **********
 **   18 **HESSE 
 **********

 FCN=   4334.495     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.182        69.888        .10256E-04   -1.4142    
   2  Index         2.2932        .54485        .16164E-03   -.57206    
   3  Normalizat    1.3283        .20227        .36445E-04   -.82724    
   4  Prefactor     .31375        .20738        .73558E-04   -1.2147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44042e-09
Minuit parameter uncertainties:
  1  69.982
  2  0.546385
  3  0.202388
  4  0.207876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157998': 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) = 4334.49494291
delta logL = 0.136343020638

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  6.118e+01  6.998e+01  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.293e+00  5.464e-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:  3.137e-01  2.079e-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.328e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.13
Ra Dec: 357.665 -30.087
Photon Index (Free Index): 2.29 +/- 0.55
Photon Flux (Free Index): 5.88e-08 +/- 4.57e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.92e-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/157998/cmap_HighResolution_329270401_329529601_4FGL_J2350.6-3005_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', comment='SUCCESS', photon_flux='4.60e-08', energy_flux2='2.25e-05', photon_flux_error='3.37e-08', dlogl='1.36e-01', energy_flux='3.02e-05', photon_flux2='5.88e-08', job_status='DONE', time_completed='2021-09-30 07:17:17.714149', photon_index_error2='0.55', photon_index2='2.29', ts='2.87', fit_tolerance='1e-08', GAL='0.30', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.92e-05', EG='1.34', time_epoch_completed='1633011437.71', return_code='0', job_id='157998', GAL2='0.31', EG2='1.33', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='4.57e-08', ts2='3.13', photon_index='2.02' WHERE bin_id='347' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:17:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 157998: <4FGL_J2350.6-3005_daily_bin347> in cluster <slac> Done

Job <4FGL_J2350.6-3005_daily_bin347> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 07:05:15 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:05:17 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:05:17 2021
Terminated at Thu Sep 30 07:17:18 2021
Results reported at Thu Sep 30 07:17:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin347 357.665 -30.087 329270401 329529601 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 :                                   531.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             220.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            723 sec.

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

