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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1326
RA = 358.322, Dec = 31.5927
tmin = 583027201, tmax = 583286401
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='174779', job_status='RUN', time_executed='2021-09-30 08:02:32.778040', time_epoch_executed='1633014152.78' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174779/ft1_4FGL_J2353.2+3135_daily_bin1326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174779/ft2_4FGL_J2353.2+3135_daily_bin1326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174779/ft1_4FGL_J2353.2+3135_daily_bin1326.fits outfile=/scratch/kocevski/174779/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1326.fits ra=358.322 dec=31.5927 rad=12.0 tmin=583027201.0 tmax=583286401.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.57
user 3.34
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/174779/ft2_4FGL_J2353.2+3135_daily_bin1326.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/174779/ft2_4FGL_J2353.2+3135_daily_bin1326.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/174779/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1326.fits evtable="EVENTS" outfile="/scratch/kocevski/174779/ft1_filtered_4FGL_J2353.2+3135_daily_bin1326.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174779/ft1_filtered_4FGL_J2353.2+3135_daily_bin1326.fits" evtable="EVENTS" scfile=/scratch/kocevski/174779/ft2_4FGL_J2353.2+3135_daily_bin1326.fits sctable="SC_DATA" outfile=/scratch/kocevski/174779/ltcube_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.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/174779/ft2_4FGL_J2353.2+3135_daily_bin1326.fits
.....................!
real 11.85
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174779/ft1_filtered_4FGL_J2353.2+3135_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/174779/ft2_4FGL_J2353.2+3135_daily_bin1326.fits sctable="SC_DATA" expcube=/scratch/kocevski/174779/ltcube_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.fits outfile=/scratch/kocevski/174779/expmap_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.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/174779/ltcube_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.fits
.....................!
real 190.25
user 185.09
sys 4.80

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2353.2+3135 @ 358.322 31.5927

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/174779/ft1_filtered_4FGL_J2353.2+3135_daily_bin1326.fits scfile=/scratch/kocevski/174779/ft2_4FGL_J2353.2+3135_daily_bin1326.fits outfile=/scratch/kocevski/174779/cmap_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.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.322 yref=31.5927 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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174779/ft1_filtered_4FGL_J2353.2+3135_daily_bin1326.fits scfile=/scratch/kocevski/174779/ft2_4FGL_J2353.2+3135_daily_bin1326.fits outfile=/scratch/kocevski/174779/cmap_HighResolution_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.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.322 yref=31.5927 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/174779/ft1_filtered_4FGL_J2353.2+3135_daily_bin1326.fits evtable="EVENTS" scfile=/scratch/kocevski/174779/ft2_4FGL_J2353.2+3135_daily_bin1326.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/174779/Model_4FGL_J2353.2+3135_daily_bin1326.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/174779/ft1_filtered_4FGL_J2353.2+3135_daily_bin1326.fits.....................!
real 89.29
user 87.74
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/174779/ft1_filtered_4FGL_J2353.2+3135_daily_bin1326.fits', '/scratch/kocevski/174779/ft2_4FGL_J2353.2+3135_daily_bin1326.fits', expMap='/scratch/kocevski/174779/expmap_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.fits', expCube='/scratch/kocevski/174779/ltcube_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/174779/Model_4FGL_J2353.2+3135_daily_bin1326.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2353.2+3135'

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  7.403e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.631e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/174779/ft1_filtered_4FGL_J2353.2+3135_daily_bin1326.fits
Spacecraft file(s): /scratch/kocevski/174779/ft2_4FGL_J2353.2+3135_daily_bin1326.fits
Exposure map: /scratch/kocevski/174779/expmap_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.fits
Exposure cube: /scratch/kocevski/174779/ltcube_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/174779/Model_4FGL_J2353.2+3135_daily_bin1326.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) = 8675.73501298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5309       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13442E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.519       1.0000         .10000E-03   10000.    
     8 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
    14 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10333E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.831       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.844       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .87745       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0807       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8675.673     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2072 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1.2184        .41051E-06** at limit **
   2  norm          5.5303        14.713       -.11692E-06   -.72364E-04
   3  Prefactor     .10000E-03    3.6742       -.50531E-08** at limit **
   4  Prefactor     .10000E-03    6.4294        .48449E-06** at limit **
   5  Prefactor     .10000E-03    5.7340       -.22667E-05** at limit **
   6  Prefactor     .10000E-03    13.389       -.24331E-06** at limit **
   7  Prefactor     19.527        19.442        .25824E-05   -.11202E-04
   8  norm          .10000E-03    1.1450        .13767E-06** at limit **
   9  Prefactor     .10000E-03    8.3270       -.27128E-05** at limit **
  10  norm          1.4278        1.0753        .12425E-07   -.49714E-03
  11  Prefactor     .10000E-03    13.585       -.18306E-05** at limit **
  12  Prefactor     .10000E-03    10.038        .33495E-05** at limit **
  13  Prefactor     11.003        15.917        .53137E-06   -.50192E-05
  14  norm          .10000E-03    2.3707       -.95787E-09** at limit **
  15  Prefactor     .10000E-03    8.8705       -.22666E-05** at limit **
  16  norm          .10002E-03    1.0280        .57135E-06** at limit **
  17  Prefactor     .10000E-03    4.2365       -.16254E-06** at limit **
  18  Prefactor     10.843        29.462        .16796E-04   -.64082E-05
  19  Prefactor     .10000E-03    42.466       -.60328E-06** at limit **
  20  Prefactor     15.841        9.0813        .86320E-07   -.76496E-04
  21  Normalizat    .87760        .18531       -.25455E-05   -.99147E-04
  22  Prefactor     1.0805        .10175        .19509E-06   -.38753E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  norm       = 5.5303
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5268
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.42783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0032
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 10.8432
  Prefactor  = 0.0001
  Prefactor  = 15.8406
  Normalizat = 0.877599
  Prefactor  = 1.08047
 **********
 **   18 **HESSE 
 **********

 FCN=   8675.673     FROM HESSE     STATUS=OK           344 CALLS     2416 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    9.8920        .19396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5303        14.631        .17084E-03   -1.5238    
   3  Prefactor     .10000E-03    3.7030        .17418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.749        .45188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.527        19.438        .90657E-04   -1.4824    
   8  norm          .10000E-03    4.8926        .19393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4278        1.0641        .80754E-04   -1.5469    
  11  Prefactor     .10000E-03    13.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.003        15.909        .12080E-03   -1.5044    
  14  norm          .10000E-03    2.4281        .14000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.9163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10002E-03    6.3659        .18134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.843        29.473        .12174E-03   -1.5049    
  19  Prefactor     .10000E-03    42.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.841        9.0316        .10062E-03   -1.4912    
  21  Normalizat    .87760        .21186        .33076E-03   -.97252    
  22  Prefactor     1.0805        .11838        .17047E-03   -.90093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32301e-09
