/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 103 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 = 7561
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2355.7-3351_daily_bin397
RA = 358.931, Dec = -33.8607
tmin = 342230401, tmax = 342489601
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='191825', job_status='RUN', time_executed='2021-09-30 09:02:16.146940', time_epoch_executed='1633017736.15' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191825

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191825/ft1_4FGL_J2355.7-3351_daily_bin397.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191825/ft2_4FGL_J2355.7-3351_daily_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191825/ft1_4FGL_J2355.7-3351_daily_bin397.fits outfile=/scratch/kocevski/191825/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin397.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=342230401.0 tmax=342489601.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.53
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191825/ft2_4FGL_J2355.7-3351_daily_bin397.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/191825/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin397.fits evtable="EVENTS" outfile="/scratch/kocevski/191825/ft1_filtered_4FGL_J2355.7-3351_daily_bin397.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/191825/ft1_filtered_4FGL_J2355.7-3351_daily_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/191825/ft2_4FGL_J2355.7-3351_daily_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/191825/ltcube_342230401_342489601_4FGL_J2355.7-3351_daily_bin397.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/191825/ft2_4FGL_J2355.7-3351_daily_bin397.fits
.....................!
real 11.80
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191825/ft1_filtered_4FGL_J2355.7-3351_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/191825/ft2_4FGL_J2355.7-3351_daily_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/191825/ltcube_342230401_342489601_4FGL_J2355.7-3351_daily_bin397.fits outfile=/scratch/kocevski/191825/expmap_342230401_342489601_4FGL_J2355.7-3351_daily_bin397.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/191825/ltcube_342230401_342489601_4FGL_J2355.7-3351_daily_bin397.fits
.....................!
real 192.74
user 187.65
sys 4.73

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

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

This is gtbin version HEAD
real 0.56
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15593E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.581       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11275E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4723       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3195       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6805       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.601       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8901       1.0000         .10000E-03   10000.    
    13 'norm      '    5.0865       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10626E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0439       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.956       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0787       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .73413       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=   6216.954     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     1934 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.776       -.22633E-06** at limit **
   2  Prefactor     .10032E-03    1.5161        .27960E-06** at limit **
   3  Prefactor     .10000E-03    9.7406       -.20022E-06** at limit **
   4  Prefactor     13.578        11.253       -.60853E-07    .41540E-05
   5  Prefactor     .10014E-03    14.731        .15843E-05** at limit **
   6  Prefactor     9.4695        5.0522       -.19682E-06   -.21891E-03
   7  Prefactor     1.3242        31.588        .14916E-04   -.10094E-04
   8  Prefactor     .10000E-03    11.185       -.26585E-06** at limit **
   9  norm          .10000E-03    2.2930        .20908E-06** at limit **
  10  norm          2.6805        6.6406       -.11238E-06   -.41364E-05
  11  Prefactor     20.623        23.951       -.11071E-05   -.52309E-05
  12  Prefactor     4.8929        50.575       -.27321E-07    .62305E-05
  13  norm          5.0906        3.3157        .29325E-07   -.58506E-04
  14  Prefactor     .10000E-03    17.552       -.30971E-06** at limit **
  15  norm          .10000E-03    2.3049       -.10416E-06** at limit **
  16  Prefactor     4.1680        292.86       -.55918E-04   -.12848E-04
  17  Prefactor     33.990        35.663       -.24805E-05    .44176E-04
  18  Prefactor     .10000E-03    3.3823       -.14809E-06** at limit **
  19  Prefactor     .10000E-03    22.216        .14200E-05** at limit **
  20  Normalizat    1.0787        .15224       -.11748E-06    .25478E-04
  21  Prefactor     .73407        .16805        .19941E-05    .56743E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100325
  Prefactor  = 0.0001
  Prefactor  = 13.5777
  Prefactor  = 0.000100136
  Prefactor  = 9.46955
  Prefactor  = 1.32422
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.68049
  Prefactor  = 20.6229
  Prefactor  = 4.89285
  norm       = 5.09062
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.16804
  Prefactor  = 33.9896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07875
  Prefactor  = 0.734075
 **********
 **   18 **HESSE 
 **********

 FCN=   6216.954     FROM HESSE     STATUS=OK           329 CALLS     2263 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10032E-03    4.2108        .31681E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.7653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.578        11.257        .10869E-03   -1.4971    
   5  Prefactor     .10014E-03    57.435        .55597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4695        4.8786        .11704E-03   -1.5092    
   7  Prefactor     1.3242        31.875        .19157E-02   -1.5478    
   8  Prefactor     .10000E-03    11.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.1885        .22816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6805        6.6110        .24889E-03   -1.5381    
  11  Prefactor     20.623        23.811        .88245E-04   -1.4799    
  12  Prefactor     4.8929        50.442        .18189E-03   -1.5266    
  13  norm          5.0906        3.2815        .10474E-03   -1.5257    
  14  Prefactor     .10000E-03    17.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3829        .23342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1680        293.30        .20052E-03   -1.5300    
  17  Prefactor     33.990        35.569        .68768E-04   -1.4541    
  18  Prefactor     .10000E-03    3.4597        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0787        .18012        .19732E-03   -.90437    
  21  Prefactor     .73407        .19773        .26672E-03   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47281e-09
