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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1642
RA = 358.931, Dec = -33.8607
tmin = 664934401, tmax = 665193601
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='445225', job_status='RUN', time_executed='2022-01-30 00:38:18.876062', time_epoch_executed='1643531898.88' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445225/ft1_4FGL_J2355.7-3351_daily_bin1642.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445225/ft2_4FGL_J2355.7-3351_daily_bin1642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445225/ft1_4FGL_J2355.7-3351_daily_bin1642.fits outfile=/scratch/kocevski/445225/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1642.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=664934401.0 tmax=665193601.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.62
user 3.41
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/445225/ft2_4FGL_J2355.7-3351_daily_bin1642.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/445225/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1642.fits evtable="EVENTS" outfile="/scratch/kocevski/445225/ft1_filtered_4FGL_J2355.7-3351_daily_bin1642.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/445225/ft1_filtered_4FGL_J2355.7-3351_daily_bin1642.fits" evtable="EVENTS" scfile=/scratch/kocevski/445225/ft2_4FGL_J2355.7-3351_daily_bin1642.fits sctable="SC_DATA" outfile=/scratch/kocevski/445225/ltcube_664934401_665193601_4FGL_J2355.7-3351_daily_bin1642.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/445225/ft2_4FGL_J2355.7-3351_daily_bin1642.fits
.....................!
real 11.83
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445225/ft1_filtered_4FGL_J2355.7-3351_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445225/ft2_4FGL_J2355.7-3351_daily_bin1642.fits sctable="SC_DATA" expcube=/scratch/kocevski/445225/ltcube_664934401_665193601_4FGL_J2355.7-3351_daily_bin1642.fits outfile=/scratch/kocevski/445225/expmap_664934401_665193601_4FGL_J2355.7-3351_daily_bin1642.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/445225/ltcube_664934401_665193601_4FGL_J2355.7-3351_daily_bin1642.fits
.....................!
real 190.76
user 184.96
sys 5.48

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/445225/ft1_filtered_4FGL_J2355.7-3351_daily_bin1642.fits scfile=/scratch/kocevski/445225/ft2_4FGL_J2355.7-3351_daily_bin1642.fits outfile=/scratch/kocevski/445225/cmap_664934401_665193601_4FGL_J2355.7-3351_daily_bin1642.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.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445225/ft1_filtered_4FGL_J2355.7-3351_daily_bin1642.fits evtable="EVENTS" scfile=/scratch/kocevski/445225/ft2_4FGL_J2355.7-3351_daily_bin1642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445225/Model_4FGL_J2355.7-3351_daily_bin1642.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/445225/ft1_filtered_4FGL_J2355.7-3351_daily_bin1642.fits.....................!
real 33.81
user 32.53
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.286       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7463       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2823       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51730       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.771       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9000       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.380       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28826       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3865       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .24136       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11279E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    96.370       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12663E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0637       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .77606       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=   3748.855     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     2600 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.272        70.829        .42289E-04   -.37556E-04
   2  Prefactor     3.7456        4.3504        .65647E-03   -.56268E-03
   3  Prefactor     .10000E-03    23.932        .18142E-02** at limit **
   4  Prefactor     6.2809        13.503        .16015E-03   -.67793E-05
   5  Prefactor     11.556        36.261        .11801E-03   -.90169E-04
   6  Prefactor     .46073        84.513        .23890E-02   -.90102E-04
   7  Prefactor     13.857        49.202        .10794E-03   -.14804E-03
   8  Prefactor     5.8990        9.3725        .16533E-03   -.10177E-04
   9  norm          .10000E-03    2.2788        .90187E-03** at limit **
  10  norm          .10000E-03    6.2144        .14820E-02** at limit **
  11  Prefactor     19.371        28.871        .90980E-04    .16869E-05
  12  Prefactor     .95478E-01    104.09        .14876        .19375E-04
  13  norm          3.3865        3.5070        .11047E-03    .72039E-05
  14  Prefactor     .10000E-03    84.525        .18142E-02** at limit **
  15  norm          .24138        6.4315        .20383E-02    .36725E-03
  16  Prefactor     .10000E-03    157.09        .18142E-02** at limit **
  17  Prefactor     96.337        59.943        .20472E-03   -.64006E-04
  18  Prefactor     .10002E-03    23.303        .30383E-02** at limit **
  19  Prefactor     .10000E-03    25.248        .18142E-02** at limit **
  20  Normalizat    1.0637        .25250        .21407E-03   -.31834E-03
  21  Prefactor     .77601        .26665        .27090E-03   -.18916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.272
  Prefactor  = 3.74562
  Prefactor  = 0.000100001
  Prefactor  = 6.28093
  Prefactor  = 11.5565
  Prefactor  = 0.460732
  Prefactor  = 13.8565
  Prefactor  = 5.89899
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.3715
  Prefactor  = 0.0954783
  norm       = 3.38648
  Prefactor  = 0.0001
  norm       = 0.241381
  Prefactor  = 0.000100004
  Prefactor  = 96.3367
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Normalizat = 1.06374
  Prefactor  = 0.776009
 **********
 **   18 **HESSE 
 **********

 FCN=   3748.855     FROM HESSE     STATUS=OK           309 CALLS     2909 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.272        70.831        .84578E-05   -1.3805    
   2  Prefactor     3.7456        4.3495        .26259E-04   -1.5321    
   3  Prefactor     .10000E-03    23.935        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2809        13.504        .64060E-05   -1.5207    
   5  Prefactor     11.556        34.324        .47205E-05   -1.5028    
   6  Prefactor     .46073        61.073        .95558E-04   -1.5572    
   7  Prefactor     13.857        42.840        .43174E-05   -1.4963    
   8  Prefactor     5.8990        9.3699        .66130E-05   -1.5222    
   9  norm          .10000E-03    2.2788        .18037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.2162        .29640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.371        28.853        .36392E-05   -1.4827    
  12  Prefactor     .95478E-01    109.97        .14418       -1.5646    
  13  norm          3.3865        3.5054        .44188E-05   -1.5340    
  14  Prefactor     .10000E-03    84.545        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .24138        6.4247        .81533E-04   -1.5610    
  16  Prefactor     .10000E-03    157.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     96.337        59.941        .40945E-04   -1.3742    
  18  Prefactor     .10002E-03    23.573        .60766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0637        .25221        .42814E-04   -.90925    
  21  Prefactor     .77601        .26644        .10836E-04   -1.0062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4889e-09
