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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1439
RA = 358.931, Dec = -33.8607
tmin = 612316801, tmax = 612576001
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='197354', job_status='RUN', time_executed='2021-09-30 09:21:04.892251', time_epoch_executed='1633018864.89' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197354

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197354/ft1_4FGL_J2355.7-3351_daily_bin1439.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197354/ft2_4FGL_J2355.7-3351_daily_bin1439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197354/ft1_4FGL_J2355.7-3351_daily_bin1439.fits outfile=/scratch/kocevski/197354/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1439.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=612316801.0 tmax=612576001.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.30
user 3.08
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197354/ft2_4FGL_J2355.7-3351_daily_bin1439.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/197354/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1439.fits evtable="EVENTS" outfile="/scratch/kocevski/197354/ft1_filtered_4FGL_J2355.7-3351_daily_bin1439.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/197354/ft1_filtered_4FGL_J2355.7-3351_daily_bin1439.fits" evtable="EVENTS" scfile=/scratch/kocevski/197354/ft2_4FGL_J2355.7-3351_daily_bin1439.fits sctable="SC_DATA" outfile=/scratch/kocevski/197354/ltcube_612316801_612576001_4FGL_J2355.7-3351_daily_bin1439.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/197354/ft2_4FGL_J2355.7-3351_daily_bin1439.fits
.....................!
real 12.33
user 11.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197354/ft1_filtered_4FGL_J2355.7-3351_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/197354/ft2_4FGL_J2355.7-3351_daily_bin1439.fits sctable="SC_DATA" expcube=/scratch/kocevski/197354/ltcube_612316801_612576001_4FGL_J2355.7-3351_daily_bin1439.fits outfile=/scratch/kocevski/197354/expmap_612316801_612576001_4FGL_J2355.7-3351_daily_bin1439.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/197354/ltcube_612316801_612576001_4FGL_J2355.7-3351_daily_bin1439.fits
.....................!
real 191.12
user 186.20
sys 4.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/197354/ft1_filtered_4FGL_J2355.7-3351_daily_bin1439.fits scfile=/scratch/kocevski/197354/ft2_4FGL_J2355.7-3351_daily_bin1439.fits outfile=/scratch/kocevski/197354/cmap_612316801_612576001_4FGL_J2355.7-3351_daily_bin1439.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6656       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13527E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0490       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.677       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26878E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5410       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1371       1.0000         .10000E-03   10000.    
    15 'norm      '    .11209E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    55.900       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.134       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87420       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84579       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7762.143     FROM MIGRAD    STATUS=FAILED       811 CALLS     2970 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9746        .18142E-02** at limit **
   2  Prefactor     4.6658        3.0382        .11367E-03    .31084E-03
   3  Prefactor     .10000E-03    55.862        .36285E-03** at limit **
   4  Prefactor     .10000E-03    26.917        .31506E-02** at limit **
   5  Prefactor     1.0893        52.928        .52192E-02    .12415E-02
   6  Prefactor     .10000E-03    1.6555        .10955E-02** at limit **
   7  Prefactor     11.670        16.042        .11723E-03   -.24147E-04
   8  Prefactor     .10000E-03    4.4249        .17908E-02** at limit **
   9  norm          .10000E-03    1.1270        .91213E-03** at limit **
  10  norm          2.1037        3.2329        .19178E-03    .26972E-04
  11  Prefactor     .10000E-03    75.779        .36285E-03** at limit **
  12  Prefactor     .10000E-03    15.576        .10657    ** at limit **
  13  norm          2.5412        2.3928        .12793E-03    .17996E-03
  14  Prefactor     9.1431        22.006        .66295E-03    .22002E-04
  15  norm          .10001E-03    7.9698        .18818E-02** at limit **
  16  Prefactor     55.886        55.798        .53652E-04   -.13053E-04
  17  Prefactor     .10000E-03    11.790        .18142E-02** at limit **
  18  Prefactor     .10000E-03    1.4574        .10340E-02** at limit **
  19  Prefactor     24.139        32.724        .81538E-04    .33742E-04
  20  Normalizat    .87410        .14734        .20136E-03    .22861E-03
  21  Prefactor     .84586        .16533        .23630E-03    .12552E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7762.143     FROM SIMPLEX   STATUS=UNCHANGED   1162 CALLS     4132 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9746        .41907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6658        3.0382        .59774E-06   -1.5276    
   3  Prefactor     .10000E-03    55.862        .93120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.917        .69249E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0893        52.928        .61261E-06   -1.5499    
   6  Prefactor     .10000E-03    1.6555        .13697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.670        16.042        .58807E-06   -1.5025    
   8  Prefactor     .10000E-03    4.4249        .28054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1270        .61519E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1037        3.2329        .60389E-06   -1.5418    
  11  Prefactor     .10000E-03    75.779        .44770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.576        .11539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5412        2.3928        .60225E-06   -1.5389    
  14  Prefactor     9.1431        22.006        .59680E-06   -1.5103    
  15  norm          .10001E-03    7.9698        .34388E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     55.886        55.798        .55649E-06   -1.4211    
  17  Prefactor     .10000E-03    11.790        .44156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4574        .14200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.139        32.724        .57652E-06   -1.4725    
  20  Normalizat    .87410        .14734        .38130E-06   -.97376    
  21  Prefactor     .84586        .16533        .38380E-06   -.98059    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7762.143     FROM MIGRAD    STATUS=CONVERGED    310 CALLS     4442 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9746        .36285E-03** at limit **
   2  Prefactor     4.6658        3.0378        .45470E-05    .45005E-05
   3  Prefactor     .10000E-03    55.865        .72569E-04** at limit **
   4  Prefactor     .10000E-03    27.452        .63012E-03** at limit **
   5  Prefactor     1.0893        52.863        .10438E-02    .22000E-05
   6  Prefactor     .10000E-03    1.6557        .21909E-03** at limit **
   7  Prefactor     11.670        15.980        .46893E-05   -.96976E-06
   8  Prefactor     .10000E-03    4.4284        .35815E-03** at limit **
   9  norm          .10000E-03    1.1270        .18243E-03** at limit **
  10  norm          2.1037        3.2328        .76712E-05    .32604E-05
  11  Prefactor     .10000E-03    75.783        .72569E-04** at limit **
  12  Prefactor     .10000E-03    14.728        .11216    ** at limit **
  13  norm          2.5412        2.3919        .51170E-05    .60431E-04
  14  Prefactor     9.1431        22.001        .26518E-04    .25723E-06
  15  norm          .10000E-03    8.0626        .37635E-03** at limit **
  16  Prefactor     55.886        55.792        .10730E-04    .42379E-06
  17  Prefactor     .10000E-03    11.791        .36285E-03** at limit **
  18  Prefactor     .10000E-03    1.4576        .20681E-03** at limit **
  19  Prefactor     24.139        32.711        .32615E-05    .69714E-06
  20  Normalizat    .87410        .14748        .80543E-05    .31618E-04
  21  Prefactor     .84586        .16549        .94521E-05    .30310E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.66579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.08932
  Prefactor  = 0.0001
  Prefactor  = 11.6701
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.10369
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 2.54116
  Prefactor  = 9.14309
  norm       = 0.0001
  Prefactor  = 55.8858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.1391
  Normalizat = 0.874097
  Prefactor  = 0.84586
 **********
 **   18 **HESSE 
 **********

 FCN=   7762.143     FROM HESSE     STATUS=OK           307 CALLS     4749 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.9746        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6658        3.0388        .90939E-06   -1.5276    
   3  Prefactor     .10000E-03    55.852        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.474        .12602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0893        52.724        .41754E-04   -1.5499    
   6  Prefactor     .10000E-03    1.6557        .43818E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.670        15.955        .93786E-06   -1.5025    
   8  Prefactor     .10000E-03    4.4285        .71631E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.1270        .36485E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.1037        3.2331        .15342E-05   -1.5418    
  11  Prefactor     .10000E-03    75.777        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.846        .11133       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5412        2.3918        .10234E-05   -1.5389    
  14  Prefactor     9.1431        21.997        .53036E-05   -1.5103    
  15  norm          .10000E-03    8.0664        .75270E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     55.886        55.775        .21461E-05   -1.4211    
  17  Prefactor     .10000E-03    11.791        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4576        .41361E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.139        32.860        .65231E-06   -1.4725    
  20  Normalizat    .87410        .14744        .16109E-05   -.97376    
  21  Prefactor     .84586        .16546        .18904E-05   -.98059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17888e-12
