/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 217 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 = 7470
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2350.6-3005_daily_bin681
RA = 357.665, Dec = -30.087
tmin = 415843201, tmax = 416102401
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='158494', job_status='RUN', time_executed='2021-09-30 07:09:44.899422', time_epoch_executed='1633010984.9' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158494/ft1_4FGL_J2350.6-3005_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158494/ft2_4FGL_J2350.6-3005_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158494/ft1_4FGL_J2350.6-3005_daily_bin681.fits outfile=/scratch/kocevski/158494/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin681.fits ra=357.665 dec=-30.087 rad=12.0 tmin=415843201.0 tmax=416102401.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 5.88
user 5.65
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158494/ft1_filtered_4FGL_J2350.6-3005_daily_bin681.fits" evtable="EVENTS" scfile=/scratch/kocevski/158494/ft2_4FGL_J2350.6-3005_daily_bin681.fits sctable="SC_DATA" outfile=/scratch/kocevski/158494/ltcube_415843201_416102401_4FGL_J2350.6-3005_daily_bin681.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/158494/ft2_4FGL_J2350.6-3005_daily_bin681.fits
.....................!
real 12.41
user 12.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158494/ft1_filtered_4FGL_J2350.6-3005_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/158494/ft2_4FGL_J2350.6-3005_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/158494/ltcube_415843201_416102401_4FGL_J2350.6-3005_daily_bin681.fits outfile=/scratch/kocevski/158494/expmap_415843201_416102401_4FGL_J2350.6-3005_daily_bin681.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/158494/ltcube_415843201_416102401_4FGL_J2350.6-3005_daily_bin681.fits
.....................!
real 191.38
user 186.08
sys 4.97

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/158494/ft1_filtered_4FGL_J2350.6-3005_daily_bin681.fits scfile=/scratch/kocevski/158494/ft2_4FGL_J2350.6-3005_daily_bin681.fits outfile=/scratch/kocevski/158494/cmap_415843201_416102401_4FGL_J2350.6-3005_daily_bin681.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.55
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158494/ft1_filtered_4FGL_J2350.6-3005_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/158494/ft2_4FGL_J2350.6-3005_daily_bin681.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158494/Model_4FGL_J2350.6-3005_daily_bin681.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/158494/ft1_filtered_4FGL_J2350.6-3005_daily_bin681.fits.....................!
real 33.44
user 32.20
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11897E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .86250       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13922E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    5.5854       1.0000         .10000E-03   10000.    
    10 'norm      '    10.326       1.0000         .10000E-03   10000.    
    11 'Prefactor '    100.04       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6998       1.0000         .10000E-03   10000.    
    13 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .75432E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.381       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21856       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17793E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    75.962       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .47076       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3639       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=   3820.031     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2987 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.870       -.87529E-05** at limit **
   2  Prefactor     .10000E-03    34.022        .99473E-05** at limit **
   3  Prefactor     .10000E-03    1.4276       -.65833E-07** at limit **
   4  Prefactor     .10000E-03    15.121        .91500E-05** at limit **
   5  Prefactor     .10000E-03    29.514       -.84174E-05** at limit **
   6  norm          .10000E-03    2.1263       -.60240E-07** at limit **
   7  norm          .86255        .68544       -.13913E-06   -.14882E-02
   8  Prefactor     .10143E-03    11.877        .34291E-05** at limit **
   9  norm          5.5855        6.0637       -.44692E-05   -.40950E-03
  10  norm          10.325        7.4942       -.52269E-06    .20283E-04
  11  Prefactor     100.06        59.109        .97997E-05    .16318E-03
  12  norm          1.6998        3.0411        .85550E-06   -.32829E-03
  13  norm          .10000E-03    1.2931        .88924E-07** at limit **
  14  Prefactor     .10005E-03    187.22       -.94116E-04** at limit **
  15  norm          .10000E-03    1.9296       -.12191E-06** at limit **
  16  Prefactor     61.323        143.96       -.71330E-04   -.42073E-04
  17  Prefactor     .21946        134.18        .11107E-04   -.10753E-03
  18  Prefactor     .10000E-03    4.7629       -.19431E-05** at limit **
  19  Prefactor     75.966        60.770        .34585E-05    .33894E-05
  20  Normalizat    .47076        .18746        .25252E-05    .29372E-03
  21  Prefactor     1.3639        .21477        .11725E-05    .22727E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.862554
  Prefactor  = 0.000101431
  norm       = 5.58547
  norm       = 10.3253
  Prefactor  = 100.056
  norm       = 1.69985
  norm       = 0.0001
  Prefactor  = 0.000100046
  norm       = 0.0001
  Prefactor  = 61.3228
  Prefactor  = 0.219461
  Prefactor  = 0.0001
  Prefactor  = 75.9657
  Normalizat = 0.470763
  Prefactor  = 1.36391
 **********
 **   18 **HESSE 
 **********

 FCN=   3820.031     FROM HESSE     STATUS=OK           319 CALLS     3306 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4340        .72071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.1301        .88018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .86255        .66942        .43426E-04   -1.5522    
   8  Prefactor     .10143E-03    87.595        .40074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.5855        6.0723        .15068E-03   -1.5235    
  10  norm          10.325        7.4950        .12469E-03   -1.5065    
  11  Prefactor     100.06        59.135        .40193E-04   -1.3704    
  12  norm          1.6998        3.0077        .13631E-03   -1.5447    
  13  norm          .10000E-03    1.3020        .68620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    185.96        .41874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9571        .83816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     61.323        143.24        .51215E-04   -1.4140    
  17  Prefactor     .21946        110.00        .15821       -1.5614    
  18  Prefactor     .10000E-03    31.793        .24783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     75.966        59.517        .46071E-04   -1.3963    
  20  Normalizat    .47076        .21508        .27970E-03   -1.1379    
  21  Prefactor     1.3639        .25072        .20584E-03   -.81426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6874e-08
