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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin307
RA = 358.931, Dec = -33.8607
tmin = 318902401, tmax = 319161601
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='191689', job_status='RUN', time_executed='2021-09-30 09:03:26.442355', time_epoch_executed='1633017806.44' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191689

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191689/ft1_4FGL_J2355.7-3351_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191689/ft2_4FGL_J2355.7-3351_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191689/ft1_4FGL_J2355.7-3351_daily_bin307.fits outfile=/scratch/kocevski/191689/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin307.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=318902401.0 tmax=319161601.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.80
user 3.22
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191689/ft1_filtered_4FGL_J2355.7-3351_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/191689/ft2_4FGL_J2355.7-3351_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/191689/ltcube_318902401_319161601_4FGL_J2355.7-3351_daily_bin307.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/191689/ft2_4FGL_J2355.7-3351_daily_bin307.fits
.....................!
real 12.56
user 12.05
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191689/ft1_filtered_4FGL_J2355.7-3351_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/191689/ft2_4FGL_J2355.7-3351_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/191689/ltcube_318902401_319161601_4FGL_J2355.7-3351_daily_bin307.fits outfile=/scratch/kocevski/191689/expmap_318902401_319161601_4FGL_J2355.7-3351_daily_bin307.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/191689/ltcube_318902401_319161601_4FGL_J2355.7-3351_daily_bin307.fits
.....................!
real 190.91
user 185.21
sys 5.11

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/191689/ft1_filtered_4FGL_J2355.7-3351_daily_bin307.fits scfile=/scratch/kocevski/191689/ft2_4FGL_J2355.7-3351_daily_bin307.fits outfile=/scratch/kocevski/191689/cmap_318902401_319161601_4FGL_J2355.7-3351_daily_bin307.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.58
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191689/ft1_filtered_4FGL_J2355.7-3351_daily_bin307.fits scfile=/scratch/kocevski/191689/ft2_4FGL_J2355.7-3351_daily_bin307.fits outfile=/scratch/kocevski/191689/cmap_HighResolution_318902401_319161601_4FGL_J2355.7-3351_daily_bin307.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.61
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/191689/ft1_filtered_4FGL_J2355.7-3351_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/191689/ft2_4FGL_J2355.7-3351_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191689/Model_4FGL_J2355.7-3351_daily_bin307.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/191689/ft1_filtered_4FGL_J2355.7-3351_daily_bin307.fits.....................!
real 46.58
user 44.66
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.524       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.6668       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.627       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.133       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.001       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22419E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.038       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.999       1.0000         .10000E-03   10000.    
    13 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.502       1.0000         .10000E-03   10000.    
    15 'norm      '    6.0317       1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.804       1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.528       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0107       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .62358       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=   6124.729     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2174 TOTAL
                     EDM=   .28E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.533        56.129        .75356E-05   -.91545E-06
   2  Prefactor     .10000E-03    .92761        .26431E-07** at limit **
   3  Prefactor     .10000E-03    5.1117       -.19626E-07** at limit **
   4  Prefactor     6.6678        7.3580        .43990E-06   -.44011E-04
   5  Prefactor     14.627        17.207       -.96661E-06   -.11480E-04
   6  Prefactor     19.133        7.0971        .72280E-06   -.13795E-04
   7  Prefactor     10.997        22.384        .14973E-05   -.18713E-04
   8  Prefactor     .10000E-03    5.4277       -.17878E-06** at limit **
   9  norm          .10000E-03    1.3896        .22960E-07** at limit **
  10  norm          13.967        7.9233        .96659E-06   -.39233E-04
  11  Prefactor     11.036        27.529       -.21305E-05   -.17883E-04
  12  Prefactor     38.002        30.324        .12352E-05   -.32488E-05
  13  norm          .10000E-03    1.0539        .33041E-07** at limit **
  14  Prefactor     21.506        20.543       -.24729E-05   -.78624E-05
  15  norm          6.0320        3.8627       -.22073E-06   -.14423E-03
  16  Prefactor     26.807        37.859        .27774E-05   -.67573E-07
  17  Prefactor     51.506        34.526       -.11539E-04   -.93748E-05
  18  Prefactor     .10000E-03    2.7826        .33388E-07** at limit **
  19  Prefactor     .10000E-03    124.11        .28451E-05** at limit **
  20  Normalizat    1.0107        .14242       -.15290E-06    .14950E-05
  21  Prefactor     .62348        .15426        .16140E-07   -.28978E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.5333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.66777
  Prefactor  = 14.6275
  Prefactor  = 19.1331
  Prefactor  = 10.9967
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.9668
  Prefactor  = 11.0356
  Prefactor  = 38.0025
  norm       = 0.0001
  Prefactor  = 21.5059
  norm       = 6.03197
  Prefactor  = 26.8068
  Prefactor  = 51.5061
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.01065
  Prefactor  = 0.623481
 **********
 **   18 **HESSE 
 **********

 FCN=   6124.729     FROM HESSE     STATUS=OK           323 CALLS     2497 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.533        56.247        .46823E-04   -1.3991    
   2  Prefactor     .10000E-03    .93610        .73580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.1152        .17281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.6678        7.3541        .15541E-03   -1.5191    
   5  Prefactor     14.627        17.208        .10473E-03   -1.4943    
   6  Prefactor     19.133        7.0976        .91566E-04   -1.4833    
   7  Prefactor     10.997        22.335        .12079E-03   -1.5045    
   8  Prefactor     .10000E-03    24.207        .35071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.3922        .90083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.967        7.9211        .10718E-03   -1.4960    
  11  Prefactor     11.036        27.535        .12059E-03   -1.5043    
  12  Prefactor     38.002        30.338        .65019E-04   -1.4474    
  13  norm          .10000E-03    1.0554        .78338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.506        20.550        .86378E-04   -1.4780    
  15  norm          6.0320        3.8530        .11356E-03   -1.5217    
  16  Prefactor     26.807        37.856        .77378E-04   -1.4672    
  17  Prefactor     51.506        34.570        .27935E-03   -1.4271    
  18  Prefactor     .10000E-03    2.8227        .12739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    128.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0107        .16896        .19846E-03   -.92674    
  21  Prefactor     .62348        .18187        .27658E-03   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.56683e-11
