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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1211
RA = 358.931, Dec = -33.8607
tmin = 553219201, tmax = 553478401
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='196079', job_status='RUN', time_executed='2021-09-30 09:16:16.816382', time_epoch_executed='1633018576.82' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/196079

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/196079/ft1_4FGL_J2355.7-3351_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/196079/ft2_4FGL_J2355.7-3351_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/196079/ft1_4FGL_J2355.7-3351_daily_bin1211.fits outfile=/scratch/kocevski/196079/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1211.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=553219201.0 tmax=553478401.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.71
user 2.52
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/196079/ft2_4FGL_J2355.7-3351_daily_bin1211.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/196079/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1211.fits evtable="EVENTS" outfile="/scratch/kocevski/196079/ft1_filtered_4FGL_J2355.7-3351_daily_bin1211.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/196079/ft1_filtered_4FGL_J2355.7-3351_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/196079/ft2_4FGL_J2355.7-3351_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/196079/ltcube_553219201_553478401_4FGL_J2355.7-3351_daily_bin1211.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/196079/ft2_4FGL_J2355.7-3351_daily_bin1211.fits
.....................!
real 12.48
user 12.11
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/196079/ft1_filtered_4FGL_J2355.7-3351_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/196079/ft2_4FGL_J2355.7-3351_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/196079/ltcube_553219201_553478401_4FGL_J2355.7-3351_daily_bin1211.fits outfile=/scratch/kocevski/196079/expmap_553219201_553478401_4FGL_J2355.7-3351_daily_bin1211.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/196079/ltcube_553219201_553478401_4FGL_J2355.7-3351_daily_bin1211.fits
.....................!
real 189.30
user 183.82
sys 5.17

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/196079/ft1_filtered_4FGL_J2355.7-3351_daily_bin1211.fits scfile=/scratch/kocevski/196079/ft2_4FGL_J2355.7-3351_daily_bin1211.fits outfile=/scratch/kocevski/196079/cmap_553219201_553478401_4FGL_J2355.7-3351_daily_bin1211.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/196079/ft1_filtered_4FGL_J2355.7-3351_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/196079/ft2_4FGL_J2355.7-3351_daily_bin1211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/196079/Model_4FGL_J2355.7-3351_daily_bin1211.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/196079/ft1_filtered_4FGL_J2355.7-3351_daily_bin1211.fits.....................!
real 40.56
user 39.32
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.839       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1532       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3531       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21685E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.806       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8288       1.0000         .10000E-03   10000.    
     9 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7269       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.592       1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.585       1.0000         .10000E-03   10000.    
    13 'norm      '    .55842E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.953       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.255       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3898       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .50453       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=   4930.244     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2205 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.872        58.944       -.10329E-05    .16882E-04
   2  Prefactor     6.1533        3.7794        .90028E-07   -.14989E-04
   3  Prefactor     .10000E-03    11.705       -.40456E-06** at limit **
   4  Prefactor     9.3580        18.972        .15402E-06    .50302E-05
   5  Prefactor     11.016        25.369       -.26596E-06   -.22649E-03
   6  Prefactor     .10008E-03    6.2584        .26881E-05** at limit **
   7  Prefactor     23.844        29.899       -.13097E-05   -.37439E-03
   8  Prefactor     3.8289        4.1592       -.33388E-07   -.67781E-04
   9  norm          .10000E-03    3.8530        .22309E-06** at limit **
  10  norm          2.7276        7.5815        .12390E-05   -.10992E-03
  11  Prefactor     61.634        50.023       -.46637E-05   -.40686E-03
  12  Prefactor     65.563        54.504        .12626E-05   -.88540E-04
  13  norm          .10000E-03    3.7142        .17074E-05** at limit **
  14  Prefactor     .10000E-03    26.364       -.51099E-06** at limit **
  15  norm          10.955        6.6728       -.15642E-06   -.91647E-03
  16  Prefactor     25.265        69.462       -.50097E-06    .78783E-05
  17  Prefactor     .10000E-03    23.971       -.51321E-06** at limit **
  18  Prefactor     .10000E-03    2.0821       -.13710E-06** at limit **
  19  Prefactor     .10000E-03    16.937        .12057E-06** at limit **
  20  Normalizat    1.3896        .20326       -.18572E-05   -.59887E-03
  21  Prefactor     .50476        .21456        .35032E-05   -.30522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.8717
  Prefactor  = 6.15332
  Prefactor  = 0.0001
  Prefactor  = 9.35802
  Prefactor  = 11.0159
  Prefactor  = 0.000100075
  Prefactor  = 23.8437
  Prefactor  = 3.82891
  norm       = 0.0001
  norm       = 2.72758
  Prefactor  = 61.6343
  Prefactor  = 65.5633
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9548
  Prefactor  = 25.2653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3896
  Prefactor  = 0.504759
 **********
 **   18 **HESSE 
 **********

 FCN=   4930.244     FROM HESSE     STATUS=OK           317 CALLS     2522 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.872        58.621        .24731E-03   -1.4083    
   2  Prefactor     6.1533        3.7867        .10222E-03   -1.5212    
   3  Prefactor     .10000E-03    11.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3580        19.012        .13104E-03   -1.5096    
   5  Prefactor     11.016        24.822        .12077E-03   -1.5044    
   6  Prefactor     .10008E-03    15.427        .24649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.844        28.286        .82098E-04   -1.4731    
   8  Prefactor     3.8289        4.1618        .72597E-03   -1.5317    
   9  norm          .10000E-03    3.8915        .13448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7276        7.6124        .12330E-02   -1.5378    
  11  Prefactor     61.634        50.738        .51127E-04   -1.4136    
  12  Prefactor     65.563        54.474        .49556E-04   -1.4087    
  13  norm          .10000E-03    13.329        .23688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.955        6.6380        .12105E-03   -1.5046    
  16  Prefactor     25.265        69.390        .79712E-04   -1.4702    
  17  Prefactor     .10000E-03    24.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.0886        .98916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3896        .22962        .20217E-03   -.80930    
  21  Prefactor     .50476        .23761        .34915E-03   -1.1176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93308e-09
