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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1059
RA = 358.931, Dec = -33.8607
tmin = 513820801, tmax = 514080001
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='194883', job_status='RUN', time_executed='2021-09-30 09:12:10.990377', time_epoch_executed='1633018330.99' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1059'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194883

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194883/ft1_4FGL_J2355.7-3351_daily_bin1059.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194883/ft2_4FGL_J2355.7-3351_daily_bin1059.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194883/ft1_4FGL_J2355.7-3351_daily_bin1059.fits outfile=/scratch/kocevski/194883/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1059.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=513820801.0 tmax=514080001.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.82
user 3.62
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194883/ft2_4FGL_J2355.7-3351_daily_bin1059.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/194883/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1059.fits evtable="EVENTS" outfile="/scratch/kocevski/194883/ft1_filtered_4FGL_J2355.7-3351_daily_bin1059.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/194883/ft1_filtered_4FGL_J2355.7-3351_daily_bin1059.fits" evtable="EVENTS" scfile=/scratch/kocevski/194883/ft2_4FGL_J2355.7-3351_daily_bin1059.fits sctable="SC_DATA" outfile=/scratch/kocevski/194883/ltcube_513820801_514080001_4FGL_J2355.7-3351_daily_bin1059.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/194883/ft2_4FGL_J2355.7-3351_daily_bin1059.fits
.....................!
real 11.64
user 11.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194883/ft1_filtered_4FGL_J2355.7-3351_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/194883/ft2_4FGL_J2355.7-3351_daily_bin1059.fits sctable="SC_DATA" expcube=/scratch/kocevski/194883/ltcube_513820801_514080001_4FGL_J2355.7-3351_daily_bin1059.fits outfile=/scratch/kocevski/194883/expmap_513820801_514080001_4FGL_J2355.7-3351_daily_bin1059.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/194883/ltcube_513820801_514080001_4FGL_J2355.7-3351_daily_bin1059.fits
.....................!
real 190.19
user 185.42
sys 4.36

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/194883/ft1_filtered_4FGL_J2355.7-3351_daily_bin1059.fits scfile=/scratch/kocevski/194883/ft2_4FGL_J2355.7-3351_daily_bin1059.fits outfile=/scratch/kocevski/194883/cmap_513820801_514080001_4FGL_J2355.7-3351_daily_bin1059.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194883/ft1_filtered_4FGL_J2355.7-3351_daily_bin1059.fits scfile=/scratch/kocevski/194883/ft2_4FGL_J2355.7-3351_daily_bin1059.fits outfile=/scratch/kocevski/194883/cmap_HighResolution_513820801_514080001_4FGL_J2355.7-3351_daily_bin1059.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194883/ft1_filtered_4FGL_J2355.7-3351_daily_bin1059.fits evtable="EVENTS" scfile=/scratch/kocevski/194883/ft2_4FGL_J2355.7-3351_daily_bin1059.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194883/Model_4FGL_J2355.7-3351_daily_bin1059.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/194883/ft1_filtered_4FGL_J2355.7-3351_daily_bin1059.fits.....................!
real 34.51
user 33.26
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10582E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9757       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.551       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.571       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.053       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .35162E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .78930       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.211       1.0000         .10000E-03   10000.    
    13 'norm      '    10.523       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    198.19       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.777       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    192.04       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1874       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .59433       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=   3783.821     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2581 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    82.021       -.11294E-05** at limit **
   2  Prefactor     1.9752        6.2241        .84747E-05   -.85635E-04
   3  Prefactor     .10000E-03    110.46        .22705E-05** at limit **
   4  Prefactor     13.550        19.727       -.27770E-06    .75991E-05
   5  Prefactor     .10000E-03    8.2784       -.72454E-07** at limit **
   6  Prefactor     .10000E-03    1.5686       -.49788E-07** at limit **
   7  Prefactor     23.569        22.372       -.65939E-07    .11425E-04
   8  Prefactor     11.053        9.7152       -.56874E-06    .15936E-04
   9  norm          .10000E-03    4.3425       -.93704E-07** at limit **
  10  norm          .14170E-03    8.3200        .41796E-05** at limit **
  11  Prefactor     .58417        82.590       -.64456E-05    .15764E-03
  12  Prefactor     14.364        88.472       -.24617E-04   -.11428E-03
  13  norm          10.546        9.6137        .48803E-06    .98608E-03
  14  Prefactor     .10000E-03    17.196       -.83580E-08** at limit **
  15  norm          2.0407        5.9358        .16298E-06    .27770E-03
  16  Prefactor     198.25        153.54       -.23683E-05    .43522E-05
  17  Prefactor     18.829        63.106        .17079E-07   -.11954E-05
  18  Prefactor     .10000E-03    2.7979        .32246E-07** at limit **
  19  Prefactor     192.06        87.546       -.25074E-05   -.33035E-04
  20  Normalizat    1.1877        .23182       -.33664E-05   -.32150E-03
  21  Prefactor     .59398        .23242        .43261E-05   -.14603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.9752
  Prefactor  = 0.000100004
  Prefactor  = 13.5495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.5691
  Prefactor  = 11.053
  norm       = 0.0001
  norm       = 0.000141703
  Prefactor  = 0.584171
  Prefactor  = 14.3642
  norm       = 10.5459
  Prefactor  = 0.0001
  norm       = 2.04068
  Prefactor  = 198.246
  Prefactor  = 18.8292
  Prefactor  = 0.0001
  Prefactor  = 192.064
  Normalizat = 1.1877
  Prefactor  = 0.593979
 **********
 **   18 **HESSE 
 **********

 FCN=   3783.821     FROM HESSE     STATUS=OK           333 CALLS     2914 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    82.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9752        6.2828        .12386E-02   -1.5427    
   3  Prefactor     .10000E-03    113.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.550        19.799        .10881E-03   -1.4972    
   5  Prefactor     .10000E-03    8.2799        .17287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5694        .75236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.569        22.367        .82505E-04   -1.4737    
   8  Prefactor     11.053        9.7046        .12050E-03   -1.5043    
   9  norm          .10000E-03    4.3495        .12504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .14170E-03    17.537        .52375E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .58417        146.21        .10917       -1.5555    
  12  Prefactor     14.364        91.277        .10625E-03   -1.4950    
  13  norm          10.546        10.573        .11892E-03   -1.5058    
  14  Prefactor     .10000E-03    17.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0407        5.8211        .21701E-03   -1.5422    
  16  Prefactor     198.25        153.34        .14349E-03   -1.2883    
  17  Prefactor     18.829        63.043        .92429E-04   -1.4840    
  18  Prefactor     .10000E-03    2.8034        .10045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     192.06        88.068        .29146E-04   -1.2927    
  20  Normalizat    1.1877        .26709        .21410E-03   -.86984    
  21  Prefactor     .59398        .26751        .31128E-03   -1.0784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02156e-09