Minuit parameter uncertainties:
  1  56.288
  2  2.79652e-06
  3  2.63707e-06
  4  7.35507
  5  17.2134
  6  7.09787
  7  22.3522
  8  0.000146047
  9  1.23417e-06
  10  7.92174
  11  27.5672
  12  30.3508
  13  2.68395e-06
  14  20.5572
  15  3.85316
  16  37.8903
  17  34.5838
  18  1.1504e-05
  19  0.00147992
  20  0.169053
  21  0.182041
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  1.150e-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:  6.235e-01  1.820e-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.011e+00  1.691e-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.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191689/likelihoodResults_318902401_319161601_4FGL_J2355.7-3351_daily_bin307.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) = 6124.73078632
delta logL = -0.00168839856542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6124.72909764
delta logL = 2.82503606286e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6033       1.0000          .0000       10.000    
     3 'Normalizat'    1.0107       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62348       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=   6124.729     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    624.14        .13043E-02** at limit **
   2  Index         2.6287        5.1285        .50000       -.81219E-04
   3  Normalizat    1.0107        .89700E-01    .19846E-03   -.15461E-03
   4  Prefactor     .62348        .10039        .27658E-03   -.66506E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010002
  Index      = 2.62873
  Normalizat = 1.01065
  Prefactor  = 0.623482
 **********
 **   18 **HESSE 
 **********

 FCN=   6124.729     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    3.2099        .26087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6287        6.3127        .50000       -.49412    
   3  Normalizat    1.0107        .16075        .39693E-04   -.92674    
   4  Prefactor     .62348        .18024        .11063E-04   -1.0661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04809e-08
Minuit parameter uncertainties:
  1  0.000507324
  2  4.5784
  3  0.160827
  4  0.180409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191689': 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) = 6124.72909705
delta logL = 8.750894267e-07

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  5.073e-04  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.629e+00  4.578e+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:  6.235e-01  1.804e-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.011e+00  1.608e-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/191689/cmap_HighResolution_318902401_319161601_4FGL_J2355.7-3351_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-30 09:13:47.902382', job_id='191689', GAL2='0.62', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1633018427.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='8.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='307' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:13:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 191689: <4FGL_J2355.7-3351_daily_bin307> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin307 358.931 -33.8607 318902401 319161601 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 :                                   610.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

