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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin223
RA = 358.931, Dec = -33.8607
tmin = 297129601, tmax = 297388801
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='190621', job_status='RUN', time_executed='2021-09-30 08:58:56.349284', time_epoch_executed='1633017536.35' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='223'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190621

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190621/ft1_4FGL_J2355.7-3351_daily_bin223.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190621/ft2_4FGL_J2355.7-3351_daily_bin223.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190621/ft1_4FGL_J2355.7-3351_daily_bin223.fits outfile=/scratch/kocevski/190621/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin223.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=297129601.0 tmax=297388801.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.58
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/190621/ft2_4FGL_J2355.7-3351_daily_bin223.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/190621/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin223.fits evtable="EVENTS" outfile="/scratch/kocevski/190621/ft1_filtered_4FGL_J2355.7-3351_daily_bin223.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190621/ft1_filtered_4FGL_J2355.7-3351_daily_bin223.fits" evtable="EVENTS" scfile=/scratch/kocevski/190621/ft2_4FGL_J2355.7-3351_daily_bin223.fits sctable="SC_DATA" outfile=/scratch/kocevski/190621/ltcube_297129601_297388801_4FGL_J2355.7-3351_daily_bin223.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/190621/ft2_4FGL_J2355.7-3351_daily_bin223.fits
.....................!
real 12.09
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190621/ft1_filtered_4FGL_J2355.7-3351_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/190621/ft2_4FGL_J2355.7-3351_daily_bin223.fits sctable="SC_DATA" expcube=/scratch/kocevski/190621/ltcube_297129601_297388801_4FGL_J2355.7-3351_daily_bin223.fits outfile=/scratch/kocevski/190621/expmap_297129601_297388801_4FGL_J2355.7-3351_daily_bin223.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/190621/ltcube_297129601_297388801_4FGL_J2355.7-3351_daily_bin223.fits
.....................!
real 192.40
user 187.03
sys 5.00

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/190621/ft1_filtered_4FGL_J2355.7-3351_daily_bin223.fits scfile=/scratch/kocevski/190621/ft2_4FGL_J2355.7-3351_daily_bin223.fits outfile=/scratch/kocevski/190621/cmap_297129601_297388801_4FGL_J2355.7-3351_daily_bin223.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190621/ft1_filtered_4FGL_J2355.7-3351_daily_bin223.fits scfile=/scratch/kocevski/190621/ft2_4FGL_J2355.7-3351_daily_bin223.fits outfile=/scratch/kocevski/190621/cmap_HighResolution_297129601_297388801_4FGL_J2355.7-3351_daily_bin223.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/190621/ft1_filtered_4FGL_J2355.7-3351_daily_bin223.fits evtable="EVENTS" scfile=/scratch/kocevski/190621/ft2_4FGL_J2355.7-3351_daily_bin223.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/190621/Model_4FGL_J2355.7-3351_daily_bin223.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/190621/ft1_filtered_4FGL_J2355.7-3351_daily_bin223.fits.....................!
real 37.98
user 36.68
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4013       1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.903       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3717       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19264E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7444       1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.961       1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.122       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0703       1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.746       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4609       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77718       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=   4493.591     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2246 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.649       -.21467E-06** at limit **
   2  Prefactor     .10000E-03    2.5221        .13570E-07** at limit **
   3  Prefactor     .10000E-03    9.7680       -.11990E-06** at limit **
   4  Prefactor     7.4018        12.560        .84226E-07    .13924E-05
   5  Prefactor     52.905        39.706       -.55843E-06    .54321E-04
   6  Prefactor     8.3477        7.4071        .11445E-05   -.88609E-03
   7  Prefactor     .10005E-03    34.881       -.26677E-05** at limit **
   8  Prefactor     8.7397        12.966        .40982E-06    .75385E-04
   9  norm          .10000E-03    2.2255       -.57665E-08** at limit **
  10  norm          .10000E-03    6.9397        .76607E-08** at limit **
  11  Prefactor     .10000E-03    126.49        .10720E-06** at limit **
  12  Prefactor     .10000E-03    17.908       -.14240E-06** at limit **
  13  norm          11.966        6.3350       -.11667E-05   -.11018E-02
  14  Prefactor     45.101        44.234       -.14299E-05   -.98514E-04
  15  norm          1.0672        6.0007        .17928E-05   -.17375E-03
  16  Prefactor     56.744        61.582       -.14541E-06   -.88989E-05
  17  Prefactor     .10000E-03    30.689        .74659E-07** at limit **
  18  Prefactor     .10000E-03    3.3303        .14864E-07** at limit **
  19  Prefactor     .10000E-03    16.096        .16441E-06** at limit **
  20  Normalizat    1.4614        .22005        .42350E-06   -.94351E-05
  21  Prefactor     .77664        .23555       -.21678E-06    .28311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.40178
  Prefactor  = 52.9047
  Prefactor  = 8.34772
  Prefactor  = 0.000100054
  Prefactor  = 8.73966
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 11.9659
  Prefactor  = 45.1009
  norm       = 1.06722
  Prefactor  = 56.7444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.46135
  Prefactor  = 0.776643
 **********
 **   18 **HESSE 
 **********

 FCN=   4493.591     FROM HESSE     STATUS=OK           311 CALLS     2557 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.5644        .10392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.7753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4018        12.554        .14742E-03   -1.5164    
   5  Prefactor     52.905        40.399        .55143E-04   -1.4252    
   6  Prefactor     8.3477        8.7457        .69277E-03   -1.5130    
   7  Prefactor     .10005E-03    296.91        .70584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7397        12.976        .13555E-03   -1.5117    
   9  norm          .10000E-03    2.2277        .97671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.0152        .17242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    128.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.966        6.7181        .11583E-03   -1.5016    
  14  Prefactor     45.101        44.657        .59686E-04   -1.4364    
  15  norm          1.0672        5.8220        .29433E-03   -1.5501    
  16  Prefactor     56.744        61.598        .53253E-04   -1.4200    
  17  Prefactor     .10000E-03    30.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.3421        .11945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4614        .26533        .22392E-03   -.78870    
  21  Prefactor     .77664        .28209        .31897E-03   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57224e-09
