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


Performing analysis on: 4FGL_J2353.2+3135_daily_bin1620
RA = 358.322, Dec = 31.5927
tmin = 659232001, tmax = 659491201
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='505581', job_status='RUN', time_executed='2021-12-08 09:49:29.645738', time_epoch_executed='1638985769.65' WHERE source_name='4FGL J2353.2+3135' and cadence='daily' and bin_id='1620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505581

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505581/ft1_4FGL_J2353.2+3135_daily_bin1620.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505581/ft2_4FGL_J2353.2+3135_daily_bin1620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505581/ft1_4FGL_J2353.2+3135_daily_bin1620.fits outfile=/scratch/kocevski/505581/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1620.fits ra=358.322 dec=31.5927 rad=12.0 tmin=659232001.0 tmax=659491201.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 2.88
user 2.61
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505581/ft2_4FGL_J2353.2+3135_daily_bin1620.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/505581/ft1_filteredMKT_4FGL_J2353.2+3135_daily_bin1620.fits evtable="EVENTS" outfile="/scratch/kocevski/505581/ft1_filtered_4FGL_J2353.2+3135_daily_bin1620.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.52
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505581/ft1_filtered_4FGL_J2353.2+3135_daily_bin1620.fits" evtable="EVENTS" scfile=/scratch/kocevski/505581/ft2_4FGL_J2353.2+3135_daily_bin1620.fits sctable="SC_DATA" outfile=/scratch/kocevski/505581/ltcube_659232001_659491201_4FGL_J2353.2+3135_daily_bin1620.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/505581/ft2_4FGL_J2353.2+3135_daily_bin1620.fits
.....................!
real 16.09
user 15.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505581/ft1_filtered_4FGL_J2353.2+3135_daily_bin1620.fits evtable="EVENTS" scfile=/scratch/kocevski/505581/ft2_4FGL_J2353.2+3135_daily_bin1620.fits sctable="SC_DATA" expcube=/scratch/kocevski/505581/ltcube_659232001_659491201_4FGL_J2353.2+3135_daily_bin1620.fits outfile=/scratch/kocevski/505581/expmap_659232001_659491201_4FGL_J2353.2+3135_daily_bin1620.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/505581/ltcube_659232001_659491201_4FGL_J2353.2+3135_daily_bin1620.fits
.....................!
real 195.12
user 187.22
sys 5.41

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/505581/ft1_filtered_4FGL_J2353.2+3135_daily_bin1620.fits scfile=/scratch/kocevski/505581/ft2_4FGL_J2353.2+3135_daily_bin1620.fits outfile=/scratch/kocevski/505581/cmap_659232001_659491201_4FGL_J2353.2+3135_daily_bin1620.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.55
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6014       1.0000         .10000E-03   10000.    
     2 'norm      '    11.120       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.051       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.0683       1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.055       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6067       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.412       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6953       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2182       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0893       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.550       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    70.771       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1323       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99302       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=   7970.612     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2115 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6016        2.6424        .31418E-06   -.16674E-03
   2  norm          11.125        19.137       -.91038E-08   -.40681E-04
   3  Prefactor     .10000E-03    9.6122       -.30631E-07** at limit **
   4  Prefactor     .10000E-03    18.159        .31937E-06** at limit **
   5  Prefactor     19.052        11.995        .16148E-06   -.26434E-04
   6  Prefactor     9.3326        86.669        .80129E-05    .83317E-04
   7  Prefactor     .10000E-03    15.734        .66407E-07** at limit **
   8  norm          9.0682        4.5194        .36393E-07   -.15209E-04
   9  Prefactor     47.055        26.071       -.51657E-07    .25606E-07
  10  norm          4.6067        1.6163        .22448E-07   -.79886E-04
  11  Prefactor     10.413        25.239        .75393E-06    .12895E-04
  12  Prefactor     8.6945        9.5442        .14277E-05   -.36245E-03
  13  Prefactor     .10000E-03    17.982       -.36293E-06** at limit **
  14  norm          .10000E-03    2.4449       -.12818E-07** at limit **
  15  Prefactor     8.2189        12.199        .51538E-07   -.63312E-04
  16  norm          1.0891        1.9075        .20627E-06   -.36703E-04
  17  Prefactor     12.549        22.481        .12858E-05   -.78186E-04
  18  Prefactor     .10000E-03    77.044       -.61232E-07** at limit **
  19  Prefactor     70.773        53.540        .27650E-06    .14349E-04
  20  Prefactor     .10000E-03    4.8796       -.81646E-08** at limit **
  21  Normalizat    1.1321        .22672       -.10097E-05   -.36639E-05
  22  Prefactor     .99312        .11131       -.28156E-07   -.63835E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.60161
  norm       = 11.1251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0523
  Prefactor  = 9.3326
  Prefactor  = 0.0001
  norm       = 9.06819
  Prefactor  = 47.0549
  norm       = 4.60667
  Prefactor  = 10.4132
  Prefactor  = 8.69453
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.2189
  norm       = 1.08905
  Prefactor  = 12.549
  Prefactor  = 0.0001
  Prefactor  = 70.7731
  Prefactor  = 0.0001
  Normalizat = 1.13212
  Prefactor  = 0.993115
 **********
 **   18 **HESSE 
 **********

 FCN=   7970.612     FROM HESSE     STATUS=OK           348 CALLS     2463 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6016        2.6335        .17975E-03   -1.5455    
   2  norm          11.125        19.123        .12014E-03   -1.5041    
   3  Prefactor     .10000E-03    9.8039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.052        12.132        .91763E-04   -1.4835    
   6  Prefactor     9.3326        101.57        .13129E-03   -1.5097    
   7  Prefactor     .10000E-03    15.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.0682        4.5195        .13016E-03   -1.5106    
   9  Prefactor     47.055        26.085        .29227E-03   -1.4335    
  10  norm          4.6067        1.6134        .63498E-04   -1.5279    
  11  Prefactor     10.413        25.288        .12417E-03   -1.5062    
  12  Prefactor     8.6945        9.8019        .67967E-03   -1.5118    
  13  Prefactor     .10000E-03    18.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.9183        .26542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.2189        12.023        .13985E-03   -1.5135    
  16  norm          1.0891        1.6418        .15753E-02   -1.5499    
  17  Prefactor     12.549        22.630        .56537E-03   -1.4999    
  18  Prefactor     .10000E-03    77.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     70.773        53.494        .47718E-04   -1.4023    
  20  Prefactor     .10000E-03    4.9021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1321        .26557        .34026E-03   -.88727    
  22  Prefactor     .99312        .13092        .18980E-03   -.92959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64031e-09
