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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1339
RA = 358.322, Dec = 31.5927
tmin = 586396801, tmax = 586656001
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='174797', job_status='RUN', time_executed='2021-09-30 08:00:36.956835', time_epoch_executed='1633014036.96' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174797

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174797/ft1_4FGL_J2353.2+3135_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174797/ft2_4FGL_J2353.2+3135_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174797/ft1_4FGL_J2353.2+3135_daily_bin1339.fits outfile=/scratch/kocevski/174797/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1339.fits ra=358.322 dec=31.5927 rad=12.0 tmin=586396801.0 tmax=586656001.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.60
user 2.43
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/174797/ft2_4FGL_J2353.2+3135_daily_bin1339.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/174797/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1339.fits evtable="EVENTS" outfile="/scratch/kocevski/174797/ft1_filtered_4FGL_J2353.2+3135_daily_bin1339.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.30
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174797/ft1_filtered_4FGL_J2353.2+3135_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/174797/ft2_4FGL_J2353.2+3135_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/174797/ltcube_586396801_586656001_4FGL_J2353.2+3135_daily_bin1339.fits outfile=/scratch/kocevski/174797/expmap_586396801_586656001_4FGL_J2353.2+3135_daily_bin1339.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/174797/ltcube_586396801_586656001_4FGL_J2353.2+3135_daily_bin1339.fits
.....................!
real 190.56
user 185.48
sys 4.71

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/174797/ft1_filtered_4FGL_J2353.2+3135_daily_bin1339.fits scfile=/scratch/kocevski/174797/ft2_4FGL_J2353.2+3135_daily_bin1339.fits outfile=/scratch/kocevski/174797/cmap_586396801_586656001_4FGL_J2353.2+3135_daily_bin1339.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174797/ft1_filtered_4FGL_J2353.2+3135_daily_bin1339.fits scfile=/scratch/kocevski/174797/ft2_4FGL_J2353.2+3135_daily_bin1339.fits outfile=/scratch/kocevski/174797/cmap_HighResolution_586396801_586656001_4FGL_J2353.2+3135_daily_bin1339.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5285       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8257       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.375       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.766       1.0000         .10000E-03   10000.    
     8 'norm      '    .78747       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .92372       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6551       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5562       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.374       1.0000         .10000E-03   10000.    
    14 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.218       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10511E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    77.483       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8972       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0709       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95392       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=   5003.450     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2385 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5286        3.3077       -.65753E-06   -.19219E-03
   2  norm          .10000E-03    19.768        .27889E-05** at limit **
   3  Prefactor     8.8239        9.6629        .82615E-06   -.15210E-03
   4  Prefactor     .10000E-03    3.9844       -.54765E-07** at limit **
   5  Prefactor     10.375        9.4137       -.87444E-06    .13968E-04
   6  Prefactor     .10000E-03    32.385       -.11174E-04** at limit **
   7  Prefactor     17.723        30.976       -.47264E-04    .97815E-05
   8  norm          .78820        2.2025       -.57450E-06   -.80693E-03
   9  Prefactor     .10000E-03    47.620        .20362E-04** at limit **
  10  norm          .92328        1.5559       -.83283E-06   -.17954E-02
  11  Prefactor     9.6551        29.726       -.46335E-05   -.22433E-05
  12  Prefactor     3.5556        13.920       -.29595E-05   -.10660E-03
  13  Prefactor     30.377        37.125        .18709E-05    .32287E-04
  14  norm          .10000E-03    8.2264       -.27913E-06** at limit **
  15  Prefactor     .10000E-03    11.282       -.35089E-06** at limit **
  16  norm          .10000E-03    2.3219       -.67754E-07** at limit **
  17  Prefactor     15.209        27.749       -.94080E-05    .25032E-05
  18  Prefactor     .10000E-03    54.232       -.39970E-05** at limit **
  19  Prefactor     77.432        82.539       -.52777E-04   -.87677E-04
  20  Prefactor     2.9014        10.225        .15993E-04    .55562E-04
  21  Normalizat    1.0706        .24309        .10275E-04   -.15391E-03
  22  Prefactor     .95410        .12960        .39264E-07    .22645E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.5286
  norm       = 0.000100002
  Prefactor  = 8.82387
  Prefactor  = 0.0001
  Prefactor  = 10.3751
  Prefactor  = 0.0001
  Prefactor  = 17.723
  norm       = 0.788196
  Prefactor  = 0.0001
  norm       = 0.923284
  Prefactor  = 9.65509
  Prefactor  = 3.55556
  Prefactor  = 30.377
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2087
  Prefactor  = 0.0001
  Prefactor  = 77.4321
  Prefactor  = 2.90141
  Normalizat = 1.07057
  Prefactor  = 0.954096
 **********
 **   18 **HESSE 
 **********

 FCN=   5003.450     FROM HESSE     STATUS=OK           350 CALLS     2735 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5286        3.3054        .11980E-03   -1.5332    
   2  norm          .10000E-03    19.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8239        9.6276        .13492E-03   -1.5114    
   4  Prefactor     .10000E-03    3.9857        .13789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.375        9.4649        .12440E-03   -1.5064    
   6  Prefactor     .10000E-03    32.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.723        30.930        .95022E-04   -1.4866    
   8  norm          .78820        2.1139        .17023E-02   -1.5530    
   9  Prefactor     .10000E-03    47.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .92328        1.4216        .10871E-02   -1.5516    
  11  Prefactor     9.6551        29.709        .12897E-03   -1.5086    
  12  Prefactor     3.5556        13.902        .21432E-03   -1.5331    
  13  Prefactor     30.377        37.089        .72699E-04   -1.4605    
  14  norm          .10000E-03    8.4665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4012        .21020E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.209        27.765        .10267E-03   -1.4928    
  18  Prefactor     .10000E-03    54.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     77.432        81.819        .22810E-03   -1.3946    
  20  Prefactor     2.9014        10.036        .23874E-03   -1.5367    
  21  Normalizat    1.0706        .28217        .30834E-03   -.90702    
  22  Prefactor     .95410        .15173        .18099E-03   -.94276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85401e-09