Minuit parameter uncertainties:
  1  0.000333773
  2  6.28487
  3  0.00127422
  4  19.809
  5  7.79386e-06
  6  2.15296e-06
  7  22.3754
  8  9.70596
  9  5.89544e-06
  10  0.0541022
  11  18.5278
  12  72.5818
  13  10.5747
  14  5.96571e-06
  15  5.82269
  16  153.647
  17  63.2677
  18  3.24751e-06
  19  88.1287
  20  0.267394
  21  0.268088
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  3.248e-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:  5.940e-01  2.681e-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.188e+00  2.674e-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.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194883/likelihoodResults_513820801_514080001_4FGL_J2355.7-3351_daily_bin1059.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) = 3783.82218876
delta logL = -0.00165889750269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3783.82052987
delta logL = -1.12963789434e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5788       1.0000          .0000       10.000    
     3 'Normalizat'    1.1877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59400       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=   3783.821     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      247 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    373.56        .10045E-02** at limit **
   2  Index         2.5152        5.2189        .50000       -.95326E-07
   3  Normalizat    1.1877        .73710E-01    .21410E-03    .37170E-05
   4  Prefactor     .59398        .78396E-01    .31128E-03    .48575E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.51523
  Normalizat = 1.1877
  Prefactor  = 0.593978
 **********
 **   18 **HESSE 
 **********

 FCN=   3783.821     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0589        .20090E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5152        5.1725        .50000       -.52008    
   3  Normalizat    1.1877        .24569        .85640E-05   -.86984    
   4  Prefactor     .59398        .26127        .12451E-04   -1.0784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17953e-11
Minuit parameter uncertainties:
  1  4.75019e-07
  2  254.122
  3  0.245932
  4  0.261807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194883': 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) = 3783.82052984
delta logL = 2.13235580304e-08

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  4.750e-07  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.515e+00  2.541e+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:  5.940e-01  2.618e-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.188e+00  2.459e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/194883/cmap_HighResolution_513820801_514080001_4FGL_J2355.7-3351_daily_bin1059.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', job_status='DONE', photon_flux_upper_limit='8.07e-08', time_completed='2021-09-30 09:20:44.962283', job_id='194883', GAL2='0.59', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1633018844.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='2.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1059' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:20:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 194883: <4FGL_J2355.7-3351_daily_bin1059> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1059> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 09:10:51 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:10:53 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:10:53 2021
Terminated at Thu Sep 30 09:20:45 2021
Results reported at Thu Sep 30 09:20:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1059 358.931 -33.8607 513820801 514080001 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 :                                   512.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            594 sec.

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

