/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 78 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 = 7428
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin157
RA = 357.356, Dec = 5.579
tmin = 280022401, tmax = 280281601
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='149141', job_status='RUN', time_executed='2021-09-30 06:36:56.319264', time_epoch_executed='1633009016.32' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='157'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149141

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149141/ft1_4FGL_J2349.4+0534_daily_bin157.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149141/ft2_4FGL_J2349.4+0534_daily_bin157.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149141/ft1_4FGL_J2349.4+0534_daily_bin157.fits outfile=/scratch/kocevski/149141/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin157.fits ra=357.356 dec=5.579 rad=12.0 tmin=280022401.0 tmax=280281601.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.53
user 3.30
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149141/ft2_4FGL_J2349.4+0534_daily_bin157.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/149141/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin157.fits evtable="EVENTS" outfile="/scratch/kocevski/149141/ft1_filtered_4FGL_J2349.4+0534_daily_bin157.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149141/ft1_filtered_4FGL_J2349.4+0534_daily_bin157.fits" evtable="EVENTS" scfile=/scratch/kocevski/149141/ft2_4FGL_J2349.4+0534_daily_bin157.fits sctable="SC_DATA" outfile=/scratch/kocevski/149141/ltcube_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.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/149141/ft2_4FGL_J2349.4+0534_daily_bin157.fits
.....................!
real 11.87
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149141/ft1_filtered_4FGL_J2349.4+0534_daily_bin157.fits evtable="EVENTS" scfile=/scratch/kocevski/149141/ft2_4FGL_J2349.4+0534_daily_bin157.fits sctable="SC_DATA" expcube=/scratch/kocevski/149141/ltcube_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.fits outfile=/scratch/kocevski/149141/expmap_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.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/149141/ltcube_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.fits
.....................!
real 191.60
user 185.81
sys 5.22

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/149141/ft1_filtered_4FGL_J2349.4+0534_daily_bin157.fits scfile=/scratch/kocevski/149141/ft2_4FGL_J2349.4+0534_daily_bin157.fits outfile=/scratch/kocevski/149141/cmap_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149141/ft1_filtered_4FGL_J2349.4+0534_daily_bin157.fits scfile=/scratch/kocevski/149141/ft2_4FGL_J2349.4+0534_daily_bin157.fits outfile=/scratch/kocevski/149141/cmap_HighResolution_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.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.57
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/149141/ft1_filtered_4FGL_J2349.4+0534_daily_bin157.fits', '/scratch/kocevski/149141/ft2_4FGL_J2349.4+0534_daily_bin157.fits', expMap='/scratch/kocevski/149141/expmap_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.fits', expCube='/scratch/kocevski/149141/ltcube_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/149141/Model_4FGL_J2349.4+0534_daily_bin157.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/149141/ft1_filtered_4FGL_J2349.4+0534_daily_bin157.fits
Spacecraft file(s): /scratch/kocevski/149141/ft2_4FGL_J2349.4+0534_daily_bin157.fits
Exposure map: /scratch/kocevski/149141/expmap_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.fits
Exposure cube: /scratch/kocevski/149141/ltcube_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/149141/Model_4FGL_J2349.4+0534_daily_bin157.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) = 6042.34870769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.656       1.0000         .10000E-03   10000.    
     2 'norm      '    6.8218       1.0000         .10000E-03   10000.    
     3 'norm      '    10.789       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    66.089       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1017       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.546       1.0000         .10000E-03   10000.    
     8 'norm      '    .86252E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5484       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27181E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    8.9642       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12616E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.8510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.477       1.0000         .10000E-03   10000.    
    16 'norm      '    8.0454       1.0000         .10000E-03   10000.    
    17 'norm      '    .10591E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5994       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.166       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.307       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95579       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83640       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=   6042.339     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2561 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.654        16.218       -.71366E-07   -.61217E-05
   2  norm          6.8254        4.0953       -.10714E-06   -.27934E-03
   3  norm          10.791        4.8884        .31768E-08   -.21372E-04
   4  Prefactor     .10000E-03    4.7269       -.99852E-08** at limit **
   5  Prefactor     66.115        45.583        .11903E-04    .63539E-05
   6  Prefactor     2.0996        16.969       -.47741E-05   -.19061E-03
   7  Prefactor     12.509        21.492        .68944E-05   -.69213E-05
   8  norm          .86232E-01    .69856        .99518E-08   -.90926E-03
   9  Prefactor     7.5462        10.530       -.16455E-05   -.80810E-04
  10  Prefactor     .10000E-03    248.34       -.12624E-04** at limit **
  11  norm          8.9691        9.2995       -.11885E-05   -.90834E-04
  12  Prefactor     6.0671        6.2038        .93760E-06   -.20726E-03
  13  Prefactor     .10000E-03    77.108        .50786E-08** at limit **
  14  Prefactor     8.8198        12.113       -.76064E-05   -.72953E-04
  15  Prefactor     33.487        25.870       -.17474E-05   -.20026E-05
  16  norm          8.0462        9.1443        .24733E-06   -.15616E-04
  17  norm          .10000E-03    17.717        .67164E-06** at limit **
  18  Prefactor     6.5973        4.5119        .11670E-05   -.24770E-04
  19  Prefactor     17.149        19.338        .23059E-06    .89984E-05
  20  Prefactor     .10000E-03    25.417        .26971E-05** at limit **
  21  Prefactor     11.311        14.746        .33573E-05   -.13824E-04
  22  Normalizat    .95553        .20382       -.46235E-06    .19682E-04
  23  Prefactor     .83635        .13235       -.24549E-06    .32686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6544
  norm       = 6.82542
  norm       = 10.7909
  Prefactor  = 0.0001
  Prefactor  = 66.1153
  Prefactor  = 2.09959
  Prefactor  = 12.5089
  norm       = 0.0862317
  Prefactor  = 7.54625
  Prefactor  = 0.000100003
  norm       = 8.96906
  Prefactor  = 6.06709
  Prefactor  = 0.0001
  Prefactor  = 8.81982
  Prefactor  = 33.4873
  norm       = 8.0462
  norm       = 0.000100002
  Prefactor  = 6.59735
  Prefactor  = 17.1495
  Prefactor  = 0.0001
  Prefactor  = 11.3109
  Normalizat = 0.955534
  Prefactor  = 0.836347
 **********
 **   18 **HESSE 
 **********

 FCN=   6042.339     FROM HESSE     STATUS=OK           380 CALLS     2941 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.654        16.215        .95318E-04   -1.4867    
   2  norm          6.8254        4.1115        .10920E-03   -1.5185    
   3  norm          10.791        4.8901        .11179E-03   -1.5051    
   4  Prefactor     .10000E-03    4.7391        .16503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     66.115        45.452        .49368E-04   -1.4080    
   6  Prefactor     2.0996        17.304        .28465E-03   -1.5418    
   7  Prefactor     12.509        21.451        .11309E-03   -1.5000    
   8  norm          .86232E-01    1.5514        .12237E-02   -1.5649    
   9  Prefactor     7.5462        10.498        .14597E-03   -1.5158    
  10  Prefactor     .10000E-03    251.01        .19933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.9691        9.2495        .13387E-03   -1.5109    
  12  Prefactor     6.0671        6.1747        .16300E-03   -1.5215    
  13  Prefactor     .10000E-03    77.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.8198        12.014        .13473E-03   -1.5114    
  15  Prefactor     33.487        25.846        .69257E-04   -1.4550    
  16  norm          8.0462        9.1442        .14135E-03   -1.5141    
  17  norm          .10000E-03    17.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5973        4.5052        .12474E-03   -1.5194    
  19  Prefactor     17.149        19.345        .96668E-04   -1.4879    
  20  Prefactor     .10000E-03    25.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.311        14.746        .11914E-03   -1.5035    
  22  Normalizat    .95553        .23489        .29254E-03   -.94535    
  23  Prefactor     .83635        .15244        .21374E-03   -.98402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09713e-10
