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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1343
RA = 358.322, Dec = 31.5927
tmin = 587433601, tmax = 587692801
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='174803', job_status='RUN', time_executed='2021-09-30 08:00:32.267380', time_epoch_executed='1633014032.27' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174803

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174803/ft1_4FGL_J2353.2+3135_daily_bin1343.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174803/ft2_4FGL_J2353.2+3135_daily_bin1343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174803/ft1_4FGL_J2353.2+3135_daily_bin1343.fits outfile=/scratch/kocevski/174803/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1343.fits ra=358.322 dec=31.5927 rad=12.0 tmin=587433601.0 tmax=587692801.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.54
user 3.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/174803/ft2_4FGL_J2353.2+3135_daily_bin1343.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/174803/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1343.fits evtable="EVENTS" outfile="/scratch/kocevski/174803/ft1_filtered_4FGL_J2353.2+3135_daily_bin1343.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/174803/ft1_filtered_4FGL_J2353.2+3135_daily_bin1343.fits" evtable="EVENTS" scfile=/scratch/kocevski/174803/ft2_4FGL_J2353.2+3135_daily_bin1343.fits sctable="SC_DATA" outfile=/scratch/kocevski/174803/ltcube_587433601_587692801_4FGL_J2353.2+3135_daily_bin1343.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/174803/ft2_4FGL_J2353.2+3135_daily_bin1343.fits
.....................!
real 12.04
user 11.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174803/ft1_filtered_4FGL_J2353.2+3135_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/174803/ft2_4FGL_J2353.2+3135_daily_bin1343.fits sctable="SC_DATA" expcube=/scratch/kocevski/174803/ltcube_587433601_587692801_4FGL_J2353.2+3135_daily_bin1343.fits outfile=/scratch/kocevski/174803/expmap_587433601_587692801_4FGL_J2353.2+3135_daily_bin1343.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/174803/ltcube_587433601_587692801_4FGL_J2353.2+3135_daily_bin1343.fits
.....................!
real 190.88
user 184.65
sys 5.50

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/174803/ft1_filtered_4FGL_J2353.2+3135_daily_bin1343.fits scfile=/scratch/kocevski/174803/ft2_4FGL_J2353.2+3135_daily_bin1343.fits outfile=/scratch/kocevski/174803/cmap_587433601_587692801_4FGL_J2353.2+3135_daily_bin1343.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174803/ft1_filtered_4FGL_J2353.2+3135_daily_bin1343.fits scfile=/scratch/kocevski/174803/ft2_4FGL_J2353.2+3135_daily_bin1343.fits outfile=/scratch/kocevski/174803/cmap_HighResolution_587433601_587692801_4FGL_J2353.2+3135_daily_bin1343.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/174803/ft1_filtered_4FGL_J2353.2+3135_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/174803/ft2_4FGL_J2353.2+3135_daily_bin1343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/174803/Model_4FGL_J2353.2+3135_daily_bin1343.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/174803/ft1_filtered_4FGL_J2353.2+3135_daily_bin1343.fits.....................!
real 94.48
user 92.39
sys 1.78

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69501       1.0000         .10000E-03   10000.    
     2 'norm      '    .10485E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.083       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.064       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.864       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .20844       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .76499       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.035       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.981       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.172       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8329       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.387       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3992       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82685       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=   8803.027     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     2391 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .69081        2.5084       -.29302E-05    .40973E-03
   2  norm          .10000E-03    27.706        .11441E-05** at limit **
   3  Prefactor     13.086        7.2779       -.18813E-06   -.11712E-03
   4  Prefactor     16.074        18.214        .91508E-05    .67847E-03
   5  Prefactor     13.366        6.6953        .27388E-06   -.48236E-05
   6  Prefactor     12.853        47.596       -.24891E-04    .39653E-04
   7  Prefactor     .10000E-03    11.871       -.16855E-05** at limit **
   8  norm          .20892        1.0331        .66764E-06   -.22643E-02
   9  Prefactor     .10000E-03    12.651        .12990E-05** at limit **
  10  norm          .76488        .77728       -.58431E-07   -.10552E-03
  11  Prefactor     20.047        23.264        .12502E-04    .32865E-05
  12  Prefactor     25.982        14.070        .61914E-07   -.88976E-05
  13  Prefactor     .10000E-03    9.2272        .40747E-06** at limit **
  14  norm          .10000E-03    2.6309       -.28086E-06** at limit **
  15  Prefactor     21.178        15.666        .25197E-05    .41703E-04
  16  norm          1.8329        2.0486       -.11979E-06   -.66022E-03
  17  Prefactor     .10000E-03    12.318        .11385E-06** at limit **
  18  Prefactor     25.374        35.595       -.19347E-04    .22760E-04
  19  Prefactor     .10000E-03    10.424       -.86114E-06** at limit **
  20  Prefactor     .10000E-03    2.3120        .16095E-06** at limit **
  21  Normalizat    1.3992        .19995        .21367E-05    .29977E-03
  22  Prefactor     .82683        .10107       -.10373E-05    .59746E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.690813
  norm       = 0.0001
  Prefactor  = 13.0861
  Prefactor  = 16.0741
  Prefactor  = 13.3663
  Prefactor  = 12.8534
  Prefactor  = 0.0001
  norm       = 0.208921
  Prefactor  = 0.0001
  norm       = 0.764884
  Prefactor  = 20.0471
  Prefactor  = 25.9815
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.1777
  norm       = 1.83288
  Prefactor  = 0.0001
  Prefactor  = 25.3744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.39921
  Prefactor  = 0.826829
 **********
 **   18 **HESSE 
 **********

 FCN=   8803.027     FROM HESSE     STATUS=OK           346 CALLS     2737 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .69081        6.6690        .23100E-02   -1.5542    
   2  norm          .10000E-03    28.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.086        7.2721        .11074E-03   -1.4984    
   4  Prefactor     16.074        18.661        .99930E-04   -1.4906    
   5  Prefactor     13.366        6.7113        .10956E-03   -1.4977    
   6  Prefactor     12.853        47.864        .11168E-03   -1.4991    
   7  Prefactor     .10000E-03    11.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .20892        5.1417        .18330E-02   -1.5617    
   9  Prefactor     .10000E-03    12.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .76488        .78066        .80627E-04   -1.5533    
  11  Prefactor     20.047        23.127        .89482E-04   -1.4812    
  12  Prefactor     25.982        14.052        .78592E-04   -1.4688    
  13  Prefactor     .10000E-03    9.2451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.6556        .14811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.178        15.635        .87049E-04   -1.4787    
  16  norm          1.8329        2.0351        .13625E-03   -1.5437    
  17  Prefactor     .10000E-03    12.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.374        35.740        .79504E-04   -1.4700    
  19  Prefactor     .10000E-03    10.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3246        .13925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3992        .23581        .29143E-03   -.80652    
  22  Prefactor     .82683        .11872        .19900E-03   -.98747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06724e-08
