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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1508
RA = 358.931, Dec = -33.8607
tmin = 630201601, tmax = 630460801
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='197468', job_status='RUN', time_executed='2021-09-30 09:21:31.283029', time_epoch_executed='1633018891.28' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197468

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197468/ft1_4FGL_J2355.7-3351_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197468/ft2_4FGL_J2355.7-3351_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197468/ft1_4FGL_J2355.7-3351_daily_bin1508.fits outfile=/scratch/kocevski/197468/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1508.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=630201601.0 tmax=630460801.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.71
user 3.45
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/197468/ft2_4FGL_J2355.7-3351_daily_bin1508.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197468/ft2_4FGL_J2355.7-3351_daily_bin1508.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/197468/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1508.fits evtable="EVENTS" outfile="/scratch/kocevski/197468/ft1_filtered_4FGL_J2355.7-3351_daily_bin1508.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197468/ft1_filtered_4FGL_J2355.7-3351_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/197468/ft2_4FGL_J2355.7-3351_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/197468/ltcube_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.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/197468/ft2_4FGL_J2355.7-3351_daily_bin1508.fits
.....................!
real 12.28
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197468/ft1_filtered_4FGL_J2355.7-3351_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/197468/ft2_4FGL_J2355.7-3351_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/197468/ltcube_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.fits outfile=/scratch/kocevski/197468/expmap_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.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/197468/ltcube_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.fits
.....................!
real 190.27
user 185.17
sys 4.71

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 J2355.7-3351 @ 358.931 -33.8607

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/197468/ft1_filtered_4FGL_J2355.7-3351_daily_bin1508.fits scfile=/scratch/kocevski/197468/ft2_4FGL_J2355.7-3351_daily_bin1508.fits outfile=/scratch/kocevski/197468/cmap_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.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=358.931 yref=-33.8607 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197468/ft1_filtered_4FGL_J2355.7-3351_daily_bin1508.fits scfile=/scratch/kocevski/197468/ft2_4FGL_J2355.7-3351_daily_bin1508.fits outfile=/scratch/kocevski/197468/cmap_HighResolution_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.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=358.931 yref=-33.8607 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/197468/ft1_filtered_4FGL_J2355.7-3351_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/197468/ft2_4FGL_J2355.7-3351_daily_bin1508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/197468/Model_4FGL_J2355.7-3351_daily_bin1508.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/197468/ft1_filtered_4FGL_J2355.7-3351_daily_bin1508.fits.....................!
real 51.94
user 50.60
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/197468/ft1_filtered_4FGL_J2355.7-3351_daily_bin1508.fits', '/scratch/kocevski/197468/ft2_4FGL_J2355.7-3351_daily_bin1508.fits', expMap='/scratch/kocevski/197468/expmap_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.fits', expCube='/scratch/kocevski/197468/ltcube_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/197468/Model_4FGL_J2355.7-3351_daily_bin1508.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2355.7-3351'

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.680e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/197468/ft1_filtered_4FGL_J2355.7-3351_daily_bin1508.fits
Spacecraft file(s): /scratch/kocevski/197468/ft2_4FGL_J2355.7-3351_daily_bin1508.fits
Exposure map: /scratch/kocevski/197468/expmap_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.fits
Exposure cube: /scratch/kocevski/197468/ltcube_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/197468/Model_4FGL_J2355.7-3351_daily_bin1508.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) = 7430.38515673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49120       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.635       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.961       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2697       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2267       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.9311       1.0000         .10000E-03   10000.    
    10 'norm      '    10.882       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13087E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .77961       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0400       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=   7430.384     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2832 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.365        .72600E-07** at limit **
   2  Prefactor     .49132        1.8586        .12996E-05   -.95213E-04
   3  Prefactor     .10000E-03    4.6576       -.70199E-07** at limit **
   4  Prefactor     10.636        8.3423       -.24409E-07   -.23970E-04
   5  Prefactor     35.909        33.048        .33693E-06   -.64173E-04
   6  Prefactor     3.2868        7.5160       -.95726E-06   -.17830E-04
   7  Prefactor     7.1789        22.572        .31787E-05    .11377E-05
   8  Prefactor     .10000E-03    1.7860       -.98974E-08** at limit **
   9  norm          5.9235        4.2680        .17636E-06   -.93684E-04
  10  norm          10.882        5.8328        .21241E-07   -.16910E-04
  11  Prefactor     .10000E-03    65.848        .23422E-05** at limit **
  12  Prefactor     .10000E-03    8.2404       -.19951E-08** at limit **
  13  norm          .10000E-03    2.3322        .89094E-07** at limit **
  14  Prefactor     .10000E-03    11.325       -.45339E-06** at limit **
  15  norm          .10000E-03    1.2970        .42712E-07** at limit **
  16  Prefactor     .10000E-03    40.597       -.92234E-06** at limit **
  17  Prefactor     .10000E-03    11.007        .43672E-06** at limit **
  18  Prefactor     .10000E-03    3.4245        .30250E-07** at limit **
  19  Prefactor     .10000E-03    20.329        .22050E-07** at limit **
  20  Normalizat    .77954        .12976       -.13978E-06   -.11034E-03
  21  Prefactor     1.0400        .15248       -.10653E-06   -.91581E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.491321
  Prefactor  = 0.0001
  Prefactor  = 10.6358
  Prefactor  = 35.9086
  Prefactor  = 3.28677
  Prefactor  = 7.17889
  Prefactor  = 0.0001
  norm       = 5.92346
  norm       = 10.8819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.779537
  Prefactor  = 1.04004
 **********
 **   18 **HESSE 
 **********

 FCN=   7430.384     FROM HESSE     STATUS=OK           313 CALLS     3145 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .49132        1.8454        .21625E-03   -1.5568    
   3  Prefactor     .10000E-03    4.6632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.636        8.3447        .12286E-03   -1.5056    
   5  Prefactor     35.909        32.535        .66829E-04   -1.4509    
   6  Prefactor     3.2868        7.2719        .20444E-03   -1.5345    
   7  Prefactor     7.1789        22.282        .14921E-03   -1.5172    
   8  Prefactor     .10000E-03    1.7997        .11249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.9235        4.2366        .14602E-03   -1.5221    
  10  norm          10.882        5.8332        .12145E-03   -1.5048    
  11  Prefactor     .10000E-03    67.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.3889        .25592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3157        .95823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5292        .31112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .77954        .15475        .21825E-03   -1.0083    
  21  Prefactor     1.0400        .18226        .22664E-03   -.91407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67957e-11
