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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1621
RA = 358.931, Dec = -33.8607
tmin = 659491201, tmax = 659750401
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='505642', job_status='RUN', time_executed='2021-12-08 09:49:41.272520', time_epoch_executed='1638985781.27' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505642

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505642/ft1_4FGL_J2355.7-3351_daily_bin1621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505642/ft2_4FGL_J2355.7-3351_daily_bin1621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505642/ft1_4FGL_J2355.7-3351_daily_bin1621.fits outfile=/scratch/kocevski/505642/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1621.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=659491201.0 tmax=659750401.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 2.56
user 2.35
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505642/ft1_filtered_4FGL_J2355.7-3351_daily_bin1621.fits" evtable="EVENTS" scfile=/scratch/kocevski/505642/ft2_4FGL_J2355.7-3351_daily_bin1621.fits sctable="SC_DATA" outfile=/scratch/kocevski/505642/ltcube_659491201_659750401_4FGL_J2355.7-3351_daily_bin1621.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/505642/ft2_4FGL_J2355.7-3351_daily_bin1621.fits
.....................!
real 14.59
user 14.14
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505642/ft1_filtered_4FGL_J2355.7-3351_daily_bin1621.fits evtable="EVENTS" scfile=/scratch/kocevski/505642/ft2_4FGL_J2355.7-3351_daily_bin1621.fits sctable="SC_DATA" expcube=/scratch/kocevski/505642/ltcube_659491201_659750401_4FGL_J2355.7-3351_daily_bin1621.fits outfile=/scratch/kocevski/505642/expmap_659491201_659750401_4FGL_J2355.7-3351_daily_bin1621.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/505642/ltcube_659491201_659750401_4FGL_J2355.7-3351_daily_bin1621.fits
.....................!
real 191.14
user 185.51
sys 5.18

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/505642/ft1_filtered_4FGL_J2355.7-3351_daily_bin1621.fits scfile=/scratch/kocevski/505642/ft2_4FGL_J2355.7-3351_daily_bin1621.fits outfile=/scratch/kocevski/505642/cmap_659491201_659750401_4FGL_J2355.7-3351_daily_bin1621.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505642/ft1_filtered_4FGL_J2355.7-3351_daily_bin1621.fits scfile=/scratch/kocevski/505642/ft2_4FGL_J2355.7-3351_daily_bin1621.fits outfile=/scratch/kocevski/505642/cmap_HighResolution_659491201_659750401_4FGL_J2355.7-3351_daily_bin1621.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505642/ft1_filtered_4FGL_J2355.7-3351_daily_bin1621.fits evtable="EVENTS" scfile=/scratch/kocevski/505642/ft2_4FGL_J2355.7-3351_daily_bin1621.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505642/Model_4FGL_J2355.7-3351_daily_bin1621.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/505642/ft1_filtered_4FGL_J2355.7-3351_daily_bin1621.fits.....................!
real 44.91
user 43.57
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3771       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.947       1.0000         .10000E-03   10000.    
     7 'Prefactor '    104.74       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62904E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .30047E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.667       1.0000         .10000E-03   10000.    
    11 'Prefactor '    76.460       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .33374E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3329       1.0000         .10000E-03   10000.    
    15 'norm      '    .45743       1.0000         .10000E-03   10000.    
    16 'Prefactor '    81.393       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.793       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1588       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81688       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=   5666.906     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2673 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.451        .19133E-06** at limit **
   2  Prefactor     1.3770        2.1118        .57551E-07    .18663E-04
   3  Prefactor     .10000E-03    34.516       -.38403E-07** at limit **
   4  Prefactor     .10000E-03    8.0639        .11708E-07** at limit **
   5  Prefactor     4.9549        31.432       -.50081E-06   -.13550E-04
   6  Prefactor     17.943        9.1801       -.10057E-06    .16312E-03
   7  Prefactor     104.76        42.319        .12220E-05    .19227E-03
   8  Prefactor     .10013E-03    7.1370       -.18856E-06** at limit **
   9  norm          .10000E-03    5.3141       -.12192E-05** at limit **
  10  norm          11.667        8.0956        .13677E-07    .42053E-04
  11  Prefactor     76.459        39.616        .23746E-05    .38993E-03
  12  Prefactor     .10000E-03    48.814       -.10870E-06** at limit **
  13  norm          .10000E-03    2.9233       -.15585E-05** at limit **
  14  Prefactor     8.3327        23.897       -.25500E-06   -.10202E-04
  15  norm          .45652        4.8059        .18410E-05   -.25051E-03
  16  Prefactor     81.365        98.556       -.30087E-05   -.30850E-04
  17  Prefactor     .10000E-03    15.174       -.24100E-06** at limit **
  18  Prefactor     .10000E-03    4.9151       -.13613E-06** at limit **
  19  Prefactor     23.798        32.822       -.18125E-05   -.47278E-04
  20  Normalizat    1.1590        .17912       -.11891E-07    .25744E-03
  21  Prefactor     .81668        .19404        .90085E-07    .19442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.37696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.95492
  Prefactor  = 17.9431
  Prefactor  = 104.764
  Prefactor  = 0.000100125
  norm       = 0.000100004
  norm       = 11.6668
  Prefactor  = 76.4588
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 8.33267
  norm       = 0.456521
  Prefactor  = 81.3645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7981
  Normalizat = 1.15896
  Prefactor  = 0.816679
 **********
 **   18 **HESSE 
 **********

 FCN=   5666.906     FROM HESSE     STATUS=OK           327 CALLS     3000 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3770        2.0740        .13086E-03   -1.5473    
   3  Prefactor     .10000E-03    35.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9549        31.284        .18068E-03   -1.5263    
   6  Prefactor     17.943        9.1561        .94543E-04   -1.4861    
   7  Prefactor     104.76        42.848        .19646E-03   -1.3657    
   8  Prefactor     .10013E-03    15.724        .57269E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.609        .31263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.667        8.0966        .11728E-03   -1.5025    
  11  Prefactor     76.459        38.755        .45922E-04   -1.3957    
  12  Prefactor     .10000E-03    48.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.9133        .22095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3327        23.897        .13888E-03   -1.5131    
  15  norm          .45652        4.4407        .29472E-03   -1.5573    
  16  Prefactor     81.365        99.161        .44520E-04   -1.3901    
  17  Prefactor     .10000E-03    15.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0369        .32554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.798        33.016        .82120E-04   -1.4732    
  20  Normalizat    1.1590        .21005        .22255E-03   -.87881    
  21  Prefactor     .81668        .22627        .28727E-03   -.99116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28797e-09
