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


Performing analysis on: 4FGL_J2350.6-3005_daily_bin1274
RA = 357.665, Dec = -30.087
tmin = 569548801, tmax = 569808001
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='161636', job_status='RUN', time_executed='2021-09-30 07:20:36.401309', time_epoch_executed='1633011636.4' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='1274'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161636

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161636/ft1_4FGL_J2350.6-3005_daily_bin1274.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161636/ft2_4FGL_J2350.6-3005_daily_bin1274.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161636/ft1_4FGL_J2350.6-3005_daily_bin1274.fits outfile=/scratch/kocevski/161636/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin1274.fits ra=357.665 dec=-30.087 rad=12.0 tmin=569548801.0 tmax=569808001.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.65
user 3.42
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161636/ft2_4FGL_J2350.6-3005_daily_bin1274.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/161636/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin1274.fits evtable="EVENTS" outfile="/scratch/kocevski/161636/ft1_filtered_4FGL_J2350.6-3005_daily_bin1274.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161636/ft1_filtered_4FGL_J2350.6-3005_daily_bin1274.fits" evtable="EVENTS" scfile=/scratch/kocevski/161636/ft2_4FGL_J2350.6-3005_daily_bin1274.fits sctable="SC_DATA" outfile=/scratch/kocevski/161636/ltcube_569548801_569808001_4FGL_J2350.6-3005_daily_bin1274.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/161636/ft2_4FGL_J2350.6-3005_daily_bin1274.fits
.....................!
real 12.00
user 11.61
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161636/ft1_filtered_4FGL_J2350.6-3005_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/161636/ft2_4FGL_J2350.6-3005_daily_bin1274.fits sctable="SC_DATA" expcube=/scratch/kocevski/161636/ltcube_569548801_569808001_4FGL_J2350.6-3005_daily_bin1274.fits outfile=/scratch/kocevski/161636/expmap_569548801_569808001_4FGL_J2350.6-3005_daily_bin1274.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/161636/ltcube_569548801_569808001_4FGL_J2350.6-3005_daily_bin1274.fits
.....................!
real 192.53
user 186.70
sys 5.51

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/161636/ft1_filtered_4FGL_J2350.6-3005_daily_bin1274.fits scfile=/scratch/kocevski/161636/ft2_4FGL_J2350.6-3005_daily_bin1274.fits outfile=/scratch/kocevski/161636/cmap_569548801_569808001_4FGL_J2350.6-3005_daily_bin1274.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161636/ft1_filtered_4FGL_J2350.6-3005_daily_bin1274.fits scfile=/scratch/kocevski/161636/ft2_4FGL_J2350.6-3005_daily_bin1274.fits outfile=/scratch/kocevski/161636/cmap_HighResolution_569548801_569808001_4FGL_J2350.6-3005_daily_bin1274.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/161636/ft1_filtered_4FGL_J2350.6-3005_daily_bin1274.fits evtable="EVENTS" scfile=/scratch/kocevski/161636/ft2_4FGL_J2350.6-3005_daily_bin1274.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/161636/Model_4FGL_J2350.6-3005_daily_bin1274.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/161636/ft1_filtered_4FGL_J2350.6-3005_daily_bin1274.fits.....................!
real 42.05
user 40.83
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    36.862       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8384       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.7644       1.0000         .10000E-03   10000.    
     7 'norm      '    .70044       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    12.095       1.0000         .10000E-03   10000.    
    10 'norm      '    20.836       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.6952       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8933       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3533       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8901       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2694       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0264       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94928       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=   5213.419     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2189 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          36.857        33.401        .39812E-06   -.21237E-04
   2  Prefactor     .10000E-03    17.809       -.73092E-06** at limit **
   3  Prefactor     3.8371        3.7555       -.48790E-07   -.27189E-03
   4  Prefactor     .10000E-03    16.685        .55594E-06** at limit **
   5  Prefactor     .10000E-03    6.2658       -.29787E-07** at limit **
   6  norm          9.7644        6.9135        .31671E-06   -.10571E-03
   7  norm          .70064        .66146       -.30956E-07   -.59563E-03
   8  Prefactor     .10000E-03    42.437        .63157E-06** at limit **
   9  norm          12.097        8.3407        .11178E-06    .26952E-05
  10  norm          20.835        10.325        .15436E-06    .95703E-04
  11  Prefactor     .10000E-03    58.677       -.22592E-05** at limit **
  12  norm          9.6942        6.7269        .27567E-06    .16310E-04
  13  norm          3.8931        3.3384       -.23813E-06   -.54181E-04
  14  Prefactor     1.2450        79.712        .24745E-04    .48059E-05
  15  norm          1.8896        4.7202       -.43957E-07   -.50639E-04
  16  Prefactor     .10000E-03    81.732        .19276E-05** at limit **
  17  Prefactor     7.2513        43.452        .28047E-05   -.31969E-04
  18  Prefactor     .10000E-03    1.8295       -.46101E-07** at limit **
  19  Prefactor     .10000E-03    24.585       -.11867E-06** at limit **
  20  Normalizat    1.0263        .18494        .14612E-06   -.57326E-04
  21  Prefactor     .94944        .20831       -.12422E-05   -.62935E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 36.8568
  Prefactor  = 0.0001
  Prefactor  = 3.83714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.76444
  norm       = 0.700644
  Prefactor  = 0.0001
  norm       = 12.0969
  norm       = 20.835
  Prefactor  = 0.000100001
  norm       = 9.69417
  norm       = 3.89308
  Prefactor  = 1.245
  norm       = 1.88956
  Prefactor  = 0.000100001
  Prefactor  = 7.2513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02632
  Prefactor  = 0.949443
 **********
 **   18 **HESSE 
 **********

 FCN=   5213.419     FROM HESSE     STATUS=OK           321 CALLS     2510 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          36.857        33.404        .66011E-04   -1.4493    
   2  Prefactor     .10000E-03    17.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8371        3.7527        .13152E-03   -1.5316    
   4  Prefactor     .10000E-03    16.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2836        .17651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.7644        6.9157        .12824E-03   -1.5083    
   7  norm          .70064        .63468        .55216E-03   -1.5541    
   8  Prefactor     .10000E-03    43.656        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.097        8.3628        .11518E-03   -1.5012    
  10  norm          20.835        10.328        .87748E-04   -1.4795    
  11  Prefactor     .10000E-03    58.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.6942        6.7191        .12870E-03   -1.5085    
  13  norm          3.8931        3.3372        .11661E-03   -1.5313    
  14  Prefactor     1.2450        79.768        .18795E-02   -1.5485    
  15  norm          1.8896        4.6772        .22889E-03   -1.5433    
  16  Prefactor     .10000E-03    81.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.2513        43.483        .14877E-03   -1.5169    
  18  Prefactor     .10000E-03    1.8353        .95362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0263        .22016        .22828E-03   -.92154    
  21  Prefactor     .94944        .24745        .26561E-03   -.94434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15079e-10
