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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1480
RA = 358.322, Dec = 31.5927
tmin = 622944001, tmax = 623203201
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='178434', job_status='RUN', time_executed='2021-09-30 08:14:43.524039', time_epoch_executed='1633014883.52' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178434

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178434/ft1_4FGL_J2353.2+3135_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178434/ft2_4FGL_J2353.2+3135_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178434/ft1_4FGL_J2353.2+3135_daily_bin1480.fits outfile=/scratch/kocevski/178434/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1480.fits ra=358.322 dec=31.5927 rad=12.0 tmin=622944001.0 tmax=623203201.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.05
user 2.82
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/178434/ft1_filtered_4FGL_J2353.2+3135_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/178434/ft2_4FGL_J2353.2+3135_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/178434/ltcube_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.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/178434/ft2_4FGL_J2353.2+3135_daily_bin1480.fits
.....................!
real 12.65
user 12.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178434/ft1_filtered_4FGL_J2353.2+3135_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/178434/ft2_4FGL_J2353.2+3135_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/178434/ltcube_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.fits outfile=/scratch/kocevski/178434/expmap_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.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/178434/ltcube_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.fits
.....................!
real 191.84
user 186.20
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/178434/ft1_filtered_4FGL_J2353.2+3135_daily_bin1480.fits scfile=/scratch/kocevski/178434/ft2_4FGL_J2353.2+3135_daily_bin1480.fits outfile=/scratch/kocevski/178434/cmap_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.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/178434/ft1_filtered_4FGL_J2353.2+3135_daily_bin1480.fits scfile=/scratch/kocevski/178434/ft2_4FGL_J2353.2+3135_daily_bin1480.fits outfile=/scratch/kocevski/178434/cmap_HighResolution_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.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/178434/ft1_filtered_4FGL_J2353.2+3135_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/178434/ft2_4FGL_J2353.2+3135_daily_bin1480.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/178434/Model_4FGL_J2353.2+3135_daily_bin1480.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/178434/ft1_filtered_4FGL_J2353.2+3135_daily_bin1480.fits...................!
real 16.71
user 15.46
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/178434/ft1_filtered_4FGL_J2353.2+3135_daily_bin1480.fits', '/scratch/kocevski/178434/ft2_4FGL_J2353.2+3135_daily_bin1480.fits', expMap='/scratch/kocevski/178434/expmap_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.fits', expCube='/scratch/kocevski/178434/ltcube_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/178434/Model_4FGL_J2353.2+3135_daily_bin1480.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/178434/ft1_filtered_4FGL_J2353.2+3135_daily_bin1480.fits
Spacecraft file(s): /scratch/kocevski/178434/ft2_4FGL_J2353.2+3135_daily_bin1480.fits
Exposure map: /scratch/kocevski/178434/expmap_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.fits
Exposure cube: /scratch/kocevski/178434/ltcube_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/178434/Model_4FGL_J2353.2+3135_daily_bin1480.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 246.547232741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 241.879065166

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5327       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7267       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46497E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0692       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4539       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2617       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4915       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7859       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16644E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10592E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13129E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    54.309       1.0000         .10000E-03   10000.    
    13 'Prefactor '    364.33       1.0000         .10000E-03   10000.    
    14 'norm      '    .16915E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14762       1.0000         .10000E-03   10000.    
    16 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .96192E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9108       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9544       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24861E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .49302       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   241.8584     FROM MIGRAD    STATUS=CONVERGED    142 CALLS      349 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5327        1.0062         .0000         .0000    
   2  norm          .11310E-02    402.99        .59660E-03** at limit **
   3  Prefactor     .10000E-03    170.40       -.15244E-04** at limit **
   4  Prefactor     1.0692        1.2155         .0000         .0000    
   5  Prefactor     2.4539        1.0224         .0000         .0000    
   6  Prefactor     4.2617        1.0070         .0000         .0000    
   7  Prefactor     4.5186        1.7899        .21780E-04   -.15215E-03
   8  norm          1.7859        1.0458         .0000         .0000    
   9  Prefactor     .10000E-03    37.445        .95688E-06** at limit **
  10  norm          .10000E-03    2.7047       -.44430E-06** at limit **
  11  Prefactor     .10000E-03    47.327       -.38573E-05** at limit **
  12  Prefactor     55.126        53.469        .73066E-04    .54719E-02
  13  Prefactor     362.27        80.059       -.12806E-03    .45734E-01
  14  norm          .10000E-03    14.399       -.54982E-05** at limit **
  15  Prefactor     .10000E-03    71.458        .56594E-05** at limit **
  16  norm          .10000E-03    4.5574        .10512E-05** at limit **
  17  Prefactor     .53752E-03    507.46        .96090E-03** at limit **
  18  Prefactor     .94071E-03    372.72       -.64487E-03** at limit **
  19  Prefactor     .27225E-03    194.62       -.63875E-04** at limit **
  20  Prefactor     .10000E-03    87.442        .11854E-04** at limit **
  21  Normalizat    .10000E-01    1.5164        .43804E-04** at limit **
  22  Prefactor     .49226        .21689       -.23081E-04    .15667E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.53275
  norm       = 0.001131
  Prefactor  = 0.0001
  Prefactor  = 1.06918
  Prefactor  = 2.4539
  Prefactor  = 4.26167
  Prefactor  = 4.51865
  norm       = 1.78589
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.1264
  Prefactor  = 362.272
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000537519
  Prefactor  = 0.000940708
  Prefactor  = 0.000272253
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.492263
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   241.8584     FROM HESSE     STATUS=FAILED        11 CALLS      360 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          536.32        531.74         .0000       -1.5282    
   2  norm          .11310E-02    .44019E-01    .59660E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .23283       -.15244E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0692        1.2155         .0000       -1.5501    
   5  Prefactor     2.4539        1.0224         .0000       -1.5395    
   6  Prefactor     4.2617        1.0070         .0000       -1.5295    
   7  Prefactor     4.5186        1.0094        .21780E-04   -1.5283    
   8  norm          1.7859        1.0458         .0000       -1.5441    
   9  Prefactor     .10000E-03    .20730        .95688E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .20571       -.44430E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .20650       -.38573E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     55.126        1.0075        .73066E-04   -1.4222    
  13  Prefactor     362.27        .99728       -.12806E-03   -1.1878    
  14  norm          .10000E-03    .20736       -.54982E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .23697        .56594E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571        .10512E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .53752E-03    .20579        .96090E-03   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .94071E-03    .42628E-01   -.64487E-03   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .27225E-03    .36162E-01   -.63875E-04   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .20915        .11854E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .25632        .43804E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .49226        .83398       -.23081E-04   -1.1233    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.00275e-10
