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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin771
RA = 357.356, Dec = 5.579
tmin = 439171201, tmax = 439430401
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='153203', job_status='RUN', time_executed='2021-09-30 06:54:24.863007', time_epoch_executed='1633010064.86' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153203

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153203/ft1_4FGL_J2349.4+0534_daily_bin771.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153203/ft2_4FGL_J2349.4+0534_daily_bin771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153203/ft1_4FGL_J2349.4+0534_daily_bin771.fits outfile=/scratch/kocevski/153203/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin771.fits ra=357.356 dec=5.579 rad=12.0 tmin=439171201.0 tmax=439430401.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.54
user 5.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153203/ft2_4FGL_J2349.4+0534_daily_bin771.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/153203/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin771.fits evtable="EVENTS" outfile="/scratch/kocevski/153203/ft1_filtered_4FGL_J2349.4+0534_daily_bin771.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/153203/ft1_filtered_4FGL_J2349.4+0534_daily_bin771.fits" evtable="EVENTS" scfile=/scratch/kocevski/153203/ft2_4FGL_J2349.4+0534_daily_bin771.fits sctable="SC_DATA" outfile=/scratch/kocevski/153203/ltcube_439171201_439430401_4FGL_J2349.4+0534_daily_bin771.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/153203/ft2_4FGL_J2349.4+0534_daily_bin771.fits
.....................!
real 11.84
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153203/ft1_filtered_4FGL_J2349.4+0534_daily_bin771.fits evtable="EVENTS" scfile=/scratch/kocevski/153203/ft2_4FGL_J2349.4+0534_daily_bin771.fits sctable="SC_DATA" expcube=/scratch/kocevski/153203/ltcube_439171201_439430401_4FGL_J2349.4+0534_daily_bin771.fits outfile=/scratch/kocevski/153203/expmap_439171201_439430401_4FGL_J2349.4+0534_daily_bin771.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/153203/ltcube_439171201_439430401_4FGL_J2349.4+0534_daily_bin771.fits
.....................!
real 190.35
user 185.37
sys 4.47

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/153203/ft1_filtered_4FGL_J2349.4+0534_daily_bin771.fits scfile=/scratch/kocevski/153203/ft2_4FGL_J2349.4+0534_daily_bin771.fits outfile=/scratch/kocevski/153203/cmap_439171201_439430401_4FGL_J2349.4+0534_daily_bin771.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153203/ft1_filtered_4FGL_J2349.4+0534_daily_bin771.fits scfile=/scratch/kocevski/153203/ft2_4FGL_J2349.4+0534_daily_bin771.fits outfile=/scratch/kocevski/153203/cmap_HighResolution_439171201_439430401_4FGL_J2349.4+0534_daily_bin771.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.470       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21211E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .67343       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.528       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.429       1.0000         .10000E-03   10000.    
    11 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0015       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12455E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.883       1.0000         .10000E-03   10000.    
    17 'norm      '    34.473       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4444       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.480       1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.078       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .48217       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2672       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=   3569.511     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2578 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.170       -.48364E-06** at limit **
   2  norm          .10000E-03    2.8814       -.83374E-06** at limit **
   3  norm          3.0912        4.4081       -.24609E-06    .13913E-04
   4  Prefactor     .10000E-03    7.2067       -.30794E-06** at limit **
   5  Prefactor     27.471        54.909       -.62861E-07    .15546E-04
   6  Prefactor     .10000E-03    6.1092       -.10818E-06** at limit **
   7  Prefactor     .10000E-03    156.37        .12379E-04** at limit **
   8  norm          .67334        .72466       -.15430E-07    .19804E-04
   9  Prefactor     16.527        18.030        .26754E-06    .92241E-04
  10  Prefactor     48.433        56.435        .41308E-06    .79820E-05
  11  norm          .10000E-03    19.243       -.41129E-05** at limit **
  12  Prefactor     9.0038        10.944        .73071E-06    .11517E-03
  13  Prefactor     .10000E-03    192.35       -.94825E-06** at limit **
  14  Prefactor     .10000E-03    20.447       -.36393E-05** at limit **
  15  Prefactor     .10000E-03    19.723       -.22488E-07** at limit **
  16  norm          11.842        29.871       -.15812E-05    .14906E-04
  17  norm          34.375        33.607        .12043E-05   -.99016E-05
  18  Prefactor     5.4404        7.8894        .29218E-06   -.11820E-04
  19  Prefactor     12.420        80.820       -.17876E-05    .25887E-04
  20  Prefactor     54.077        36.847       -.64386E-07    .29564E-04
  21  Prefactor     .10000E-03    9.6476       -.14656E-06** at limit **
  22  Normalizat    .48238        .30704       -.22353E-05    .85328E-04
  23  Prefactor     1.2671        .21172        .23104E-05    .68174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.09116
  Prefactor  = 0.0001
  Prefactor  = 27.4714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.67334
  Prefactor  = 16.5272
  Prefactor  = 48.4325
  norm       = 0.0001
  Prefactor  = 9.00382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8418
  norm       = 34.3747
  Prefactor  = 5.4404
  Prefactor  = 12.42
  Prefactor  = 54.0772
  Prefactor  = 0.0001
  Normalizat = 0.482383
  Prefactor  = 1.26715
 **********
 **   18 **HESSE 
 **********

 FCN=   3569.511     FROM HESSE     STATUS=OK           370 CALLS     2948 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.9129        .98633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0912        4.3939        .14423E-03   -1.5356    
   4  Prefactor     .10000E-03    7.2238        .15663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.471        54.766        .76436E-04   -1.4659    
   6  Prefactor     .10000E-03    6.1105        .14424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    159.59        .52459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .67334        .72918        .51270E-04   -1.5544    
   9  Prefactor     16.527        18.025        .98517E-04   -1.4895    
  10  Prefactor     48.433        56.334        .28811E-03   -1.4315    
  11  norm          .10000E-03    19.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.0038        10.985        .13359E-03   -1.5108    
  13  Prefactor     .10000E-03    192.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    116.56        .41145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.842        29.863        .11621E-03   -1.5020    
  17  norm          34.375        33.950        .68252E-04   -1.4535    
  18  Prefactor     5.4404        7.8729        .17221E-03   -1.5241    
  19  Prefactor     12.420        79.881        .11339E-03   -1.5003    
  20  Prefactor     54.077        36.792        .54544E-04   -1.4236    
  21  Prefactor     .10000E-03    9.6568        .18125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .48238        .31527        .41161E-03   -1.1324    
  23  Prefactor     1.2671        .21960        .18923E-03   -.84289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05693e-10
