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


Performing analysis on: 4FGL_J2355.7-3351_daily_bin1654
RA = 358.931, Dec = -33.8607
tmin = 668044801, tmax = 668304001
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='101700', job_status='RUN', time_executed='2022-03-07 01:29:36.127467', time_epoch_executed='1646645376.13' WHERE source_name='4FGL J2355.7-3351' and cadence='daily' and bin_id='1654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101700/ft1_4FGL_J2355.7-3351_daily_bin1654.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101700/ft2_4FGL_J2355.7-3351_daily_bin1654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/101700/ft1_4FGL_J2355.7-3351_daily_bin1654.fits outfile=/scratch/kocevski/101700/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1654.fits ra=358.931 dec=-33.8607 rad=12.0 tmin=668044801.0 tmax=668304001.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.70
user 3.45
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101700/ft2_4FGL_J2355.7-3351_daily_bin1654.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/101700/ft1_filteredMKT_4FGL_J2355.7-3351_daily_bin1654.fits evtable="EVENTS" outfile="/scratch/kocevski/101700/ft1_filtered_4FGL_J2355.7-3351_daily_bin1654.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.33
sys 0.15
Number of photons that survived the gtmktime cut: 401

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101700/ft1_filtered_4FGL_J2355.7-3351_daily_bin1654.fits" evtable="EVENTS" scfile=/scratch/kocevski/101700/ft2_4FGL_J2355.7-3351_daily_bin1654.fits sctable="SC_DATA" outfile=/scratch/kocevski/101700/ltcube_668044801_668304001_4FGL_J2355.7-3351_daily_bin1654.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/101700/ft2_4FGL_J2355.7-3351_daily_bin1654.fits
.....................!
real 12.93
user 12.44
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101700/ft1_filtered_4FGL_J2355.7-3351_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/101700/ft2_4FGL_J2355.7-3351_daily_bin1654.fits sctable="SC_DATA" expcube=/scratch/kocevski/101700/ltcube_668044801_668304001_4FGL_J2355.7-3351_daily_bin1654.fits outfile=/scratch/kocevski/101700/expmap_668044801_668304001_4FGL_J2355.7-3351_daily_bin1654.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/101700/ltcube_668044801_668304001_4FGL_J2355.7-3351_daily_bin1654.fits
.....................!
real 191.92
user 184.92
sys 5.01

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/101700/ft1_filtered_4FGL_J2355.7-3351_daily_bin1654.fits scfile=/scratch/kocevski/101700/ft2_4FGL_J2355.7-3351_daily_bin1654.fits outfile=/scratch/kocevski/101700/cmap_668044801_668304001_4FGL_J2355.7-3351_daily_bin1654.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.333       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5499       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.051       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.479       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8542       1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.715       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10152E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11869E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .98972E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.996       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38482E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97377       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96596       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=   4499.595     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     2265 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.356        78.192        .20003E-04   -.37165E-04
   2  Prefactor     2.5512        4.6287        .13453E-05   -.21958E-03
   3  Prefactor     12.059        22.925       -.58391E-05    .48378E-05
   4  Prefactor     26.482        14.469       -.80718E-06   -.36161E-05
   5  Prefactor     .10000E-03    11.196       -.13251E-06** at limit **
   6  Prefactor     6.8544        6.1034       -.31279E-06   -.11940E-03
   7  Prefactor     57.716        33.576        .99414E-06   -.15941E-04
   8  Prefactor     .10000E-03    4.6956       -.29066E-08** at limit **
   9  norm          .10000E-03    1.6490        .14166E-06** at limit **
  10  norm          .10000E-03    19.850       -.27147E-05** at limit **
  11  Prefactor     .10101E-03    50.525        .48454E-05** at limit **
  12  Prefactor     .10000E-03    27.866        .18220E-04** at limit **
  13  norm          .15517        3.6538        .27841E-06   -.82366E-03
  14  Prefactor     16.057        37.080        .24417E-04    .35314E-04
  15  norm          .10000E-03    2.2919       -.13479E-06** at limit **
  16  Prefactor     .10000E-03    443.98       -.78346E-04** at limit **
  17  Prefactor     .10000E-03    42.072        .27592E-04** at limit **
  18  Prefactor     .10000E-03    2.6170        .52969E-07** at limit **
  19  Prefactor     .10000E-03    36.046       -.30640E-04** at limit **
  20  Normalizat    .97331        .19496       -.36137E-05   -.17531E-03
  21  Prefactor     .96626        .20870       -.60704E-06   -.26959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.3561
  Prefactor  = 2.55121
  Prefactor  = 12.0585
  Prefactor  = 26.482
  Prefactor  = 0.0001
  Prefactor  = 6.85435
  Prefactor  = 57.7162
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000101012
  Prefactor  = 0.0001
  norm       = 0.155172
  Prefactor  = 16.0575
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.973306
  Prefactor  = 0.966263
 **********
 **   18 **HESSE 
 **********

 FCN=   4499.595     FROM HESSE     STATUS=OK           315 CALLS     2580 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.356        78.310        .41599E-04   -1.3773    
   2  Prefactor     2.5512        4.5846        .17142E-03   -1.5389    
   3  Prefactor     12.059        22.735        .11539E-03   -1.5013    
   4  Prefactor     26.482        14.473        .77850E-04   -1.4678    
   5  Prefactor     .10000E-03    11.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8544        6.0996        .14247E-03   -1.5184    
   7  Prefactor     57.716        33.561        .52807E-04   -1.4187    
   8  Prefactor     .10000E-03    4.7190        .14195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.6497        .84112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    20.392        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10101E-03    260.50        .76559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15517        31.221        .20596E-02   -1.5629    
  14  Prefactor     16.057        37.161        .10014E-03   -1.4906    
  15  norm          .10000E-03    2.3167        .99048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    448.03        .21281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    42.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6287        .10595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    35.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97331        .23382        .22524E-03   -.93930    
  21  Prefactor     .96626        .25075        .25350E-03   -.93863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02041e-08
