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


Performing analysis on: 4FGL_J2350.6-3005_daily_bin405
RA = 357.665, Dec = -30.087
tmin = 344304001, tmax = 344563201
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='158083', job_status='RUN', time_executed='2021-09-30 07:08:46.431227', time_epoch_executed='1633010926.43' WHERE source_name='4FGL J2350.6-3005' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158083

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158083/ft1_4FGL_J2350.6-3005_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158083/ft2_4FGL_J2350.6-3005_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158083/ft1_4FGL_J2350.6-3005_daily_bin405.fits outfile=/scratch/kocevski/158083/ft1_filteredMKT_4FGL_J2350.6-3005_daily_bin405.fits ra=357.665 dec=-30.087 rad=12.0 tmin=344304001.0 tmax=344563201.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.40
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158083/ft1_filtered_4FGL_J2350.6-3005_daily_bin405.fits" evtable="EVENTS" scfile=/scratch/kocevski/158083/ft2_4FGL_J2350.6-3005_daily_bin405.fits sctable="SC_DATA" outfile=/scratch/kocevski/158083/ltcube_344304001_344563201_4FGL_J2350.6-3005_daily_bin405.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/158083/ft2_4FGL_J2350.6-3005_daily_bin405.fits
.....................!
real 11.95
user 11.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158083/ft1_filtered_4FGL_J2350.6-3005_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/158083/ft2_4FGL_J2350.6-3005_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/158083/ltcube_344304001_344563201_4FGL_J2350.6-3005_daily_bin405.fits outfile=/scratch/kocevski/158083/expmap_344304001_344563201_4FGL_J2350.6-3005_daily_bin405.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/158083/ltcube_344304001_344563201_4FGL_J2350.6-3005_daily_bin405.fits
.....................!
real 191.94
user 185.86
sys 5.65

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/158083/ft1_filtered_4FGL_J2350.6-3005_daily_bin405.fits scfile=/scratch/kocevski/158083/ft2_4FGL_J2350.6-3005_daily_bin405.fits outfile=/scratch/kocevski/158083/cmap_344304001_344563201_4FGL_J2350.6-3005_daily_bin405.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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158083/ft1_filtered_4FGL_J2350.6-3005_daily_bin405.fits scfile=/scratch/kocevski/158083/ft2_4FGL_J2350.6-3005_daily_bin405.fits outfile=/scratch/kocevski/158083/cmap_HighResolution_344304001_344563201_4FGL_J2350.6-3005_daily_bin405.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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158083/ft1_filtered_4FGL_J2350.6-3005_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/158083/ft2_4FGL_J2350.6-3005_daily_bin405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158083/Model_4FGL_J2350.6-3005_daily_bin405.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/158083/ft1_filtered_4FGL_J2350.6-3005_daily_bin405.fits.....................!
real 33.69
user 32.41
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    46.902       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10219E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.375       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.799       1.0000         .10000E-03   10000.    
    11 'Prefactor '    146.21       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4468       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5637       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    99.828       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5488       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12907E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3699       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .42650       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=   3598.286     FROM MIGRAD    STATUS=CONVERGED    470 CALLS     2227 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          46.904        42.102        .32273E-06   -.20408E-05
   2  Prefactor     .10000E-03    35.536        .29209E-06** at limit **
   3  Prefactor     .10000E-03    1.3484        .10756E-06** at limit **
   4  Prefactor     .10000E-03    15.294        .52835E-07** at limit **
   5  Prefactor     .10000E-03    10.203       -.60143E-07** at limit **
   6  norm          .10000E-03    2.9249       -.95054E-08** at limit **
   7  norm          .10000E-03    .63231        .58097E-07** at limit **
   8  Prefactor     33.383        20.297       -.13036E-05   -.39617E-04
   9  norm          .10000E-03    2.4406       -.36084E-08** at limit **
  10  norm          11.800        10.437       -.46882E-06   -.65082E-05
  11  Prefactor     146.22        90.662        .81191E-05   -.70314E-05
  12  norm          .10000E-03    2.2000       -.30383E-07** at limit **
  13  norm          3.4481        3.9831       -.40292E-06   -.22661E-03
  14  Prefactor     .10000E-03    26.296       -.10790E-06** at limit **
  15  norm          1.5640        3.9667       -.67859E-06   -.40135E-03
  16  Prefactor     .10000E-03    66.328       -.11370E-05** at limit **
  17  Prefactor     99.767        78.085       -.45324E-04   -.22343E-04
  18  Prefactor     3.5445        6.2834        .79119E-06   -.23418E-03
  19  Prefactor     .10004E-03    180.39        .10884E-04** at limit **
  20  Normalizat    1.3696        .23063        .80525E-06   -.51873E-04
  21  Prefactor     .42674        .23422        .45819E-05    .43131E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 46.9039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 33.383
  norm       = 0.0001
  norm       = 11.7996
  Prefactor  = 146.222
  norm       = 0.0001
  norm       = 3.44811
  Prefactor  = 0.0001
  norm       = 1.56399
  Prefactor  = 0.0001
  Prefactor  = 99.7669
  Prefactor  = 3.54454
  Prefactor  = 0.000100037
  Normalizat = 1.36956
  Prefactor  = 0.426737
 **********
 **   18 **HESSE 
 **********

 FCN=   3598.286     FROM HESSE     STATUS=OK           311 CALLS     2538 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          46.904        42.092        .58548E-04   -1.4337    
   2  Prefactor     .10000E-03    35.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3515        .68023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.9282        .10019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.6520        .89612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.383        19.591        .69362E-04   -1.4552    
   9  norm          .10000E-03    2.4407        .91525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.800        10.436        .11663E-03   -1.5021    
  11  Prefactor     146.22        91.297        .33325E-04   -1.3284    
  12  norm          .10000E-03    2.2041        .86877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4481        3.9712        .12285E-03   -1.5337    
  14  Prefactor     .10000E-03    26.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5640        3.9274        .18482E-03   -1.5458    
  16  Prefactor     .10000E-03    66.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     99.767        78.060        .20118E-03   -1.3707    
  18  Prefactor     3.5445        6.2767        .19156E-03   -1.5331    
  19  Prefactor     .10004E-03    183.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3696        .26724        .20215E-03   -.81513    
  21  Prefactor     .42674        .26672        .35371E-03   -1.1546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78998e-10
