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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1561
RA = 358.931, Dec = -33.8607
tmin = 643939201, tmax = 644198401
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='197552', job_status='RUN', time_executed='2021-09-30 09:24:54.535984', time_epoch_executed='1633019094.54' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197552

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197552/ft1_4FGL_J2355.7-3351_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197552/ft2_4FGL_J2355.7-3351_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197552/ft1_4FGL_J2355.7-3351_daily_bin1561.fits outfile=/scratch/kocevski/197552/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1561.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=643939201.0 tmax=644198401.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 4.43
user 4.18
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197552/ft2_4FGL_J2355.7-3351_daily_bin1561.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/197552/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1561.fits evtable="EVENTS" outfile="/scratch/kocevski/197552/ft1_filtered_4FGL_J2355.7-3351_daily_bin1561.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.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197552/ft1_filtered_4FGL_J2355.7-3351_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/197552/ft2_4FGL_J2355.7-3351_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/197552/ltcube_643939201_644198401_4FGL_J2355.7-3351_daily_bin1561.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/197552/ft2_4FGL_J2355.7-3351_daily_bin1561.fits
.....................!
real 11.67
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197552/ft1_filtered_4FGL_J2355.7-3351_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/197552/ft2_4FGL_J2355.7-3351_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/197552/ltcube_643939201_644198401_4FGL_J2355.7-3351_daily_bin1561.fits outfile=/scratch/kocevski/197552/expmap_643939201_644198401_4FGL_J2355.7-3351_daily_bin1561.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/197552/ltcube_643939201_644198401_4FGL_J2355.7-3351_daily_bin1561.fits
.....................!
real 192.40
user 187.07
sys 4.98

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/197552/ft1_filtered_4FGL_J2355.7-3351_daily_bin1561.fits scfile=/scratch/kocevski/197552/ft2_4FGL_J2355.7-3351_daily_bin1561.fits outfile=/scratch/kocevski/197552/cmap_643939201_644198401_4FGL_J2355.7-3351_daily_bin1561.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.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/197552/ft1_filtered_4FGL_J2355.7-3351_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/197552/ft2_4FGL_J2355.7-3351_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/197552/Model_4FGL_J2355.7-3351_daily_bin1561.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/197552/ft1_filtered_4FGL_J2355.7-3351_daily_bin1561.fits.....................!
real 48.01
user 46.69
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84100       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0852       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.099       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.100       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4160       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1634       1.0000         .10000E-03   10000.    
    10 'norm      '    10.952       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.716       1.0000         .10000E-03   10000.    
    13 'norm      '    .87416E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .24081E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5018       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .40227E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83993       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94656       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=   6567.763     FROM MIGRAD    STATUS=CONVERGED    811 CALLS     2600 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.023        .18142E-02** at limit **
   2  Prefactor     .10000E-03    1.5737        .19579E-03** at limit **
   3  Prefactor     .10000E-03    6.1140        .18142E-02** at limit **
   4  Prefactor     .84220        16.978        .50367E-03    .19450E-03
   5  Prefactor     7.0847        14.433        .15071E-03   -.53560E-05
   6  Prefactor     12.099        6.5598        .11517E-03   -.24481E-04
   7  Prefactor     29.103        30.271        .74269E-04   -.48984E-04
   8  Prefactor     3.4176        6.4642        .21887E-03    .23374E-04
   9  norm          3.1544        2.9545        .12614E-03   -.15412E-03
  10  norm          10.948        7.0112        .60532E-03   -.42878E-04
  11  Prefactor     .10000E-03    7.0822        .18142E-02** at limit **
  12  Prefactor     44.759        33.900        .59955E-04   -.44511E-03
  13  norm          .23782E-01    2.4296        .32452E-01    .98826E-03
  14  Prefactor     .10000E-03    109.46        .51517E-02** at limit **
  15  norm          .10000E-03    2.0268        .22008E-02** at limit **
  16  Prefactor     .10000E-03    18.499        .18142E-02** at limit **
  17  Prefactor     .10000E-03    20.561        .18142E-02** at limit **
  18  Prefactor     1.5061        3.2296        .20483E-03   -.40977E-03
  19  Prefactor     .10004E-03    29.449        .11438    ** at limit **
  20  Normalizat    .83994        .17009        .21464E-03   -.42258E-03
  21  Prefactor     .94644        .19217        .23581E-03   -.84933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.842204
  Prefactor  = 7.08472
  Prefactor  = 12.0994
  Prefactor  = 29.1032
  Prefactor  = 3.41764
  norm       = 3.15437
  norm       = 10.9483
  Prefactor  = 0.0001
  Prefactor  = 44.7589
  norm       = 0.0237817
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.50613
  Prefactor  = 0.000100043
  Normalizat = 0.839935
  Prefactor  = 0.946439
 **********
 **   18 **HESSE 
 **********

 FCN=   6567.763     FROM HESSE     STATUS=OK           315 CALLS     2915 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.5737        .39159E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .84220        16.969        .20147E-04   -1.5524    
   5  Prefactor     7.0847        14.433        .60282E-05   -1.5176    
   6  Prefactor     12.099        6.5599        .46067E-05   -1.5012    
   7  Prefactor     29.103        30.268        .29708E-05   -1.4628    
   8  Prefactor     3.4176        6.4636        .87548E-05   -1.5338    
   9  norm          3.1544        2.9417        .50456E-05   -1.5353    
  10  norm          10.948        7.0106        .24213E-04   -1.5046    
  11  Prefactor     .10000E-03    7.0826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     44.759        33.899        .11991E-04   -1.4369    
  13  norm          .23782E-01    2.1328        .35624E-01   -1.5677    
  14  Prefactor     .10000E-03    111.33        .10303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0325        .44015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.499        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.563        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5061        3.2289        .81934E-05   -1.5463    
  19  Prefactor     .10004E-03    27.910        .11878       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .83994        .17026        .42928E-04   -.98604    
  21  Prefactor     .94644        .19236        .47161E-04   -.94537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14098e-09