Minuit parameter uncertainties:
  1  5.56635e-05
  2  1.92851e-06
  3  1.41823e-05
  4  12.5588
  5  40.4201
  6  8.74702
  7  0.00801249
  8  12.9805
  9  8.39682e-06
  10  3.27979e-06
  11  0.00140752
  12  2.07673e-05
  13  6.71848
  14  44.6906
  15  4.98582
  16  61.6673
  17  8.71559e-06
  18  8.70867e-07
  19  1.87174e-05
  20  0.265579
  21  0.282611
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  8.709e-07  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.766e-01  2.826e-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.461e+00  2.656e-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: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190621/likelihoodResults_297129601_297388801_4FGL_J2355.7-3351_daily_bin223.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) = 4493.59275392
delta logL = -0.00141409907337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4493.59133978
delta logL = 4.55374902231e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5690       1.0000          .0000       10.000    
     3 'Normalizat'    1.4614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77666       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=   4493.591     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      258 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.976        .12001E-01** at limit **
   2  Index         2.1781        5.3438        .50000        .78649E-07
   3  Normalizat    1.4614        .16533E-01    .22392E-03    .64917E-04
   4  Prefactor     .77664        .17878E-01    .31897E-03    .51894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17809
  Normalizat = 1.46135
  Prefactor  = 0.776643
 **********
 **   18 **HESSE 
 **********

 FCN=   4493.591     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    357.77        .12538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1781        6.0848        .50000       -.59968    
   3  Normalizat    1.4614        .60888E-01    .44783E-04   -.78870    
   4  Prefactor     .77664        .65837E-01    .12759E-04   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.29516e-10
Minuit parameter uncertainties:
  1  0.000417767
  2  1378.77
  3  0.0608915
  4  0.0658436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190621': 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) = 4493.59133843
delta logL = 1.39412986755e-06

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  4.178e-04  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.178e+00  1.379e+03  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.766e-01  6.584e-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.461e+00  6.089e-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/190621/cmap_HighResolution_297129601_297388801_4FGL_J2355.7-3351_daily_bin223.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-30 09:07:57.716085', job_id='190621', GAL2='0.78', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1633018077.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='223' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:07:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 190621: <4FGL_J2355.7-3351_daily_bin223> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin223> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 08:55:28 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:55:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 08:55:30 2021
Terminated at Thu Sep 30 09:07:58 2021
Results reported at Thu Sep 30 09:07:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin223 358.931 -33.8607 297129601 297388801 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 :                                   540.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            750 sec.

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