Minuit parameter uncertainties:
  1  2.3827e-05
  2  0.00233861
  3  1.46771e-05
  4  11.2586
  5  0.00559974
  6  4.87883
  7  13.0011
  8  9.78382e-05
  9  3.39879e-05
  10  6.61283
  11  23.8219
  12  31.4539
  13  3.28159
  14  0.000102829
  15  6.20173e-06
  16  70.2893
  17  35.5909
  18  1.01294e-05
  19  1.5461e-05
  20  0.18022
  21  0.19792
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  1.013e-05  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.341e-01  1.979e-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.079e+00  1.802e-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.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191825/likelihoodResults_342230401_342489601_4FGL_J2355.7-3351_daily_bin397.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) = 6216.95512413
delta logL = -0.00137788199027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6216.95374641
delta logL = -1.60836862051e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5821       1.0000          .0000       10.000    
     3 'Normalizat'    1.0787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73414       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=   6216.954     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      235 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    97.000        .14152E-02** at limit **
   2  Index         2.5964        5.4413        .50000       -.48261E-05
   3  Normalizat    1.0787        .19305E-01    .19732E-03    .29038E-04
   4  Prefactor     .73407        .22032E-01    .26672E-03    .20034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100045
  Index      = 2.59644
  Normalizat = 1.07875
  Prefactor  = 0.734074
 **********
 **   18 **HESSE 
 **********

 FCN=   6216.954     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      264 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    404.71        .28305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5964        8.2940        .50000       -.50147    
   3  Normalizat    1.0787        .45765E-01    .78929E-05   -.90437    
   4  Prefactor     .73407        .52215E-01    .10669E-04   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.67499e-09
Minuit parameter uncertainties:
  1  0.00855538
  2  1095.37
  3  0.0457662
  4  0.0522188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191825': 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): 102
logL (Free Index) = 6216.95374623
delta logL = 1.54914232553e-08

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  8.555e-03  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.596e+00  1.095e+03  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.341e-01  5.222e-02  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.079e+00  4.577e-02  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/191825/cmap_HighResolution_342230401_342489601_4FGL_J2355.7-3351_daily_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-03', job_status='DONE', photon_flux_upper_limit='5.66e-08', time_completed='2021-09-30 09:12:18.732899', job_id='191825', GAL2='0.73', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1633018338.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='397' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:12:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 191825: <4FGL_J2355.7-3351_daily_bin397> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin397> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep 30 09:00:23 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:00: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:00:25 2021
Terminated at Thu Sep 30 09:12:19 2021
Results reported at Thu Sep 30 09:12:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin397 358.931 -33.8607 342230401 342489601 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 :                                   601.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            716 sec.

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

