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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin928
RA = 357.356, Dec = 5.579
tmin = 479865601, tmax = 480124801
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='153432', job_status='RUN', time_executed='2021-09-30 06:50:43.346301', time_epoch_executed='1633009843.35' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153432

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153432/ft1_4FGL_J2349.4+0534_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153432/ft2_4FGL_J2349.4+0534_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153432/ft1_4FGL_J2349.4+0534_daily_bin928.fits outfile=/scratch/kocevski/153432/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin928.fits ra=357.356 dec=5.579 rad=12.0 tmin=479865601.0 tmax=480124801.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.55
user 3.24
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153432/ft1_filtered_4FGL_J2349.4+0534_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/153432/ft2_4FGL_J2349.4+0534_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/153432/ltcube_479865601_480124801_4FGL_J2349.4+0534_daily_bin928.fits outfile=/scratch/kocevski/153432/expmap_479865601_480124801_4FGL_J2349.4+0534_daily_bin928.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/153432/ltcube_479865601_480124801_4FGL_J2349.4+0534_daily_bin928.fits
.....................!
real 191.83
user 186.38
sys 5.04

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/153432/ft1_filtered_4FGL_J2349.4+0534_daily_bin928.fits scfile=/scratch/kocevski/153432/ft2_4FGL_J2349.4+0534_daily_bin928.fits outfile=/scratch/kocevski/153432/cmap_479865601_480124801_4FGL_J2349.4+0534_daily_bin928.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153432/ft1_filtered_4FGL_J2349.4+0534_daily_bin928.fits scfile=/scratch/kocevski/153432/ft2_4FGL_J2349.4+0534_daily_bin928.fits outfile=/scratch/kocevski/153432/cmap_HighResolution_479865601_480124801_4FGL_J2349.4+0534_daily_bin928.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    12.756       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37616E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4232       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7533       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.8660       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.1234       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37947E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45065E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.168       1.0000         .10000E-03   10000.    
    17 'norm      '    31.306       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    95.098       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .59778       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.5326       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=   8404.071     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2258 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6796        .30740E-07** at limit **
   2  norm          12.756        3.9416        .22111E-07    .74967E-04
   3  norm          .10000E-03    1.2591       -.10833E-07** at limit **
   4  Prefactor     .10001E-03    14.964       -.66771E-05** at limit **
   5  Prefactor     1.4157        27.515        .27454E-05    .63509E-04
   6  Prefactor     4.7534        7.1665        .24369E-05    .82335E-03
   7  Prefactor     6.8663        7.2459       -.32897E-07   -.29872E-04
   8  norm          .10000E-03    .24376        .72422E-08** at limit **
   9  Prefactor     .10000E-03    10.591        .27991E-06** at limit **
  10  Prefactor     .10000E-03    12.139       -.21686E-06** at limit **
  11  norm          6.1178        7.8531       -.84605E-06   -.20035E-03
  12  Prefactor     .10003E-03    17.661       -.69224E-05** at limit **
  13  Prefactor     .10000E-03    101.20        .27500E-05** at limit **
  14  Prefactor     .10010E-03    7.0261        .24297E-05** at limit **
  15  Prefactor     .10000E-03    53.347       -.13095E-05** at limit **
  16  norm          10.167        9.7816       -.74256E-07   -.38644E-04
  17  norm          31.284        23.777       -.75495E-06   -.52020E-03
  18  Prefactor     .10000E-03    2.0279        .72107E-07** at limit **
  19  Prefactor     .10000E-03    17.048        .20176E-05** at limit **
  20  Prefactor     .10000E-03    19.162       -.25852E-05** at limit **
  21  Prefactor     95.103        28.249       -.27182E-06   -.87121E-04
  22  Normalizat    .59761        .22385       -.53169E-06   -.14728E-03
  23  Prefactor     1.5326        .15340       -.24310E-06   -.31539E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 12.7558
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 1.41567
  Prefactor  = 4.75338
  Prefactor  = 6.86628
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.11781
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.000100098
  Prefactor  = 0.000100001
  norm       = 10.1671
  norm       = 31.2842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.1026
  Normalizat = 0.59761
  Prefactor  = 1.53264
 **********
 **   18 **HESSE 
 **********

 FCN=   8404.071     FROM HESSE     STATUS=OK           376 CALLS     2634 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          12.756        3.9313        .95069E-04   -1.4994    
   3  norm          .10000E-03    1.2645        .10044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    35.985        .39382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4157        28.226        .36250E-03   -1.5470    
   6  Prefactor     4.7534        8.8947        .92275E-03   -1.5272    
   7  Prefactor     6.8663        7.2472        .15312E-03   -1.5184    
   8  norm          .10000E-03    .25169        .88328E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.1178        7.5032        .16224E-03   -1.5213    
  12  Prefactor     .10003E-03    37.240        .39183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    101.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10010E-03    14.195        .65287E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    53.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.167        9.7800        .12566E-03   -1.5070    
  17  norm          31.284        26.303        .71612E-04   -1.4589    
  18  Prefactor     .10000E-03    2.0509        .12726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     95.103        28.143        .41215E-04   -1.3754    
  22  Normalizat    .59761        .24337        .43664E-03   -1.0809    
  23  Prefactor     1.5326        .17108        .20629E-03   -.76630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82157e-09