Minuit parameter uncertainties:
  1  1.00622
  2  0.0134734
  3  9.05167e-06
  4  1.21551
  5  1.02243
  6  1.00705
  7  1.00937
  8  1.04584
  9  3.04511e-07
  10  6.00467e-07
  11  2.555e-06
  12  1.0075
  13  0.997279
  14  5.74904e-06
  15  1.75186e-06
  16  4.47942e-07
  17  0.0189777
  18  0.011973
  19  0.00499159
  20  2.12593e-06
  21  3.82611e-07
  22  0.856156
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 241.858448277

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  9.407e-04  1.197e-02  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:  4.923e-01  8.562e-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.000e-02  3.826e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 4.11e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.22e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/178434/likelihoodResults_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.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) = 241.858450307
delta logL = -2.03036989888e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 241.858449665
delta logL = -1.38852820442e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93917E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6309       1.0000          .0000       10.000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49226       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=   241.8584     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      242 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10162E-03    357.93        .20803E-01** at limit **
   2  Index         3.2379        6.2655        .50000        .81657E-06
   3  Normalizat    .10000E-01    .35490E-02    .97815E-02** at limit **
   4  Prefactor     .49226        .92657E-02    .13832E-03    .18032E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010162
  Index      = 3.23789
  Normalizat = 0.01
  Prefactor  = 0.492261
 **********
 **   18 **HESSE 
 **********

 FCN=   241.8584     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10162E-03    6216.6        .27492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2379        8.2436        .50000       -.36016    
   3  Normalizat    .10000E-01    .26461E-01    .19563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49226        .25291E-01    .27665E-04   -1.1233    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.13031e-08
Minuit parameter uncertainties:
  1  0.131308
  2  2782.44
  3  3.0916e-06
  4  0.0252916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178434': 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) = 241.858447632
delta logL = 6.44549857043e-07

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.016e-04  1.313e-01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  3.238e+00  2.782e+03  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:  4.923e-01  2.529e-02  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.000e-02  3.092e-06  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/178434/cmap_HighResolution_622944001_623203201_4FGL_J2353.2+3135_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-01', job_status='DONE', photon_flux_upper_limit='4.11e-06', time_completed='2021-09-30 08:20:04.357445', job_id='178434', GAL2='0.49', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633015204.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.49', dlogl='6.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='1480' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:20:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 178434: <4FGL_J2353.2+3135_daily_bin1480> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1480 358.322 31.5927 622944001 623203201 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 :                                   321.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             353.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   513 sec.
    Turnaround time :                            516 sec.

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

