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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin311
RA = 358.931, Dec = -33.8607
tmin = 319939201, tmax = 320198401
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='191695', job_status='RUN', time_executed='2021-09-30 09:00:26.358466', time_epoch_executed='1633017626.36' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='311'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191695/ft1_4FGL_J2355.7-3351_daily_bin311.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191695/ft2_4FGL_J2355.7-3351_daily_bin311.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191695/ft1_4FGL_J2355.7-3351_daily_bin311.fits outfile=/scratch/kocevski/191695/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin311.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=319939201.0 tmax=320198401.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.49
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191695/ft2_4FGL_J2355.7-3351_daily_bin311.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/191695/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin311.fits evtable="EVENTS" outfile="/scratch/kocevski/191695/ft1_filtered_4FGL_J2355.7-3351_daily_bin311.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191695/ft1_filtered_4FGL_J2355.7-3351_daily_bin311.fits" evtable="EVENTS" scfile=/scratch/kocevski/191695/ft2_4FGL_J2355.7-3351_daily_bin311.fits sctable="SC_DATA" outfile=/scratch/kocevski/191695/ltcube_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.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/191695/ft2_4FGL_J2355.7-3351_daily_bin311.fits
.....................!
real 12.04
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191695/ft1_filtered_4FGL_J2355.7-3351_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/191695/ft2_4FGL_J2355.7-3351_daily_bin311.fits sctable="SC_DATA" expcube=/scratch/kocevski/191695/ltcube_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.fits outfile=/scratch/kocevski/191695/expmap_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.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/191695/ltcube_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.fits
.....................!
real 193.99
user 187.40
sys 5.57

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/191695/ft1_filtered_4FGL_J2355.7-3351_daily_bin311.fits scfile=/scratch/kocevski/191695/ft2_4FGL_J2355.7-3351_daily_bin311.fits outfile=/scratch/kocevski/191695/cmap_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.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.52
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191695/ft1_filtered_4FGL_J2355.7-3351_daily_bin311.fits scfile=/scratch/kocevski/191695/ft2_4FGL_J2355.7-3351_daily_bin311.fits outfile=/scratch/kocevski/191695/cmap_HighResolution_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191695/ft1_filtered_4FGL_J2355.7-3351_daily_bin311.fits evtable="EVENTS" scfile=/scratch/kocevski/191695/ft2_4FGL_J2355.7-3351_daily_bin311.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191695/Model_4FGL_J2355.7-3351_daily_bin311.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/191695/ft1_filtered_4FGL_J2355.7-3351_daily_bin311.fits.....................!
real 36.70
user 35.31
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191695/ft1_filtered_4FGL_J2355.7-3351_daily_bin311.fits', '/scratch/kocevski/191695/ft2_4FGL_J2355.7-3351_daily_bin311.fits', expMap='/scratch/kocevski/191695/expmap_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.fits', expCube='/scratch/kocevski/191695/ltcube_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191695/Model_4FGL_J2355.7-3351_daily_bin311.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/191695/ft1_filtered_4FGL_J2355.7-3351_daily_bin311.fits
Spacecraft file(s): /scratch/kocevski/191695/ft2_4FGL_J2355.7-3351_daily_bin311.fits
Exposure map: /scratch/kocevski/191695/expmap_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.fits
Exposure cube: /scratch/kocevski/191695/ltcube_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191695/Model_4FGL_J2355.7-3351_daily_bin311.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) = 4308.49631075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15667E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.517       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2278       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10841E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.032       1.0000         .10000E-03   10000.    
     9 'norm      '    .87694       1.0000         .10000E-03   10000.    
    10 'norm      '    14.981       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2562       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.002       1.0000         .10000E-03   10000.    
    15 'norm      '    .10851E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    154.31       1.0000         .10000E-03   10000.    
    17 'Prefactor '    94.323       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1017       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .74773       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=   4308.494     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2750 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    261.24       -.97582E-06** at limit **
   2  Prefactor     .10000E-03    2.1329        .21147E-07** at limit **
   3  Prefactor     18.520        19.392        .58587E-07   -.19465E-04
   4  Prefactor     7.2310        11.991        .18225E-06   -.12201E-05
   5  Prefactor     .10000E-03    17.843       -.16767E-06** at limit **
   6  Prefactor     8.3026        6.8385        .13694E-05    .20072E-03
   7  Prefactor     .10000E-03    40.905       -.11093E-05** at limit **
   8  Prefactor     20.037        14.303       -.14256E-07   -.53988E-05
   9  norm          .84984        3.8238        .57273E-06    .15269E-03
  10  norm          14.980        8.7087        .36520E-07   -.11450E-04
  11  Prefactor     .10000E-03    19.483       -.47267E-06** at limit **
  12  Prefactor     .10000E-03    34.434        .21747E-07** at limit **
  13  norm          2.2867        4.7223        .36666E-06    .36120E-04
  14  Prefactor     14.013        34.006        .22777E-06   -.60843E-05
  15  norm          .10045E-03    3.3071        .85618E-06** at limit **
  16  Prefactor     154.35        113.42        .71225E-06    .65865E-04
  17  Prefactor     94.350        71.930        .69349E-06    .75326E-04
  18  Prefactor     .10000E-03    2.2603        .53136E-07** at limit **
  19  Prefactor     .10000E-03    21.092        .49903E-06** at limit **
  20  Normalizat    1.1013        .19333       -.79770E-06   -.11401E-03
  21  Prefactor     .74794        .20673        .28964E-06   -.11137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.5198
  Prefactor  = 7.231
  Prefactor  = 0.0001
  Prefactor  = 8.3026
  Prefactor  = 0.000100001
  Prefactor  = 20.0371
  norm       = 0.849837
  norm       = 14.9804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.28669
  Prefactor  = 14.0126
  norm       = 0.000100452
  Prefactor  = 154.347
  Prefactor  = 94.3496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10127
  Prefactor  = 0.747943
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.494     FROM HESSE     STATUS=OK           315 CALLS     3065 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    263.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1561        .93511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.520        19.385        .93075E-04   -1.4847    
   4  Prefactor     7.2310        11.986        .14920E-03   -1.5170    
   5  Prefactor     .10000E-03    17.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3026        6.7844        .69555E-03   -1.5132    
   7  Prefactor     .10000E-03    41.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.037        14.339        .89488E-04   -1.4812    
   9  norm          .84984        6.9599        .21730E-03   -1.5524    
  10  norm          14.980        8.7102        .10348E-03   -1.4934    
  11  Prefactor     .10000E-03    19.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2867        6.3488        .16630E-03   -1.5406    
  14  Prefactor     14.013        34.025        .10704E-03   -1.4959    
  15  norm          .10045E-03    44.870        .20816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     154.35        113.99        .16226E-03   -1.3217    
  17  Prefactor     94.350        72.212        .41382E-04   -1.3762    
  18  Prefactor     .10000E-03    2.2714        .96363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1013        .22590        .21371E-03   -.89711    
  21  Prefactor     .74794        .24005        .28031E-03   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64719e-09
