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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1093
RA = 357.356, Dec = 5.579
tmin = 522633601, tmax = 522892801
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='153667', job_status='RUN', time_executed='2021-09-30 06:54:07.301769', time_epoch_executed='1633010047.3' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153667/ft1_4FGL_J2349.4+0534_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153667/ft2_4FGL_J2349.4+0534_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153667/ft1_4FGL_J2349.4+0534_daily_bin1093.fits outfile=/scratch/kocevski/153667/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1093.fits ra=357.356 dec=5.579 rad=12.0 tmin=522633601.0 tmax=522892801.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.57
user 3.36
sys 0.18

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153667/ft1_filtered_4FGL_J2349.4+0534_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/153667/ft2_4FGL_J2349.4+0534_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/153667/ltcube_522633601_522892801_4FGL_J2349.4+0534_daily_bin1093.fits outfile=/scratch/kocevski/153667/expmap_522633601_522892801_4FGL_J2349.4+0534_daily_bin1093.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/153667/ltcube_522633601_522892801_4FGL_J2349.4+0534_daily_bin1093.fits
.....................!
real 190.95
user 185.39
sys 5.18

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/153667/ft1_filtered_4FGL_J2349.4+0534_daily_bin1093.fits scfile=/scratch/kocevski/153667/ft2_4FGL_J2349.4+0534_daily_bin1093.fits outfile=/scratch/kocevski/153667/cmap_522633601_522892801_4FGL_J2349.4+0534_daily_bin1093.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153667/ft1_filtered_4FGL_J2349.4+0534_daily_bin1093.fits scfile=/scratch/kocevski/153667/ft2_4FGL_J2349.4+0534_daily_bin1093.fits outfile=/scratch/kocevski/153667/cmap_HighResolution_522633601_522892801_4FGL_J2349.4+0534_daily_bin1093.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.086       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1545       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2370       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 '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.6225       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5776       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3380       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.4793       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6856       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.593       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80688       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93368       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=   5225.598     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2552 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.086        21.863       -.18510E-05   -.99707E-05
   2  norm          3.1540        3.0508        .15333E-05   -.24795E-02
   3  norm          1.2383        4.3683        .59755E-06   -.18693E-03
   4  Prefactor     .10000E-03    14.299       -.14299E-05** at limit **
   5  Prefactor     .10000E-03    14.136        .50595E-06** at limit **
   6  Prefactor     .10000E-03    12.314        .18794E-05** at limit **
   7  Prefactor     .10000E-03    8.6110       -.24173E-06** at limit **
   8  norm          .10000E-03    .37396       -.13433E-07** at limit **
   9  Prefactor     .10000E-03    6.3086       -.33661E-06** at limit **
  10  Prefactor     .10000E-03    23.305       -.95480E-06** at limit **
  11  norm          7.6072        11.119        .58451E-05    .46172E-03
  12  Prefactor     2.5878        9.4917       -.74800E-05   -.42771E-03
  13  Prefactor     .10000E-03    181.50       -.64891E-05** at limit **
  14  Prefactor     .10000E-03    12.933        .20218E-05** at limit **
  15  Prefactor     .10000E-03    8.5498        .57435E-06** at limit **
  16  norm          .10000E-03    6.2564        .61264E-06** at limit **
  17  norm          .10000E-03    11.268       -.29465E-05** at limit **
  18  Prefactor     4.3339        4.1744        .12229E-05   -.17045E-02
  19  Prefactor     8.4789        24.374        .28747E-06   -.55979E-05
  20  Prefactor     8.6856        20.175        .44731E-06    .55690E-06
  21  Prefactor     14.591        17.106        .97778E-06    .72379E-05
  22  Normalizat    .80706        .19663       -.16833E-05    .83767E-04
  23  Prefactor     .93349        .13118        .22612E-06    .53658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0861
  norm       = 3.15396
  norm       = 1.23832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.60724
  Prefactor  = 2.58779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.33391
  Prefactor  = 8.47889
  Prefactor  = 8.68564
  Prefactor  = 14.5912
  Normalizat = 0.807061
  Prefactor  = 0.933493
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.598     FROM HESSE     STATUS=OK           368 CALLS     2920 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.086        22.236        .10672E-03   -1.4957    
   2  norm          3.1540        3.4873        .60104E-03   -1.5353    
   3  norm          1.2383        4.3799        .27102E-03   -1.5485    
   4  Prefactor     .10000E-03    14.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .51958        .85900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4080        .17744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.6072        11.748        .14525E-03   -1.5156    
  12  Prefactor     2.5878        10.200        .25421E-03   -1.5386    
  13  Prefactor     .10000E-03    181.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.2681        .17662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3339        4.4704        .73789E-03   -1.5292    
  19  Prefactor     8.4789        24.368        .13767E-03   -1.5126    
  20  Prefactor     8.6856        20.178        .13601E-03   -1.5118    
  21  Prefactor     14.591        17.120        .10485E-03   -1.4944    
  22  Normalizat    .80706        .22914        .28478E-03   -.99807    
  23  Prefactor     .93349        .15259        .18911E-03   -.94980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13251e-09
Minuit parameter uncertainties:
  1  22.2491
  2  3.48751
  3  4.38105
  4  1.63249e-05
  5  6.82034e-06
  6  2.34321e-05
  7  2.06381e-06
  8  2.06535e-06
  9  6.87096e-05
  10  2.1965e-05
  11  11.7512
  12  10.2072
  13  0.000475432
  14  3.69698e-05
  15  1.08638e-05
  16  1.7258e-05
  17  6.26071e-05
  18  4.47076
  19  24.3966
  20  20.1937
  21  17.1254
  22  0.229418
  23  0.152659
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  8.686e+00  2.019e+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:  9.335e-01  1.527e-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:  8.071e-01  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/153667/likelihoodResults_522633601_522892801_4FGL_J2349.4+0534_daily_bin1093.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) = 5225.59716105
delta logL = 0.000700161944224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5225.59671267
delta logL = 0.00114854164713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3844       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3816       1.0000          .0000       10.000    
     3 'Normalizat'    .80814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93301       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=   5225.597     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      259 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3955        27.668        .13082E-03   -.26896E-03
   2  Index         2.3837        1.7662        .13853E-01   -.87442E-04
   3  Normalizat    .80859        .21419        .28453E-03    .15033E-02
   4  Prefactor     .93271        .15219        .18918E-03    .28264E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.39552
  Index      = 2.38366
  Normalizat = 0.808589
  Prefactor  = 0.932712
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.597     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3955        25.409        .52329E-05   -1.5095    
   2  Index         2.3837        1.6279        .55412E-03   -.55068    
   3  Normalizat    .80859        .21375        .56906E-04   -.99751    
   4  Prefactor     .93271        .15192        .37836E-04   -.95007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.77617e-09
Minuit parameter uncertainties:
  1  25.4382
  2  1.67032
  3  0.213976
  4  0.151986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153667': 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) = 5225.59670821
delta logL = 0.00115300788184

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  9.396e+00  2.544e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.384e+00  1.670e+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:  9.327e-01  1.520e-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:  8.086e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
Ra Dec: 357.356 5.579

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/153667/cmap_HighResolution_522633601_522892801_4FGL_J2349.4+0534_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.69e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-30 07:04:53.420079', job_id='153667', GAL2='0.93', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1633010693.42', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.15e-03', ts2='0.23', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1093' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:04:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 153667: <4FGL_J2349.4+0534_daily_bin1093> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1093 357.356 5.579 522633601 522892801 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 :                                   597.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            845 sec.

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

