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


Performing analysis on: 4FGL_J2353.2+3135_weekly_bin688
RA = 358.322, Dec = 31.5927
tmin = 655084801, tmax = 655689601
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='808338', job_status='RUN', time_executed='2021-12-09 04:30:54.177780', time_epoch_executed='1639053054.18' WHERE source_name='4FGL J2353.2+3135' and cadence='weekly' and bin_id='688'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808338

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808338/ft1_4FGL_J2353.2+3135_weekly_bin688.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808338/ft2_4FGL_J2353.2+3135_weekly_bin688.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808338/ft1_4FGL_J2353.2+3135_weekly_bin688.fits outfile=/scratch/kocevski/808338/ft1_filteredMKT_4FGL_J2353.2+3135_weekly_bin688.fits ra=358.322 dec=31.5927 rad=12.0 tmin=655084801.0 tmax=655689601.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 5.82
user 5.54
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808338/ft1_filtered_4FGL_J2353.2+3135_weekly_bin688.fits evtable="EVENTS" scfile=/scratch/kocevski/808338/ft2_4FGL_J2353.2+3135_weekly_bin688.fits sctable="SC_DATA" expcube=/scratch/kocevski/808338/ltcube_655084801_655689601_4FGL_J2353.2+3135_weekly_bin688.fits outfile=/scratch/kocevski/808338/expmap_655084801_655689601_4FGL_J2353.2+3135_weekly_bin688.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/808338/ltcube_655084801_655689601_4FGL_J2353.2+3135_weekly_bin688.fits
.....................!
real 190.52
user 185.79
sys 3.86

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/808338/ft1_filtered_4FGL_J2353.2+3135_weekly_bin688.fits scfile=/scratch/kocevski/808338/ft2_4FGL_J2353.2+3135_weekly_bin688.fits outfile=/scratch/kocevski/808338/cmap_655084801_655689601_4FGL_J2353.2+3135_weekly_bin688.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.59
user 0.44
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808338/ft1_filtered_4FGL_J2353.2+3135_weekly_bin688.fits scfile=/scratch/kocevski/808338/ft2_4FGL_J2353.2+3135_weekly_bin688.fits outfile=/scratch/kocevski/808338/cmap_HighResolution_655084801_655689601_4FGL_J2353.2+3135_weekly_bin688.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.60
user 0.43
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38663E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    1910.7       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8034       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .67005E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.792       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2617       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9565       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7859       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .78824E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3250       1.0000         .10000E-03   10000.    
    11 'Prefactor '    112.57       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53559E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    107.72       1.0000         .10000E-03   10000.    
    14 'norm      '    .22179E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    123.90       1.0000         .10000E-03   10000.    
    16 'norm      '    7.6238       1.0000         .10000E-03   10000.    
    17 'Prefactor '    219.33       1.0000         .10000E-03   10000.    
    18 'Prefactor '    139.48       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2611       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .76571       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .27437       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .57694       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=   619.1486     FROM MIGRAD    STATUS=CONVERGED    579 CALLS      983 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    86.621        .25750E-07** at limit **
   2  norm          1611.9        1355.3        .22871E-05   -.73991E-05
   3  Prefactor     .10000E-03    452.67       -.37553E-06** at limit **
   4  Prefactor     .10000E-03    9527.9        .24509E-04** at limit **
   5  Prefactor    10000.0        6902.1        .27278E-04** at limit **
   6  Prefactor     4.2617        1.0070         .0000         .0000    
   7  Prefactor    10000.0        9689.8        .18682E-04** at limit **
   8  norm          1.7859        1.0458         .0000         .0000    
   9  Prefactor     .10000E-03    27.767       -.79195E-07** at limit **
  10  norm          3.6310        4.9353       -.40396E-06    .91652E-04
  11  Prefactor     128.45        119.96       -.36536E-05    .83996E-05
  12  Prefactor     .10000E-03    26.417       -.49353E-06** at limit **
  13  Prefactor     106.62        140.12        .10026E-05    .54951E-05
  14  norm          .10000E-03    20.270       -.27750E-05** at limit **
  15  Prefactor     131.18        110.78       -.20702E-05    .37818E-05
  16  norm          7.4717        9.2589       -.82397E-06    .84271E-04
  17  Prefactor     93.175        284.17        .98035E-05   -.24579E-04
  18  Prefactor     578.90        885.96       -.19355E-05    .10326E-04
  19  Prefactor     .10001E-03    750.62       -.10915E-04** at limit **
  20  Prefactor     .10001E-03    282.90        .81336E-05** at limit **
  21  Normalizat    .27014E-01    9.4905       -.16179E-03    .37352E-06
  22  Prefactor     .61329        .39273       -.10543E-04    .29826E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1611.95
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 4.26167
  Prefactor  = 10000
  norm       = 1.78589
  Prefactor  = 0.0001
  norm       = 3.63101
  Prefactor  = 128.453
  Prefactor  = 0.0001
  Prefactor  = 106.622
  norm       = 0.0001
  Prefactor  = 131.184
  norm       = 7.47166
  Prefactor  = 93.1755
  Prefactor  = 578.897
  Prefactor  = 0.000100008
  Prefactor  = 0.000100011
  Normalizat = 0.027014
  Prefactor  = 0.613291
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   619.1486     FROM HESSE     STATUS=FAILED        31 CALLS     1014 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    86.724        .92146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1611.9        1316.8        .25436E-03   -.74451    
   3  Prefactor     .10000E-03    472.28        .77809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9513.7        .93848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        6899.6        .20530E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     539.24        534.92         .0000       -1.5295    
   7  Prefactor    10000.0        .36151E-01    .18682E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7859        1.0458         .0000       -1.5441    
   9  Prefactor     .10000E-03    .21396       -.79195E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.6310        1.0573       -.40396E-06   -1.5327    
  11  Prefactor     128.45        1.0674       -.36536E-05   -1.3436    
  12  Prefactor     .10000E-03    .22815       -.49353E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     106.62        .99495        .10026E-05   -1.3639    
  14  norm          .10000E-03    .25335       -.27750E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     131.18        1.0286       -.20702E-05   -1.3412    
  16  norm          7.4717        .99212       -.82397E-06   -1.5161    
  17  Prefactor     93.175        .65598        .98035E-05   -1.7642    
  18  Prefactor     578.90        1.9914       -.19355E-05   -1.0848    
  19  Prefactor     .10001E-03    .78581E-01   -.10915E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    .37892        .81336E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .27014E-01    .32394       -.16179E-03   -1.6534    
  22  Prefactor     .61329        .95064       -.10543E-04   -1.0703    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.64989e-11
