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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin621
RA = 358.931, Dec = -33.8607
tmin = 400291201, tmax = 400550401
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='193231', job_status='RUN', time_executed='2021-09-30 09:07:53.453750', time_epoch_executed='1633018073.45' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193231

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193231/ft1_4FGL_J2355.7-3351_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193231/ft2_4FGL_J2355.7-3351_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193231/ft1_4FGL_J2355.7-3351_daily_bin621.fits outfile=/scratch/kocevski/193231/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin621.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=400291201.0 tmax=400550401.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.32
user 3.09
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193231/ft2_4FGL_J2355.7-3351_daily_bin621.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/193231/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin621.fits evtable="EVENTS" outfile="/scratch/kocevski/193231/ft1_filtered_4FGL_J2355.7-3351_daily_bin621.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193231/ft1_filtered_4FGL_J2355.7-3351_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/193231/ft2_4FGL_J2355.7-3351_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/193231/ltcube_400291201_400550401_4FGL_J2355.7-3351_daily_bin621.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/193231/ft2_4FGL_J2355.7-3351_daily_bin621.fits
.....................!
real 12.11
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193231/ft1_filtered_4FGL_J2355.7-3351_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/193231/ft2_4FGL_J2355.7-3351_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/193231/ltcube_400291201_400550401_4FGL_J2355.7-3351_daily_bin621.fits outfile=/scratch/kocevski/193231/expmap_400291201_400550401_4FGL_J2355.7-3351_daily_bin621.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/193231/ltcube_400291201_400550401_4FGL_J2355.7-3351_daily_bin621.fits
.....................!
real 190.27
user 185.31
sys 4.57

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/193231/ft1_filtered_4FGL_J2355.7-3351_daily_bin621.fits scfile=/scratch/kocevski/193231/ft2_4FGL_J2355.7-3351_daily_bin621.fits outfile=/scratch/kocevski/193231/cmap_400291201_400550401_4FGL_J2355.7-3351_daily_bin621.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.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193231/ft1_filtered_4FGL_J2355.7-3351_daily_bin621.fits scfile=/scratch/kocevski/193231/ft2_4FGL_J2355.7-3351_daily_bin621.fits outfile=/scratch/kocevski/193231/cmap_HighResolution_400291201_400550401_4FGL_J2355.7-3351_daily_bin621.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193231/ft1_filtered_4FGL_J2355.7-3351_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/193231/ft2_4FGL_J2355.7-3351_daily_bin621.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193231/Model_4FGL_J2355.7-3351_daily_bin621.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/193231/ft1_filtered_4FGL_J2355.7-3351_daily_bin621.fits.....................!
real 38.69
user 37.30
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .74531       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.613       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13135       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.462       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.104       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.5927       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10431E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    15.906       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.189       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4593       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.541       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .60252       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1937       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=   5042.194     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2808 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    93.682       -.56777E-06** at limit **
   2  Prefactor     .74571        3.7536        .19555E-05   -.46855E-04
   3  Prefactor     .10000E-03    12.491       -.24038E-06** at limit **
   4  Prefactor     22.614        14.202        .34159E-07   -.36650E-04
   5  Prefactor     .10000E-03    6.9411        .71034E-07** at limit **
   6  Prefactor     .13784        3.5886        .91255E-06   -.51330E-03
   7  Prefactor     14.476        27.187       -.13985E-05   -.12868E-03
   8  Prefactor     21.107        10.386        .13836E-06   -.76094E-04
   9  norm          .10000E-03    2.4339        .15584E-06** at limit **
  10  norm          7.5935        8.3704        .23189E-06    .17527E-05
  11  Prefactor     .10000E-03    94.920        .45377E-06** at limit **
  12  Prefactor     .10000E-03    12.024       -.68673E-07** at limit **
  13  norm          15.881        5.7608       -.28772E-06    .55808E-04
  14  Prefactor     31.193        31.943        .46704E-06   -.43201E-06
  15  norm          2.4550        4.0896        .25803E-06   -.78178E-05
  16  Prefactor     .10000E-03    71.850        .80850E-06** at limit **
  17  Prefactor     14.539        34.816        .12336E-07   -.12535E-04
  18  Prefactor     .10000E-03    1.3323       -.19193E-07** at limit **
  19  Prefactor     .10000E-03    38.303       -.36428E-06** at limit **
  20  Normalizat    .60244        .17366       -.16458E-05   -.15960E-03
  21  Prefactor     1.1936        .19430        .32151E-06   -.21298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.745714
  Prefactor  = 0.0001
  Prefactor  = 22.6143
  Prefactor  = 0.0001
  Prefactor  = 0.137838
  Prefactor  = 14.4759
  Prefactor  = 21.107
  norm       = 0.0001
  norm       = 7.59353
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.8813
  Prefactor  = 31.1929
  norm       = 2.455
  Prefactor  = 0.000100001
  Prefactor  = 14.5389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.602445
  Prefactor  = 1.19365
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.194     FROM HESSE     STATUS=OK           319 CALLS     3127 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    94.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .74571        3.7445        .25108E-03   -1.5535    
   3  Prefactor     .10000E-03    12.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.614        14.204        .84232E-04   -1.4757    
   5  Prefactor     .10000E-03    6.9442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13784        49.624        .21264E-02   -1.5634    
   7  Prefactor     14.476        33.827        .10532E-03   -1.4947    
   8  Prefactor     21.107        10.423        .87188E-04   -1.4789    
   9  norm          .10000E-03    2.4438        .10821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.5935        8.3738        .14554E-03   -1.5157    
  11  Prefactor     .10000E-03    95.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          15.881        5.7207        .93093E-04   -1.4911    
  14  Prefactor     31.193        31.955        .71746E-04   -1.4590    
  15  norm          2.4550        4.0645        .16973E-03   -1.5395    
  16  Prefactor     .10000E-03    71.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.539        34.804        .10504E-03   -1.4945    
  18  Prefactor     .10000E-03    1.3354        .80031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .60244        .20184        .25856E-03   -1.0788    
  21  Prefactor     1.1936        .23009        .22412E-03   -.86527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38736e-09