Minuit parameter uncertainties:
  1  3.30559
  2  0.00037176
  3  9.62925
  4  5.12926e-06
  5  9.46627
  6  9.84565e-05
  7  30.9581
  8  2.11407
  9  0.000212989
  10  1.42162
  11  29.7545
  12  13.9146
  13  37.1174
  14  9.38696e-05
  15  6.49761e-05
  16  9.31175e-06
  17  27.7886
  18  0.000129626
  19  81.9381
  20  10.0419
  21  0.282565
  22  0.151796
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  1.296e-04  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.541e-01  1.518e-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:  1.071e+00  2.826e-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: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/174797/likelihoodResults_586396801_586656001_4FGL_J2353.2+3135_daily_bin1339.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) = 5003.44966834
delta logL = -8.65842512212e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5003.44958248
delta logL = -7.2634065873e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1614       1.0000          .0000       10.000    
     3 'Normalizat'    1.0706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95410       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=   5003.450     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      287 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11417E-03    .50572        .10567    ** at limit **
   2  Index         2.8796        6.4381        .50000        .59147E-05
   3  Normalizat    1.0706        .10357E-02    .30833E-03   -.15390E-03
   4  Prefactor     .95409        .58098E-03    .18099E-03   -.13000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000114173
  Index      = 2.87958
  Normalizat = 1.07058
  Prefactor  = 0.954093
 **********
 **   18 **HESSE 
 **********

 FCN=   5003.450     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      318 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11417E-03    186.96        .58135E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8796        6.2236        .50000       -.43795    
   3  Normalizat    1.0706        .12553E-01    .12333E-04   -.90702    
   4  Prefactor     .95409        .70421E-02    .36197E-04   -.94276    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.75435e-08
Minuit parameter uncertainties:
  1  0.103277
  2  746.752
  3  0.0125532
  4  0.00704206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174797': 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) = 5003.4495821
delta logL = -3.45899024978e-07

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.142e-04  1.033e-01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.880e+00  7.468e+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.541e-01  7.042e-03  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:  1.071e+00  1.255e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/174797/cmap_HighResolution_586396801_586656001_4FGL_J2353.2+3135_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2021-09-30 08:10:06.108155', job_id='174797', GAL2='0.95', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1633014606.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-3.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='1339' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:10:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 174797: <4FGL_J2353.2+3135_daily_bin1339> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1339 358.322 31.5927 586396801 586656001 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 :                                   564.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             384.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            586 sec.

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

