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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin990
RA = 358.931, Dec = -33.8607
tmin = 495936001, tmax = 496195201
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='194780', job_status='RUN', time_executed='2021-09-30 09:13:18.984077', time_epoch_executed='1633018398.98' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194780

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194780/ft1_4FGL_J2355.7-3351_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194780/ft2_4FGL_J2355.7-3351_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194780/ft1_4FGL_J2355.7-3351_daily_bin990.fits outfile=/scratch/kocevski/194780/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin990.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=495936001.0 tmax=496195201.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.48
user 3.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194780/ft1_filtered_4FGL_J2355.7-3351_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/194780/ft2_4FGL_J2355.7-3351_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/194780/ltcube_495936001_496195201_4FGL_J2355.7-3351_daily_bin990.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/194780/ft2_4FGL_J2355.7-3351_daily_bin990.fits
.....................!
real 12.60
user 12.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194780/ft1_filtered_4FGL_J2355.7-3351_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/194780/ft2_4FGL_J2355.7-3351_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/194780/ltcube_495936001_496195201_4FGL_J2355.7-3351_daily_bin990.fits outfile=/scratch/kocevski/194780/expmap_495936001_496195201_4FGL_J2355.7-3351_daily_bin990.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/194780/ltcube_495936001_496195201_4FGL_J2355.7-3351_daily_bin990.fits
.....................!
real 193.68
user 187.08
sys 5.32

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/194780/ft1_filtered_4FGL_J2355.7-3351_daily_bin990.fits scfile=/scratch/kocevski/194780/ft2_4FGL_J2355.7-3351_daily_bin990.fits outfile=/scratch/kocevski/194780/cmap_495936001_496195201_4FGL_J2355.7-3351_daily_bin990.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.52
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194780/ft1_filtered_4FGL_J2355.7-3351_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/194780/ft2_4FGL_J2355.7-3351_daily_bin990.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194780/Model_4FGL_J2355.7-3351_daily_bin990.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/194780/ft1_filtered_4FGL_J2355.7-3351_daily_bin990.fits.....................!
real 33.96
user 32.50
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13249E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.903       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.661       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.299       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9371       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    26.934       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.020       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1246       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.440       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13716E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    66.635       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89876       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85183       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=   3691.905     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2248 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.330        .18777E-06** at limit **
   2  Prefactor     .28771E-01    2.4362        .66699E-06   -.53983E-03
   3  Prefactor     .10000E-03    23.189       -.45077E-06** at limit **
   4  Prefactor     12.901        12.294        .15184E-07    .58666E-04
   5  Prefactor     .10000E-03    12.074        .47619E-07** at limit **
   6  Prefactor     12.662        10.767       -.20261E-07    .22343E-04
   7  Prefactor     32.287        46.417       -.69253E-06   -.15298E-04
   8  Prefactor     1.9375        8.3018        .91848E-05   -.86493E-04
   9  norm          .10000E-03    1.8832        .49894E-08** at limit **
  10  norm          26.937        14.946       -.11026E-07    .29405E-04
  11  Prefactor     24.016        24.717        .13339E-06   -.20218E-04
  12  Prefactor     1.0263        54.282        .13510E-05   -.36536E-04
  13  norm          .10000E-03    1.5361        .23764E-07** at limit **
  14  Prefactor     15.408        41.566        .11315E-05    .97433E-05
  15  norm          .10000E-03    1.7234        .36629E-07** at limit **
  16  Prefactor     .10001E-03    308.55       -.64303E-05** at limit **
  17  Prefactor     .10000E-03    66.375       -.15667E-05** at limit **
  18  Prefactor     .10000E-03    8.8656       -.21933E-05** at limit **
  19  Prefactor     66.559        60.000        .46572E-05    .11616E-04
  20  Normalizat    .89868        .20681        .22691E-05    .44292E-03
  21  Prefactor     .85205        .22172       -.33473E-05    .16703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0287705
  Prefactor  = 0.0001
  Prefactor  = 12.9012
  Prefactor  = 0.0001
  Prefactor  = 12.6621
  Prefactor  = 32.2868
  Prefactor  = 1.93748
  norm       = 0.0001
  norm       = 26.9374
  Prefactor  = 24.0163
  Prefactor  = 1.02626
  norm       = 0.0001
  Prefactor  = 15.4083
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 66.5592
  Normalizat = 0.898677
  Prefactor  = 0.852049
 **********
 **   18 **HESSE 
 **********

 FCN=   3691.905     FROM HESSE     STATUS=OK           323 CALLS     2571 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .28771E-01    4.2379        .32810E-01   -1.5674    
   3  Prefactor     .10000E-03    23.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.901        12.300        .11151E-03   -1.4989    
   5  Prefactor     .10000E-03    12.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.662        10.823        .11258E-03   -1.4996    
   7  Prefactor     32.287        46.613        .70505E-04   -1.4571    
   8  Prefactor     1.9375        8.6308        .14917E-02   -1.5430    
   9  norm          .10000E-03    1.8842        .81433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          26.937        14.926        .77191E-04   -1.4669    
  11  Prefactor     24.016        24.735        .40865E-03   -1.4727    
  12  Prefactor     1.0263        454.48        .83801E-02   -1.5505    
  13  norm          .10000E-03    1.5398        .73524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.408        41.641        .10193E-03   -1.4923    
  15  norm          .10000E-03    1.7305        .77883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    309.52        .20540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    66.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.1960        .17831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     66.559        61.000        .24583E-03   -1.4074    
  20  Normalizat    .89868        .25283        .22295E-03   -.96507    
  21  Prefactor     .85205        .26548        .25328E-03   -.97837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53209e-09