Minuit parameter uncertainties:
  1  9.29196e-06
  2  3.93142
  3  7.93007e-07
  4  0.00136441
  5  12.649
  6  8.89717
  7  7.24813
  8  1.17868e-07
  9  7.46995e-05
  10  2.56929e-06
  11  7.5043
  12  0.00204269
  13  7.34351e-06
  14  0.00236019
  15  0.000447979
  16  9.78152
  17  26.3123
  18  7.0203e-06
  19  9.58654e-06
  20  7.29208e-05
  21  28.1465
  22  0.243811
  23  0.171143
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  7.292e-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.533e+00  1.711e-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:  5.976e-01  2.438e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153432/likelihoodResults_479865601_480124801_4FGL_J2349.4+0534_daily_bin928.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) = 8404.0713005
delta logL = -0.000250961267739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8404.07104982
delta logL = -2.8047725209e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8830       1.0000          .0000       10.000    
     3 'Normalizat'    .59760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5326       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.

 FCN=   8404.071     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      250 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.793        .90712E-02** at limit **
   2  Index         2.8714        5.5456        .50000        .60712E-05
   3  Normalizat    .59761        .42410E-02    .98519E-01    .61183E-04
   4  Prefactor     1.5326        .30709E-02    .46672E-01    .72082E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.87138
  Normalizat = 0.59761
  Prefactor  = 1.53264
 **********
 **   18 **HESSE 
 **********

 FCN=   8404.071     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    114.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8714        7.2043        .50000       -.43976    
   3  Normalizat    .59761        .13150E-01    .43664E-03   -1.0809    
   4  Prefactor     1.5326        .95522E-02    .20629E-03   -.76630    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58263e-07
Minuit parameter uncertainties:
  1  0.000102521
  2  298.634
  3  0.0131497
  4  0.00955222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153432': 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) = 8404.07104976
delta logL = -2.22324160859e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.025e-04  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.871e+00  2.986e+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.533e+00  9.552e-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:  5.976e-01  1.315e-02  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/153432/cmap_HighResolution_479865601_480124801_4FGL_J2349.4+0534_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-09-30 07:03:01.674024', job_id='153432', GAL2='1.53', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1633010581.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.53', dlogl='-2.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='928' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:03:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 153432: <4FGL_J2349.4+0534_daily_bin928> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin928> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:29 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:31 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:31 2021
Terminated at Thu Sep 30 07:03:02 2021
Results reported at Thu Sep 30 07:03:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin928 357.356 5.579 479865601 480124801 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 :                                   732.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            753 sec.

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