Minuit parameter uncertainties:
  1  2.68034e-06
  2  2.07409
  3  3.84274e-05
  4  3.28699e-06
  5  24.9194
  6  9.15684
  7  42.8608
  8  0.00280583
  9  0.000406362
  10  8.09734
  11  38.768
  12  4.56411e-06
  13  0.000327781
  14  23.9239
  15  2.84762
  16  99.3633
  17  8.51877e-06
  18  2.26199e-05
  19  33.0415
  20  0.2102
  21  0.226532
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  2.262e-05  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:  8.167e-01  2.265e-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.159e+00  2.102e-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: 7.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/505642/likelihoodResults_659491201_659750401_4FGL_J2355.7-3351_daily_bin1621.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) = 5666.90730089
delta logL = -0.000947612756136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5666.90635422
delta logL = -9.47220542002e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5472       1.0000          .0000       10.000    
     3 'Normalizat'    1.1588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81690       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=   5666.906     FROM MIGRAD    STATUS=FAILED       103 CALLS      259 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    415.74        .33928E-02** at limit **
   2  Index         1.8891        8.3905        .50000        .74251E-06
   3  Normalizat    1.1590        .27766E-01    .22255E-03    .20050E-02
   4  Prefactor     .81668        .30760E-01    .28727E-03    .15174E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5666.906     FROM SIMPLEX   STATUS=UNCHANGED    153 CALLS      412 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    415.74        .51399E-03** at limit **
   2  Index         1.8891        8.3905        .81460E-05    .74251E-06
   3  Normalizat    1.1590        .27766E-01    .20012E-06    .20050E-02
   4  Prefactor     .81668        .30760E-01    .14999E-06    .15174E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5666.906     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      446 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1550.4        .67857E-03** at limit **
   2  Index         1.8924        7.1558        .50000        .12180E-05
   3  Normalizat    1.1590        .66443E-01    .44510E-04    .20016E-02
   4  Prefactor     .81668        .73604E-01    .57454E-04    .15142E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 1.89238
  Normalizat = 1.15896
  Prefactor  = 0.816681
 **********
 **   18 **HESSE 
 **********

 FCN=   5666.906     FROM HESSE     STATUS=OK            29 CALLS      475 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    14.850        .13571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8924        8.2186        .50000       -.67069    
   3  Normalizat    1.1590        .20270        .89020E-05   -.87881    
   4  Prefactor     .81668        .22442        .11491E-04   -.99116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80369e-09
Minuit parameter uncertainties:
  1  0.000772089
  2  86.366
  3  0.202837
  4  0.224669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505642': 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) = 5666.90634781
delta logL = 5.46195860807e-06

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  7.721e-04  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  1.892e+00  8.637e+01  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:  8.167e-01  2.247e-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.159e+00  2.028e-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/505642/cmap_HighResolution_659491201_659750401_4FGL_J2355.7-3351_daily_bin1621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.26e-08', time_completed='2021-12-08 10:00:21.852141', job_id='505642', GAL2='0.82', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1638986421.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='5.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1621' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 10:00:21 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 505642: <4FGL_J2355.7-3351_daily_bin1621> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1621> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 09:45:38 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:48:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:48:02 2021
Terminated at Wed Dec  8 10:00:22 2021
Results reported at Wed Dec  8 10:00:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1621 358.931 -33.8607 659491201 659750401 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 :                                   639.54 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             307.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            884 sec.

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