Minuit parameter uncertainties:
  1  5.96588e-06
  2  1346.71
  3  0.000707883
  4  0.00573804
  5  0.0192795
  6  1.00705
  7  1.23157e-05
  8  1.04584
  9  4.91818e-07
  10  1.05729
  11  1.06736
  12  4.85951e-06
  13  0.994951
  14  1.71264e-05
  15  1.02861
  16  0.992122
  17  0.655978
  18  1.99137
  19  4.9202e-05
  20  0.00013172
  21  0.149424
  22  0.977454
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  5.789e+02  1.991e+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

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  6.133e-01  9.775e-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:  2.701e-02  1.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 7.02e-07 +/- 2.41e-09
Energy Flux (Fixed Index): 1.79e-04 +/- 6.16e-07

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

Saving results to:
/scratch/kocevski/808338/likelihoodResults_655084801_655689601_4FGL_J2353.2+3135_weekly_bin688.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) = 618.882281581
delta logL = 0.266284964827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 618.828635076
delta logL = 0.31993147051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    871.60       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8695       1.0000          .0000       10.000    
     3 'Normalizat'    .55677E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60033       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=   618.8286     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      278 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     871.96        962.42        .70905E-04   -.34553E-05
   2  Index         1.8695        .82048        .49452E-02   -.19130E-05
   3  Normalizat    .57036E-01    6.7332        .12324E-01   -.50306E-05
   4  Prefactor     .59994        .40496        .19082E-03   -.61146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 871.965
  Index      = 1.86954
  Normalizat = 0.0570357
  Prefactor  = 0.599942
 **********
 **   18 **HESSE 
 **********

 FCN=   618.8286     FROM HESSE     STATUS=OK            27 CALLS      305 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     871.96        963.57        .14181E-04   -.97128    
   2  Index         1.8695        .82144        .19781E-03   -.67653    
   3  Normalizat    .57036E-01    6.3640        .49296E-03   -1.4335    
   4  Prefactor     .59994        .35940        .38164E-04   -1.0759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44381e-11
Minuit parameter uncertainties:
  1  983.356
  2  0.827644
  3  0.854702
  4  0.360783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808338': 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) = 618.828633549
delta logL = 0.319932997391

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  8.720e+02  9.834e+02  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  1.870e+00  8.276e-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:  5.999e-01  3.608e-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:  5.704e-02  8.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 358.322 31.593
Photon Index (Free Index): 1.87 +/- 0.83
Photon Flux (Free Index): 4.28e-07 +/- 5.99e-07
Energy Flux (Free Index): 4.18e-04 +/- 7.86e-04

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/808338/cmap_HighResolution_655084801_655689601_4FGL_J2353.2+3135_weekly_bin688.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-01', comment='SUCCESS', photon_flux='7.02e-07', energy_flux2='4.18e-04', photon_flux_error='2.41e-09', dlogl='3.20e-01', energy_flux='1.79e-04', photon_flux2='4.28e-07', job_status='DONE', time_completed='2021-12-09 04:37:01.383670', photon_index_error2='0.83', photon_index2='1.87', ts='1.00', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='3.45e-06', energy_flux_error2='7.86e-04', EG='0.03', time_epoch_completed='1639053421.38', return_code='101', job_id='808338', GAL2='0.60', EG2='0.06', return_code2='0', energy_flux_error='6.16e-07', photon_flux_error2='5.99e-07', ts2='1.65', photon_index='2.63' WHERE bin_id='688' AND source_name='4FGL J2353.2+3135' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Dec  9 04:37:01 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 808338: <4FGL_J2353.2+3135_weekly_bin688> in cluster <slac> Done

Job <4FGL_J2353.2+3135_weekly_bin688> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Dec  9 04:30:25 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  9 04:30:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  9 04:30:37 2021
Terminated at Thu Dec  9 04:37:02 2021
Results reported at Thu Dec  9 04:37:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_weekly_bin688 358.322 31.5927 655084801 655689601 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 :                                   368.07 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             417.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   385 sec.
    Turnaround time :                            397 sec.

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