Minuit parameter uncertainties:
  1  6.28144e-08
  2  3.03887
  3  1.66009e-06
  4  1.63379e-05
  5  15.1705
  6  8.30081e-08
  7  15.9604
  8  2.56529e-07
  9  1.8424e-08
  10  3.23335
  11  3.32363e-06
  12  0.000493926
  13  2.39191
  14  22.0169
  15  8.05865e-06
  16  55.8274
  17  1.46141e-07
  18  6.99287e-08
  19  32.885
  20  0.14751
  21  0.165559
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  8.459e-01  1.656e-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.741e-01  1.475e-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: 3.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197354/likelihoodResults_612316801_612576001_4FGL_J2355.7-3351_daily_bin1439.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7762.14594825
delta logL = -0.00326963460884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7762.1426788
delta logL = -1.82717485586e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5835       1.0000          .0000       10.000    
     3 'Normalizat'    .87408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84583       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=   7762.143     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      196 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4060        .90712E-02** at limit **
   2  Index         2.5875        6.2321        .50000       -.24771E-04
   3  Normalizat    .87410        .11817        .44569E-01   -.13634E-03
   4  Prefactor     .84586        .13734        .44311E-01   -.23030E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.5875
  Normalizat = 0.874096
  Prefactor  = 0.845861
 **********
 **   18 **HESSE 
 **********

 FCN=   7762.143     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6432        .10346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5875        6.2937        .50000       -.50351    
   3  Normalizat    .87410        .14103        .20136E-03   -.97376    
   4  Prefactor     .84586        .16396        .23630E-03   -.98059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54556e-10
Minuit parameter uncertainties:
  1  5.04114e-06
  2  4.6486
  3  0.14109
  4  0.164057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197354': 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) = 7762.14267857
delta logL = 4.41987140221e-08

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  5.041e-06  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.587e+00  4.649e+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:  8.459e-01  1.641e-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.741e-01  1.411e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/197354/cmap_HighResolution_612316801_612576001_4FGL_J2355.7-3351_daily_bin1439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-03', job_status='DONE', photon_flux_upper_limit='3.81e-08', time_completed='2021-09-30 09:35:58.041659', job_id='197354', GAL2='0.85', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1633019758.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='4.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1439' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:35:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 197354: <4FGL_J2355.7-3351_daily_bin1439> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1439> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 09:20:24 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:20:25 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:25 2021
Terminated at Thu Sep 30 09:35:58 2021
Results reported at Thu Sep 30 09:35:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1439 358.931 -33.8607 612316801 612576001 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 :                                   884.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             316.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