Minuit parameter uncertainties:
  1  78.3966
  2  4.58518
  3  22.7509
  4  14.4747
  5  6.96346e-06
  6  6.10019
  7  33.5721
  8  1.1863e-05
  9  7.4808e-07
  10  0.000192134
  11  0.0326076
  12  4.02253e-05
  13  4.40299
  14  37.215
  15  4.81094e-06
  16  0.00204939
  17  4.2926e-05
  18  7.48869e-06
  19  8.71553e-05
  20  0.234064
  21  0.251049
Done.

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

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  7.489e-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:  9.663e-01  2.510e-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:  9.733e-01  2.341e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/101700/likelihoodResults_668044801_668304001_4FGL_J2355.7-3351_daily_bin1654.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) = 4499.59637309
delta logL = -0.00180727151201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4499.59456582
delta logL = 3.28600435751e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5707       1.0000          .0000       10.000    
     3 'Normalizat'    .97332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96627       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=   4499.595     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      241 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.203        .10630E-01** at limit **
   2  Index         2.2699        8.2468        .50000       -.20009E-07
   3  Normalizat    .97330        .12902E-01    .22524E-03    .14380E-03
   4  Prefactor     .96627        .14550E-01    .25350E-03    .14835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.26985
  Normalizat = 0.973304
  Prefactor  = 0.966267
 **********
 **   18 **HESSE 
 **********

 FCN=   4499.595     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    235.60        .10924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2699        6.3001        .50000       -.57762    
   3  Normalizat    .97330        .46591E-01    .45048E-04   -.93930    
   4  Prefactor     .96627        .52539E-01    .10140E-04   -.93863    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.90071e-08
Minuit parameter uncertainties:
  1  0.00144023
  2  1010.76
  3  0.0465929
  4  0.0525418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101700': 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) = 4499.59456471
delta logL = 1.11387453217e-06

Extracting fit parameters...

4FGL J2355.7-3351
   Spectrum: PowerLaw
550    Prefactor:  1.000e-04  1.440e-03  1.000e-04  1.000e+04 ( 1.000e-12)
551        Index:  2.270e+00  1.011e+03  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:  9.663e-01  5.254e-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:  9.733e-01  4.659e-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/101700/cmap_HighResolution_668044801_668304001_4FGL_J2355.7-3351_daily_bin1654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2022-03-07 01:38:37.200228', job_id='101700', GAL2='0.97', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1646645917.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='1654' AND source_name='4FGL J2355.7-3351' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar  7 01:38:37 PST 2022


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

Job <4FGL_J2355.7-3351_daily_bin1654> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Mar  7 01:25:36 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar  7 01:26:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar  7 01:26:39 2022
Terminated at Mon Mar  7 01:38:37 2022
Results reported at Mon Mar  7 01:38:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2355.7-3351_daily_bin1654 358.931 -33.8607 668044801 668304001 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 :                                   538.53 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            781 sec.

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

