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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin392
RA = 357.356, Dec = 5.579
tmin = 340934401, tmax = 341193601
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='150530', job_status='RUN', time_executed='2021-09-30 06:43:35.418081', time_epoch_executed='1633009415.42' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150530

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150530/ft1_4FGL_J2349.4+0534_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150530/ft2_4FGL_J2349.4+0534_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150530/ft1_4FGL_J2349.4+0534_daily_bin392.fits outfile=/scratch/kocevski/150530/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin392.fits ra=357.356 dec=5.579 rad=12.0 tmin=340934401.0 tmax=341193601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.37
user 3.15
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150530/ft1_filtered_4FGL_J2349.4+0534_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/150530/ft2_4FGL_J2349.4+0534_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/150530/ltcube_340934401_341193601_4FGL_J2349.4+0534_daily_bin392.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/150530/ft2_4FGL_J2349.4+0534_daily_bin392.fits
.....................!
real 11.95
user 11.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150530/ft1_filtered_4FGL_J2349.4+0534_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/150530/ft2_4FGL_J2349.4+0534_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/150530/ltcube_340934401_341193601_4FGL_J2349.4+0534_daily_bin392.fits outfile=/scratch/kocevski/150530/expmap_340934401_341193601_4FGL_J2349.4+0534_daily_bin392.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/150530/ltcube_340934401_341193601_4FGL_J2349.4+0534_daily_bin392.fits
.....................!
real 190.66
user 185.32
sys 4.62

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/150530/ft1_filtered_4FGL_J2349.4+0534_daily_bin392.fits scfile=/scratch/kocevski/150530/ft2_4FGL_J2349.4+0534_daily_bin392.fits outfile=/scratch/kocevski/150530/cmap_340934401_341193601_4FGL_J2349.4+0534_daily_bin392.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0924       1.0000         .10000E-03   10000.    
     3 'norm      '    5.8402       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3713       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8977       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14461E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9301       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11907       1.0000         .10000E-03   10000.    
    16 'norm      '    31.167       1.0000         .10000E-03   10000.    
    17 'norm      '    .11232E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3294       1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.265       1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.725       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.9747       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .99222       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81256       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=   6483.743     FROM MIGRAD    STATUS=CONVERGED    927 CALLS     3299 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.1730        .18142E-02** at limit **
   2  norm          2.0919        2.1915        .11603E-03   -.20537E-03
   3  norm          5.8395        3.9591        .63665E-03   -.89446E-03
   4  Prefactor     .10000E-03    2.8371        .13236E-02** at limit **
   5  Prefactor     .10000E-03    30.977        .18142E-02** at limit **
   6  Prefactor     .10000E-03    5.9726        .18142E-02** at limit **
   7  Prefactor     .10000E-03    6.8468        .18142E-02** at limit **
   8  norm          2.3710        1.0293        .26607E-04   -.93609E-03
   9  Prefactor     .10000E-03    14.139        .18142E-02** at limit **
  10  Prefactor     .10000E-03    39.015        .18142E-02** at limit **
  11  norm          2.9275        9.5788        .23871E-03    .27227E-03
  12  Prefactor     .10000E-03    6.3082        .18142E-02** at limit **
  13  Prefactor     .10001E-03    304.43        .18142E-02** at limit **
  14  Prefactor     1.9306        8.4045        .29897E-03   -.62096E-04
  15  Prefactor     .11360E-03    32.696        .98717E-01** at limit **
  16  norm          31.161        18.930        .71770E-04    .62728E-04
  17  norm          .10000E-03    11.763        .18142E-02** at limit **
  18  Prefactor     2.3278        2.6462        .13239E-03   -.67203E-03
  19  Prefactor     44.267        36.183        .60259E-04    .26413E-05
  20  Prefactor     27.739        22.074        .76086E-04   -.41240E-04
  21  Prefactor     6.9742        8.1541        .15191E-03   -.19159E-04
  22  Normalizat    .99227        .21534        .27706E-03   -.32170E-04
  23  Prefactor     .81262        .14277        .20805E-03    .11256E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.09194
  norm       = 5.8395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.37098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.92746
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 1.93059
  Prefactor  = 0.000113604
  norm       = 31.1606
  norm       = 0.000100001
  Prefactor  = 2.32779
  Prefactor  = 44.2668
  Prefactor  = 27.739
  Prefactor  = 6.97425
  Normalizat = 0.992274
  Prefactor  = 0.812619
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.743     FROM HESSE     STATUS=OK           356 CALLS     3655 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1743        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0919        2.1914        .46412E-05   -1.5419    
   3  norm          5.8395        3.9588        .25466E-04   -1.5225    
   4  Prefactor     .10000E-03    2.8372        .26473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.9734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8475        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3710        1.0292        .53214E-05   -1.5400    
   9  Prefactor     .10000E-03    14.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.019        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9275        9.5622        .95486E-05   -1.5366    
  12  Prefactor     .10000E-03    6.3103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    304.44        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9306        8.3968        .11959E-04   -1.5430    
  15  Prefactor     .11360E-03    29.364        .10522       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          31.161        18.931        .28708E-05   -1.4591    
  17  norm          .10000E-03    11.763        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3278        2.6456        .52957E-05   -1.5403    
  19  Prefactor     44.267        36.181        .24104E-05   -1.4376    
  20  Prefactor     27.739        22.073        .30434E-05   -1.4654    
  21  Prefactor     6.9742        8.1540        .60762E-05   -1.5180    
  22  Normalizat    .99227        .21548        .11082E-04   -.93290    
  23  Prefactor     .81262        .14287        .83222E-05   -.99265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.18955e-10
