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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1006
RA = 357.356, Dec = 5.579
tmin = 500083201, tmax = 500342401
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='153542', job_status='RUN', time_executed='2021-09-30 06:52:59.771736', time_epoch_executed='1633009979.77' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153542

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153542/ft1_4FGL_J2349.4+0534_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153542/ft2_4FGL_J2349.4+0534_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153542/ft1_4FGL_J2349.4+0534_daily_bin1006.fits outfile=/scratch/kocevski/153542/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1006.fits ra=357.356 dec=5.579 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.63
user 5.38
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153542/ft1_filtered_4FGL_J2349.4+0534_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/153542/ft2_4FGL_J2349.4+0534_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/153542/ltcube_500083201_500342401_4FGL_J2349.4+0534_daily_bin1006.fits outfile=/scratch/kocevski/153542/expmap_500083201_500342401_4FGL_J2349.4+0534_daily_bin1006.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/153542/ltcube_500083201_500342401_4FGL_J2349.4+0534_daily_bin1006.fits
.....................!
real 190.14
user 185.19
sys 4.56

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/153542/ft1_filtered_4FGL_J2349.4+0534_daily_bin1006.fits scfile=/scratch/kocevski/153542/ft2_4FGL_J2349.4+0534_daily_bin1006.fits outfile=/scratch/kocevski/153542/cmap_500083201_500342401_4FGL_J2349.4+0534_daily_bin1006.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153542/ft1_filtered_4FGL_J2349.4+0534_daily_bin1006.fits scfile=/scratch/kocevski/153542/ft2_4FGL_J2349.4+0534_daily_bin1006.fits outfile=/scratch/kocevski/153542/cmap_HighResolution_500083201_500342401_4FGL_J2349.4+0534_daily_bin1006.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2550       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0285       1.0000         .10000E-03   10000.    
     3 'norm      '    9.4125       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6814       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.413       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11222E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5026       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2673       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.462       1.0000         .10000E-03   10000.    
    11 'norm      '    12.410       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    612.46       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.543       1.0000         .10000E-03   10000.    
    16 'norm      '    26.580       1.0000         .10000E-03   10000.    
    17 'norm      '    .11046E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .90776       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12241E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    107.30       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6055       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80806       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82989       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=   2751.241     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     2947 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1113        353.99        .39873E-03   -.69712E-05
   2  norm          2.0360        5.9347        .13664E-03   -.68099E-04
   3  norm          9.4146        7.3617        .11709E-03   -.11505E-04
   4  Prefactor     9.6768        20.634        .12879E-03   -.15845E-04
   5  Prefactor     33.462        45.636        .69323E-04    .90197E-06
   6  Prefactor     .10000E-03    10.100        .16275E-02** at limit **
   7  Prefactor     .10000E-03    59.197        .18142E-02** at limit **
   8  norm          1.5030        1.9077        .76864E-04   -.33442E-03
   9  Prefactor     6.2644        13.418        .16034E-03    .26234E-05
  10  Prefactor     13.474        61.061        .10917E-03   -.59359E-05
  11  norm          12.409        14.404        .11371E-03   -.99981E-05
  12  Prefactor     15.368        15.339        .10219E-03   -.13684E-04
  13  Prefactor     613.52        486.64        .83409E-04   -.11626E-04
  14  Prefactor     .10000E-03    8.3889        .14832E-02** at limit **
  15  Prefactor     42.516        56.840        .61461E-04   -.16000E-04
  16  norm          26.577        27.665        .77702E-04    .95102E-06
  17  norm          .10000E-03    23.786        .18142E-02** at limit **
  18  Prefactor     .90183        14.871        .35755E-02    .10859E-03
  19  Prefactor     .10000E-03    75.863        .18142E-02** at limit **
  20  Prefactor     107.37        53.417        .19412E-03   -.18126E-04
  21  Prefactor     7.6113        26.881        .72707E-03   -.39302E-04
  22  Normalizat    .80787        .36324        .30546E-03   -.73265E-04
  23  Prefactor     .82995        .22425        .20840E-03   -.17963E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11134
  norm       = 2.03596
  norm       = 9.4146
  Prefactor  = 9.67676
  Prefactor  = 33.4616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50299
  Prefactor  = 6.26444
  Prefactor  = 13.4736
  norm       = 12.4092
  Prefactor  = 15.3685
  Prefactor  = 613.517
  Prefactor  = 0.0001
  Prefactor  = 42.516
  norm       = 26.5767
  norm       = 0.0001
  Prefactor  = 0.901832
  Prefactor  = 0.0001
  Prefactor  = 107.37
  Prefactor  = 7.61127
  Normalizat = 0.807874
  Prefactor  = 0.829949
 **********
 **   18 **HESSE 
 **********

 FCN=   2751.241     FROM HESSE     STATUS=OK           348 CALLS     3295 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1113        345.25        .15949E-04   -1.5497    
   2  norm          2.0360        5.8651        .54657E-05   -1.5423    
   3  norm          9.4146        7.3610        .46837E-05   -1.5094    
   4  Prefactor     9.6768        20.625        .51516E-05   -1.5086    
   5  Prefactor     33.462        45.634        .27729E-05   -1.4550    
   6  Prefactor     .10000E-03    10.100        .32550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    59.218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5030        1.9076        .30745E-05   -1.5463    
   9  Prefactor     6.2644        13.417        .64138E-05   -1.5207    
  10  Prefactor     13.474        61.044        .43667E-05   -1.4974    
  11  norm          12.409        14.403        .45484E-05   -1.5003    
  12  Prefactor     15.368        15.336        .40876E-05   -1.4924    
  13  Prefactor     613.52        484.60        .16682E-04   -1.0702    
  14  Prefactor     .10000E-03    8.3890        .29664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     42.516        56.810        .24584E-05   -1.4403    
  16  norm          26.577        27.661        .31081E-05   -1.4676    
  17  norm          .10000E-03    23.787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .90183        14.640        .14302E-03   -1.5518    
  19  Prefactor     .10000E-03    75.867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     107.37        53.412        .77649E-05   -1.3632    
  21  Prefactor     7.6113        26.868        .29083E-04   -1.5156    
  22  Normalizat    .80787        .36262        .12218E-04   -.99777    
  23  Prefactor     .82995        .22434        .41679E-04   -.98634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16738e-10
