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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1053
RA = 357.356, Dec = 5.579
tmin = 512265601, tmax = 512524801
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='153610', job_status='RUN', time_executed='2021-09-30 06:54:07.048995', time_epoch_executed='1633010047.05' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153610

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153610/ft1_4FGL_J2349.4+0534_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153610/ft2_4FGL_J2349.4+0534_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153610/ft1_4FGL_J2349.4+0534_daily_bin1053.fits outfile=/scratch/kocevski/153610/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1053.fits ra=357.356 dec=5.579 rad=12.0 tmin=512265601.0 tmax=512524801.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.58
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153610/ft2_4FGL_J2349.4+0534_daily_bin1053.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/153610/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/153610/ft1_filtered_4FGL_J2349.4+0534_daily_bin1053.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/153610/ft1_filtered_4FGL_J2349.4+0534_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/153610/ft2_4FGL_J2349.4+0534_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/153610/ltcube_512265601_512524801_4FGL_J2349.4+0534_daily_bin1053.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/153610/ft2_4FGL_J2349.4+0534_daily_bin1053.fits
.....................!
real 12.12
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153610/ft1_filtered_4FGL_J2349.4+0534_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/153610/ft2_4FGL_J2349.4+0534_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/153610/ltcube_512265601_512524801_4FGL_J2349.4+0534_daily_bin1053.fits outfile=/scratch/kocevski/153610/expmap_512265601_512524801_4FGL_J2349.4+0534_daily_bin1053.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/153610/ltcube_512265601_512524801_4FGL_J2349.4+0534_daily_bin1053.fits
.....................!
real 190.73
user 185.69
sys 4.73

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/153610/ft1_filtered_4FGL_J2349.4+0534_daily_bin1053.fits scfile=/scratch/kocevski/153610/ft2_4FGL_J2349.4+0534_daily_bin1053.fits outfile=/scratch/kocevski/153610/cmap_512265601_512524801_4FGL_J2349.4+0534_daily_bin1053.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/153610/ft1_filtered_4FGL_J2349.4+0534_daily_bin1053.fits scfile=/scratch/kocevski/153610/ft2_4FGL_J2349.4+0534_daily_bin1053.fits outfile=/scratch/kocevski/153610/cmap_HighResolution_512265601_512524801_4FGL_J2349.4+0534_daily_bin1053.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.4242       1.0000         .10000E-03   10000.    
     3 'norm      '    7.1413       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.758       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0673       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4977       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0050       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16908E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.835       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.176       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42716       1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.146       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .94514       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2083       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7547.858     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     2155 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    21.151        .31500E-05** at limit **
   2  norm          8.4208        4.3039        .51020E-06    .71044E-03
   3  norm          7.1403        4.7696       -.10099E-05    .61305E-03
   4  Prefactor     46.739        2.8186       -.28749E-06   -.54072E-02
   5  Prefactor     .10000E-03    11.637       -.46161E-06** at limit **
   6  Prefactor     .10000E-03    3.2918        .31373E-06** at limit **
   7  Prefactor     6.0652        1.0672       -.90372E-07    .92016E-04
   8  norm          2.4977        1.1108        .19418E-07   -.45198E-04
   9  Prefactor     6.0022        1.2061       -.18313E-06   -.37950E-03
  10  Prefactor     .10029E-03    61.534        .97031E-06** at limit **
  11  norm          .10000E-03    2.7626        .20822E-06** at limit **
  12  Prefactor     .10000E-03    4.3434       -.29099E-07** at limit **
  13  Prefactor     .88145E-03    68.369       -.11858E-04** at limit **
  14  Prefactor     .10000E-03    7.9914       -.16796E-06** at limit **
  15  Prefactor     26.854        3.4635        .47483E-06    .22155E-02
  16  norm          .10000E-03    5.5106        .56138E-06** at limit **
  17  norm          .10000E-03    14.181       -.70748E-07** at limit **
  18  Prefactor     12.176        6.2057        .15756E-06    .64158E-02
  19  Prefactor     .10013E-03    45.097        .26713E-06** at limit **
  20  Prefactor     .94314E-02    7144.7       -.10871E-03    .48252E-03
  21  Prefactor     38.126        2.9447       -.32382E-06   -.27849E-02
  22  Normalizat    .94559        .26424       -.94063E-06   -.21884E-03
  23  Prefactor     1.2084        .17398        .68017E-08   -.32948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  norm       = 8.42076
  norm       = 7.14033
  Prefactor  = 46.7388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.06522
  norm       = 2.49767
  Prefactor  = 6.00215
  Prefactor  = 0.000100286
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000881446
  Prefactor  = 0.0001
  Prefactor  = 26.8541
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 12.1758
  Prefactor  = 0.00010013
  Prefactor  = 0.00943137
  Prefactor  = 38.1264
  Normalizat = 0.945594
  Prefactor  = 1.20838
 **********
 **   18 **HESSE 
 **********

 FCN=   7547.858     FROM HESSE     STATUS=OK           422 CALLS     2577 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    21.031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.4208        4.3745        .34530E-02   -1.5128    
   3  norm          7.1403        4.8780        .37527E-02   -1.5173    
   4  Prefactor     46.739        22.763        .14659E-02   -1.4340    
   5  Prefactor     .10000E-03    11.625        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2850        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0652        8.9567        .40750E-02   -1.5215    
   8  norm          2.4977        1.1120        .64650E-02   -1.5392    
   9  Prefactor     6.0022        8.5935        .40964E-02   -1.5218    
  10  Prefactor     .10029E-03    61.937        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7540        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .88145E-03    348.18        .10187E-01   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.9528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.854        23.917        .19334E-02   -1.4671    
  16  norm          .10000E-03    5.5043        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    14.168        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.176        6.2868        .28700E-02   -1.5010    
  19  Prefactor     .10013E-03    45.990        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .94314E-02    24.325        .12632       -1.5689    
  21  Prefactor     38.126        25.964        .16224E-02   -1.4472    
  22  Normalizat    .94559        .23459        .81983E-01   -.94876    
  23  Prefactor     1.2084        .14908        .50188E-01   -.86074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29059e-06
