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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin48
RA = 358.322, Dec = 31.5927
tmin = 251769601, tmax = 252028801
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='168900', job_status='RUN', time_executed='2021-09-30 07:44:30.027924', time_epoch_executed='1633013070.03' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168900/ft1_4FGL_J2353.2+3135_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168900/ft2_4FGL_J2353.2+3135_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168900/ft1_4FGL_J2353.2+3135_daily_bin48.fits outfile=/scratch/kocevski/168900/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin48.fits ra=358.322 dec=31.5927 rad=12.0 tmin=251769601.0 tmax=252028801.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 2.14
user 1.95
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/168900/ft2_4FGL_J2353.2+3135_daily_bin48.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/168900/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin48.fits evtable="EVENTS" outfile="/scratch/kocevski/168900/ft1_filtered_4FGL_J2353.2+3135_daily_bin48.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.48
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168900/ft1_filtered_4FGL_J2353.2+3135_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/168900/ft2_4FGL_J2353.2+3135_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/168900/ltcube_251769601_252028801_4FGL_J2353.2+3135_daily_bin48.fits outfile=/scratch/kocevski/168900/expmap_251769601_252028801_4FGL_J2353.2+3135_daily_bin48.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/168900/ltcube_251769601_252028801_4FGL_J2353.2+3135_daily_bin48.fits
.....................!
real 190.53
user 185.10
sys 5.08

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/168900/ft1_filtered_4FGL_J2353.2+3135_daily_bin48.fits scfile=/scratch/kocevski/168900/ft2_4FGL_J2353.2+3135_daily_bin48.fits outfile=/scratch/kocevski/168900/cmap_251769601_252028801_4FGL_J2353.2+3135_daily_bin48.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168900/ft1_filtered_4FGL_J2353.2+3135_daily_bin48.fits scfile=/scratch/kocevski/168900/ft2_4FGL_J2353.2+3135_daily_bin48.fits outfile=/scratch/kocevski/168900/cmap_HighResolution_251769601_252028801_4FGL_J2353.2+3135_daily_bin48.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.56
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/168900/ft1_filtered_4FGL_J2353.2+3135_daily_bin48.fits', '/scratch/kocevski/168900/ft2_4FGL_J2353.2+3135_daily_bin48.fits', expMap='/scratch/kocevski/168900/expmap_251769601_252028801_4FGL_J2353.2+3135_daily_bin48.fits', expCube='/scratch/kocevski/168900/ltcube_251769601_252028801_4FGL_J2353.2+3135_daily_bin48.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/168900/Model_4FGL_J2353.2+3135_daily_bin48.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/168900/ft1_filtered_4FGL_J2353.2+3135_daily_bin48.fits
Spacecraft file(s): /scratch/kocevski/168900/ft2_4FGL_J2353.2+3135_daily_bin48.fits
Exposure map: /scratch/kocevski/168900/expmap_251769601_252028801_4FGL_J2353.2+3135_daily_bin48.fits
Exposure cube: /scratch/kocevski/168900/ltcube_251769601_252028801_4FGL_J2353.2+3135_daily_bin48.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/168900/Model_4FGL_J2353.2+3135_daily_bin48.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) = 6927.41371659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2073       1.0000         .10000E-03   10000.    
     2 'norm      '    35.629       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.388       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8534       1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.726       1.0000         .10000E-03   10000.    
    10 'norm      '    .27871       1.0000         .10000E-03   10000.    
    11 'Prefactor '    57.148       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.894       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.515       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1391       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0067       1.0000         .10000E-03   10000.    
    16 'norm      '    2.8050       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97386       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97211       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=   6927.408     FROM MIGRAD    STATUS=CONVERGED    480 CALLS     2369 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2081        2.9368        .10370E-06   -.87371E-05
   2  norm          35.630        20.119        .12103E-06   -.43241E-04
   3  Prefactor     .10000E-03    2.2667       -.23373E-07** at limit **
   4  Prefactor     .10000E-03    8.4838       -.26177E-06** at limit **
   5  Prefactor     12.388        7.7924        .12077E-06   -.22316E-04
   6  Prefactor     .10000E-03    95.915       -.33705E-06** at limit **
   7  Prefactor     .10000E-03    13.511       -.46973E-06** at limit **
   8  norm          1.8534        1.5671       -.79671E-08    .16798E-04
   9  Prefactor     36.725        28.845       -.38605E-06   -.49140E-04
  10  norm          .27883        1.2638        .12719E-05   -.16969E-03
  11  Prefactor     57.149        31.161        .11368E-06    .12981E-05
  12  Prefactor     12.893        14.026       -.99949E-07   -.36813E-04
  13  Prefactor     14.516        27.399        .29243E-06    .29225E-04
  14  norm          4.1427        5.7862        .22758E-06    .12548E-03
  15  Prefactor     3.9880        27.762        .27219E-06    .14586E-04
  16  norm          2.8048        2.3603        .26436E-06   -.71616E-04
  17  Prefactor     .10000E-03    10.386        .42089E-06** at limit **
  18  Prefactor     .10000E-03    7.0863        .52810E-07** at limit **
  19  Prefactor     .10000E-03    17.488        .21340E-06** at limit **
  20  Prefactor     .10000E-03    2.0379       -.23673E-07** at limit **
  21  Normalizat    .97376        .20942       -.58882E-06   -.83324E-04
  22  Prefactor     .97218        .11253       -.21072E-06   -.14343E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.20812
  norm       = 35.6295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85335
  Prefactor  = 36.7249
  norm       = 0.278827
  Prefactor  = 57.1485
  Prefactor  = 12.8932
  Prefactor  = 14.5165
  norm       = 4.14274
  Prefactor  = 3.98799
  norm       = 2.8048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.973764
  Prefactor  = 0.972182
 **********
 **   18 **HESSE 
 **********

 FCN=   6927.408     FROM HESSE     STATUS=OK           344 CALLS     2713 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2081        2.9396        .13027E-03   -1.5350    
   2  norm          35.630        20.127        .67139E-04   -1.4513    
   3  Prefactor     .10000E-03    2.2731        .12234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.388        7.8213        .11381E-03   -1.5004    
   6  Prefactor     .10000E-03    98.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8534        1.5746        .93410E-04   -1.5436    
   9  Prefactor     36.725        28.878        .66133E-04   -1.4495    
  10  norm          .27883        1.2667        .17593E-03   -1.5602    
  11  Prefactor     57.149        31.164        .53066E-04   -1.4195    
  12  Prefactor     12.893        14.019        .11155E-03   -1.4990    
  13  Prefactor     14.516        27.368        .10513E-03   -1.4946    
  14  norm          4.1427        5.6616        .19380E-03   -1.5301    
  15  Prefactor     3.9880        26.651        .20147E-03   -1.5309    
  16  norm          2.8048        2.3607        .56619E-03   -1.5373    
  17  Prefactor     .10000E-03    10.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0403        .11600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97376        .24533        .32472E-03   -.93915    
  22  Prefactor     .97218        .13244        .18158E-03   -.93663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37893e-10
