/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 1 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_bin178
RA = 357.356, Dec = 5.579
tmin = 285465601, tmax = 285724801
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='149181', job_status='RUN', time_executed='2021-09-30 06:35:41.059283', time_epoch_executed='1633008941.06' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149181

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149181/ft1_4FGL_J2349.4+0534_daily_bin178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149181/ft2_4FGL_J2349.4+0534_daily_bin178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149181/ft1_4FGL_J2349.4+0534_daily_bin178.fits outfile=/scratch/kocevski/149181/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin178.fits ra=357.356 dec=5.579 rad=12.0 tmin=285465601.0 tmax=285724801.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.45
user 3.25
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149181/ft1_filtered_4FGL_J2349.4+0534_daily_bin178.fits evtable="EVENTS" scfile=/scratch/kocevski/149181/ft2_4FGL_J2349.4+0534_daily_bin178.fits sctable="SC_DATA" expcube=/scratch/kocevski/149181/ltcube_285465601_285724801_4FGL_J2349.4+0534_daily_bin178.fits outfile=/scratch/kocevski/149181/expmap_285465601_285724801_4FGL_J2349.4+0534_daily_bin178.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/149181/ltcube_285465601_285724801_4FGL_J2349.4+0534_daily_bin178.fits
.....................!
real 190.74
user 186.00
sys 4.42

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/149181/ft1_filtered_4FGL_J2349.4+0534_daily_bin178.fits scfile=/scratch/kocevski/149181/ft2_4FGL_J2349.4+0534_daily_bin178.fits outfile=/scratch/kocevski/149181/cmap_285465601_285724801_4FGL_J2349.4+0534_daily_bin178.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .31208       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0280       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.475       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3302       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    130.51       1.0000         .10000E-03   10000.    
    11 'norm      '    .10238E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1664       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.603       1.0000         .10000E-03   10000.    
    16 'norm      '    9.2689       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7700       1.0000         .10000E-03   10000.    
    19 'Prefactor '    82.614       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.709       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1351       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0414       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=   7978.528     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2600 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9614        .18487E-07** at limit **
   2  norm          .31251        1.8652       -.16653E-06   -.49782E-03
   3  norm          5.0281        4.0265        .27422E-05    .18412E-03
   4  Prefactor     17.473        12.251       -.17319E-06    .10196E-05
   5  Prefactor     .10000E-03    55.824        .10248E-04** at limit **
   6  Prefactor     .10000E-03    6.4996       -.44581E-05** at limit **
   7  Prefactor     .10000E-03    10.394       -.15003E-05** at limit **
   8  norm          1.3301        .93657        .27589E-07    .11125E-03
   9  Prefactor     .10000E-03    5.4627        .15404E-05** at limit **
  10  Prefactor     130.51        72.796       -.48320E-05   -.32203E-04
  11  norm          .10003E-03    5.6583        .49714E-06** at limit **
  12  Prefactor     2.1703        3.2307        .93882E-06   -.18877E-02
  13  Prefactor     .10000E-03    59.009       -.13195E-04** at limit **
  14  Prefactor     .10000E-03    4.8155       -.59575E-06** at limit **
  15  Prefactor     37.601        29.368       -.15161E-05   -.12015E-03
  16  norm          9.2685        11.708       -.14723E-06   -.14661E-04
  17  norm          .10000E-03    5.2239        .73964E-06** at limit **
  18  Prefactor     1.7697        2.0536        .78394E-07    .45553E-04
  19  Prefactor     82.605        50.468       -.60867E-05   -.63068E-04
  20  Prefactor     14.708        23.597        .23008E-06   -.16157E-04
  21  Prefactor     .10000E-03    7.4601        .41629E-05** at limit **
  22  Normalizat    1.1353        .21343        .17951E-05   -.19648E-03
  23  Prefactor     1.0413        .13925       -.44342E-06   -.80408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.312507
  norm       = 5.02815
  Prefactor  = 17.4728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.33006
  Prefactor  = 0.0001
  Prefactor  = 130.505
  norm       = 0.000100031
  Prefactor  = 2.17027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.6005
  norm       = 9.26849
  norm       = 0.0001
  Prefactor  = 1.76975
  Prefactor  = 82.6054
  Prefactor  = 14.7081
  Prefactor  = 0.0001
  Normalizat = 1.13529
  Prefactor  = 1.04129
 **********
 **   18 **HESSE 
 **********

 FCN=   7978.528     FROM HESSE     STATUS=OK           370 CALLS     2970 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9627        .15010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .31251        1.9597        .23413E-03   -1.5596    
   3  norm          5.0281        4.0267        .15340E-03   -1.5259    
   4  Prefactor     17.473        12.285        .95811E-04   -1.4872    
   5  Prefactor     .10000E-03    56.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3301        .92823        .69919E-04   -1.5477    
   9  Prefactor     .10000E-03    5.4877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     130.51        72.854        .35244E-04   -1.3418    
  11  norm          .10003E-03    34.459        .39423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1703        8.0933        .13990E-02   -1.5413    
  13  Prefactor     .10000E-03    59.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.601        29.173        .65359E-04   -1.4481    
  16  norm          9.2685        11.714        .13164E-03   -1.5099    
  17  norm          .10000E-03    5.2267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7697        2.0456        .13387E-03   -1.5442    
  19  Prefactor     82.605        50.679        .44192E-04   -1.3888    
  20  Prefactor     14.708        23.588        .10443E-03   -1.4941    
  21  Prefactor     .10000E-03    7.5054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1353        .25258        .31289E-03   -.88627    
  23  Prefactor     1.0413        .16404        .22347E-03   -.91366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07825e-08
