/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 24 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 = 7403
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin121
RA = 357.356, Dec = 5.579
tmin = 270691201, tmax = 270950401
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='149072', job_status='RUN', time_executed='2021-09-30 06:35:53.549471', time_epoch_executed='1633008953.55' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149072

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149072/ft1_4FGL_J2349.4+0534_daily_bin121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149072/ft2_4FGL_J2349.4+0534_daily_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149072/ft1_4FGL_J2349.4+0534_daily_bin121.fits outfile=/scratch/kocevski/149072/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin121.fits ra=357.356 dec=5.579 rad=12.0 tmin=270691201.0 tmax=270950401.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 1.62
user 1.43
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149072/ft1_filtered_4FGL_J2349.4+0534_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/149072/ft2_4FGL_J2349.4+0534_daily_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/149072/ltcube_270691201_270950401_4FGL_J2349.4+0534_daily_bin121.fits outfile=/scratch/kocevski/149072/expmap_270691201_270950401_4FGL_J2349.4+0534_daily_bin121.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/149072/ltcube_270691201_270950401_4FGL_J2349.4+0534_daily_bin121.fits
.....................!
real 190.21
user 185.34
sys 4.55

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/149072/ft1_filtered_4FGL_J2349.4+0534_daily_bin121.fits scfile=/scratch/kocevski/149072/ft2_4FGL_J2349.4+0534_daily_bin121.fits outfile=/scratch/kocevski/149072/cmap_270691201_270950401_4FGL_J2349.4+0534_daily_bin121.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149072/ft1_filtered_4FGL_J2349.4+0534_daily_bin121.fits scfile=/scratch/kocevski/149072/ft2_4FGL_J2349.4+0534_daily_bin121.fits outfile=/scratch/kocevski/149072/cmap_HighResolution_270691201_270950401_4FGL_J2349.4+0534_daily_bin121.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.722       1.0000         .10000E-03   10000.    
     2 'norm      '    3.8445       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5245       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5203       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7197       1.0000         .10000E-03   10000.    
     8 'norm      '    .86482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.698       1.0000         .10000E-03   10000.    
    11 'norm      '    11.163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8231       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10953E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    57.557       1.0000         .10000E-03   10000.    
    16 'norm      '    7.5711       1.0000         .10000E-03   10000.    
    17 'norm      '    1.3174       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2952       1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.027       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.074       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87530       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96036       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=   6692.266     FROM MIGRAD    STATUS=CONVERGED    498 CALLS     2564 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.723        13.616        .48284E-07   -.54744E-05
   2  norm          3.8449        2.9432        .15148E-06   -.17924E-04
   3  norm          1.5244        2.6514        .22867E-06    .92627E-05
   4  Prefactor     8.5212        9.4162        .11751E-06   -.89587E-05
   5  Prefactor     .10000E-03    20.299       -.50440E-07** at limit **
   6  Prefactor     .10000E-03    4.9781       -.46418E-07** at limit **
   7  Prefactor     6.7194        8.1828       -.21959E-07    .10790E-05
   8  norm          .86471        .78999        .91750E-07   -.43335E-04
   9  Prefactor     .10000E-03    3.2768       -.22326E-07** at limit **
  10  Prefactor     14.762        50.555       -.13599E-06    .31261E-04
  11  norm          11.164        8.5906        .28109E-07   -.35694E-05
  12  Prefactor     5.8227        6.5365        .22883E-06   -.33153E-05
  13  Prefactor     .10000E-03    57.656       -.12676E-07** at limit **
  14  Prefactor     .10000E-03    12.770       -.93871E-06** at limit **
  15  Prefactor     57.556        30.589        .10488E-06   -.38593E-05
  16  norm          7.5713        7.7642       -.12130E-05    .36518E-04
  17  norm          1.2950        87.848        .91579E-05    .17533E-04
  18  Prefactor     1.2950        4.0499       -.78910E-06   -.25972E-03
  19  Prefactor     55.029        38.108        .99098E-07   -.21701E-05
  20  Prefactor     .10000E-03    5.3167       -.33689E-07** at limit **
  21  Prefactor     26.077        17.098        .14574E-06   -.76532E-05
  22  Normalizat    .87507        .20793       -.19720E-05    .38242E-04
  23  Prefactor     .96053        .13654        .93726E-06   -.13281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7226
  norm       = 3.84488
  norm       = 1.52439
  Prefactor  = 8.52121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.7194
  norm       = 0.864709
  Prefactor  = 0.0001
  Prefactor  = 14.762
  norm       = 11.1636
  Prefactor  = 5.82272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.5563
  norm       = 7.57131
  norm       = 1.29499
  Prefactor  = 1.29497
  Prefactor  = 55.0287
  Prefactor  = 0.0001
  Prefactor  = 26.0766
  Normalizat = 0.875066
  Prefactor  = 0.96053
 **********
 **   18 **HESSE 
 **********

 FCN=   6692.266     FROM HESSE     STATUS=OK           378 CALLS     2942 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.723        13.595        .12236E-03   -1.5053    
   2  norm          3.8449        2.9320        .10983E-03   -1.5316    
   3  norm          1.5244        2.6107        .16923E-03   -1.5461    
   4  Prefactor     8.5212        9.4011        .13733E-03   -1.5124    
   5  Prefactor     .10000E-03    20.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0069        .17825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7194        8.1812        .77396E-03   -1.5189    
   8  norm          .86471        .77993        .66751E-04   -1.5522    
   9  Prefactor     .10000E-03    3.2813        .14458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.762        50.320        .10447E-03   -1.4939    
  11  norm          11.164        8.5605        .11991E-03   -1.5040    
  12  Prefactor     5.8227        6.5059        .16643E-03   -1.5225    
  13  Prefactor     .10000E-03    57.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     57.556        30.566        .52879E-04   -1.4189    
  16  norm          7.5713        7.6351        .72874E-03   -1.5158    
  17  norm          1.2950        86.609        .38361E-03   -1.5480    
  18  Prefactor     1.2950        3.8510        .23697E-03   -1.5480    
  19  Prefactor     55.029        38.130        .54074E-04   -1.4223    
  20  Prefactor     .10000E-03    5.3199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.077        17.124        .78452E-04   -1.4686    
  22  Normalizat    .87507        .23454        .30473E-03   -.97342    
  23  Prefactor     .96053        .15627        .20620E-03   -.94057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71452e-10