Minuit parameter uncertainties:
  1  16.2192
  2  4.11164
  3  4.89025
  4  2.50206e-06
  5  45.4758
  6  12.0595
  7  21.4641
  8  0.73112
  9  10.5009
  10  0.00166298
  11  9.25094
  12  6.17531
  13  0.000117864
  14  12.0174
  15  25.8545
  16  9.14579
  17  0.000404274
  18  4.50543
  19  19.3521
  20  4.10064e-05
  21  14.7506
  22  0.235148
  23  0.152513
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  4.101e-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:  8.363e-01  1.525e-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:  9.555e-01  2.351e-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: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149141/likelihoodResults_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.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) = 6042.33941464
delta logL = -0.000185571918337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6042.33922939
delta logL = -3.29055183101e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3816       1.0000          .0000       10.000    
     3 'Normalizat'    .95556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83635       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=   6042.339     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      276 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6779.7        .18142E-02** at limit **
   2  Index         2.4147        6.0201        .50000       -.13421E-04
   3  Normalizat    .95553        .92344E-01    .29254E-03   -.74305E-04
   4  Prefactor     .83635        .63936E-01    .21374E-03   -.45530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.41468
  Normalizat = 0.955533
  Prefactor  = 0.836347
 **********
 **   18 **HESSE 
 **********

 FCN=   6042.339     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4147        6.2033        .50000       -.54342    
   3  Normalizat    .95553        .21599        .11702E-04   -.94535    
   4  Prefactor     .83635        .14966        .85496E-05   -.98402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73316e-10
Minuit parameter uncertainties:
  1  0.000689534
  2  4.63922
  3  0.216188
  4  0.149728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149141': 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) = 6042.33922923
delta logL = -1.67496182257e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  6.895e-04  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.415e+00  4.639e+00  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:  8.363e-01  1.497e-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:  9.555e-01  2.162e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/149141/cmap_HighResolution_280022401_280281601_4FGL_J2349.4+0534_daily_bin157.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.91e-03', job_status='DONE', photon_flux_upper_limit='8.90e-08', time_completed='2021-09-30 06:47:41.410275', job_id='149141', GAL2='0.84', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1633009661.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-1.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='157' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:47:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 149141: <4FGL_J2349.4+0534_daily_bin157> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin157> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:26 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:28 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:35:28 2021
Terminated at Thu Sep 30 06:47:42 2021
Results reported at Thu Sep 30 06:47:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin157 357.356 5.579 280022401 280281601 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 :                                   642.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            736 sec.

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

