/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 160 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1099
RA = 358.931, Dec = -33.8607
tmin = 524188801, tmax = 524448001
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='195920', job_status='RUN', time_executed='2021-09-30 09:18:08.410531', time_epoch_executed='1633018688.41' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/195920

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/195920/ft1_4FGL_J2355.7-3351_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/195920/ft2_4FGL_J2355.7-3351_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/195920/ft1_4FGL_J2355.7-3351_daily_bin1099.fits outfile=/scratch/kocevski/195920/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1099.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=524188801.0 tmax=524448001.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.43
user 3.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/195920/ft2_4FGL_J2355.7-3351_daily_bin1099.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/195920/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1099.fits evtable="EVENTS" outfile="/scratch/kocevski/195920/ft1_filtered_4FGL_J2355.7-3351_daily_bin1099.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/195920/ft1_filtered_4FGL_J2355.7-3351_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/195920/ft2_4FGL_J2355.7-3351_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/195920/ltcube_524188801_524448001_4FGL_J2355.7-3351_daily_bin1099.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/195920/ft2_4FGL_J2355.7-3351_daily_bin1099.fits
.....................!
real 12.42
user 12.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/195920/ft1_filtered_4FGL_J2355.7-3351_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/195920/ft2_4FGL_J2355.7-3351_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/195920/ltcube_524188801_524448001_4FGL_J2355.7-3351_daily_bin1099.fits outfile=/scratch/kocevski/195920/expmap_524188801_524448001_4FGL_J2355.7-3351_daily_bin1099.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/195920/ltcube_524188801_524448001_4FGL_J2355.7-3351_daily_bin1099.fits
.....................!
real 190.60
user 185.57
sys 4.65

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/195920/ft1_filtered_4FGL_J2355.7-3351_daily_bin1099.fits scfile=/scratch/kocevski/195920/ft2_4FGL_J2355.7-3351_daily_bin1099.fits outfile=/scratch/kocevski/195920/cmap_524188801_524448001_4FGL_J2355.7-3351_daily_bin1099.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/195920/ft1_filtered_4FGL_J2355.7-3351_daily_bin1099.fits scfile=/scratch/kocevski/195920/ft2_4FGL_J2355.7-3351_daily_bin1099.fits outfile=/scratch/kocevski/195920/cmap_HighResolution_524188801_524448001_4FGL_J2355.7-3351_daily_bin1099.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/195920/ft1_filtered_4FGL_J2355.7-3351_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/195920/ft2_4FGL_J2355.7-3351_daily_bin1099.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/195920/Model_4FGL_J2355.7-3351_daily_bin1099.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/195920/ft1_filtered_4FGL_J2355.7-3351_daily_bin1099.fits....................!
real 41.69
user 40.41
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45272E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.953       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.870       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34945       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2107       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8853       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.058       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.359       1.0000         .10000E-03   10000.    
    15 'norm      '    4.7116       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.045       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9271       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98501       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78548       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5263.079     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     2213 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16619E-03    2008.6        .35345E-04** at limit **
   2  Prefactor     .10000E-03    1.9161       -.41971E-06** at limit **
   3  Prefactor     15.953        14.010        .34564E-06    .74903E-02
   4  Prefactor     13.869        1.1684        .55539E-08   -.11986E-02
   5  Prefactor     .10000E-03    15.279        .12167E-05** at limit **
   6  Prefactor     .36058        18.231        .52362E-06    .50384E-03
   7  Prefactor     3.2097        16.044        .18060E-05   -.35022E-02
   8  Prefactor     3.8854        6.3335        .12763E-05    .30915E-03
   9  norm          .10000E-03    1.4273       -.60937E-06** at limit **
  10  norm          .10000E-03    7.0703        .37496E-07** at limit **
  11  Prefactor     23.055        3.2212        .16435E-06   -.22752E-02
  12  Prefactor     .10001E-03    66.111       -.10174E-05** at limit **
  13  norm          .10000E-03    1.2309        .23980E-07** at limit **
  14  Prefactor     39.297        33.576        .66678E-06   -.43642E-02
  15  norm          4.7115        3.4166        .84260E-07    .49409E-04
  16  Prefactor     .10000E-03    28.082       -.36935E-06** at limit **
  17  Prefactor     25.044        5.4818        .14047E-06   -.26411E-02
  18  Prefactor     5.9275        5.3834       -.97279E-07   -.16799E-03
  19  Prefactor     .10000E-03    8.1061        .76968E-06** at limit **
  20  Normalizat    .98494        .19637       -.14761E-06   -.10028E-03
  21  Prefactor     .78555        .22197       -.92096E-06   -.10098E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000166189
  Prefactor  = 0.0001
  Prefactor  = 15.9532
  Prefactor  = 13.8689
  Prefactor  = 0.0001
  Prefactor  = 0.360583
  Prefactor  = 3.20965
  Prefactor  = 3.88536
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.0545
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 39.297
  norm       = 4.71146
  Prefactor  = 0.0001
  Prefactor  = 25.0444
  Prefactor  = 5.92748
  Prefactor  = 0.0001
  Normalizat = 0.984943
  Prefactor  = 0.785554
 **********
 **   18 **HESSE 
 **********

 FCN=   5263.079     FROM HESSE     STATUS=OK           373 CALLS     2586 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16619E-03    48.563        .13426       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.8453        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.953        15.296        .25069E-02   -1.4909    
   4  Prefactor     13.869        11.998        .26888E-02   -1.4963    
   5  Prefactor     .10000E-03    15.250        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .36058        4.3042        .72437E-01   -1.5588    
   7  Prefactor     3.2097        51.554        .56526E-02   -1.5350    
   8  Prefactor     3.8854        6.3571        .51176E-02   -1.5314    
   9  norm          .10000E-03    1.4271        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.9734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.055        22.527        .20854E-02   -1.4747    
  12  Prefactor     .10001E-03    65.734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.297        36.192        .15972E-02   -1.4453    
  15  norm          4.7115        3.4521        .46346E-02   -1.5274    
  16  Prefactor     .10000E-03    28.085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.044        29.814        .20011E-02   -1.4707    
  18  Prefactor     5.9275        5.3913        .41235E-02   -1.5221    
  19  Prefactor     .10000E-03    8.1055        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98494        .16353        .45979E-01   -.93537    
  21  Prefactor     .78555        .18440        .43528E-01   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70199e-07