Minuit parameter uncertainties:
  1  0.000185773
  2  0.000262566
  3  7.50722e-06
  4  0.00014582
  5  0.00028878
  6  2.35141e-06
  7  0.669423
  8  0.022424
  9  6.07295
  10  7.49569
  11  59.1698
  12  3.00792
  13  1.52587e-05
  14  0.00586863
  15  4.22625e-06
  16  144.061
  17  9.84267
  18  3.8602e-06
  19  59.5638
  20  0.215455
  21  0.250946
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  2.195e-01  9.843e+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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.364e+00  2.509e-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:  4.708e-01  2.155e-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: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158494/likelihoodResults_415843201_416102401_4FGL_J2350.6-3005_daily_bin681.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) = 3818.31259182
delta logL = 1.71791090998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3818.27240682
delta logL = 1.75809591447

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60947       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2396       1.0000          .0000       10.000    
     3 'Normalizat'    .34637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4484       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=   3818.272     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      243 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61077        6.4427        .64184E-02    .35049E-03
   2  Index         4.2391        2.0182        .58118E-01    .13555E-03
   3  Normalizat    .34630        .55793E-01    .72871E-01    .35729E-04
   4  Prefactor     1.4485        .66646E-01    .45244E-01    .40261E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.610768
  Index      = 4.23912
  Normalizat = 0.346301
  Prefactor  = 1.4485
 **********
 **   18 **HESSE 
 **********

 FCN=   3818.272     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61077        11.239        .28750E-04   -1.5552    
   2  Index         4.2391        2.8478        .23801E-02   -.15277    
   3  Normalizat    .34630        .19162        .32266E-03   -1.2018    
   4  Prefactor     1.4485        .22768        .19998E-03   -.78993    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47943e-07
Minuit parameter uncertainties:
  1  5.24069
  2  3.03501
  3  0.191984
  4  0.227843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158494': 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) = 3818.27240606
delta logL = 1.75809666816

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  6.108e-01  5.241e+00  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  4.239e+00  3.035e+00  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.448e+00  2.278e-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:  3.463e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.83
Ra Dec: 357.665 -30.087
Photon Index (Free Index): 4.24 +/- 3.04
Photon Flux (Free Index): 9.94e-08 +/- 6.22e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.13e-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/158494/cmap_HighResolution_415843201_416102401_4FGL_J2350.6-3005_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', comment='SUCCESS', energy_flux2='1.44e-05', dlogl='1.76e+00', photon_flux2='9.94e-08', job_status='DONE', time_completed='2021-09-30 07:18:58.824769', photon_index_error2='3.04', photon_index2='4.24', ts='0.00', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='9.28e-08', energy_flux_error2='1.13e-05', EG='0.47', time_epoch_completed='1633011538.82', return_code='0', job_id='158494', GAL2='1.45', EG2='0.35', return_code2='102', photon_flux_error2='6.22e-08', ts2='3.83', photon_index='2.02' WHERE bin_id='681' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:18:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 158494: <4FGL_J2350.6-3005_daily_bin681> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin681 357.665 -30.087 415843201 416102401 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 :                                   552.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             198.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

