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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin270
RA = 357.356, Dec = 5.579
tmin = 309312001, tmax = 309571201
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='149336', job_status='RUN', time_executed='2021-09-30 06:39:11.459843', time_epoch_executed='1633009151.46' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149336/ft1_4FGL_J2349.4+0534_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149336/ft2_4FGL_J2349.4+0534_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149336/ft1_4FGL_J2349.4+0534_daily_bin270.fits outfile=/scratch/kocevski/149336/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin270.fits ra=357.356 dec=5.579 rad=12.0 tmin=309312001.0 tmax=309571201.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 4.00
user 3.78
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149336/ft2_4FGL_J2349.4+0534_daily_bin270.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/149336/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin270.fits evtable="EVENTS" outfile="/scratch/kocevski/149336/ft1_filtered_4FGL_J2349.4+0534_daily_bin270.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149336/ft1_filtered_4FGL_J2349.4+0534_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/149336/ft2_4FGL_J2349.4+0534_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/149336/ltcube_309312001_309571201_4FGL_J2349.4+0534_daily_bin270.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/149336/ft2_4FGL_J2349.4+0534_daily_bin270.fits
.....................!
real 13.50
user 13.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149336/ft1_filtered_4FGL_J2349.4+0534_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/149336/ft2_4FGL_J2349.4+0534_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/149336/ltcube_309312001_309571201_4FGL_J2349.4+0534_daily_bin270.fits outfile=/scratch/kocevski/149336/expmap_309312001_309571201_4FGL_J2349.4+0534_daily_bin270.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/149336/ltcube_309312001_309571201_4FGL_J2349.4+0534_daily_bin270.fits
.....................!
real 189.45
user 185.13
sys 4.01

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/149336/ft1_filtered_4FGL_J2349.4+0534_daily_bin270.fits scfile=/scratch/kocevski/149336/ft2_4FGL_J2349.4+0534_daily_bin270.fits outfile=/scratch/kocevski/149336/cmap_309312001_309571201_4FGL_J2349.4+0534_daily_bin270.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.4217       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8713       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9617       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .15596       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4692       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.768       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7378       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.211       1.0000         .10000E-03   10000.    
    16 'norm      '    7.1702       1.0000         .10000E-03   10000.    
    17 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.391       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61442       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0573       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=   6971.346     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2541 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0312        .24441E-07** at limit **
   2  norm          1.4221        1.8747       -.24283E-06   -.60465E-03
   3  norm          6.8714        5.5156        .17234E-05   -.87468E-03
   4  Prefactor     .10000E-03    3.8440       -.77061E-06** at limit **
   5  Prefactor     2.9592        65.678       -.68628E-05    .15897E-04
   6  Prefactor     .10000E-03    4.1517       -.26046E-07** at limit **
   7  Prefactor     .10000E-03    11.178        .30646E-06** at limit **
   8  norm          .15604        .46406       -.45882E-06   -.28488E-02
   9  Prefactor     6.4673        12.394        .81669E-06    .40483E-05
  10  Prefactor     .10000E-03    26.155        .93469E-06** at limit **
  11  norm          18.767        10.143        .24363E-06    .33080E-03
  12  Prefactor     1.7385        6.4529       -.32460E-05   -.46575E-03
  13  Prefactor     .10000E-03    51.384       -.15053E-06** at limit **
  14  Prefactor     .10000E-03    3.0051        .13689E-07** at limit **
  15  Prefactor     15.199        22.075       -.49774E-05    .30297E-03
  16  norm          7.1697        11.495       -.13324E-06    .17979E-05
  17  norm          .10000E-03    17.082       -.39307E-07** at limit **
  18  Prefactor     .10000E-03    .84531       -.66648E-08** at limit **
  19  Prefactor     12.348        26.953        .81730E-06   -.22831E-04
  20  Prefactor     11.391        13.985        .12860E-06   -.14651E-04
  21  Prefactor     .10000E-03    7.3731       -.77045E-07** at limit **
  22  Normalizat    .61429        .17411        .25026E-06    .15211E-03
  23  Prefactor     1.0574        .12289        .49293E-06    .17833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.42207
  norm       = 6.87142
  Prefactor  = 0.0001
  Prefactor  = 2.95915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.15604
  Prefactor  = 6.46726
  Prefactor  = 0.0001
  norm       = 18.7671
  Prefactor  = 1.73849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1992
  norm       = 7.16975
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.3481
  Prefactor  = 11.391
  Prefactor  = 0.0001
  Normalizat = 0.61429
  Prefactor  = 1.05737
 **********
 **   18 **HESSE 
 **********

 FCN=   6971.346     FROM HESSE     STATUS=OK           372 CALLS     2913 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0371        .16367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.4221        1.8663        .12539E-03   -1.5469    
   3  norm          6.8714        5.2268        .15306E-03   -1.5184    
   4  Prefactor     .10000E-03    17.409        .31289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9592        66.168        .23595E-03   -1.5364    
   6  Prefactor     .10000E-03    4.1639        .16615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .15604        .49035        .10134E-03   -1.5629    
   9  Prefactor     6.4673        12.267        .15779E-03   -1.5199    
  10  Prefactor     .10000E-03    26.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.767        10.053        .92451E-04   -1.4841    
  12  Prefactor     1.7385        6.9051        .31831E-03   -1.5444    
  13  Prefactor     .10000E-03    51.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.0221        .14130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.199        21.390        .10270E-03   -1.4928    
  16  norm          7.1697        11.486        .14980E-03   -1.5172    
  17  norm          .10000E-03    17.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .84909        .74936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.348        26.901        .11400E-03   -1.5005    
  20  Prefactor     11.391        13.976        .11870E-03   -1.5033    
  21  Prefactor     .10000E-03    7.4246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .61429        .19562        .32405E-03   -1.0738    
  23  Prefactor     1.0574        .14044        .18313E-03   -.90841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.005e-09