Minuit parameter uncertainties:
  1  2.93976
  2  20.1312
  3  7.0504e-07
  4  5.88146e-05
  5  7.82195
  6  0.000114171
  7  0.000155684
  8  1.5746
  9  28.889
  10  1.18843
  11  31.1732
  12  14.0223
  13  27.3917
  14  5.66234
  15  20.6318
  16  2.3608
  17  0.000127196
  18  1.28073e-05
  19  0.000103348
  20  1.91384e-07
  21  0.245613
  22  0.13248
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  1.281e-05  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:  9.722e-01  1.325e-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:  9.738e-01  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/168900/likelihoodResults_251769601_252028801_4FGL_J2353.2+3135_daily_bin48.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) = 6927.40831518
delta logL = -0.00066973349476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6927.40764531
delta logL = 1.37270035339e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6077       1.0000          .0000       10.000    
     3 'Normalizat'    .97376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97219       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6927.408     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      262 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.798        .18142E-01** at limit **
   2  Index         1.8747        9.0432        .50000       -.14529E-07
   3  Normalizat    .97376        .97657E-02    .32472E-03    .48770E-04
   4  Prefactor     .97218        .54931E-02    .18158E-03    .86475E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87475
  Normalizat = 0.973765
  Prefactor  = 0.972182
 **********
 **   18 **HESSE 
 **********

 FCN=   6927.408     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      291 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    241.40        .26641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8747        5.8864        .50000       -.67520    
   3  Normalizat    .97376        .25616E-01    .12989E-04   -.93915    
   4  Prefactor     .97218        .14409E-01    .36317E-04   -.93663    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0333e-10
Minuit parameter uncertainties:
  1  0.000149253
  2  861.003
  3  0.0256164
  4  0.0144088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168900': 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) = 6927.40764304
delta logL = 2.39897417487e-06

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  1.493e-04  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  1.875e+00  8.610e+02  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:  9.722e-01  1.441e-02  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:  9.738e-01  2.562e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/168900/cmap_HighResolution_251769601_252028801_4FGL_J2353.2+3135_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-03', job_status='DONE', photon_flux_upper_limit='4.89e-08', time_completed='2021-09-30 07:55:18.145506', job_id='168900', GAL2='0.97', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1633013718.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='48' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:55:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 168900: <4FGL_J2353.2+3135_daily_bin48> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin48> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:40:35 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:40:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 07:40:37 2021
Terminated at Thu Sep 30 07:55:18 2021
Results reported at Thu Sep 30 07:55:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin48 358.322 31.5927 251769601 252028801 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 :                                   643.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             275.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