Minuit parameter uncertainties:
  1  2.6337
  2  19.1334
  3  1.26921e-05
  4  3.35922e-05
  5  12.1338
  6  61.7097
  7  1.66737e-05
  8  4.51966
  9  26.0914
  10  1.61345
  11  25.3138
  12  9.80366
  13  6.40693e-05
  14  3.62526e-05
  15  12.0267
  16  1.64187
  17  22.6458
  18  5.76692e-05
  19  53.53
  20  1.94752e-06
  21  0.26588
  22  0.130965
Done.

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

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  5.767e-05  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.931e-01  1.310e-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.132e+00  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/505581/likelihoodResults_659232001_659491201_4FGL_J2353.2+3135_daily_bin1620.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) = 7970.61229471
delta logL = -6.1191716668e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7970.61223369
delta logL = -1.72683940036e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5812       1.0000          .0000       10.000    
     3 'Normalizat'    1.1321       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99312       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=   7970.612     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      284 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    9283.5        .18142E-02** at limit **
   2  Index         2.6798        7.1716        .50000       -.16463E-04
   3  Normalizat    1.1321        .79251E-01    .34026E-03   -.37421E-04
   4  Prefactor     .99312        .41958E-01    .18980E-03   -.79125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100031
  Index      = 2.67982
  Normalizat = 1.13212
  Prefactor  = 0.993115
 **********
 **   18 **HESSE 
 **********

 FCN=   7970.612     FROM HESSE     STATUS=OK            29 CALLS      313 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    145.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6798        6.3258        .50000       -.48255    
   3  Normalizat    1.1321        .23887        .13611E-04   -.88727    
   4  Prefactor     .99312        .12665        .37960E-04   -.92959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59003e-10
Minuit parameter uncertainties:
  1  0.00428171
  2  5.29014
  3  0.239101
  4  0.126692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505581': 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) = 7970.61223334
delta logL = 1.74843080458e-07

Extracting fit parameters...

4FGL J2353.2+3135
   Spectrum: PowerLaw
483    Prefactor:  1.000e-04  4.282e-03  1.000e-04  1.000e+04 ( 1.000e-13)
484        Index:  2.680e+00  5.290e+00  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.931e-01  1.267e-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.132e+00  2.391e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/505581/cmap_HighResolution_659232001_659491201_4FGL_J2353.2+3135_daily_bin1620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-12-08 10:01:16.464370', job_id='505581', GAL2='0.99', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1638986476.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.63' WHERE bin_id='1620' AND source_name='4FGL J2353.2+3135' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 10:01:16 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 505581: <4FGL_J2353.2+3135_daily_bin1620> in cluster <slac> Done

Job <4FGL_J2353.2+3135_daily_bin1620> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 09:45:34 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 09:47:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 09:47:32 2021
Terminated at Wed Dec  8 10:01:17 2021
Results reported at Wed Dec  8 10:01:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2353.2+3135_daily_bin1620 358.322 31.5927 659232001 659491201 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 :                                   698.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            943 sec.

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

