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


Performing analysis on: 4FGL_J2350.6-3005_daily_bin377
RA = 357.665, Dec = -30.087
tmin = 337046401, tmax = 337305601
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='158042', job_status='RUN', time_executed='2021-09-30 07:09:26.897526', time_epoch_executed='1633010966.9' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158042

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158042/ft1_4FGL_J2350.6-3005_daily_bin377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158042/ft2_4FGL_J2350.6-3005_daily_bin377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158042/ft1_4FGL_J2350.6-3005_daily_bin377.fits outfile=/scratch/kocevski/158042/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin377.fits ra=357.665 dec=-30.087 rad=12.0 tmin=337046401.0 tmax=337305601.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 10.86
user 10.45
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158042/ft2_4FGL_J2350.6-3005_daily_bin377.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/158042/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin377.fits evtable="EVENTS" outfile="/scratch/kocevski/158042/ft1_filtered_4FGL_J2350.6-3005_daily_bin377.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/158042/ft1_filtered_4FGL_J2350.6-3005_daily_bin377.fits" evtable="EVENTS" scfile=/scratch/kocevski/158042/ft2_4FGL_J2350.6-3005_daily_bin377.fits sctable="SC_DATA" outfile=/scratch/kocevski/158042/ltcube_337046401_337305601_4FGL_J2350.6-3005_daily_bin377.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/158042/ft2_4FGL_J2350.6-3005_daily_bin377.fits
.....................!
real 12.99
user 10.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158042/ft1_filtered_4FGL_J2350.6-3005_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/158042/ft2_4FGL_J2350.6-3005_daily_bin377.fits sctable="SC_DATA" expcube=/scratch/kocevski/158042/ltcube_337046401_337305601_4FGL_J2350.6-3005_daily_bin377.fits outfile=/scratch/kocevski/158042/expmap_337046401_337305601_4FGL_J2350.6-3005_daily_bin377.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/158042/ltcube_337046401_337305601_4FGL_J2350.6-3005_daily_bin377.fits
.....................!
real 190.85
user 185.44
sys 5.05

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/158042/ft1_filtered_4FGL_J2350.6-3005_daily_bin377.fits scfile=/scratch/kocevski/158042/ft2_4FGL_J2350.6-3005_daily_bin377.fits outfile=/scratch/kocevski/158042/cmap_337046401_337305601_4FGL_J2350.6-3005_daily_bin377.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158042/ft1_filtered_4FGL_J2350.6-3005_daily_bin377.fits scfile=/scratch/kocevski/158042/ft2_4FGL_J2350.6-3005_daily_bin377.fits outfile=/scratch/kocevski/158042/cmap_HighResolution_337046401_337305601_4FGL_J2350.6-3005_daily_bin377.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=357.665 yref=-30.087 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158042/ft1_filtered_4FGL_J2350.6-3005_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/158042/ft2_4FGL_J2350.6-3005_daily_bin377.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158042/Model_4FGL_J2350.6-3005_daily_bin377.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/158042/ft1_filtered_4FGL_J2350.6-3005_daily_bin377.fits......................!
real 25.55
user 24.21
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    52.879       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55400       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.750       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.973       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0818       1.0000         .10000E-03   10000.    
     7 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.420       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .42168       1.0000         .10000E-03   10000.    
    14 'Prefactor '    87.306       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.023       1.0000         .10000E-03   10000.    
    17 'Prefactor '    79.777       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97449       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .63747       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2351.818     FROM MIGRAD    STATUS=CONVERGED     67 CALLS     1816 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10018E-03    17.623       -.84230E-05** at limit **
   2  Prefactor     52.878        1.1313       -.14141E-06    .21948E-02
   3  Prefactor     .56366        1.0852       -.21671E-05   -.14090E-02
   4  Prefactor     17.745        2.3263       -.92871E-06    .38788E-02
   5  Prefactor     10.968        1.7868       -.81373E-06    .21167E-02
   6  norm          2.0775        4.9594       -.86816E-05   -.35551E-02
   7  norm          .10000E-03    .36133        .72588E-06** at limit **
   8  Prefactor     12.419        1.0021        .17006E-07    .18574E-03
   9  norm          .10000E-03    3.1294       -.99979E-06** at limit **
  10  norm          .10000E-03    4.2024        .26949E-05** at limit **
  11  Prefactor     .10005E-03    34.141        .12653E-04** at limit **
  12  norm          .10000E-03    1.8492       -.42072E-06** at limit **
  13  norm          .42040        2.5855       -.17249E-05   -.29202E-03
  14  Prefactor     87.304        1.1511       -.11788E-06    .30356E-02
  15  norm          .10000E-03    2.2473        .41684E-06** at limit **
  16  Prefactor     50.022        1.2206       -.19282E-06    .27755E-02
  17  Prefactor     79.778        1.0808        .89826E-07   -.19497E-02
  18  Prefactor     .10000E-03    2.8025        .29431E-05** at limit **
  19  Prefactor     .10038E-03    15.529        .18480E-04** at limit **
  20  Normalizat    .97514        .27684        .73355E-05    .83268E-05
  21  Prefactor     .63694        .31327       -.60386E-05    .11054E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100179
  Prefactor  = 52.878
  Prefactor  = 0.563658
  Prefactor  = 17.7448
  Prefactor  = 10.9682
  norm       = 2.07755
  norm       = 0.0001
  Prefactor  = 12.4188
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100047
  norm       = 0.0001
  norm       = 0.420405
  Prefactor  = 87.3043
  norm       = 0.0001
  Prefactor  = 50.0216
  Prefactor  = 79.7784
  Prefactor  = 0.0001
  Prefactor  = 0.000100384
  Normalizat = 0.975139
  Prefactor  = 0.636944
 **********
 **   18 **HESSE 
 **********

 FCN=   2351.818     FROM HESSE     STATUS=OK           357 CALLS     2173 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10018E-03    21.189        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     52.878        64.857        .13789E-02   -1.4252    
   3  Prefactor     .56366        8.6479        .11489E-01   -1.5558    
   4  Prefactor     17.745        31.378        .23766E-02   -1.4865    
   5  Prefactor     10.968        25.105        .30236E-02   -1.5045    
   6  norm          2.0775        6.6823        .71550E-02   -1.5420    
   7  norm          .10000E-03    .35679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.419        13.337        .28416E-02   -1.5003    
   9  norm          .10000E-03    3.1296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.2015        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    36.128        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8462        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .42040        2.7056        .10947E-01   -1.5578    
  14  Prefactor     87.304        47.242        .10750E-02   -1.3836    
  15  norm          .10000E-03    2.2408        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     50.022        74.704        .14175E-02   -1.4292    
  17  Prefactor     79.778        77.458        .11241E-02   -1.3919    
  18  Prefactor     .10000E-03    2.7936        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10038E-03    24.362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97514        .23203        .45846E-01   -.93868    
  21  Prefactor     .63694        .25970        .61373E-01   -1.0605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58217e-07
