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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1071
RA = 357.356, Dec = 5.579
tmin = 516931201, tmax = 517190401
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='153636', job_status='RUN', time_executed='2021-09-30 06:53:31.824189', time_epoch_executed='1633010011.82' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153636/ft1_4FGL_J2349.4+0534_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153636/ft2_4FGL_J2349.4+0534_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153636/ft1_4FGL_J2349.4+0534_daily_bin1071.fits outfile=/scratch/kocevski/153636/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1071.fits ra=357.356 dec=5.579 rad=12.0 tmin=516931201.0 tmax=517190401.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.94
user 3.70
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/153636/ft2_4FGL_J2349.4+0534_daily_bin1071.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153636/ft2_4FGL_J2349.4+0534_daily_bin1071.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/153636/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1071.fits evtable="EVENTS" outfile="/scratch/kocevski/153636/ft1_filtered_4FGL_J2349.4+0534_daily_bin1071.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153636/ft1_filtered_4FGL_J2349.4+0534_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/153636/ft2_4FGL_J2349.4+0534_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/153636/ltcube_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.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/153636/ft2_4FGL_J2349.4+0534_daily_bin1071.fits
.....................!
real 11.43
user 11.09
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153636/ft1_filtered_4FGL_J2349.4+0534_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/153636/ft2_4FGL_J2349.4+0534_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/153636/ltcube_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.fits outfile=/scratch/kocevski/153636/expmap_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.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/153636/ltcube_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.fits
.....................!
real 189.96
user 185.56
sys 4.09

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J2349.4+0534 @ 357.356 5.579

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/153636/ft1_filtered_4FGL_J2349.4+0534_daily_bin1071.fits scfile=/scratch/kocevski/153636/ft2_4FGL_J2349.4+0534_daily_bin1071.fits outfile=/scratch/kocevski/153636/cmap_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.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=357.356 yref=5.579 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153636/ft1_filtered_4FGL_J2349.4+0534_daily_bin1071.fits scfile=/scratch/kocevski/153636/ft2_4FGL_J2349.4+0534_daily_bin1071.fits outfile=/scratch/kocevski/153636/cmap_HighResolution_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.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=357.356 yref=5.579 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/153636/ft1_filtered_4FGL_J2349.4+0534_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/153636/ft2_4FGL_J2349.4+0534_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153636/Model_4FGL_J2349.4+0534_daily_bin1071.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/153636/ft1_filtered_4FGL_J2349.4+0534_daily_bin1071.fits.....................!
real 77.82
user 76.52
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/153636/ft1_filtered_4FGL_J2349.4+0534_daily_bin1071.fits', '/scratch/kocevski/153636/ft2_4FGL_J2349.4+0534_daily_bin1071.fits', expMap='/scratch/kocevski/153636/expmap_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.fits', expCube='/scratch/kocevski/153636/ltcube_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/153636/Model_4FGL_J2349.4+0534_daily_bin1071.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2349.4+0534'

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.639e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/153636/ft1_filtered_4FGL_J2349.4+0534_daily_bin1071.fits
Spacecraft file(s): /scratch/kocevski/153636/ft2_4FGL_J2349.4+0534_daily_bin1071.fits
Exposure map: /scratch/kocevski/153636/expmap_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.fits
Exposure cube: /scratch/kocevski/153636/ltcube_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/153636/Model_4FGL_J2349.4+0534_daily_bin1071.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) = 7454.32300384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1525       1.0000         .10000E-03   10000.    
     2 'norm      '    8.4281       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2587       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7873       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .58315E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5584       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .32151       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.911       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0021       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.523       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9632       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11116E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1796       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.969       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0284       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0883       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7454.311     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2566 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1526        9.8056        .15242E-06   -.14502E-04
   2  norm          8.4283        3.9375        .86901E-07   -.80601E-04
   3  norm          2.2587        3.1274        .14274E-06   -.71265E-04
   4  Prefactor     5.7876        8.7577        .21997E-06   -.87096E-06
   5  Prefactor     .10000E-03    125.51        .56720E-05** at limit **
   6  Prefactor     8.5569        8.3973       -.76321E-06   -.30790E-03
   7  Prefactor     .10000E-03    7.0312        .11291E-07** at limit **
   8  norm          .32041        .68224        .29123E-06    .40156E-03
   9  Prefactor     .10000E-03    4.8076        .16145E-06** at limit **
  10  Prefactor     .10000E-03    61.615        .30134E-06** at limit **
  11  norm          10.918        10.645       -.11160E-06    .12015E-05
  12  Prefactor     1.9991        6.4478        .14771E-05   -.13893E-03
  13  Prefactor     .10000E-03    202.14       -.32290E-05** at limit **
  14  Prefactor     10.540        15.547       -.20979E-05   -.18603E-03
  15  Prefactor     8.9288        24.612        .16006E-05    .45126E-04
  16  norm          .10000E-03    4.4967       -.10449E-07** at limit **
  17  norm          .10000E-03    27.121        .33901E-06** at limit **
  18  Prefactor     1.1756        6.6158        .34771E-05   -.27179E-03
  19  Prefactor     .10000E-03    35.303       -.62201E-06** at limit **
  20  Prefactor     .10000E-03    34.490        .47418E-06** at limit **
  21  Prefactor     46.973        24.596       -.29848E-06   -.95312E-04
  22  Normalizat    1.0285        .21392       -.10481E-05   -.16212E-03
  23  Prefactor     1.0881        .13753        .11756E-06   -.26080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.15263
  norm       = 8.42826
  norm       = 2.25868
  Prefactor  = 5.78764
  Prefactor  = 0.000100004
  Prefactor  = 8.55695
  Prefactor  = 0.0001
  norm       = 0.320409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9184
  Prefactor  = 1.99912
  Prefactor  = 0.000100003
  Prefactor  = 10.5402
  Prefactor  = 8.92878
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.17563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.973
  Normalizat = 1.02855
  Prefactor  = 1.08809
 **********
 **   18 **HESSE 
 **********

 FCN=   7454.311     FROM HESSE     STATUS=OK           372 CALLS     2938 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1526        9.7846        .17711E-03   -1.5254    
   2  norm          8.4283        3.9529        .10765E-03   -1.5127    
   3  norm          2.2587        3.1105        .17322E-03   -1.5407    
   4  Prefactor     5.7876        8.7510        .16695E-03   -1.5227    
   5  Prefactor     .10000E-03    130.61        .21079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5569        8.5596        .13702E-03   -1.5123    
   7  Prefactor     .10000E-03    7.0469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .32041        .55510        .10100E-02   -1.5595    
   9  Prefactor     .10000E-03    4.8179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    61.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.918        10.420        .12129E-03   -1.5047    
  12  Prefactor     1.9991        6.2652        .29268E-03   -1.5425    
  13  Prefactor     .10000E-03    203.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.540        15.497        .12351E-03   -1.5059    
  15  Prefactor     8.9288        24.692        .13388E-03   -1.5110    
  16  norm          .10000E-03    4.5006        .17881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    27.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1756        6.3909        .35674E-03   -1.5491    
  19  Prefactor     .10000E-03    35.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.973        24.688        .58506E-04   -1.4336    
  22  Normalizat    1.0285        .24804        .31827E-03   -.92080    
  23  Prefactor     1.0881        .15953        .21355E-03   -.89848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02715e-10
