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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1046
RA = 358.931, Dec = -33.8607
tmin = 510451201, tmax = 510710401
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='194864', job_status='RUN', time_executed='2021-09-30 09:14:57.811833', time_epoch_executed='1633018497.81' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194864

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194864/ft1_4FGL_J2355.7-3351_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194864/ft2_4FGL_J2355.7-3351_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194864/ft1_4FGL_J2355.7-3351_daily_bin1046.fits outfile=/scratch/kocevski/194864/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1046.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=510451201.0 tmax=510710401.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.95
user 3.69
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194864/ft2_4FGL_J2355.7-3351_daily_bin1046.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/194864/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1046.fits evtable="EVENTS" outfile="/scratch/kocevski/194864/ft1_filtered_4FGL_J2355.7-3351_daily_bin1046.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/194864/ft1_filtered_4FGL_J2355.7-3351_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/194864/ft2_4FGL_J2355.7-3351_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/194864/ltcube_510451201_510710401_4FGL_J2355.7-3351_daily_bin1046.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/194864/ft2_4FGL_J2355.7-3351_daily_bin1046.fits
.....................!
real 11.84
user 11.47
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194864/ft1_filtered_4FGL_J2355.7-3351_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/194864/ft2_4FGL_J2355.7-3351_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/194864/ltcube_510451201_510710401_4FGL_J2355.7-3351_daily_bin1046.fits outfile=/scratch/kocevski/194864/expmap_510451201_510710401_4FGL_J2355.7-3351_daily_bin1046.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/194864/ltcube_510451201_510710401_4FGL_J2355.7-3351_daily_bin1046.fits
.....................!
real 190.14
user 185.08
sys 4.70

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/194864/ft1_filtered_4FGL_J2355.7-3351_daily_bin1046.fits scfile=/scratch/kocevski/194864/ft2_4FGL_J2355.7-3351_daily_bin1046.fits outfile=/scratch/kocevski/194864/cmap_510451201_510710401_4FGL_J2355.7-3351_daily_bin1046.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194864/ft1_filtered_4FGL_J2355.7-3351_daily_bin1046.fits scfile=/scratch/kocevski/194864/ft2_4FGL_J2355.7-3351_daily_bin1046.fits outfile=/scratch/kocevski/194864/cmap_HighResolution_510451201_510710401_4FGL_J2355.7-3351_daily_bin1046.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=358.931 yref=-33.8607 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194864/ft1_filtered_4FGL_J2355.7-3351_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/194864/ft2_4FGL_J2355.7-3351_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194864/Model_4FGL_J2355.7-3351_daily_bin1046.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/194864/ft1_filtered_4FGL_J2355.7-3351_daily_bin1046.fits.....................!
real 42.91
user 41.57
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9974       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.688       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.7969       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50481       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.7236       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.989       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9220       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    73.963       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .80463       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2408       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=   5511.763     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     2180 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.565        .61349E-06** at limit **
   2  Prefactor     3.9968        3.3217       -.19862E-05   -.30513E-03
   3  Prefactor     .10000E-03    8.3872        .50830E-06** at limit **
   4  Prefactor     18.688        12.484        .45705E-07   -.35506E-05
   5  Prefactor     6.7950        32.374       -.64259E-05    .43678E-04
   6  Prefactor     .50177        4.6334       -.25577E-06    .47354E-03
   7  Prefactor     .10000E-03    33.531       -.81969E-05** at limit **
   8  Prefactor     .10000E-03    2.3536        .42888E-07** at limit **
   9  norm          3.7237        3.7808       -.34265E-06    .17724E-03
  10  norm          .10000E-03    2.8154       -.52626E-07** at limit **
  11  Prefactor     .10000E-03    17.924       -.51652E-05** at limit **
  12  Prefactor     35.991        55.744        .23799E-05    .17721E-05
  13  norm          3.9220        3.5464       -.12044E-06   -.74681E-04
  14  Prefactor     .10000E-03    22.624        .92456E-05** at limit **
  15  norm          .10000E-03    1.4176        .26229E-07** at limit **
  16  Prefactor     .10000E-03    31.172        .39867E-05** at limit **
  17  Prefactor     73.966        46.735        .20474E-05    .45137E-05
  18  Prefactor     .10000E-03    3.7366        .57368E-07** at limit **
  19  Prefactor     .10000E-03    19.345       -.15029E-05** at limit **
  20  Normalizat    .80467        .16973        .10466E-05    .50799E-04
  21  Prefactor     1.2408        .19554       -.76976E-07    .10150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.99684
  Prefactor  = 0.0001
  Prefactor  = 18.6878
  Prefactor  = 6.79497
  Prefactor  = 0.501766
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.72369
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.9911
  norm       = 3.92203
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.9656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.804668
  Prefactor  = 1.24077
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.763     FROM HESSE     STATUS=OK           313 CALLS     2493 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.9968        3.3653        .11939E-03   -1.5308    
   3  Prefactor     .10000E-03    8.4015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.688        12.485        .92648E-04   -1.4843    
   5  Prefactor     6.7950        59.657        .15390E-03   -1.5187    
   6  Prefactor     .50177        31.613        .22979E-02   -1.5566    
   7  Prefactor     .10000E-03    33.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.3599        .11122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.7237        3.7831        .13891E-03   -1.5322    
  10  norm          .10000E-03    2.8212        .12164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.991        55.961        .66803E-04   -1.4507    
  13  norm          3.9220        3.5429        .12578E-03   -1.5312    
  14  Prefactor     .10000E-03    22.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.4285        .86275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    31.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     73.966        46.752        .46685E-04   -1.3986    
  18  Prefactor     .10000E-03    3.8086        .14005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .80467        .20540        .23988E-03   -.99896    
  21  Prefactor     1.2408        .23717        .23470E-03   -.85086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20696e-09
