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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin650
RA = 358.322, Dec = 31.5927
tmin = 407808001, tmax = 408067201
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='171832', job_status='RUN', time_executed='2021-09-30 07:52:42.748784', time_epoch_executed='1633013562.75' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171832

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171832/ft1_4FGL_J2353.2+3135_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171832/ft2_4FGL_J2353.2+3135_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171832/ft1_4FGL_J2353.2+3135_daily_bin650.fits outfile=/scratch/kocevski/171832/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin650.fits ra=358.322 dec=31.5927 rad=12.0 tmin=407808001.0 tmax=408067201.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 4.12
user 3.84
sys 0.26

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171832/ft1_filtered_4FGL_J2353.2+3135_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/171832/ft2_4FGL_J2353.2+3135_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/171832/ltcube_407808001_408067201_4FGL_J2353.2+3135_daily_bin650.fits outfile=/scratch/kocevski/171832/expmap_407808001_408067201_4FGL_J2353.2+3135_daily_bin650.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/171832/ltcube_407808001_408067201_4FGL_J2353.2+3135_daily_bin650.fits
.....................!
real 190.94
user 185.65
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/171832/ft1_filtered_4FGL_J2353.2+3135_daily_bin650.fits scfile=/scratch/kocevski/171832/ft2_4FGL_J2353.2+3135_daily_bin650.fits outfile=/scratch/kocevski/171832/cmap_407808001_408067201_4FGL_J2353.2+3135_daily_bin650.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/171832/ft1_filtered_4FGL_J2353.2+3135_daily_bin650.fits scfile=/scratch/kocevski/171832/ft2_4FGL_J2353.2+3135_daily_bin650.fits outfile=/scratch/kocevski/171832/cmap_HighResolution_407808001_408067201_4FGL_J2353.2+3135_daily_bin650.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34759E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10837E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2512       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.570       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.325       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.982       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8351       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7928       1.0000         .10000E-03   10000.    
    10 'norm      '    6.8347       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.317       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.998       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.927       1.0000         .10000E-03   10000.    
    18 'Prefactor '    114.46       1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.072       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.157       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .59692       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0457       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=   4275.923     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2375 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2511        .33849E-05** at limit **
   2  norm          .10000E-03    31.656        .12533E-05** at limit **
   3  Prefactor     1.2549        27.882        .29160E-04   -.55279E-04
   4  Prefactor     23.511        25.507       -.18074E-05   -.45061E-03
   5  Prefactor     19.335        13.025       -.22114E-06   -.14459E-04
   6  Prefactor     31.214        88.795       -.34952E-04   -.22503E-04
   7  Prefactor     .10000E-03    9.6340       -.14037E-06** at limit **
   8  norm          2.8347        3.5290       -.17323E-06   -.28623E-04
   9  Prefactor     8.7826        34.544       -.44545E-06   -.66714E-05
  10  norm          6.8348        2.6538       -.13943E-06   -.72789E-04
  11  Prefactor     .10000E-03    7.9863       -.24877E-06** at limit **
  12  Prefactor     18.318        20.500       -.57718E-06   -.15825E-04
  13  Prefactor     .10000E-03    22.412       -.90481E-06** at limit **
  14  norm          13.997        7.2915       -.19843E-06   -.14221E-04
  15  Prefactor     .10000E-03    11.637       -.77643E-06** at limit **
  16  norm          .10000E-03    1.4230       -.10664E-06** at limit **
  17  Prefactor     39.926        32.920       -.70581E-06   -.16223E-04
  18  Prefactor     114.42        71.288        .39620E-05   -.26899E-04
  19  Prefactor     58.138        65.257       -.62893E-05   -.11058E-04
  20  Prefactor     12.143        16.468       -.38725E-05   -.89489E-04
  21  Normalizat    .59586        .30922       -.30413E-05   -.19663E-03
  22  Prefactor     1.0461        .15507        .26901E-05   -.11230E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 1.25486
  Prefactor  = 23.5114
  Prefactor  = 19.3346
  Prefactor  = 31.2136
  Prefactor  = 0.0001
  norm       = 2.83474
  Prefactor  = 8.78258
  norm       = 6.83479
  Prefactor  = 0.0001
  Prefactor  = 18.3179
  Prefactor  = 0.0001
  norm       = 13.9972
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.926
  Prefactor  = 114.42
  Prefactor  = 58.1384
  Prefactor  = 12.1428
  Normalizat = 0.595859
  Prefactor  = 1.04615
 **********
 **   18 **HESSE 
 **********

 FCN=   4275.923     FROM HESSE     STATUS=OK           348 CALLS     2723 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.1103        .26153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    31.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2549        28.644        .19987E-02   -1.5484    
   4  Prefactor     23.511        23.584        .82507E-04   -1.4738    
   5  Prefactor     19.335        13.032        .91110E-04   -1.4828    
   6  Prefactor     31.214        88.416        .35992E-03   -1.4590    
   7  Prefactor     .10000E-03    9.6366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8347        3.5185        .13240E-03   -1.5371    
   9  Prefactor     8.7826        34.559        .13517E-03   -1.5115    
  10  norm          6.8348        2.6492        .61894E-04   -1.5185    
  11  Prefactor     .10000E-03    7.9907        .18050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.318        20.460        .93581E-04   -1.4852    
  13  Prefactor     .10000E-03    22.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.997        7.2887        .10706E-03   -1.4960    
  15  Prefactor     .10000E-03    11.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.4355        .76137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.926        32.957        .63435E-04   -1.4443    
  18  Prefactor     114.42        71.282        .18802E-03   -1.3565    
  19  Prefactor     58.138        65.242        .26322E-03   -1.4182    
  20  Prefactor     12.143        16.598        .11489E-03   -1.5011    
  21  Normalizat    .59586        .33318        .41098E-03   -1.0816    
  22  Prefactor     1.0461        .17208        .17562E-03   -.91207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98871e-10