Minuit parameter uncertainties:
  1  0.113482
  2  1.25842e-05
  3  15.2996
  4  12.0004
  5  0.000102151
  6  2.49148
  7  25.7528
  8  6.35823
  9  1.61013e-05
  10  9.16035e-07
  11  22.5354
  12  0.00117206
  13  4.1617e-07
  14  36.2118
  15  3.45221
  16  7.38302e-05
  17  29.8321
  18  5.39171
  19  4.68846e-05
  20  0.163617
  21  0.18454
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  5.927e+00  5.392e+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:  7.856e-01  1.845e-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:  9.849e-01  1.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.75
Ra Dec: 358.931 -33.861
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 3.53e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 9.44e-06 +/- 8.59e-06

TS (Fixed Index): 1.75
Ra Dec: 358.931 -33.861
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/195920/likelihoodResults_524188801_524448001_4FGL_J2355.7-3351_daily_bin1099.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) = 5263.02532087
delta logL = 0.0536280826127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5263.02304788
delta logL = 0.0559010674842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6738       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2792       1.0000          .0000       10.000    
     3 'Normalizat'    .99770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77413       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5263.023     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      290 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6882        6.2372        .77664E-03   -.18932E-03
   2  Index         2.2817        .83036        .98786E-02   -.29030E-04
   3  Normalizat    .99763        .19554        .20190E-03   -.93188E-03
   4  Prefactor     .77408        .22309        .26066E-03   -.64828E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.6882
  Index      = 2.2817
  Normalizat = 0.997634
  Prefactor  = 0.774082
 **********
 **   18 **HESSE 
 **********

 FCN=   5263.023     FROM HESSE     STATUS=OK            23 CALLS      313 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6882        6.1942        .31066E-04   -1.5191    
   2  Index         2.2817        .82427        .39514E-03   -.57479    
   3  Normalizat    .99763        .19568        .40380E-04   -.93110    
   4  Prefactor     .77408        .22322        .52131E-04   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06029e-10
Minuit parameter uncertainties:
  1  6.19476
  2  0.829665
  3  0.195824
  4  0.223478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/195920': 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) = 5263.02303956
delta logL = 0.0559093883285

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  6.688e+00  6.195e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.282e+00  8.297e-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:  7.741e-01  2.235e-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:  9.976e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 358.931 -33.861
Photon Index (Free Index): 2.28 +/- 0.83
Photon Flux (Free Index): 2.91e-08 +/- 3.39e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.26e-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/195920/cmap_HighResolution_524188801_524448001_4FGL_J2355.7-3351_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', comment='SUCCESS', photon_flux='3.53e-08', energy_flux2='1.13e-05', photon_flux_error='3.21e-08', dlogl='5.59e-02', energy_flux='9.44e-06', photon_flux2='2.91e-08', job_status='DONE', time_completed='2021-09-30 09:28:01.336465', photon_index_error2='0.83', photon_index2='2.28', ts='1.75', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.26e-05', EG='0.98', time_epoch_completed='1633019281.34', return_code='0', job_id='195920', GAL2='0.77', EG2='1.00', return_code2='0', energy_flux_error='8.59e-06', photon_flux_error2='3.39e-08', ts2='1.85', photon_index='2.58' WHERE bin_id='1099' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:28:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 195920: <4FGL_J2355.7-3351_daily_bin1099> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1099> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 09:15:17 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:15:19 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:19 2021
Terminated at Thu Sep 30 09:28:02 2021
Results reported at Thu Sep 30 09:28:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1099 358.931 -33.8607 524188801 524448001 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 :                                   579.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            765 sec.

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