Minuit parameter uncertainties:
  1  9.85966e-07
  2  1.56498
  3  4.0269
  4  12.2868
  5  0.000117962
  6  2.82327e-05
  7  1.47164e-06
  8  0.928236
  9  9.68665e-06
  10  72.9045
  11  0.00205572
  12  8.09736
  13  0.000218326
  14  1.47501e-05
  15  29.1837
  16  11.7173
  17  9.3473e-06
  18  2.04572
  19  50.706
  20  23.6025
  21  1.55145e-05
  22  0.252846
  23  0.164122
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.471e+01  2.360e+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.041e+00  1.641e-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.135e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/149181/likelihoodResults_285465601_285724801_4FGL_J2349.4+0534_daily_bin178.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) = 7978.15986962
delta logL = 0.368103161489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7978.15050048
delta logL = 0.377472299747

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0850       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2732       1.0000          .0000       10.000    
     3 'Normalizat'    1.0980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0550       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7978.150     FROM MIGRAD    STATUS=FAILED       103 CALLS      322 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0766        30.644        .70502E-03    .16487E-03
   2  Index         3.2746        1.9558        .73961E-02    .72920E-03
   3  Normalizat    1.0977        .24255        .31734E-03   -.60901E-06
   4  Prefactor     1.0551        .16574        .22209E-03   -.10136E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7978.150     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      398 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0766        30.644        .15828E-03   -1.5140    
   2  Index         3.2746        1.9558        .72844E-03   -.35232    
   3  Normalizat    1.0977        .24255        .36047E-03   -.89825    
   4  Prefactor     1.0551        .16574        .21531E-03   -.90916    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7978.150     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      429 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0766        16.380        .14100E-03   -.82239E-05
   2  Index         3.2746        1.0664        .14792E-02    .27954E-04
   3  Normalizat    1.0977        .24095        .12694E-04   -.53737E-06
   4  Prefactor     1.0551        .16370        .88834E-05   -.10238E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.07659
  Index      = 3.2746
  Normalizat = 1.09771
  Prefactor  = 1.05506
 **********
 **   18 **HESSE 
 **********

 FCN=   7978.150     FROM HESSE     STATUS=OK            25 CALLS      454 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0766        15.374        .56402E-05   -1.5140    
   2  Index         3.2746        1.0016        .29585E-03   -.35232    
   3  Normalizat    1.0977        .24084        .25388E-05   -.89825    
   4  Prefactor     1.0551        .16353        .17767E-05   -.90916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05283e-13
Minuit parameter uncertainties:
  1  15.3816
  2  1.00935
  3  0.241086
  4  0.163607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149181': 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) = 7978.15049847
delta logL = 0.377474311983

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  8.077e+00  1.538e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.275e+00  1.009e+00  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.055e+00  1.636e-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.098e+00  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 357.356 5.579
Photon Index (Free Index): 3.27 +/- 1.01
Photon Flux (Free Index): 6.69e-08 +/- 6.75e-08
Energy Flux (Free Index): 1.19e-05 +/- 1.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/149181/cmap_HighResolution_285465601_285724801_4FGL_J2349.4+0534_daily_bin178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='1.19e-05', dlogl='3.77e-01', photon_flux2='6.69e-08', job_status='DONE', time_completed='2021-09-30 06:48:24.215858', photon_index_error2='1.01', photon_index2='3.27', ts='0.48', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='1.17e-05', EG='1.14', time_epoch_completed='1633009704.22', return_code='0', job_id='149181', GAL2='1.06', EG2='1.10', return_code2='0', photon_flux_error2='6.75e-08', ts2='1.26', photon_index='2.47' WHERE bin_id='178' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:48:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 149181: <4FGL_J2349.4+0534_daily_bin178> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin178 357.356 5.579 285465601 285724801 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 :                                   760.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            774 sec.

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