Minuit parameter uncertainties:
  1  0.00024816
  2  3.34214
  3  3.11983e-05
  4  14.2063
  5  3.59547e-07
  6  5.23316
  7  33.8716
  8  10.4235
  9  3.92273e-06
  10  8.37508
  11  8.65704e-05
  12  2.04681e-05
  13  5.7209
  14  31.9722
  15  4.06497
  16  0.000654248
  17  34.8522
  18  1.91236e-07
  19  8.08691e-05
  20  0.202086
  21  0.230283
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  1.912e-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.194e+00  2.303e-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:  6.024e-01  2.021e-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: 4.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/193231/likelihoodResults_400291201_400550401_4FGL_J2355.7-3351_daily_bin621.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) = 5042.19748961
delta logL = -0.00340479918759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5042.19408444
delta logL = 3.69937879441e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5569       1.0000          .0000       10.000    
     3 'Normalizat'    .60241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1937       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=   5042.194     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      216 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.353        .90712E-02** at limit **
   2  Index         1.9352        8.5712        .50000        .21093E-06
   3  Normalizat    .60244        .11107E-01    .40972E-01   -.63553E-04
   4  Prefactor     1.1937        .13228E-01    .50696E-01   -.74890E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.93518
  Normalizat = 0.602444
  Prefactor  = 1.19365
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.194     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      247 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    127.62        .96979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9352        8.2906        .50000       -.65981    
   3  Normalizat    .60244        .34363E-01    .25857E-03   -1.0788    
   4  Prefactor     1.1937        .40937E-01    .22412E-03   -.86527    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.44613e-09
Minuit parameter uncertainties:
  1  8.07897e-05
  2  540.397
  3  0.0343638
  4  0.0409383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193231': 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) = 5042.19407287
delta logL = 1.19412416097e-05

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  8.079e-05  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  1.935e+00  5.404e+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:  1.194e+00  4.094e-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:  6.024e-01  3.436e-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/193231/cmap_HighResolution_400291201_400550401_4FGL_J2355.7-3351_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-03', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-09-30 09:17:42.657505', job_id='193231', GAL2='1.19', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1633018662.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='1.19e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='621' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:17:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 193231: <4FGL_J2355.7-3351_daily_bin621> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin621> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 09:05:30 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 09:05:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 09:05:32 2021
Terminated at Thu Sep 30 09:17:43 2021
Results reported at Thu Sep 30 09:17:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin621 358.931 -33.8607 400291201 400550401 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 :                                   588.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            733 sec.

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