Minuit parameter uncertainties:
  1  3.18733e-06
  2  4.3137e-06
  3  4.39436
  4  6.91227e-07
  5  54.866
  6  2.60558e-06
  7  0.000200275
  8  0.729192
  9  18.0305
  10  56.3964
  11  5.21007e-05
  12  10.9871
  13  0.000136585
  14  4.73973e-05
  15  5.12339e-05
  16  29.9003
  17  33.9691
  18  7.87441
  19  63.1192
  20  36.8076
  21  5.26436e-07
  22  0.316444
  23  0.219762
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  5.408e+01  3.681e+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:  1.267e+00  2.198e-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:  4.824e-01  3.164e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.89
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 7.34e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 2.22e-05

TS (Fixed Index): 3.89
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 2.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153203/likelihoodResults_439171201_439430401_4FGL_J2349.4+0534_daily_bin771.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): 0
logL (Free Index) = 3569.46906217
delta logL = 0.0423907595891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3569.46772405
delta logL = 0.0437288831931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.986       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6793       1.0000          .0000       10.000    
     3 'Normalizat'    .46395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2767       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=   3569.468     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      277 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.990        54.346        .61145E-04    .16419E-03
   2  Index         2.6793        .83989        .47587E-02    .78318E-04
   3  Normalizat    .46401        .30415        .41920E-03    .50959E-04
   4  Prefactor     1.2766        .21722        .18863E-03    .34398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.9896
  Index      = 2.67933
  Normalizat = 0.464014
  Prefactor  = 1.2766
 **********
 **   18 **HESSE 
 **********

 FCN=   3569.468     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.990        49.163        .12229E-04   -1.4396    
   2  Index         2.6793        .75971        .19035E-03   -.48266    
   3  Normalizat    .46401        .30283        .16768E-04   -1.1411    
   4  Prefactor     1.2766        .21646        .37727E-04   -.84005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11698e-10
Minuit parameter uncertainties:
  1  49.2093
  2  0.763482
  3  0.303914
  4  0.216616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153203': 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) = 3569.46772395
delta logL = 0.0437289800834

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.299e+01  4.921e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.679e+00  7.635e-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:  1.277e+00  2.166e-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:  4.640e-01  3.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.97
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.68 +/- 0.76
Photon Flux (Free Index): 1.22e-07 +/- 9.16e-08
Energy Flux (Free Index): 2.99e-05 +/- 2.10e-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/153203/cmap_HighResolution_439171201_439430401_4FGL_J2349.4+0534_daily_bin771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-02', comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='2.99e-05', photon_flux_error='7.34e-08', dlogl='4.37e-02', energy_flux='3.26e-05', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-30 07:02:52.587780', photon_index_error2='0.76', photon_index2='2.68', ts='3.89', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='2.62e-07', energy_flux_error2='2.10e-05', EG='0.48', time_epoch_completed='1633010572.59', return_code='0', job_id='153203', GAL2='1.28', EG2='0.46', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='9.16e-08', ts2='3.97', photon_index='2.47' WHERE bin_id='771' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:02:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 153203: <4FGL_J2349.4+0534_daily_bin771> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin771 357.356 5.579 439171201 439430401 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 :                                   502.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