Minuit parameter uncertainties:
  1  8.8283e-07
  2  1.86635
  3  5.22719
  4  4.275e-06
  5  28.0205
  6  3.03336e-06
  7  1.48772e-05
  8  0.490359
  9  12.2718
  10  8.35461e-05
  11  10.0536
  12  6.9083
  13  3.29781e-05
  14  1.0432e-06
  15  21.4005
  16  11.4892
  17  3.8851e-06
  18  3.03956e-07
  19  26.9272
  20  13.9805
  21  2.08067e-06
  22  0.195839
  23  0.140492
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.139e+01  1.398e+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.057e+00  1.405e-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.143e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.96
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 9.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149336/likelihoodResults_309312001_309571201_4FGL_J2349.4+0534_daily_bin270.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) = 6971.1966629
delta logL = 0.149012319122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6971.19270472
delta logL = 0.152970493993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.164       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0336       1.0000          .0000       10.000    
     3 'Normalizat'    .62238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0527       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=   6971.193     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      298 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.165        20.003        .96673E-04   -.30458E-04
   2  Index         2.0335        .70730        .10104E-01   -.20907E-04
   3  Normalizat    .62263        .18969        .32201E-03   -.26656E-04
   4  Prefactor     1.0525        .13887        .18346E-03    .32595E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1645
  Index      = 2.03346
  Normalizat = 0.622633
  Prefactor  = 1.05252
 **********
 **   18 **HESSE 
 **********

 FCN=   6971.193     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.165        19.782        .38669E-05   -1.4879    
   2  Index         2.0335        .69958        .40416E-03   -.63516    
   3  Normalizat    .62263        .18976        .12880E-04   -1.0703    
   4  Prefactor     1.0525        .13894        .36693E-04   -.90999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79158e-11
Minuit parameter uncertainties:
  1  19.7898
  2  0.703154
  3  0.189957
  4  0.138988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149336': 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) = 6971.19270365
delta logL = 0.152971562461

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.716e+01  1.979e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.033e+00  7.032e-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.053e+00  1.390e-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.226e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.03 +/- 0.70
Photon Flux (Free Index): 1.79e-08 +/- 2.34e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.70e-05

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/149336/cmap_HighResolution_309312001_309571201_4FGL_J2349.4+0534_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='1.53e-01', photon_flux2='1.79e-08', job_status='DONE', time_completed='2021-09-30 06:50:26.635100', photon_index_error2='0.70', photon_index2='2.03', ts='0.96', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.15e-08', energy_flux_error2='1.70e-05', EG='0.61', time_epoch_completed='1633009826.64', return_code='0', job_id='149336', GAL2='1.05', EG2='0.62', return_code2='0', photon_flux_error2='2.34e-08', ts2='1.27', photon_index='2.47' WHERE bin_id='270' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 149336: <4FGL_J2349.4+0534_daily_bin270> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin270 357.356 5.579 309312001 309571201 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 :                                   673.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