Minuit parameter uncertainties:
  1  42.1188
  2  3.45796e-05
  3  1.12501e-05
  4  1.87487e-05
  5  1.54839e-05
  6  3.24182e-06
  7  6.55476e-06
  8  19.5943
  9  6.90878e-07
  10  10.4378
  11  91.3853
  12  3.36833e-06
  13  3.97152
  14  4.00918e-07
  15  3.92803
  16  0.000108723
  17  78.1401
  18  6.27784
  19  0.00519424
  20  0.267512
  21  0.267498
Done.

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

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  9.977e+01  7.814e+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:  4.267e-01  2.675e-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.370e+00  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.19
Ra Dec: 357.665 -30.087
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 5.22e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 3.42e-05 +/- 2.68e-05

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

Saving results to:
/scratch/kocevski/158083/likelihoodResults_344304001_344563201_4FGL_J2350.6-3005_daily_bin405.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) = 3598.21193964
delta logL = 0.0743758869257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3598.2065287
delta logL = 0.0797868243944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.535       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2431       1.0000          .0000       10.000    
     3 'Normalizat'    1.3530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43660       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=   3598.207     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      284 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.499        89.118        .45316E-04    .47860E-03
   2  Index         2.2426        .59595        .42365E-02    .37526E-03
   3  Normalizat    1.3529        .26157        .20312E-03   -.12272E-02
   4  Prefactor     .43693        .26563        .34970E-03   -.90140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.4985
  Index      = 2.24263
  Normalizat = 1.35295
  Prefactor  = 0.436934
 **********
 **   18 **HESSE 
 **********

 FCN=   3598.207     FROM HESSE     STATUS=OK            23 CALLS      307 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.499        83.884        .90632E-05   -1.3934    
   2  Index         2.2426        .56053        .16946E-03   -.58413    
   3  Normalizat    1.3529        .26126        .40623E-04   -.81999    
   4  Prefactor     .43693        .26545        .69940E-04   -1.1496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04391e-09
Minuit parameter uncertainties:
  1  84.0112
  2  0.56223
  3  0.261516
  4  0.266202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158083': 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) = 3598.20652532
delta logL = 0.0797902015229

Extracting fit parameters...

4FGL J2350.6-3005
   Spectrum: PowerLaw
526    Prefactor:  7.850e+01  8.401e+01  1.000e-04  1.000e+04 ( 1.000e-14)
527        Index:  2.243e+00  5.622e-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:  4.369e-01  2.662e-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.353e+00  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.33
Ra Dec: 357.665 -30.087
Photon Index (Free Index): 2.24 +/- 0.56
Photon Flux (Free Index): 6.71e-08 +/- 6.04e-08
Energy Flux (Free Index): 2.79e-05 +/- 2.42e-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/158083/cmap_HighResolution_344304001_344563201_4FGL_J2350.6-3005_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='5.22e-08', energy_flux2='2.79e-05', photon_flux_error='4.09e-08', dlogl='7.98e-02', energy_flux='3.42e-05', photon_flux2='6.71e-08', job_status='DONE', time_completed='2021-09-30 07:16:58.291533', photon_index_error2='0.56', photon_index2='2.24', ts='3.19', fit_tolerance='1e-08', GAL='0.43', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='2.42e-05', EG='1.37', time_epoch_completed='1633011418.29', return_code='0', job_id='158083', GAL2='0.44', EG2='1.35', return_code2='0', energy_flux_error='2.68e-05', photon_flux_error2='6.04e-08', ts2='3.33', photon_index='2.02' WHERE bin_id='405' AND source_name='4FGL J2350.6-3005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 158083: <4FGL_J2350.6-3005_daily_bin405> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2350.6-3005_daily_bin405 357.665 -30.087 344304001 344563201 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 :                                   489.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            696 sec.

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