Minuit parameter uncertainties:
  1  1.19706e-06
  2  2.19144
  3  3.95901
  4  2.52518e-06
  5  4.39925e-05
  6  1.9748e-06
  7  7.32835e-06
  8  1.02922
  9  0.000144583
  10  7.54856e-05
  11  9.56724
  12  0.000106107
  13  0.00354156
  14  8.05423
  15  0.0399925
  16  18.9342
  17  0.000222475
  18  2.64571
  19  36.1988
  20  22.0792
  21  8.15532
  22  0.215671
  23  0.142936
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  2.774e+01  2.208e+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.126e-01  1.429e-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:  9.923e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.70
Ra Dec: 357.356 5.579
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.54e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/150530/likelihoodResults_340934401_341193601_4FGL_J2349.4+0534_daily_bin392.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) = 6483.65591431
delta logL = 0.0871757361301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6483.65178036
delta logL = 0.0913096797722

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.219       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2027       1.0000          .0000       10.000    
     3 'Normalizat'    1.0039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80755       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6483.652     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      263 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.319        878.90        .17126E-02   -.10493E-03
   2  Index         2.2051        5.8522        .15675       -.87624E-06
   3  Normalizat    1.0038        .12320        .46215E-01   -.21191E-03
   4  Prefactor     .80741        .66554E-01    .43815E-01   -.21880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.319
  Index      = 2.20505
  Normalizat = 1.00379
  Prefactor  = 0.807413
 **********
 **   18 **HESSE 
 **********

 FCN=   6483.652     FROM HESSE     STATUS=OK            29 CALLS      292 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.319        29.768        .68504E-04   -1.4536    
   2  Index         2.2051        .60045        .85216E-02   -.59317    
   3  Normalizat    1.0038        .20708        .27567E-03   -.92903    
   4  Prefactor     .80741        .14219        .20863E-03   -.99456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01266e-10
Minuit parameter uncertainties:
  1  29.7809
  2  0.602567
  3  0.207251
  4  0.142255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150530': 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) = 6483.6517591
delta logL = 0.0913309451689

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.432e+01  2.978e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.205e+00  6.026e-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.074e-01  1.423e-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:  1.004e+00  2.073e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 357.356 5.579
Photon Index (Free Index): 2.21 +/- 0.60
Photon Flux (Free Index): 4.56e-08 +/- 4.45e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.97e-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/150530/cmap_HighResolution_340934401_341193601_4FGL_J2349.4+0534_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', photon_flux='5.54e-08', energy_flux2='2.03e-05', photon_flux_error='4.40e-08', dlogl='9.13e-02', energy_flux='1.67e-05', photon_flux2='4.56e-08', job_status='DONE', time_completed='2021-09-30 06:55:25.570320', photon_index_error2='0.60', photon_index2='2.21', ts='2.70', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.97e-05', EG='0.99', time_epoch_completed='1633010125.57', return_code='0', job_id='150530', GAL2='0.81', EG2='1.00', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.45e-08', ts2='2.88', photon_index='2.47' WHERE bin_id='392' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:55:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 150530: <4FGL_J2349.4+0534_daily_bin392> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin392> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 06:40:15 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:40:16 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:40:16 2021
Terminated at Thu Sep 30 06:55:26 2021
Results reported at Thu Sep 30 06:55:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin392 357.356 5.579 340934401 341193601 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 :                                   709.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