Minuit parameter uncertainties:
  1  3.02443e-05
  2  1.78479e-05
  3  1.36358e-05
  4  7.56276
  5  14.4399
  6  6.56025
  7  30.2835
  8  6.46491
  9  2.94182
  10  7.01116
  11  1.80649e-05
  12  33.9132
  13  0.449494
  14  0.000682097
  15  7.28431e-06
  16  0.000159982
  17  0.000244833
  18  3.22926
  19  0.00220327
  20  0.170367
  21  0.192503
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.506e+00  3.229e+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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.464e-01  1.925e-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:  8.399e-01  1.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/197552/likelihoodResults_643939201_644198401_4FGL_J2355.7-3351_daily_bin1561.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): 0
logL (Free Index) = 6567.74535813
delta logL = 0.0179256564679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6567.74349571
delta logL = 0.0197880770711

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7088       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3339       1.0000          .0000       10.000    
     3 'Normalizat'    .84196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94467       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=   6567.743     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      255 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7097        3.5133        .20971E-03    .17890E-05
   2  Index         2.3339        1.1798        .16868E-01    .13978E-05
   3  Normalizat    .84193        .16432        .21440E-03   -.42421E-06
   4  Prefactor     .94469        .19099        .23599E-03    .96350E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70969
  Index      = 2.33386
  Normalizat = 0.841934
  Prefactor  = 0.944694
 **********
 **   18 **HESSE 
 **********

 FCN=   6567.743     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .32E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7097        3.4837        .83884E-05   -1.5446    
   2  Index         2.3339        1.1707        .67472E-03   -.56241    
   3  Normalizat    .84193        .16451        .85759E-05   -.98532    
   4  Prefactor     .94469        .19119        .94395E-05   -.94596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15316e-15
Minuit parameter uncertainties:
  1  3.48408
  2  1.18614
  3  0.164607
  4  0.191326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197552': 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) = 6567.74349566
delta logL = 0.0197881196482

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  9.447e-01  1.913e-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:  8.419e-01  1.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/197552/cmap_HighResolution_643939201_644198401_4FGL_J2355.7-3351_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-09-30 09:36:10.757830', job_id='197552', GAL2='0.94', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1633019770.76', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.98e-02', ts2='0.34', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1561' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:36:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 197552: <4FGL_J2355.7-3351_daily_bin1561> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1561 358.931 -33.8607 643939201 644198401 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 :                                   670.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