Minuit parameter uncertainties:
  1  0.000790255
  2  4.37469
  3  4.87827
  4  22.7669
  5  0.000116691
  6  1.29205e-05
  7  8.95866
  8  1.11198
  9  8.5953
  10  0.00842989
  11  5.45773e-06
  12  2.22892e-06
  13  1.04939
  14  1.5654e-05
  15  23.926
  16  2.75122e-05
  17  0.000265429
  18  6.28719
  19  0.00488931
  20  0.953253
  21  25.9716
  22  0.234847
  23  0.149134
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  9.431e-03  9.533e-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.208e+00  1.491e-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.456e-01  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153610/likelihoodResults_512265601_512524801_4FGL_J2349.4+0534_daily_bin1053.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): 102
logL (Free Index) = 7547.85805195
delta logL = 4.8203219194e-11

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7547.85805195
delta logL = 9.54969436862e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94313E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4666       1.0000          .0000       10.000    
     3 'Normalizat'    .94559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2084       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=   7547.845     FROM MIGRAD    STATUS=CONVERGED    192 CALLS      380 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2925        46.441        .36365E-03    .18758E-04
   2  Index         1.6371        2.1871        .20582E-01    .56242E-05
   3  Normalizat    .94706        .25130        .36270E-03   -.40613E-03
   4  Prefactor     1.2053        .17337        .22212E-03   -.51801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.29251
  Index      = 1.63706
  Normalizat = 0.947059
  Prefactor  = 1.2053
 **********
 **   18 **HESSE 
 **********

 FCN=   7547.845     FROM HESSE     STATUS=OK            25 CALLS      405 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2925        49.671        .14546E-04   -1.5294    
   2  Index         1.6371        2.2568        .82328E-03   -.73770    
   3  Normalizat    .94706        .25148        .14508E-04   -.94826    
   4  Prefactor     1.2053        .17355        .44424E-04   -.86168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94779e-10
Minuit parameter uncertainties:
  1  29.2338
  2  2.4272
  3  0.251794
  4  0.17363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153610': 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) = 7547.84509609
delta logL = 0.0129558573526

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.293e+00  2.923e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.637e+00  2.427e+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.205e+00  1.736e-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.471e-01  2.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.356 5.579

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/153610/cmap_HighResolution_512265601_512524801_4FGL_J2349.4+0534_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-30 07:06:24.453362', job_id='153610', GAL2='1.21', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1633010784.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.30e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1053' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:06:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 153610: <4FGL_J2349.4+0534_daily_bin1053> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1053 357.356 5.579 512265601 512524801 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 :                                   691.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            942 sec.

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