Minuit parameter uncertainties:
  1  0.00389144
  2  64.944
  3  4.416
  4  31.4074
  5  25.1288
  6  6.68467
  7  5.31791e-07
  8  13.3405
  9  1.81681e-05
  10  9.80612e-06
  11  0.00261043
  12  3.87186e-07
  13  2.13293
  14  47.2623
  15  4.95289e-07
  16  74.8439
  17  77.5565
  18  1.48009e-05
  19  0.00611926
  20  0.232268
  21  0.260195
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  7.978e+01  7.756e+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:  6.369e-01  2.602e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  9.751e-01  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.70
Ra Dec: 357.665 -30.087
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.17e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 2.66e-05

TS (Fixed Index): 1.70
Ra Dec: 357.665 -30.087
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158042/likelihoodResults_337046401_337305601_4FGL_J2350.6-3005_daily_bin377.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) = 2351.74359838
delta logL = 0.0744881108058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2351.73474675
delta logL = 0.0833397447122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.061       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3772       1.0000          .0000       10.000    
     3 'Normalizat'    .95986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64894       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=   2351.735     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      302 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.169        110.62        .59727E-04    .16844E-03
   2  Index         2.3764        1.1296        .38227E-02    .31495E-04
   3  Normalizat    .95870        .28171        .19909E-03   -.51291E-03
   4  Prefactor     .65023        .31631        .26891E-03    .21350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.1693
  Index      = 2.37635
  Normalizat = 0.958696
  Prefactor  = 0.650235
 **********
 **   18 **HESSE 
 **********

 FCN=   2351.735     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.169        89.784        .11945E-04   -1.4363    
   2  Index         2.3764        .91866        .15291E-03   -.55240    
   3  Normalizat    .95870        .28053        .39819E-04   -.94427    
   4  Prefactor     .65023        .31523        .10756E-04   -1.0551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89021e-09
Minuit parameter uncertainties:
  1  90.0547
  2  0.925951
  3  0.280961
  4  0.316094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158042': 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) = 2351.7347367
delta logL = 0.0833497900539

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  4.517e+01  9.005e+01  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.376e+00  9.260e-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:  6.502e-01  3.161e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  9.587e-01  2.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 357.665 -30.087
Photon Index (Free Index): 2.38 +/- 0.93
Photon Flux (Free Index): 5.29e-08 +/- 5.32e-08
Energy Flux (Free Index): 1.79e-05 +/- 2.22e-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/158042/cmap_HighResolution_337046401_337305601_4FGL_J2350.6-3005_daily_bin377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', comment='SUCCESS', photon_flux='4.17e-08', energy_flux2='1.79e-05', photon_flux_error='4.06e-08', dlogl='8.33e-02', energy_flux='2.74e-05', photon_flux2='5.29e-08', job_status='DONE', time_completed='2021-09-30 07:17:10.338930', photon_index_error2='0.93', photon_index2='2.38', ts='1.70', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='2.22e-05', EG='0.98', time_epoch_completed='1633011430.34', return_code='0', job_id='158042', GAL2='0.65', EG2='0.96', return_code2='0', energy_flux_error='2.66e-05', photon_flux_error2='5.32e-08', ts2='1.86', photon_index='2.02' WHERE bin_id='377' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:17:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 158042: <4FGL_J2350.6-3005_daily_bin377> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin377 357.665 -30.087 337046401 337305601 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 :                                   455.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            712 sec.

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