Minuit parameter uncertainties:
  1  4.2931
  2  2.43374e-05
  3  7.27262
  4  18.6674
  5  6.71163
  6  48.0075
  7  6.42702e-06
  8  2.07259
  9  1.76064e-06
  10  0.780675
  11  23.1369
  12  14.054
  13  5.05537e-05
  14  3.53409e-05
  15  15.6379
  16  2.03516
  17  3.12024e-05
  18  35.7698
  19  2.19198e-06
  20  1.47981e-06
  21  0.235991
  22  0.118752
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  2.537e+01  3.577e+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:  8.268e-01  1.188e-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.399e+00  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.62
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/174803/likelihoodResults_587433601_587692801_4FGL_J2353.2+3135_daily_bin1343.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) = 8802.62560898
delta logL = 0.401803851697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8802.13545506
delta logL = 0.891957772301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9542       1.0000          .0000       10.000    
     3 'Normalizat'    1.3543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84897       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=   8802.135     FROM MIGRAD    STATUS=FAILED       149 CALLS      545 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95448E-03    .10991E-04** at limit **
   2  Index         9.9543        .89359        .46162E-01   -.76555E-03
   3  Normalizat    1.3543        .21754        .29521E-03   -.87716E-03
   4  Prefactor     .84900        .11764        .19672E-03   -.61116E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8802.135     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      696 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .95448E-03    .41081E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9543        .89359        .83706E-03    1.4355    
   3  Normalizat    1.3543        .21754        .84870E-04   -.81959    
   4  Prefactor     .84900        .11764        .62287E-04   -.97947    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8802.135     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      724 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .96466E-03    .43964E-06** at limit **
   2  Index         9.9543        .87986        .92324E-02   -.31084E-04
   3  Normalizat    1.3543        .21881        .59042E-04   -.24570E-04
   4  Prefactor     .84900        .11800        .39343E-04   -.15488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.95428
  Normalizat = 1.35433
  Prefactor  = 0.848996
 **********
 **   18 **HESSE 
 **********

 FCN=   8802.135     FROM HESSE     STATUS=OK            25 CALLS      749 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .96415E-03    .37451E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9543        .88219        .18465E-02    1.4355    
   3  Normalizat    1.3543        .21907        .11808E-04   -.81959    
   4  Prefactor     .84900        .11807        .78687E-05   -.97947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21867e-12
Minuit parameter uncertainties:
  1  2.83152e-09
  2  0.408799
  3  0.219222
  4  0.118107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174803': 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) = 8802.13545441
delta logL = 0.891958419001

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  2.832e-09  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  9.954e+00  4.088e-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:  8.490e-01  1.181e-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.354e+00  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 358.322 31.593
Photon Index (Free Index): 9.95 +/- 0.41
Photon Flux (Free Index): 5.59e-08 +/- 4.20e-08
Energy Flux (Free Index): 6.25e-06 +/- 4.70e-06

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/174803/cmap_HighResolution_587433601_587692801_4FGL_J2353.2+3135_daily_bin1343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-03', comment='SUCCESS', energy_flux2='6.25e-06', dlogl='8.92e-01', photon_flux2='5.59e-08', job_status='DONE', time_completed='2021-09-30 08:14:14.223143', photon_index_error2='0.41', photon_index2='9.95', ts='0.62', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='4.70e-06', EG='1.40', time_epoch_completed='1633014854.22', return_code='0', job_id='174803', GAL2='0.85', EG2='1.35', return_code2='0', photon_flux_error2='4.20e-08', ts2='2.49', photon_index='2.63' WHERE bin_id='1343' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:14:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 174803: <4FGL_J2353.2+3135_daily_bin1343> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1343 358.322 31.5927 587433601 587692801 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 :                                   804.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             341.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            833 sec.

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