Minuit parameter uncertainties:
  1  39.4056
  2  5.86679
  3  7.36166
  4  20.64
  5  45.6816
  6  4.98145e-06
  7  0.000111261
  8  1.90766
  9  13.4232
  10  57.455
  11  14.4067
  12  15.3402
  13  487.956
  14  2.99706e-05
  15  56.8822
  16  27.6739
  17  7.98047e-05
  18  7.26879
  19  9.68286e-06
  20  53.4361
  21  26.9102
  22  0.363717
  23  0.224591
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.074e+02  5.344e+01  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.299e-01  2.246e-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.079e-01  3.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.75
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 2.14e-07 +/- 1.07e-07
Energy Flux (Fixed Index): 6.46e-05 +/- 3.22e-05

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): 0
logL (Free Index) = 2749.89783601
delta logL = 1.34312832728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2749.89323372
delta logL = 1.34773062313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.922       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3716       1.0000          .0000       10.000    
     3 'Normalizat'    .69106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88252       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=   2749.893     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      305 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.927        45.100        .69837E-04   -.21130E-03
   2  Index         3.3715        .75535        .22450E-02   -.73130E-04
   3  Normalizat    .69080        .32554        .32685E-03   -.11965E-04
   4  Prefactor     .88266        .22081        .20236E-03    .25590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.9268
  Index      = 3.37153
  Normalizat = 0.690805
  Prefactor  = 0.88266
 **********
 **   18 **HESSE 
 **********

 FCN=   2749.893     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.927        37.497        .27935E-05   -1.4560    
   2  Index         3.3715        .62823        .89800E-04   -.33175    
   3  Normalizat    .69080        .32495        .13074E-04   -1.0426    
   4  Prefactor     .88266        .22027        .80944E-05   -.96750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44716e-11
Minuit parameter uncertainties:
  1  37.5241
  2  0.630096
  3  0.325859
  4  0.220489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153542': 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) = 2749.89323339
delta logL = 1.34773095191

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.293e+01  3.752e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.372e+00  6.301e-01  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.827e-01  2.205e-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:  6.908e-01  3.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.73
Ra Dec: 357.356 5.579
Photon Index (Free Index): 3.37 +/- 0.63
Photon Flux (Free Index): 3.27e-07 +/- 1.41e-07
Energy Flux (Free Index): 5.64e-05 +/- 2.37e-05

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/153542/cmap_HighResolution_500083201_500342401_4FGL_J2349.4+0534_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.14e-07', energy_flux2='5.64e-05', photon_flux_error='1.07e-07', dlogl='1.35e+00', energy_flux='6.46e-05', photon_flux2='3.27e-07', job_status='DONE', time_completed='2021-09-30 07:00:54.626117', photon_index_error2='0.63', photon_index2='3.37', ts='7.75', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='0.81', time_epoch_completed='1633010454.63', return_code='0', job_id='153542', GAL2='0.88', EG2='0.69', return_code2='0', energy_flux_error='3.22e-05', photon_flux_error2='1.41e-07', ts2='10.73', photon_index='2.47' WHERE bin_id='1006' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:00:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 153542: <4FGL_J2349.4+0534_daily_bin1006> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1006 357.356 5.579 500083201 500342401 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 :                                   463.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            618 sec.

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