Minuit parameter uncertainties:
  1  9.7876
  2  3.95299
  3  3.1107
  4  8.75293
  5  0.00153603
  6  8.5608
  7  1.90199e-06
  8  0.555108
  9  1.27454e-05
  10  5.69707e-05
  11  10.4219
  12  6.26726
  13  0.0014332
  14  15.5026
  15  24.7199
  16  2.23033e-07
  17  1.82775e-05
  18  5.48276
  19  0.000106075
  20  3.32337e-05
  21  24.6934
  22  0.248319
  23  0.159599
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  3.323e-05  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.088e+00  1.596e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.029e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 9.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153636/likelihoodResults_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.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) = 7454.31124893
delta logL = -0.000135984544613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7454.31111368
delta logL = -7.28926352167e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7376       1.0000          .0000       10.000    
     3 'Normalizat'    1.0285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0881       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+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=   7454.311     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      295 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10387E-03    .17633        .12752    ** at limit **
   2  Index         2.6461        8.6696        .50000        .14022E-04
   3  Normalizat    1.0285        .77666E-03    .31827E-03   -.29470E-03
   4  Prefactor     1.0881        .53764E-03    .21355E-03   -.21322E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103868
  Index      = 2.64612
  Normalizat = 1.02854
  Prefactor  = 1.08809
 **********
 **   18 **HESSE 
 **********

 FCN=   7454.311     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      326 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10387E-03    51.109        .46405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6461        6.4085        .50000       -.49017    
   3  Normalizat    1.0285        .69665E-02    .12731E-04   -.92080    
   4  Prefactor     1.0881        .48225E-02    .42711E-04   -.89848    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.28475e-10
Minuit parameter uncertainties:
  1  0.0281437
  2  163.729
  3  0.00696651
  4  0.00482254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153636': 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) = 7454.31111341
delta logL = -4.5923388825e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.039e-04  2.814e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.646e+00  1.637e+02  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.088e+00  4.823e-03  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.029e+00  6.967e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.356 5.579

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/153636/cmap_HighResolution_516931201_517190401_4FGL_J2349.4+0534_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', job_status='DONE', photon_flux_upper_limit='9.03e-08', time_completed='2021-09-30 07:05:55.372152', job_id='153636', GAL2='1.09', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1633010755.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-4.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1071' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:05:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 153636: <4FGL_J2349.4+0534_daily_bin1071> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1071> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:45 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 06:50:47 2021
Terminated at Thu Sep 30 07:05:55 2021
Results reported at Thu Sep 30 07:05:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1071 357.356 5.579 516931201 517190401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.4+0534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   708.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

