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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin98
RA = 358.322, Dec = 31.5927
tmin = 264729601, tmax = 264988801
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='168973', job_status='RUN', time_executed='2021-09-30 07:43:53.794403', time_epoch_executed='1633013033.79' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168973/ft1_4FGL_J2353.2+3135_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168973/ft2_4FGL_J2353.2+3135_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168973/ft1_4FGL_J2353.2+3135_daily_bin98.fits outfile=/scratch/kocevski/168973/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin98.fits ra=358.322 dec=31.5927 rad=12.0 tmin=264729601.0 tmax=264988801.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 1.43
user 1.27
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168973/ft1_filtered_4FGL_J2353.2+3135_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/168973/ft2_4FGL_J2353.2+3135_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/168973/ltcube_264729601_264988801_4FGL_J2353.2+3135_daily_bin98.fits outfile=/scratch/kocevski/168973/expmap_264729601_264988801_4FGL_J2353.2+3135_daily_bin98.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/168973/ltcube_264729601_264988801_4FGL_J2353.2+3135_daily_bin98.fits
.....................!
real 190.96
user 185.73
sys 4.90

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/168973/ft1_filtered_4FGL_J2353.2+3135_daily_bin98.fits scfile=/scratch/kocevski/168973/ft2_4FGL_J2353.2+3135_daily_bin98.fits outfile=/scratch/kocevski/168973/cmap_264729601_264988801_4FGL_J2353.2+3135_daily_bin98.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168973/ft1_filtered_4FGL_J2353.2+3135_daily_bin98.fits scfile=/scratch/kocevski/168973/ft2_4FGL_J2353.2+3135_daily_bin98.fits outfile=/scratch/kocevski/168973/cmap_HighResolution_264729601_264988801_4FGL_J2353.2+3135_daily_bin98.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3625       1.0000         .10000E-03   10000.    
     2 'norm      '    5.6117       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.753       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0200       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1098       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7542       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0657       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2235       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3103       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .78418E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.571       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.394       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93831       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .95690       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.

 FCN=   7485.178     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2072 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3614        2.7630         .0000        .83073E-03
   2  norm          5.6154        15.036         .0000        .71186E-03
   3  Prefactor     .10000E-03    5.7137         .0000    ** at limit **
   4  Prefactor     18.750        14.323         .0000       -.21068E-04
   5  Prefactor     1.0114        8.8868         .0000        .36038E-01
   6  Prefactor     .10000E-03    12.523         .0000    ** at limit **
   7  Prefactor     .10000E-03    6.2027         .0000    ** at limit **
   8  norm          2.1097        2.0787         .0000        .29856E-03
   9  Prefactor     .10000E-03    13.148         .0000    ** at limit **
  10  norm          1.7542        1.2199         .0000       -.39200E-04
  11  Prefactor     .10000E-03    5.1368         .0000    ** at limit **
  12  Prefactor     2.0656        20.801         .0000        .18264E-03
  13  Prefactor     .10000E-03    4.6042         .0000    ** at limit **
  14  norm          4.2227        3.3157         .0000       -.83253E-04
  15  Prefactor     .10000E-03    2.8820         .0000    ** at limit **
  16  norm          2.3108        2.3553         .0000        .23593E-03
  17  Prefactor     .10000E-03    7.6018         .0000    ** at limit **
  18  Prefactor     14.483        34.826         .0000        .34021E-04
  19  Prefactor     .10000E-03    22.752         .0000    ** at limit **
  20  Prefactor     20.393        9.4952         .0000        .35477E-03
  21  Normalizat    .93900        .18937         .0000       -.26702E-04
  22  Prefactor     .95656        .10243         .0000       -.88005E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.36143
  norm       = 5.61539
  Prefactor  = 0.0001
  Prefactor  = 18.7503
  Prefactor  = 1.01143
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.10971
  Prefactor  = 0.000100001
  norm       = 1.75418
  Prefactor  = 0.0001
  Prefactor  = 2.06558
  Prefactor  = 0.0001
  norm       = 4.22275
  Prefactor  = 0.0001
  norm       = 2.31078
  Prefactor  = 0.000100002
  Prefactor  = 14.4829
  Prefactor  = 0.0001
  Prefactor  = 20.3927
  Normalizat = 0.939001
  Prefactor  = 0.956556
 **********
 **   18 **HESSE 
 **********

 FCN=   7485.178     FROM HESSE     STATUS=OK           348 CALLS     2420 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3614        2.7019        .18560E-03   -1.5475    
   2  norm          5.6154        14.959        .16958E-03   -1.5234    
   3  Prefactor     .10000E-03    5.8534        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.750        14.172        .92489E-04   -1.4842    
   5  Prefactor     1.0114        9.0321        .24112E-02   -1.5507    
   6  Prefactor     .10000E-03    12.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1097        2.0677        .12027E-03   -1.5417    
   9  Prefactor     .10000E-03    13.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7542        1.2132        .76495E-04   -1.5443    
  11  Prefactor     .10000E-03    5.1426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0656        20.548        .28747E-03   -1.5421    
  13  Prefactor     .10000E-03    4.6059        .18131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2227        3.3154        .13547E-03   -1.5297    
  15  Prefactor     .10000E-03    2.8847        .14343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3108        2.3341        .12694E-03   -1.5404    
  17  Prefactor     .10000E-03    48.711        .46431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.483        34.908        .10493E-03   -1.4947    
  19  Prefactor     .10000E-03    22.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.393        9.4527        .88692E-04   -1.4804    
  21  Normalizat    .93900        .22015        .31373E-03   -.95103    
  22  Prefactor     .95656        .12020        .17457E-03   -.94192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08548e-08