Minuit parameter uncertainties:
  1  1.03872e-05
  2  1.84558
  3  8.53568e-06
  4  8.34563
  5  32.5515
  6  7.27387
  7  22.3075
  8  5.36595e-07
  9  4.23685
  10  5.8335
  11  1.2397e-05
  12  2.902e-07
  13  5.51656e-06
  14  1.61281e-05
  15  5.32211e-07
  16  6.31845e-05
  17  1.39695e-05
  18  3.84482e-06
  19  2.01207e-05
  20  0.154839
  21  0.182369
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  3.845e-06  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.580e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.040e+00  1.824e-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:  7.795e-01  1.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 358.931 -33.861
Photon Flux Upper Limit: 5.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197468/likelihoodResults_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.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) = 7430.38570529
delta logL = -0.00135233830406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7430.38435351
delta logL = -5.51559423911e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10666E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6078       1.0000          .0000       10.000    
     3 'Normalizat'    .77958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0400       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7430.341     FROM MIGRAD    STATUS=FAILED       184 CALLS      336 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11283        4.1223        .32142E-02    .49381E-02
   2  Index         4.5185        1.6130        .50000        .27003E-04
   3  Normalizat    .76485        .11663E-01    .21825E-03   -.65581E-04
   4  Prefactor     1.0510        .13877E-01    .22664E-03    .98317E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7430.341     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      409 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11283        4.1223        .13878E-03    .49381E-02
   2  Index         4.5185        1.6130        .38799E-02    .27003E-04
   3  Normalizat    .76485        .11663E-01    .79214E-04   -.65581E-04
   4  Prefactor     1.0510        .13877E-01    .50576E-04    .98317E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7430.341     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      443 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11283        5.2990        .91809E-04    .62038E-04
   2  Index         4.5185        7.2458        .74624E-02    .89808E-05
   3  Normalizat    .76485        .16192        .87301E-05   -.10418E-03
   4  Prefactor     1.0510        .18628        .90656E-05   -.12791E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.112825
  Index      = 4.51852
  Normalizat = 0.764848
  Prefactor  = 1.05101
 **********
 **   18 **HESSE 
 **********

 FCN=   7430.341     FROM HESSE     STATUS=OK            25 CALLS      468 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11283        1.2568        .36724E-05   -1.5641    
   2  Index         4.5185        3.4566        .29850E-03   -.96445E-01
   3  Normalizat    .76485        .16080        .17460E-05   -1.0139    
   4  Prefactor     1.0510        .18597        .18131E-05   -.91048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31001e-11
Minuit parameter uncertainties:
  1  0.75282
  2  3.82107
  3  0.160904
  4  0.186088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197468': 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) = 7430.34122213
delta logL = 0.043130823974

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.128e-01  7.528e-01  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  4.519e+00  3.821e+00  0.000e+00  1.000e+01 (-1.000e+00)
552        Scale:  5.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.051e+00  1.861e-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:  7.648e-01  1.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 358.931 -33.861

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/197468/cmap_HighResolution_630201601_630460801_4FGL_J2355.7-3351_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.03e-08', time_completed='2021-09-30 09:34:06.000943', job_id='197468', GAL2='1.05', fit_tolerance='1e-08', EG2='0.76', EG='0.78', time_epoch_completed='1633019646.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='4.31e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1508' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:34:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 197468: <4FGL_J2355.7-3351_daily_bin1508> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1508> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 09:20:36 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:20:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 09:20:38 2021
Terminated at Thu Sep 30 09:34:06 2021
Results reported at Thu Sep 30 09:34:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1508 358.931 -33.8607 630201601 630460801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2355.7-3351 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            810 sec.

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