Minuit parameter uncertainties:
  1  0.00055348
  2  14.6409
  3  4.29066e-06
  4  0.000686376
  5  1.17137e-05
  6  6.55003e-06
  7  19.444
  8  3.97032e-05
  9  2.97717e-06
  10  1.06414
  11  1.90227e-05
  12  3.12201e-06
  13  15.9151
  14  1.98051e-06
  15  1.92285e-06
  16  0.000767016
  17  4.36736e-06
  18  29.5125
  19  7.90964e-06
  20  9.03238
  21  0.212064
  22  0.118407
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.084e+01  2.951e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.631e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.080e+00  1.184e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  8.776e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 9.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/174779/likelihoodResults_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.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): 0
logL (Free Index) = 8675.63692995
delta logL = 0.0359014903752

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8675.60996302
delta logL = 0.0628684236035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2655       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6931       1.0000          .0000       10.000    
     3 'Normalizat'    .85580       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0886       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8675.610     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      218 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2660        234.16        .48771E-02    .39297E-03
   2  Index         3.6972        6.7848        .20907        .10501E-03
   3  Normalizat    .85534        .40902E-01    .75629E-01    .33934E-04
   4  Prefactor     1.0888        .22841E-01    .38037E-01   -.11295E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26603
  Index      = 3.69717
  Normalizat = 0.855345
  Prefactor  = 1.0888
 **********
 **   18 **HESSE 
 **********

 FCN=   8675.610     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      251 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2660        691.64        .19508E-03   -1.5295    
   2  Index         3.6972        6.6220        .12156E-01   -.26361    
   3  Normalizat    .85534        .18026        .33472E-03   -.98047    
   4  Prefactor     1.0888        .99979E-01    .16991E-03   -.89825    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73708e-06
Minuit parameter uncertainties:
  1  109.954
  2  15.8175
  3  0.180388
  4  0.0999964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174779': 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) = 8675.60995662
delta logL = 0.0628748285162

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  4.266e+00  1.100e+02  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  3.697e+00  1.582e+01  0.000e+00  1.000e+01 (-1.000e+00)
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.089e+00  1.000e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  8.553e-01  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 358.322 31.593

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/174779/cmap_HighResolution_583027201_583286401_4FGL_J2353.2+3135_daily_bin1326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.53e-03', job_status='DONE', photon_flux_upper_limit='9.60e-08', time_completed='2021-09-30 08:14:28.847464', job_id='174779', GAL2='1.09', fit_tolerance='1e-08', EG2='0.86', EG='0.88', time_epoch_completed='1633014868.85', return_code2='102', ts='0.16', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.29e-02', ts2='0.32', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='1326' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:14:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 174779: <4FGL_J2353.2+3135_daily_bin1326> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1326> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 08:00:19 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:00:21 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:00:21 2021
Terminated at Thu Sep 30 08:14:29 2021
Results reported at Thu Sep 30 08:14:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1326 358.322 31.5927 583027201 583286401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2353.2+3135 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   710.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

