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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin123
RA = 358.931, Dec = -33.8607
tmin = 271209601, tmax = 271468801
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='190472', job_status='RUN', time_executed='2021-09-30 08:55:49.881207', time_epoch_executed='1633017349.88' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190472

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190472/ft1_4FGL_J2355.7-3351_daily_bin123.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190472/ft2_4FGL_J2355.7-3351_daily_bin123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190472/ft1_4FGL_J2355.7-3351_daily_bin123.fits outfile=/scratch/kocevski/190472/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin123.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=271209601.0 tmax=271468801.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 1.60
user 1.42
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190472/ft1_filtered_4FGL_J2355.7-3351_daily_bin123.fits" evtable="EVENTS" scfile=/scratch/kocevski/190472/ft2_4FGL_J2355.7-3351_daily_bin123.fits sctable="SC_DATA" outfile=/scratch/kocevski/190472/ltcube_271209601_271468801_4FGL_J2355.7-3351_daily_bin123.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/190472/ft2_4FGL_J2355.7-3351_daily_bin123.fits
.....................!
real 12.70
user 12.30
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190472/ft1_filtered_4FGL_J2355.7-3351_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/190472/ft2_4FGL_J2355.7-3351_daily_bin123.fits sctable="SC_DATA" expcube=/scratch/kocevski/190472/ltcube_271209601_271468801_4FGL_J2355.7-3351_daily_bin123.fits outfile=/scratch/kocevski/190472/expmap_271209601_271468801_4FGL_J2355.7-3351_daily_bin123.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/190472/ltcube_271209601_271468801_4FGL_J2355.7-3351_daily_bin123.fits
.....................!
real 191.57
user 186.42
sys 4.76

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/190472/ft1_filtered_4FGL_J2355.7-3351_daily_bin123.fits scfile=/scratch/kocevski/190472/ft2_4FGL_J2355.7-3351_daily_bin123.fits outfile=/scratch/kocevski/190472/cmap_271209601_271468801_4FGL_J2355.7-3351_daily_bin123.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190472/ft1_filtered_4FGL_J2355.7-3351_daily_bin123.fits scfile=/scratch/kocevski/190472/ft2_4FGL_J2355.7-3351_daily_bin123.fits outfile=/scratch/kocevski/190472/cmap_HighResolution_271209601_271468801_4FGL_J2355.7-3351_daily_bin123.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/190472/ft1_filtered_4FGL_J2355.7-3351_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/190472/ft2_4FGL_J2355.7-3351_daily_bin123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/190472/Model_4FGL_J2355.7-3351_daily_bin123.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/190472/ft1_filtered_4FGL_J2355.7-3351_daily_bin123.fits.....................!
real 41.61
user 40.20
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12872E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2041       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3584       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.088       1.0000         .10000E-03   10000.    
     9 'norm      '    4.1250       1.0000         .10000E-03   10000.    
    10 'norm      '    .32042E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.574       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.538       1.0000         .10000E-03   10000.    
    13 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11234E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .41397E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.607       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .84882       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1140       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=   5302.924     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     2686 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    105.86        .37855E-04** at limit **
   2  Prefactor     .10000E-03    1.8879        .45957E-07** at limit **
   3  Prefactor     4.2030        28.633       -.27048E-05   -.43510E-04
   4  Prefactor     9.3600        15.551       -.55169E-06   -.30043E-04
   5  Prefactor     13.976        14.423        .58050E-06    .47399E-06
   6  Prefactor     .10000E-03    2.5724       -.57190E-07** at limit **
   7  Prefactor     .10000E-03    22.897       -.53744E-06** at limit **
   8  Prefactor     12.089        8.0280       -.17519E-05   -.39099E-04
   9  norm          4.1246        3.9722        .30492E-06    .13878E-03
  10  norm          .11048E-03    7.1315       -.54677E-05** at limit **
  11  Prefactor     28.547        31.254       -.78520E-05   -.63452E-04
  12  Prefactor     29.551        59.898        .17317E-04    .32147E-03
  13  norm          .10000E-03    4.8176        .58139E-06** at limit **
  14  Prefactor     .10000E-03    60.790       -.82286E-05** at limit **
  15  norm          .10000E-03    2.4610        .83954E-06** at limit **
  16  Prefactor     46.556        77.005       -.60295E-04    .18107E-04
  17  Prefactor     .10000E-03    29.946        .15841E-05** at limit **
  18  Prefactor     .10000E-03    1.2784        .22401E-08** at limit **
  19  Prefactor     .10000E-03    14.462       -.91894E-08** at limit **
  20  Normalizat    .84890        .16772        .19309E-05    .54617E-03
  21  Prefactor     1.1138        .18691        .13152E-05    .58904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.20298
  Prefactor  = 9.36003
  Prefactor  = 13.9756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0892
  norm       = 4.1246
  norm       = 0.000110481
  Prefactor  = 28.5467
  Prefactor  = 29.5515
  norm       = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.000100002
  Prefactor  = 46.5558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.848902
  Prefactor  = 1.11384
 **********
 **   18 **HESSE 
 **********

 FCN=   5302.924     FROM HESSE     STATUS=OK           315 CALLS     3001 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.8931        .18537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2030        26.461        .19654E-03   -1.5298    
   4  Prefactor     9.3600        15.551        .13100E-03   -1.5096    
   5  Prefactor     13.976        14.416        .10716E-03   -1.4960    
   6  Prefactor     .10000E-03    2.6104        .11397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.089        8.0286        .11522E-03   -1.5012    
   9  norm          4.1246        3.9754        .13774E-03   -1.5302    
  10  norm          .11048E-03    171.36        .35419E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.547        30.093        .74948E-04   -1.4639    
  12  Prefactor     29.551        58.870        .73719E-04   -1.4620    
  13  norm          .10000E-03    4.9033        .30926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    61.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.5611        .21170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     46.556        76.690        .58732E-04   -1.4342    
  17  Prefactor     .10000E-03    29.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.2816        .80401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .84890        .19987        .23081E-03   -.98280    
  21  Prefactor     1.1138        .22303        .23695E-03   -.89026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6378e-08
