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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1077
RA = 358.931, Dec = -33.8607
tmin = 518486401, tmax = 518745601
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='195888', job_status='RUN', time_executed='2021-09-30 09:18:28.614950', time_epoch_executed='1633018708.61' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195888

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195888/ft1_4FGL_J2355.7-3351_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195888/ft2_4FGL_J2355.7-3351_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195888/ft1_4FGL_J2355.7-3351_daily_bin1077.fits outfile=/scratch/kocevski/195888/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1077.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=518486401.0 tmax=518745601.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 6.83
user 6.55
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/195888/ft1_filtered_4FGL_J2355.7-3351_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/195888/ft2_4FGL_J2355.7-3351_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/195888/ltcube_518486401_518745601_4FGL_J2355.7-3351_daily_bin1077.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/195888/ft2_4FGL_J2355.7-3351_daily_bin1077.fits
.....................!
real 14.12
user 13.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195888/ft1_filtered_4FGL_J2355.7-3351_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/195888/ft2_4FGL_J2355.7-3351_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/195888/ltcube_518486401_518745601_4FGL_J2355.7-3351_daily_bin1077.fits outfile=/scratch/kocevski/195888/expmap_518486401_518745601_4FGL_J2355.7-3351_daily_bin1077.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/195888/ltcube_518486401_518745601_4FGL_J2355.7-3351_daily_bin1077.fits
.....................!
real 193.07
user 187.74
sys 4.99

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/195888/ft1_filtered_4FGL_J2355.7-3351_daily_bin1077.fits scfile=/scratch/kocevski/195888/ft2_4FGL_J2355.7-3351_daily_bin1077.fits outfile=/scratch/kocevski/195888/cmap_518486401_518745601_4FGL_J2355.7-3351_daily_bin1077.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=358.931 yref=-33.8607 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195888/ft1_filtered_4FGL_J2355.7-3351_daily_bin1077.fits scfile=/scratch/kocevski/195888/ft2_4FGL_J2355.7-3351_daily_bin1077.fits outfile=/scratch/kocevski/195888/cmap_HighResolution_518486401_518745601_4FGL_J2355.7-3351_daily_bin1077.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=358.931 yref=-33.8607 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.738       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .43870       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8333       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8718       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.769       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    92.257       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.097       1.0000         .10000E-03   10000.    
    13 'norm      '    .17326E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11045E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    98.013       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2359       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.672       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.261       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .68662       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95570       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=   2436.022     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2282 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     81.741        65.782        .94088E-07    .96099E-05
   2  Prefactor     .44022        8.0371       -.54102E-06    .26191E-04
   3  Prefactor     .10000E-03    107.93        .16978E-06** at limit **
   4  Prefactor     1.8313        25.185        .10325E-04   -.10003E-03
   5  Prefactor     .10000E-03    16.444        .71833E-07** at limit **
   6  Prefactor     .10000E-03    5.7743        .12803E-06** at limit **
   7  Prefactor     2.8757        129.46        .44736E-06    .24276E-05
   8  Prefactor     22.772        19.083       -.27271E-07   -.15399E-05
   9  norm          .10000E-03    3.3436       -.45090E-07** at limit **
  10  norm          19.965        17.605        .24935E-06    .23731E-05
  11  Prefactor     92.268        61.337        .59878E-05    .12530E-04
  12  Prefactor     33.286        65.764        .40350E-07    .29855E-04
  13  norm          .10004E-03    8.1187       -.25730E-05** at limit **
  14  Prefactor     .10000E-03    56.584       -.10184E-05** at limit **
  15  norm          .10001E-03    7.0670       -.68931E-06** at limit **
  16  Prefactor     97.626        141.16       -.93872E-06   -.20972E-03
  17  Prefactor     3.4033        225.78       -.14821E-05   -.25302E-04
  18  Prefactor     10.672        10.685        .48591E-07   -.11416E-03
  19  Prefactor     42.234        66.282       -.46493E-07   -.37851E-04
  20  Normalizat    .68688        .25860        .13414E-05   -.86149E-04
  21  Prefactor     .95543        .26397       -.16170E-05    .50598E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 81.7413
  Prefactor  = 0.440221
  Prefactor  = 0.0001
  Prefactor  = 1.83132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.87575
  Prefactor  = 22.7722
  norm       = 0.0001
  norm       = 19.9646
  Prefactor  = 92.2677
  Prefactor  = 33.2864
  norm       = 0.000100039
  Prefactor  = 0.0001
  norm       = 0.000100014
  Prefactor  = 97.6261
  Prefactor  = 3.4033
  Prefactor  = 10.6721
  Prefactor  = 42.2344
  Normalizat = 0.68688
  Prefactor  = 0.955425
 **********
 **   18 **HESSE 
 **********

 FCN=   2436.022     FROM HESSE     STATUS=OK           319 CALLS     2601 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     81.741        65.793        .44426E-04   -1.3897    
   2  Prefactor     .44022        15.351        .24068E-02   -1.5575    
   3  Prefactor     .10000E-03    108.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8313        25.881        .15410E-02   -1.5437    
   5  Prefactor     .10000E-03    16.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.8371        .11555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8757        128.77        .23986E-03   -1.5369    
   8  Prefactor     22.772        19.066        .83945E-04   -1.4753    
   9  norm          .10000E-03    3.3449        .88142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.965        17.592        .89626E-04   -1.4814    
  11  Prefactor     92.268        63.094        .41839E-04   -1.3784    
  12  Prefactor     33.286        65.792        .69652E-04   -1.4553    
  13  norm          .10004E-03    37.768        .23420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    56.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    20.424        .23542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     97.626        145.80        .20302E-03   -1.3729    
  17  Prefactor     3.4033        227.74        .22518E-03   -1.5339    
  18  Prefactor     10.672        10.687        .12264E-03   -1.5054    
  19  Prefactor     42.234        65.032        .61665E-04   -1.4407    
  20  Normalizat    .68688        .29755        .24582E-03   -1.0441    
  21  Prefactor     .95543        .30492        .23729E-03   -.94230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9328e-09