Minuit parameter uncertainties:
  1  70.8977
  2  4.34986
  3  0.000274701
  4  13.5102
  5  34.3826
  6  10.619
  7  42.9357
  8  9.37224
  9  4.05704e-06
  10  1.71486e-05
  11  28.8736
  12  6.48923
  13  3.50562
  14  0.000174147
  15  2.49041
  16  0.00162814
  17  59.9789
  18  0.00136157
  19  7.17449e-05
  20  0.252495
  21  0.266884
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  1.362e-03  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.760e-01  2.669e-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.064e+00  2.525e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445225/likelihoodResults_664934401_665193601_4FGL_J2355.7-3351_daily_bin1642.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) = 3748.85556214
delta logL = -0.000203035159302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3748.85535831
delta logL = 7.88488705439e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63497E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7144       1.0000          .0000       10.000    
     3 'Normalizat'    1.0641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77559       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.

 FCN=   3748.776     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      294 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81414        80.572        .10517E-01    .59273E-03
   2  Index         3.7410        6.6988        .22847        .46469E-04
   3  Normalizat    1.0366        .40273E-01    .39696E-01    .26059E-03
   4  Prefactor     .79362        .44495E-01    .43399E-01    .12473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.814137
  Index      = 3.74099
  Normalizat = 1.03663
  Prefactor  = 0.793624
 **********
 **   18 **HESSE 
 **********

 FCN=   3748.776     FROM HESSE     STATUS=OK            31 CALLS      325 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81414        4.6982        .14088E-03   -1.5528    
   2  Index         3.7410        2.6104        .13239E-01   -.25454    
   3  Normalizat    1.0366        .24842        .21651E-03   -.91813    
   4  Prefactor     .79362        .26706        .26816E-03   -.99964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70098e-10
Minuit parameter uncertainties:
  1  3.91174
  2  2.75725
  3  0.248702
  4  0.267497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445225': 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) = 3748.77634376
delta logL = 0.0790153481248

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  8.141e-01  3.912e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  3.741e+00  2.757e+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:  7.936e-01  2.675e-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.037e+00  2.487e-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/445225/cmap_HighResolution_664934401_665193601_4FGL_J2355.7-3351_daily_bin1642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2022-01-30 00:46:45.628770', job_id='445225', GAL2='0.79', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1643532405.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='7.90e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1642' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan 30 00:46:45 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 445225: <4FGL_J2355.7-3351_daily_bin1642> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1642> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jan 30 00:36:05 2022
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan 30 00:36:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan 30 00:36:07 2022
Terminated at Sun Jan 30 00:46:48 2022
Results reported at Sun Jan 30 00:46:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1642 358.931 -33.8607 664934401 665193601 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 :                                   509.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            643 sec.

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