Minuit parameter uncertainties:
  1  2.70213
  2  14.9694
  3  7.79989e-05
  4  14.1744
  5  6.04586
  6  0.00016706
  7  4.15201e-05
  8  2.0678
  9  0.000188799
  10  1.21318
  11  2.29647e-05
  12  13.0351
  13  4.44309e-05
  14  3.31559
  15  1.89207e-05
  16  2.33418
  17  0.000685068
  18  34.9572
  19  2.63245e-05
  20  9.45342
  21  0.220365
  22  0.120235
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.448e+01  3.496e+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:  9.566e-01  1.202e-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.390e-01  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/168973/likelihoodResults_264729601_264988801_4FGL_J2353.2+3135_daily_bin98.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) = 7485.11394013
delta logL = 0.0642278796431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7485.0670394
delta logL = 0.111128610724

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7485.067     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      234 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6613        191.52        .46327E-02    .54764E-03
   2  Index         3.7582        3.9198        .20835        .14567E-03
   3  Normalizat    .91522        .44110E-01    .71745E-01    .27886E-04
   4  Prefactor     .96568        .24677E-01    .45835E-01    .78133E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.66132
  Index      = 3.75824
  Normalizat = 0.915216
  Prefactor  = 0.965677
 **********
 **   18 **HESSE 
 **********

 FCN=   7485.067     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      265 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6613        551.07        .18531E-03   -1.5276    
   2  Index         3.7582        5.2005        .95673E-02   -.25098    
   3  Normalizat    .91522        .18360        .31745E-03   -.95927    
   4  Prefactor     .96568        .10328        .17384E-03   -.93882    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04454e-09
Minuit parameter uncertainties:
  1  102.343
  2  13.182
  3  0.183728
  4  0.1033
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168973': 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) = 7485.06703637
delta logL = 0.111131639666

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  4.661e+00  1.023e+02  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  3.758e+00  1.318e+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:  9.657e-01  1.033e-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.152e-01  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/168973/cmap_HighResolution_264729601_264988801_4FGL_J2353.2+3135_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.60e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-30 07:54:38.405352', job_id='168973', GAL2='0.97', fit_tolerance='1e-08', EG2='0.92', EG='0.94', time_epoch_completed='1633013678.41', return_code2='102', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.11e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='98' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:54:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 168973: <4FGL_J2353.2+3135_daily_bin98> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin98> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 07:40:41 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:40:43 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:43 2021
Terminated at Thu Sep 30 07:54:39 2021
Results reported at Thu Sep 30 07:54:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin98 358.322 31.5927 264729601 264988801 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 :                                   644.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