Minuit parameter uncertainties:
  1  65.852
  2  5.19999
  3  0.000176265
  4  13.7759
  5  4.47463e-06
  6  6.26328e-06
  7  38.5744
  8  19.0706
  9  2.04998e-06
  10  17.5966
  11  63.1396
  12  65.9363
  13  0.00242769
  14  0.000149309
  15  0.00108216
  16  146.342
  17  55.9019
  18  10.6886
  19  65.1411
  20  0.29825
  21  0.305467
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.067e+01  1.069e+01  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.554e-01  3.055e-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:  6.869e-01  2.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 358.931 -33.861
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 6.36e-08 +/- 6.36e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.70e-05

TS (Fixed Index): 1.52
Ra Dec: 358.931 -33.861
Photon Flux Upper Limit: 2.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.60e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/195888/likelihoodResults_518486401_518745601_4FGL_J2355.7-3351_daily_bin1077.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) = 2435.79971277
delta logL = 0.222737688023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2435.74032877
delta logL = 0.282121684852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.865       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0794       1.0000          .0000       10.000    
     3 'Normalizat'    .70812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93109       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=   2435.740     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      206 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.864        12.203       -.30575E-05    .96321E-03
   2  Index         2.0791        .48321        .81119E-05    .36916E-03
   3  Normalizat    .70832        .23064       -.27904E-06   -.45504E-04
   4  Prefactor     .93095        .26015        .86825E-06   -.47579E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.864
  Index      = 2.07909
  Normalizat = 0.708317
  Prefactor  = 0.930953
 **********
 **   18 **HESSE 
 **********

 FCN=   2435.740     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.864        12.935        .10388E-03   -1.4937    
   2  Index         2.0791        .57543        .62574E-02   -.62387    
   3  Normalizat    .70832        .26614        .24222E-03   -1.0357    
   4  Prefactor     .93095        .29996        .23971E-03   -.95068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59489e-09
Minuit parameter uncertainties:
  1  12.937
  2  0.57738
  3  0.266628
  4  0.300498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195888': 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) = 2435.74032833
delta logL = 0.282122124702

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.486e+01  1.294e+01  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.079e+00  5.774e-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:  9.310e-01  3.005e-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:  7.083e-01  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 358.931 -33.861
Photon Index (Free Index): 2.08 +/- 0.58
Photon Flux (Free Index): 5.36e-08 +/- 5.17e-08
Energy Flux (Free Index): 3.08e-05 +/- 3.77e-05

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/195888/cmap_HighResolution_518486401_518745601_4FGL_J2355.7-3351_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.60e-02', comment='SUCCESS', photon_flux='6.36e-08', energy_flux2='3.08e-05', photon_flux_error='6.36e-08', dlogl='2.82e-01', energy_flux='1.70e-05', photon_flux2='5.36e-08', job_status='DONE', time_completed='2021-09-30 09:26:41.502118', photon_index_error2='0.58', photon_index2='2.08', ts='1.52', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.05e-07', energy_flux_error2='3.77e-05', EG='0.69', time_epoch_completed='1633019201.5', return_code='0', job_id='195888', GAL2='0.93', EG2='0.71', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='5.17e-08', ts2='2.09', photon_index='2.58' WHERE bin_id='1077' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:26:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 195888: <4FGL_J2355.7-3351_daily_bin1077> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1077> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 09:15:14 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:15:16 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:15:16 2021
Terminated at Thu Sep 30 09:26:42 2021
Results reported at Thu Sep 30 09:26:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1077 358.931 -33.8607 518486401 518745601 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 :                                   455.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            688 sec.

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