Minuit parameter uncertainties:
  1  1.1569e-06
  2  3.36547
  3  3.17592e-05
  4  12.4863
  5  40.3211
  6  7.96911
  7  0.000352735
  8  2.92583e-07
  9  3.78334
  10  4.72039e-06
  11  5.69371e-06
  12  56.0427
  13  3.54308
  14  2.54352e-05
  15  5.76286e-08
  16  1.19244e-05
  17  46.7753
  18  9.93292e-07
  19  2.15275e-05
  20  0.205594
  21  0.237374
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.241e+00  2.374e-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.047e-01  2.056e-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: 6.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194864/likelihoodResults_510451201_510710401_4FGL_J2355.7-3351_daily_bin1046.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) = 5511.7645645
delta logL = -0.00125160513744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5511.76331339
delta logL = -4.93111656397e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5867       1.0000          .0000       10.000    
     3 'Normalizat'    .80459       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2409       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5511.706     FROM MIGRAD    STATUS=FAILED       206 CALLS      358 TOTAL
                     EDM=   .89E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .13079E-01    .44101E-03** at limit **
   2  Index         8.8997        7.5798        .50000        .87597E-04
   3  Normalizat    .79108        .28244E-01    .23988E-03   -.26479E-03
   4  Prefactor     1.2521        .33615E-01    .23470E-03    .33278E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5511.706     FROM SIMPLEX   STATUS=UNCHANGED    143 CALLS      501 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .13079E-01    .85519E-05** at limit **
   2  Index         8.8997        7.5798        .26966E-02    .87597E-04
   3  Normalizat    .79108        .28244E-01    .13720E-04   -.26479E-03
   4  Prefactor     1.2521        .33615E-01    .93543E-05    .33278E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5511.706     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      542 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .33458E-01    .39925E-03** at limit **
   2  Index         8.8997        5.5004        .40932E-01    .27601E-04
   3  Normalizat    .79108        .46374E-01    .95952E-05   -.23839E-03
   4  Prefactor     1.2521        .55168E-01    .93880E-05    .47228E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.89974
  Normalizat = 0.791078
  Prefactor  = 1.2521
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.706     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      577 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .35623E-01    .40771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8997        5.2668        .16373E-02    .89458    
   3  Normalizat    .79108        .49387E-01    .19190E-05   -1.0040    
   4  Prefactor     1.2521        .58840E-01    .18776E-05   -.84743    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15945e-09
Minuit parameter uncertainties:
  1  8.74864e-07
  2  19.0496
  3  0.04939
  4  0.0588434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194864': 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) = 5511.70642942
delta logL = 0.0568834811011

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.252e+00  5.884e-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:  7.911e-01  4.939e-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/194864/cmap_HighResolution_510451201_510710401_4FGL_J2355.7-3351_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-03', job_status='DONE', photon_flux_upper_limit='6.31e-08', time_completed='2021-09-30 09:25:01.104836', job_id='194864', GAL2='1.25', fit_tolerance='1e-08', EG2='0.79', EG='0.80', time_epoch_completed='1633019101.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='5.69e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1046' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:25:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 194864: <4FGL_J2355.7-3351_daily_bin1046> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1046 358.931 -33.8607 510451201 510710401 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 :                                   602.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             233.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

