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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1441
RA = 358.931, Dec = -33.8607
tmin = 612835201, tmax = 613094401
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='197357', job_status='RUN', time_executed='2021-09-30 09:24:32.266246', time_epoch_executed='1633019072.27' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197357/ft1_4FGL_J2355.7-3351_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197357/ft2_4FGL_J2355.7-3351_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197357/ft1_4FGL_J2355.7-3351_daily_bin1441.fits outfile=/scratch/kocevski/197357/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1441.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=612835201.0 tmax=613094401.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 2.89
user 2.67
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197357/ft2_4FGL_J2355.7-3351_daily_bin1441.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/197357/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1441.fits evtable="EVENTS" outfile="/scratch/kocevski/197357/ft1_filtered_4FGL_J2355.7-3351_daily_bin1441.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/197357/ft1_filtered_4FGL_J2355.7-3351_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/197357/ft2_4FGL_J2355.7-3351_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/197357/ltcube_612835201_613094401_4FGL_J2355.7-3351_daily_bin1441.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/197357/ft2_4FGL_J2355.7-3351_daily_bin1441.fits
.....................!
real 12.28
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197357/ft1_filtered_4FGL_J2355.7-3351_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/197357/ft2_4FGL_J2355.7-3351_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/197357/ltcube_612835201_613094401_4FGL_J2355.7-3351_daily_bin1441.fits outfile=/scratch/kocevski/197357/expmap_612835201_613094401_4FGL_J2355.7-3351_daily_bin1441.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/197357/ltcube_612835201_613094401_4FGL_J2355.7-3351_daily_bin1441.fits
.....................!
real 190.61
user 185.76
sys 4.51

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197357/ft1_filtered_4FGL_J2355.7-3351_daily_bin1441.fits scfile=/scratch/kocevski/197357/ft2_4FGL_J2355.7-3351_daily_bin1441.fits outfile=/scratch/kocevski/197357/cmap_HighResolution_612835201_613094401_4FGL_J2355.7-3351_daily_bin1441.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/197357/ft1_filtered_4FGL_J2355.7-3351_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/197357/ft2_4FGL_J2355.7-3351_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/197357/Model_4FGL_J2355.7-3351_daily_bin1441.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/197357/ft1_filtered_4FGL_J2355.7-3351_daily_bin1441.fits.....................!
real 55.64
user 54.24
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9188       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12226E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.095       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.498       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.0183       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10464E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.484       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3035       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.161       1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8128       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.589       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6204       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.794       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88043       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0129       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=   7825.473     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2155 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.557        34.348       -.84079E-05    .68207E-05
   2  Prefactor     6.9196        3.3676       -.16366E-05   -.40452E-02
   3  Prefactor     .10000E-03    36.775       -.88920E-06** at limit **
   4  Prefactor     16.095        10.291       -.50908E-05   -.27567E-05
   5  Prefactor     15.494        17.033        .39557E-05    .17003E-04
   6  Prefactor     .10000E-03    1.3517        .35637E-07** at limit **
   7  Prefactor     8.0168        17.411       -.67967E-05   -.39334E-04
   8  Prefactor     .10000E-03    1.8800       -.36312E-07** at limit **
   9  norm          .10000E-03    2.0261       -.82617E-08** at limit **
  10  norm          .10000E-03    2.4567        .16441E-06** at limit **
  11  Prefactor     .10000E-03    26.174       -.95114E-07** at limit **
  12  Prefactor     18.372        36.338       -.31474E-04   -.61939E-05
  13  norm          2.3042        2.7583       -.34113E-06   -.58115E-03
  14  Prefactor     25.174        22.720       -.25264E-04   -.92664E-04
  15  norm          .10000E-03    .68968       -.15780E-07** at limit **
  16  Prefactor     4.8624        414.77        .17706E-03    .19829E-04
  17  Prefactor     16.561        45.063       -.17879E-04   -.31301E-04
  18  Prefactor     2.6215        3.2025       -.97018E-06   -.43334E-03
  19  Prefactor     21.749        29.674        .23287E-04    .27431E-04
  20  Normalizat    .88008        .14161        .31971E-05   -.26946E-03
  21  Prefactor     1.0134        .15710       -.10254E-06    .50167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5573
  Prefactor  = 6.91962
  Prefactor  = 0.0001
  Prefactor  = 16.0951
  Prefactor  = 15.4936
  Prefactor  = 0.0001
  Prefactor  = 8.01681
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.372
  norm       = 2.30416
  Prefactor  = 25.174
  norm       = 0.0001
  Prefactor  = 4.8624
  Prefactor  = 16.5608
  Prefactor  = 2.62152
  Prefactor  = 21.7492
  Normalizat = 0.880078
  Prefactor  = 1.01341
 **********
 **   18 **HESSE 
 **********

 FCN=   7825.473     FROM HESSE     STATUS=OK           323 CALLS     2478 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.557        34.384        .77679E-04   -1.4677    
   2  Prefactor     6.9196        3.3986        .53125E-03   -1.5182    
   3  Prefactor     .10000E-03    37.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.095        10.284        .99834E-04   -1.4905    
   5  Prefactor     15.494        17.022        .10174E-03   -1.4921    
   6  Prefactor     .10000E-03    1.3545        .10029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0168        17.402        .14159E-03   -1.5142    
   8  Prefactor     .10000E-03    1.8909        .11844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0393        .12277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.4674        .13538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.372        36.490        .93159E-04   -1.4850    
  13  norm          2.3042        2.7380        .15357E-03   -1.5404    
  14  Prefactor     25.174        22.698        .79860E-04   -1.4704    
  15  norm          .10000E-03    .69107        .71713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8624        409.38        .18338E-03   -1.5267    
  17  Prefactor     16.561        45.039        .98335E-04   -1.4894    
  18  Prefactor     2.6215        3.1904        .16747E-03   -1.5384    
  19  Prefactor     21.749        29.772        .85798E-04   -1.4775    
  20  Normalizat    .88008        .16896        .22322E-03   -.97164    
  21  Prefactor     1.0134        .18664        .24313E-03   -.92284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17017e-09