Minuit parameter uncertainties:
  1  58.6727
  2  3.78685
  3  1.92061e-05
  4  19.0241
  5  24.8452
  6  0.00215732
  7  28.3018
  8  4.16214
  9  1.40025e-05
  10  7.61512
  11  50.7736
  12  54.5154
  13  1.76848e-05
  14  8.34984e-06
  15  6.63846
  16  69.6124
  17  2.90294e-05
  18  3.89519e-06
  19  4.66775e-05
  20  0.229794
  21  0.238075
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  3.895e-06  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:  5.048e-01  2.381e-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.390e+00  2.298e-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: 5.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/196079/likelihoodResults_553219201_553478401_4FGL_J2355.7-3351_daily_bin1211.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) = 4930.24597844
delta logL = -0.00222512736582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4930.24375333
delta logL = -1.94495441974e-08

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.5801       1.0000          .0000       10.000    
     3 'Normalizat'    1.3896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50478       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=   4930.244     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6180        .90712E-02** at limit **
   2  Index         2.5805        6.2863        .50000       -.20303E-05
   3  Normalizat    1.3896        .18665        .45738E-01   -.80590E-05
   4  Prefactor     .50476        .20434        .78832E-01    .28811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58048
  Normalizat = 1.3896
  Prefactor  = 0.504759
 **********
 **   18 **HESSE 
 **********

 FCN=   4930.244     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1927        .98918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5805        6.2882        .50000       -.50511    
   3  Normalizat    1.3896        .21270        .20218E-03   -.80930    
   4  Prefactor     .50476        .23225        .34914E-03   -1.1176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47289e-12
Minuit parameter uncertainties:
  1  3.97387e-06
  2  4.48515
  3  0.212835
  4  0.232684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/196079': 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) = 4930.24375331
delta logL = 5.27506927028e-10

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  3.974e-06  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.580e+00  4.485e+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:  5.048e-01  2.327e-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.390e+00  2.128e-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/196079/cmap_HighResolution_553219201_553478401_4FGL_J2355.7-3351_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-09-30 09:25:34.425148', job_id='196079', GAL2='0.50', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1633019134.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='5.28e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1211' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:25:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 196079: <4FGL_J2355.7-3351_daily_bin1211> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin1211> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 30 09:15:31 2021
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:15:32 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:32 2021
Terminated at Thu Sep 30 09:25:35 2021
Results reported at Thu Sep 30 09:25:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1211 358.931 -33.8607 553219201 553478401 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 :                                   550.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            604 sec.

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

