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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1539
RA = 358.322, Dec = 31.5927
tmin = 638236801, tmax = 638496001
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='178520', job_status='RUN', time_executed='2021-09-30 08:14:52.354794', time_epoch_executed='1633014892.35' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178520

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178520/ft1_4FGL_J2353.2+3135_daily_bin1539.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178520/ft2_4FGL_J2353.2+3135_daily_bin1539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178520/ft1_4FGL_J2353.2+3135_daily_bin1539.fits outfile=/scratch/kocevski/178520/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1539.fits ra=358.322 dec=31.5927 rad=12.0 tmin=638236801.0 tmax=638496001.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.59
user 3.35
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178520/ft1_filtered_4FGL_J2353.2+3135_daily_bin1539.fits evtable="EVENTS" scfile=/scratch/kocevski/178520/ft2_4FGL_J2353.2+3135_daily_bin1539.fits sctable="SC_DATA" expcube=/scratch/kocevski/178520/ltcube_638236801_638496001_4FGL_J2353.2+3135_daily_bin1539.fits outfile=/scratch/kocevski/178520/expmap_638236801_638496001_4FGL_J2353.2+3135_daily_bin1539.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/178520/ltcube_638236801_638496001_4FGL_J2353.2+3135_daily_bin1539.fits
.....................!
real 191.24
user 185.60
sys 5.28

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/178520/ft1_filtered_4FGL_J2353.2+3135_daily_bin1539.fits scfile=/scratch/kocevski/178520/ft2_4FGL_J2353.2+3135_daily_bin1539.fits outfile=/scratch/kocevski/178520/cmap_638236801_638496001_4FGL_J2353.2+3135_daily_bin1539.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9131       1.0000         .10000E-03   10000.    
     2 'norm      '    13.609       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.325       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.798       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0625       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.503       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1960       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9102       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3358       1.0000         .10000E-03   10000.    
    18 'Prefactor '    87.762       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.141       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1600       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96398       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0146       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=   7911.065     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2387 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9153        4.6654       -.14768E-06   -.74984E-04
   2  norm          13.611        14.116        .84430E-06    .32989E-05
   3  Prefactor     .10000E-03    1.4622       -.73659E-08** at limit **
   4  Prefactor     12.323        18.825       -.26612E-05   -.26107E-04
   5  Prefactor     11.802        7.8677       -.20442E-06   -.20091E-03
   6  Prefactor     .10000E-03    28.640        .93629E-07** at limit **
   7  Prefactor     .10000E-03    12.209        .66321E-06** at limit **
   8  norm          3.0624        2.2873        .29808E-08   -.17785E-04
   9  Prefactor     11.501        17.211       -.18949E-05   -.13517E-04
  10  norm          .10000E-03    .43930        .61351E-08** at limit **
  11  Prefactor     .10000E-03    8.3663       -.49043E-08** at limit **
  12  Prefactor     8.1946        11.924        .11604E-06   -.24273E-03
  13  Prefactor     .10000E-03    12.173       -.64409E-06** at limit **
  14  norm          .10000E-03    3.2985       -.71746E-07** at limit **
  15  Prefactor     3.9092        10.830       -.73489E-07   -.39334E-03
  16  norm          .10000E-03    .66218       -.21212E-08** at limit **
  17  Prefactor     3.3353        8.8804       -.27307E-06   -.45420E-03
  18  Prefactor     87.769        46.091        .50685E-05    .35960E-04
  19  Prefactor     42.139        50.689       -.36204E-05   -.11457E-04
  20  Prefactor     4.1588        5.1024        .47729E-06   -.10122E-02
  21  Normalizat    .96336        .20466       -.80357E-06    .24455E-04
  22  Prefactor     1.0149        .10653        .22893E-06   -.47098E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.91533
  norm       = 13.6109
  Prefactor  = 0.0001
  Prefactor  = 12.3226
  Prefactor  = 11.8017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.06241
  Prefactor  = 11.501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.19456
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.90915
  norm       = 0.0001
  Prefactor  = 3.33531
  Prefactor  = 87.7686
  Prefactor  = 42.139
  Prefactor  = 4.15879
  Normalizat = 0.963364
  Prefactor  = 1.0149
 **********
 **   18 **HESSE 
 **********

 FCN=   7911.065     FROM HESSE     STATUS=OK           344 CALLS     2731 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9153        4.6741        .12787E-03   -1.5145    
   2  norm          13.611        14.122        .10858E-03   -1.4970    
   3  Prefactor     .10000E-03    1.4638        .10502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.323        18.845        .11410E-03   -1.5006    
   5  Prefactor     11.802        7.9441        .58313E-03   -1.5021    
   6  Prefactor     .10000E-03    28.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0624        2.2871        .11297E-03   -1.5358    
   9  Prefactor     11.501        17.213        .11812E-03   -1.5030    
  10  norm          .10000E-03    .44923        .57520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.3762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1946        12.220        .70020E-03   -1.5135    
  13  Prefactor     .10000E-03    12.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.3532        .15733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9092        12.324        .10201E-02   -1.5313    
  16  norm          .10000E-03    .66885        .70654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3353        10.062        .11081E-02   -1.5343    
  18  Prefactor     87.769        46.236        .42887E-04   -1.3832    
  19  Prefactor     42.139        51.367        .61752E-04   -1.4409    
  20  Prefactor     4.1588        6.5498        .98806E-03   -1.5300    
  21  Normalizat    .96336        .23793        .33833E-03   -.94268    
  22  Prefactor     1.0149        .12439        .18031E-03   -.92235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44789e-09