Minuit parameter uncertainties:
  1  5.30851e-05
  2  0.697192
  3  0.000138483
  4  12.3024
  5  6.83445e-06
  6  10.8243
  7  46.6655
  8  8.18029
  9  4.06058e-07
  10  14.9277
  11  24.7455
  12  43.5274
  13  1.04897e-06
  14  41.7198
  15  1.86741e-06
  16  0.00255398
  17  0.000687126
  18  0.000357284
  19  61.0573
  20  0.253162
  21  0.265878
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  8.520e-01  2.659e-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.987e-01  2.532e-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: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194780/likelihoodResults_495936001_496195201_4FGL_J2355.7-3351_daily_bin990.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) = 3691.90559741
delta logL = -0.000518331840794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3691.90507912
delta logL = -4.71618477604e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5820       1.0000          .0000       10.000    
     3 'Normalizat'    .89867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85209       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=   3691.905     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.739        .90712E-02** at limit **
   2  Index         2.5843        6.5752        .50000       -.20536E-05
   3  Normalizat    .89867        .94052E-02    .44885E-01   -.18875E-03
   4  Prefactor     .85205        .10489E-01    .44391E-01   -.11635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.58428
  Normalizat = 0.898671
  Prefactor  = 0.852054
 **********
 **   18 **HESSE 
 **********

 FCN=   3691.905     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      232 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    227.26        .17836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5843        8.0674        .50000       -.50424    
   3  Normalizat    .89867        .24442E-01    .22295E-03   -.96507    
   4  Prefactor     .85205        .27260E-01    .25328E-03   -.97837    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08911e-07
Minuit parameter uncertainties:
  1  0.000232864
  2  730.371
  3  0.0244426
  4  0.0272605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194780': 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) = 3691.90507907
delta logL = 2.80488166027e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  8.521e-01  2.726e-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:  8.987e-01  2.444e-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/194780/cmap_HighResolution_495936001_496195201_4FGL_J2355.7-3351_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-30 09:21:42.839857', job_id='194780', GAL2='0.85', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1633018902.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.80e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='990' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:21:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 194780: <4FGL_J2355.7-3351_daily_bin990> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin990> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 09:10:43 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:10:45 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:10:45 2021
Terminated at Thu Sep 30 09:21:43 2021
Results reported at Thu Sep 30 09:21:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin990 358.931 -33.8607 495936001 496195201 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 :                                   494.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            660 sec.

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