Minuit parameter uncertainties:
  1  0.00018624
  2  0.000355111
  3  11.9966
  4  23.5932
  5  13.0341
  6  88.7902
  7  1.30382e-05
  8  3.51878
  9  34.6383
  10  2.64927
  11  2.05067e-05
  12  20.4681
  13  8.64132e-05
  14  7.28915
  15  7.45247e-05
  16  5.18493e-06
  17  32.9715
  18  71.3356
  19  65.3221
  20  16.6044
  21  0.334313
  22  0.172167
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.144e+02  7.134e+01  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.631e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
485        Scale:  7.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.046e+00  1.722e-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.959e-01  3.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.93
Ra Dec: 358.322 31.593
Photon Index (Fixed Index): 2.63 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 8.64e-08
Energy Flux (Fixed Index): 3.54e-05 +/- 2.20e-05

TS (Fixed Index): 3.93
Ra Dec: 358.322 31.593
Photon Flux Upper Limit: 3.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/171832/likelihoodResults_407808001_408067201_4FGL_J2353.2+3135_daily_bin650.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) = 4275.88983151
delta logL = 0.0334282342892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4275.88865551
delta logL = 0.034604228822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    88.898       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8413       1.0000          .0000       10.000    
     3 'Normalizat'    .58006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0543       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=   4275.889     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      280 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.882        135.32        .42615E-04    .21022E-04
   2  Index         2.8412        1.0164        .48891E-02    .32830E-03
   3  Normalizat    .58061        .30986        .41608E-03   -.11654E-03
   4  Prefactor     1.0540        .17037        .17506E-03   -.35536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.8816
  Index      = 2.8412
  Normalizat = 0.580614
  Prefactor  = 1.05401
 **********
 **   18 **HESSE 
 **********

 FCN=   4275.889     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.882        116.63        .85230E-05   -1.3820    
   2  Index         2.8412        .87645        .97781E-03   -.44644    
   3  Normalizat    .58061        .30891        .16643E-04   -1.0881    
   4  Prefactor     1.0540        .16953        .35012E-04   -.90950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38245e-10
Minuit parameter uncertainties:
  1  116.937
  2  0.882062
  3  0.309826
  4  0.169611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171832': 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) = 4275.88865387
delta logL = 0.0346058718696

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  8.888e+01  1.169e+02  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.841e+00  8.821e-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:  1.054e+00  1.696e-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.806e-01  3.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.02
Ra Dec: 358.322 31.593
Photon Index (Free Index): 2.84 +/- 0.88
Photon Flux (Free Index): 1.46e-07 +/- 9.11e-08
Energy Flux (Free Index): 3.18e-05 +/- 2.36e-05

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/171832/cmap_HighResolution_407808001_408067201_4FGL_J2353.2+3135_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-02', comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='3.18e-05', photon_flux_error='8.64e-08', dlogl='3.46e-02', energy_flux='3.54e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-30 08:01:36.539450', photon_index_error2='0.88', photon_index2='2.84', ts='3.93', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='3.05e-07', energy_flux_error2='2.36e-05', EG='0.60', time_epoch_completed='1633014096.54', return_code='0', job_id='171832', GAL2='1.05', EG2='0.58', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='9.11e-08', ts2='4.02', photon_index='2.63' WHERE bin_id='650' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 08:01:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 171832: <4FGL_J2353.2+3135_daily_bin650> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin650> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 30 07:50:35 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 07:50:36 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:50:36 2021
Terminated at Thu Sep 30 08:01:38 2021
Results reported at Thu Sep 30 08:01:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin650 358.322 31.5927 407808001 408067201 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 :                                   530.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             337.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            663 sec.

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