Minuit parameter uncertainties:
  1  13.5994
  2  2.93206
  3  2.61089
  4  9.40269
  5  8.56087e-07
  6  3.42972e-07
  7  8.18258
  8  0.779941
  9  1.68648e-07
  10  50.4655
  11  8.56143
  12  6.50669
  13  7.06821e-06
  14  0.000149018
  15  30.5741
  16  7.63606
  17  21.2122
  18  3.8517
  19  38.1465
  20  1.22962e-06
  21  17.1268
  22  0.234814
  23  0.156343
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.230e-06  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:  9.605e-01  1.563e-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:  8.751e-01  2.348e-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: 5.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149072/likelihoodResults_270691201_270950401_4FGL_J2349.4+0534_daily_bin121.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) = 6692.26653211
delta logL = -0.000893687292773

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6692.26563992
delta logL = -1.50067262439e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4443       1.0000          .0000       10.000    
     3 'Normalizat'    .87509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96039       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=   6692.266     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      257 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.539        .18142E-01** at limit **
   2  Index         1.7767        8.4286        .50000       -.39495E-07
   3  Normalizat    .87506        .92464E-02    .30474E-03   -.16814E-03
   4  Prefactor     .96053        .65701E-02    .20620E-03   -.24784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.77671
  Normalizat = 0.875064
  Prefactor  = 0.960531
 **********
 **   18 **HESSE 
 **********

 FCN=   6692.266     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    253.00        .22157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7767        5.8343        .50000       -.70058    
   3  Normalizat    .87506        .28523E-01    .12189E-04   -.97342    
   4  Prefactor     .96053        .20267E-01    .41239E-04   -.94057    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4057e-10
Minuit parameter uncertainties:
  1  9.05987e-05
  2  915.16
  3  0.0285235
  4  0.0202675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149072': 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) = 6692.26563552
delta logL = 2.90554453386e-06

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  9.060e-05  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.777e+00  9.152e+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:  9.605e-01  2.027e-02  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:  8.751e-01  2.852e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/149072/cmap_HighResolution_270691201_270950401_4FGL_J2349.4+0534_daily_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.31e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-30 06:46:51.788684', job_id='149072', GAL2='0.96', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1633009611.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='121' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:46:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 149072: <4FGL_J2349.4+0534_daily_bin121> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin121> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:19 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:20 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:20 2021
Terminated at Thu Sep 30 06:46:52 2021
Results reported at Thu Sep 30 06:46:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin121 357.356 5.579 270691201 270950401 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 :                                   656.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             326.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            693 sec.

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