Minuit parameter uncertainties:
  1  0.000492943
  2  1.33609e-06
  3  19.3916
  4  11.9903
  5  1.45916e-05
  6  6.78498
  7  0.000424445
  8  14.3418
  9  4.86456
  10  8.71092
  11  0.00018886
  12  1.38036e-05
  13  6.35071
  14  34.0724
  15  0.00900977
  16  114.153
  17  72.2788
  18  1.03863e-06
  19  0.000142094
  20  0.226102
  21  0.240388
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  1.039e-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:  7.479e-01  2.404e-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.101e+00  2.261e-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: 6.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191695/likelihoodResults_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.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) = 4308.49577684
delta logL = -0.00207267508449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4308.49370424
delta logL = -8.00973793957e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5602       1.0000          .0000       10.000    
     3 'Normalizat'    1.1013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74798       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=   4308.494     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.350        .97892E-02** at limit **
   2  Index         2.0560        8.9621        .50000        .74440E-06
   3  Normalizat    1.1013        .13292E-01    .21371E-03    .54226E-03
   4  Prefactor     .74794        .14698E-01    .28031E-03    .42115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05603
  Normalizat = 1.10127
  Prefactor  = 0.747945
 **********
 **   18 **HESSE 
 **********

 FCN=   4308.494     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    189.58        .10908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0560        7.2469        .50000       -.62957    
   3  Normalizat    1.1013        .40634E-01    .42742E-04   -.89711    
   4  Prefactor     .74794        .44932E-01    .56061E-04   -1.0168    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.19356e-09
Minuit parameter uncertainties:
  1  0.000257571
  2  697.035
  3  0.0406355
  4  0.0449345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191695': 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) = 4308.49369931
delta logL = 4.84712472826e-06

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  2.576e-04  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.056e+00  6.970e+02  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:  7.479e-01  4.493e-02  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.101e+00  4.064e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/191695/cmap_HighResolution_319939201_320198401_4FGL_J2355.7-3351_daily_bin311.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2021-09-30 09:09:45.675818', job_id='191695', GAL2='0.75', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1633018185.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='311' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:09:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 191695: <4FGL_J2355.7-3351_daily_bin311> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin311> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep 30 09:00:11 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:00:12 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:00:12 2021
Terminated at Thu Sep 30 09:09:46 2021
Results reported at Thu Sep 30 09:09:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin311 358.931 -33.8607 319939201 320198401 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 :                                   556.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            575 sec.

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