Minuit parameter uncertainties:
  1  0.000620058
  2  1.03935e-05
  3  21.1053
  4  15.558
  5  14.42
  6  1.05504e-05
  7  5.92233e-05
  8  8.02927
  9  3.97566
  10  0.0850044
  11  30.109
  12  58.9859
  13  0.000129843
  14  0.000842169
  15  0.000276224
  16  76.8532
  17  5.23359e-05
  18  2.12265e-06
  19  1.77639e-06
  20  0.20004
  21  0.223221
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  2.123e-06  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.114e+00  2.232e-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.489e-01  2.000e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/190472/likelihoodResults_271209601_271468801_4FGL_J2355.7-3351_daily_bin123.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) = 5302.92713264
delta logL = -0.00361428855558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5302.92351805
delta logL = 2.95742211165e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5656       1.0000          .0000       10.000    
     3 'Normalizat'    .84890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1139       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=   5302.924     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      256 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.553        .81089E-02** at limit **
   2  Index         1.8806        8.9829        .50000       -.32692E-06
   3  Normalizat    .84890        .19323E-01    .23081E-03   -.11772E-03
   4  Prefactor     1.1138        .22524E-01    .23695E-03   -.97350E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.88057
  Normalizat = 0.848902
  Prefactor  = 1.11383
 **********
 **   18 **HESSE 
 **********

 FCN=   5302.924     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    252.77        .91515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8806        5.6464        .50000       -.67370    
   3  Normalizat    .84890        .64874E-01    .92324E-05   -.98280    
   4  Prefactor     1.1138        .75620E-01    .94780E-05   -.89026    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.56265e-09
Minuit parameter uncertainties:
  1  4.26699e-05
  2  885.465
  3  0.0648797
  4  0.0756271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190472': 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) = 5302.92350946
delta logL = 8.89436887519e-06

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  4.267e-05  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  1.881e+00  8.855e+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.114e+00  7.563e-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.489e-01  6.488e-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/190472/cmap_HighResolution_271209601_271468801_4FGL_J2355.7-3351_daily_bin123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', job_status='DONE', photon_flux_upper_limit='4.08e-08', time_completed='2021-09-30 09:05:47.523237', job_id='190472', GAL2='1.11', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1633017947.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='8.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='123' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 09:05:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 190472: <4FGL_J2355.7-3351_daily_bin123> in cluster <slac> Done

Job <4FGL_J2355.7-3351_daily_bin123> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 08:55:13 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:55:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 08:55:14 2021
Terminated at Thu Sep 30 09:05:48 2021
Results reported at Thu Sep 30 09:05:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin123 358.931 -33.8607 271209601 271468801 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 :                                   595.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            635 sec.

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