Minuit parameter uncertainties:
  1  4.67433
  2  14.1259
  3  3.83411e-07
  4  18.8543
  5  7.94483
  6  2.15558e-05
  7  3.49052e-06
  8  2.28712
  9  17.2205
  10  5.17448e-07
  11  7.02512e-07
  12  12.2242
  13  3.03051e-06
  14  8.81855e-07
  15  12.3322
  16  4.70743e-08
  17  10.0669
  18  46.2545
  19  51.4211
  20  6.55088
  21  0.238195
  22  0.124426
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  8.777e+01  4.625e+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.015e+00  1.244e-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.634e-01  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.27
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 5.60e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.43e-05

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) = 7909.7523143
delta logL = 1.31289807109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7909.74593436
delta logL = 1.3192780086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.191       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1302       1.0000          .0000       10.000    
     3 'Normalizat'    .86231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7909.746     FROM MIGRAD    STATUS=FAILED       105 CALLS      323 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.211        111.49        .55143E-03    .15550E-03
   2  Index         4.1302        3.1909        .39057E-02    .78813E-03
   3  Normalizat    .86206        .21626        .35521E-03    .28805E-06
   4  Prefactor     1.0576        .11822        .17709E-03   -.25679E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7909.746     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      401 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.211        111.49        .35017E-03    .15550E-03
   2  Index         4.1302        3.1909        .10997E-02    .78813E-03
   3  Normalizat    .86206        .21626        .30900E-03    .28805E-06
   4  Prefactor     1.0576        .11822        .13456E-03   -.25679E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7909.746     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      432 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.211        42.705        .11029E-03   -.41233E-05
   2  Index         4.1302        1.8826        .78115E-03    .30409E-04
   3  Normalizat    .86206        .23600        .14208E-04    .32005E-06
   4  Prefactor     1.0576        .12692        .70837E-05   -.64196E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.211
  Index      = 4.1302
  Normalizat = 0.862063
  Prefactor  = 1.05759
 **********
 **   18 **HESSE 
 **********

 FCN=   7909.746     FROM HESSE     STATUS=OK            25 CALLS      457 TOTAL
                     EDM=   .20E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.211        30.347        .44114E-05   -1.4981    
   2  Index         4.1302        1.3534        .15623E-03   -.17485    
   3  Normalizat    .86206        .23510        .28417E-05   -.97806    
   4  Prefactor     1.0576        .12594        .14167E-05   -.90834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01758e-14
Minuit parameter uncertainties:
  1  30.3827
  2  1.37103
  3  0.235375
  4  0.125974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178520': 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): 0
logL (Free Index) = 7909.74592839
delta logL = 1.31928398099

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.321e+01  3.038e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  4.130e+00  1.371e+00  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.058e+00  1.260e-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.621e-01  2.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.49
Ra Dec: 358.322 31.593
Photon Index (Free Index): 4.13 +/- 1.37
Photon Flux (Free Index): 1.70e-07 +/- 7.40e-08
Energy Flux (Free Index): 2.50e-05 +/- 1.14e-05

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/178520/cmap_HighResolution_638236801_638496001_4FGL_J2353.2+3135_daily_bin1539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='2.50e-05', photon_flux_error='5.60e-08', dlogl='1.32e+00', energy_flux='2.71e-05', photon_flux2='1.70e-07', job_status='DONE', time_completed='2021-09-30 08:25:40.051179', photon_index_error2='1.37', photon_index2='4.13', ts='5.27', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.14e-05', EG='0.96', time_epoch_completed='1633015540.05', return_code='0', job_id='178520', GAL2='1.06', EG2='0.86', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='7.40e-08', ts2='8.49', photon_index='2.63' WHERE bin_id='1539' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:25:40 PDT 2021

------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 176156: <4FGL_J2353.2+3135_daily_bin1539> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1539> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 08:05:24 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:05:27 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:05:27 2021
Terminated at Thu Sep 30 08:20:18 2021
Results reported at Thu Sep 30 08:20:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1539 358.322 31.5927 638236801 638496001 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 :                                   647.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 178520: <4FGL_J2353.2+3135_daily_bin1539> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1539> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 08:11:36 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 08:11:38 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:11:38 2021
Terminated at Thu Sep 30 08:25:40 2021
Results reported at Thu Sep 30 08:25:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1539 358.322 31.5927 638236801 638496001 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 :                                   647.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