Minuit parameter uncertainties:
  1  33.4209
  2  6.63362e-05
  3  3.7529
  4  3.46788e-05
  5  5.7851e-06
  6  6.91627
  7  0.634685
  8  0.000114116
  9  8.3636
  10  10.3287
  11  0.000451476
  12  6.71965
  13  3.33736
  14  19.9581
  15  4.67807
  16  0.000418724
  17  35.5524
  18  3.15582e-06
  19  0.000135459
  20  0.22036
  21  0.247743
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  7.251e+00  3.555e+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:  9.494e-01  2.477e-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.026e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 357.665 -30.087
Photon Flux Upper Limit: 6.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/161636/likelihoodResults_569548801_569808001_4FGL_J2350.6-3005_daily_bin1274.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) = 5213.30931138
delta logL = 0.109208259741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5213.30315735
delta logL = 0.115362291512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1413       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7444       1.0000          .0000       10.000    
     3 'Normalizat'    1.0144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95510       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5213.303     FROM MIGRAD    STATUS=FAILED       105 CALLS      278 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1256        76.146        .88653E-03    .91932E-04
   2  Index         2.7459        2.8233        .91820E-02    .41610E-03
   3  Normalizat    1.0144        .22055        .22947E-03   -.15359E-05
   4  Prefactor     .95517        .24689        .26485E-03   -.63101E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5213.303     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      356 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1256        76.146        .42516E-03   -1.5255    
   2  Index         2.7459        2.8233        .12348E-02   -.46769    
   3  Normalizat    1.0144        .22055        .36007E-03   -.92550    
   4  Prefactor     .95517        .24689        .39081E-03   -.94239    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5213.303     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      387 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1256        20.086        .17731E-03   -.70531E-06
   2  Index         2.7459        1.5227        .18364E-02    .16276E-04
   3  Normalizat    1.0144        .21994        .91787E-05   -.14863E-05
   4  Prefactor     .95517        .24603        .10594E-04   -.62242E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.12562
  Index      = 2.74588
  Normalizat = 1.01438
  Prefactor  = 0.955166
 **********
 **   18 **HESSE 
 **********

 FCN=   5213.303     FROM HESSE     STATUS=OK            25 CALLS      412 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1256        18.859        .70922E-05   -1.5255    
   2  Index         2.7459        1.4327        .36728E-03   -.46769    
   3  Normalizat    1.0144        .21979        .18357E-05   -.92550    
   4  Prefactor     .95517        .24579        .21188E-05   -.94239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23449e-13
Minuit parameter uncertainties:
  1  18.8808
  2  1.45853
  3  0.21999
  4  0.246075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161636': 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) = 5213.30315677
delta logL = 0.115362868988

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  5.126e+00  1.888e+01  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.746e+00  1.459e+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:  9.552e-01  2.461e-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.014e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/161636/cmap_HighResolution_569548801_569808001_4FGL_J2350.6-3005_daily_bin1274.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.36e-08', time_completed='2021-09-30 07:32:53.361349', job_id='161636', GAL2='0.96', fit_tolerance='1e-08', EG2='1.01', EG='1.03', time_epoch_completed='1633012373.36', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.15e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1274' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:32:53 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin1274 357.665 -30.087 569548801 569808001 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.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             234.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