Minuit parameter uncertainties:
  1  34.41
  2  3.39867
  3  0.000103349
  4  10.285
  5  17.0271
  6  3.16043e-06
  7  17.4128
  8  3.25154e-06
  9  8.46278e-07
  10  2.66654e-05
  11  7.64643e-06
  12  36.5341
  13  2.73818
  14  22.7061
  15  2.32506e-07
  16  89.8733
  17  45.1316
  18  3.19059
  19  29.7919
  20  0.16906
  21  0.186758
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  2.622e+00  3.191e+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:  1.013e+00  1.868e-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.801e-01  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 358.931 -33.861
Photon Index (Fixed Index): 2.58 +/- 0.00
Photon Flux (Fixed Index): 1.56e-08 +/- 1.90e-08
Energy Flux (Fixed Index): 4.18e-06 +/- 5.08e-06

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

Saving results to:
/scratch/kocevski/197357/likelihoodResults_612835201_613094401_4FGL_J2355.7-3351_daily_bin1441.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) = 7824.7477161
delta logL = 0.724800584986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7824.72292133
delta logL = 0.749595353003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9456       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5400       1.0000          .0000       10.000    
     3 'Normalizat'    .89540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0020       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=   7824.723     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9450        2.1124        .74394E-02   -.14138E-03
   2  Index         1.5400        .40790        .28550       -.72671E-04
   3  Normalizat    .89541        .13324        .44843E-01    .18399E-04
   4  Prefactor     1.0020        .15535        .44960E-01    .13902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94502
  Index      = 1.54005
  Normalizat = 0.895409
  Prefactor  = 1.00204
 **********
 **   18 **HESSE 
 **********

 FCN=   7824.723     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9450        2.8074        .13040E-03   -1.5429    
   2  Index         1.5400        .69921        .97525E-02   -.76424    
   3  Normalizat    .89541        .15855        .22146E-03   -.96622    
   4  Prefactor     1.0020        .18487        .24425E-03   -.92662    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5197e-12
Minuit parameter uncertainties:
  1  2.80762
  2  0.703659
  3  0.158634
  4  0.184982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197357': 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) = 7824.72292128
delta logL = 0.749595405994

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.945e+00  2.808e+00  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  1.540e+00  7.037e-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:  1.002e+00  1.850e-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.954e-01  1.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 358.931 -33.861
Photon Index (Free Index): 1.54 +/- 0.70
Photon Flux (Free Index): 5.30e-09 +/- 7.85e-09
Energy Flux (Free Index): 1.46e-05 +/- 2.54e-05

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/197357/cmap_HighResolution_612835201_613094401_4FGL_J2355.7-3351_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', comment='SUCCESS', photon_flux='1.56e-08', energy_flux2='1.46e-05', photon_flux_error='1.90e-08', dlogl='7.50e-01', energy_flux='4.18e-06', photon_flux2='5.30e-09', job_status='DONE', time_completed='2021-09-30 09:36:22.549605', photon_index_error2='0.70', photon_index2='1.54', ts='1.19', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='6.55e-08', energy_flux_error2='2.54e-05', EG='0.88', time_epoch_completed='1633019782.55', return_code='0', job_id='197357', GAL2='1.00', EG2='0.90', return_code2='0', energy_flux_error='5.08e-06', photon_flux_error2='7.85e-09', ts2='2.69', photon_index='2.58' WHERE bin_id='1441' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:36:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 197357: <4FGL_J2355.7-3351_daily_bin1441> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1441> 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) <bullet0258>, 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:36:23 2021
Results reported at Thu Sep 30 09:36:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1441 358.931 -33.8607 612835201 613094401 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 :                                   689.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

