/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 168 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 = 7381
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin105
RA = 357.356, Dec = 5.579
tmin = 266544001, tmax = 266803201
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='148034', job_status='RUN', time_executed='2021-09-30 06:34:11.467219', time_epoch_executed='1633008851.47' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/148034

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/148034/ft1_4FGL_J2349.4+0534_daily_bin105.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/148034/ft2_4FGL_J2349.4+0534_daily_bin105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/148034/ft1_4FGL_J2349.4+0534_daily_bin105.fits outfile=/scratch/kocevski/148034/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin105.fits ra=357.356 dec=5.579 rad=12.0 tmin=266544001.0 tmax=266803201.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 1.38
user 1.21
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/148034/ft1_filtered_4FGL_J2349.4+0534_daily_bin105.fits" evtable="EVENTS" scfile=/scratch/kocevski/148034/ft2_4FGL_J2349.4+0534_daily_bin105.fits sctable="SC_DATA" outfile=/scratch/kocevski/148034/ltcube_266544001_266803201_4FGL_J2349.4+0534_daily_bin105.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/148034/ft2_4FGL_J2349.4+0534_daily_bin105.fits
.....................!
real 12.46
user 12.07
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/148034/ft1_filtered_4FGL_J2349.4+0534_daily_bin105.fits evtable="EVENTS" scfile=/scratch/kocevski/148034/ft2_4FGL_J2349.4+0534_daily_bin105.fits sctable="SC_DATA" expcube=/scratch/kocevski/148034/ltcube_266544001_266803201_4FGL_J2349.4+0534_daily_bin105.fits outfile=/scratch/kocevski/148034/expmap_266544001_266803201_4FGL_J2349.4+0534_daily_bin105.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/148034/ltcube_266544001_266803201_4FGL_J2349.4+0534_daily_bin105.fits
.....................!
real 191.59
user 185.76
sys 5.52

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/148034/ft1_filtered_4FGL_J2349.4+0534_daily_bin105.fits scfile=/scratch/kocevski/148034/ft2_4FGL_J2349.4+0534_daily_bin105.fits outfile=/scratch/kocevski/148034/cmap_266544001_266803201_4FGL_J2349.4+0534_daily_bin105.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/148034/ft1_filtered_4FGL_J2349.4+0534_daily_bin105.fits scfile=/scratch/kocevski/148034/ft2_4FGL_J2349.4+0534_daily_bin105.fits outfile=/scratch/kocevski/148034/cmap_HighResolution_266544001_266803201_4FGL_J2349.4+0534_daily_bin105.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1553       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.459       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3744       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7108       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4316       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.8116       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3096       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10985E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.654       1.0000         .10000E-03   10000.    
    16 'norm      '    5.2255       1.0000         .10000E-03   10000.    
    17 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2158       1.0000         .10000E-03   10000.    
    19 'Prefactor '    114.68       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.579       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2187       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89247       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=   9034.282     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2585 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2356        .91689E-07** at limit **
   2  norm          .10000E-03    .82213        .33969E-07** at limit **
   3  norm          2.1553        2.1334        .51780E-07   -.44955E-05
   4  Prefactor     11.454        8.8945        .20726E-06   -.97922E-05
   5  Prefactor     3.3745        32.383        .42490E-05   -.13402E-05
   6  Prefactor     .10000E-03    6.0313        .16325E-06** at limit **
   7  Prefactor     4.7042        17.457        .68106E-06   -.71311E-05
   8  norm          1.4314        .79364        .27088E-08   -.15356E-03
   9  Prefactor     .10000E-03    2.8251        .68075E-08** at limit **
  10  Prefactor     .10000E-03    27.549       -.48362E-07** at limit **
  11  norm          4.8095        6.6579        .22544E-06   -.13347E-04
  12  Prefactor     3.3093        7.3590        .39022E-05   -.19516E-04
  13  Prefactor     .10000E-03    41.353       -.37035E-06** at limit **
  14  Prefactor     .10000E-03    8.8436       -.31599E-06** at limit **
  15  Prefactor     15.650        21.715       -.69298E-06   -.15642E-04
  16  norm          5.2259        11.021       -.61727E-07   -.96327E-06
  17  norm          .10000E-03    10.104       -.73085E-07** at limit **
  18  Prefactor     3.2157        2.6960       -.34445E-07   -.64566E-04
  19  Prefactor     114.64        44.159        .32834E-05   -.13486E-04
  20  Prefactor     10.575        17.432       -.23598E-06   -.20367E-04
  21  Prefactor     .10000E-03    3.3038       -.73910E-07** at limit **
  22  Normalizat    1.2192        .17049       -.26070E-06    .56602E-04
  23  Prefactor     .89210        .11389       -.10995E-05   -.97522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.15526
  Prefactor  = 11.4543
  Prefactor  = 3.37446
  Prefactor  = 0.0001
  Prefactor  = 4.70423
  norm       = 1.43141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.80952
  Prefactor  = 3.30932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6501
  norm       = 5.22585
  norm       = 0.0001
  Prefactor  = 3.21569
  Prefactor  = 114.636
  Prefactor  = 10.5747
  Prefactor  = 0.0001
  Normalizat = 1.21925
  Prefactor  = 0.892096
 **********
 **   18 **HESSE 
 **********

 FCN=   9034.282     FROM HESSE     STATUS=OK           374 CALLS     2959 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .85171        .16814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1553        2.1238        .13394E-03   -1.5414    
   4  Prefactor     11.454        8.9097        .11835E-03   -1.5031    
   5  Prefactor     3.3745        32.371        .11014E-02   -1.5341    
   6  Prefactor     .10000E-03    6.1534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7042        17.460        .18540E-03   -1.5274    
   8  norm          1.4314        .79009        .60969E-04   -1.5469    
   9  Prefactor     .10000E-03    2.8322        .15598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.8095        6.5725        .91701E-03   -1.5269    
  12  Prefactor     3.3093        7.3976        .11126E-02   -1.5344    
  13  Prefactor     .10000E-03    41.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.9861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.650        21.696        .10123E-03   -1.4917    
  16  norm          5.2259        11.014        .17584E-03   -1.5251    
  17  norm          .10000E-03    10.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2157        2.6914        .13763E-03   -1.5349    
  19  Prefactor     114.64        44.216        .18785E-03   -1.3562    
  20  Prefactor     10.575        17.428        .12319E-03   -1.5057    
  21  Prefactor     .10000E-03    3.3073        .16872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2192        .19661        .27911E-03   -.86010    
  23  Prefactor     .89210        .13061        .22214E-03   -.96418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15759e-10
Minuit parameter uncertainties:
  1  3.3098e-06
  2  3.02509e-06
  3  2.12383
  4  8.91069
  5  20.9175
  6  3.87003e-06
  7  17.479
  8  0.7901
  9  2.79687e-06
  10  9.94542e-05
  11  6.57344
  12  7.39961
  13  1.01016e-06
  14  5.20428e-05
  15  21.7069
  16  11.0178
  17  1.29999e-05
  18  2.69154
  19  44.2283
  20  17.4364
  21  2.08688e-07
  22  0.19673
  23  0.130654
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.057e+01  1.744e+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.921e-01  1.307e-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.219e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/148034/likelihoodResults_266544001_266803201_4FGL_J2349.4+0534_daily_bin105.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) = 9034.26328101
delta logL = 0.0183256534583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9034.25651624
delta logL = 0.0250904295845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4725       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7618       1.0000          .0000       10.000    
     3 'Normalizat'    1.2121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89479       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.

 FCN=   9034.257     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      257 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4546        22.385        .68861E-03   -.56760E-04
   2  Index         2.7624        1.7091        .11196E-01   -.14886E-04
   3  Normalizat    1.2122        .19079        .27979E-03   -.13572E-04
   4  Prefactor     .89478        .13069        .22183E-03    .44075E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.45464
  Index      = 2.76239
  Normalizat = 1.21217
  Prefactor  = 0.894783
 **********
 **   18 **HESSE 
 **********

 FCN=   9034.257     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4546        18.161        .27544E-04   -1.5126    
   2  Index         2.7624        1.3957        .44784E-03   -.46399    
   3  Normalizat    1.2122        .18959        .11191E-04   -.86228    
   4  Prefactor     .89478        .13008        .88732E-05   -.96324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93081e-11
Minuit parameter uncertainties:
  1  18.1731
  2  1.41944
  3  0.189694
  4  0.130128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/148034': 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) = 9034.25651566
delta logL = 0.0250910089708

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  8.455e+00  1.817e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.762e+00  1.419e+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:  8.948e-01  1.301e-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.212e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
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/148034/cmap_HighResolution_266544001_266803201_4FGL_J2349.4+0534_daily_bin105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.90e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-30 06:47:11.632191', job_id='148034', GAL2='0.89', fit_tolerance='1e-08', EG2='1.21', EG='1.22', time_epoch_completed='1633009631.63', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.51e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='105' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:47:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 148034: <4FGL_J2349.4+0534_daily_bin105> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin105> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:31:09 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:31:11 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:31:11 2021
Terminated at Thu Sep 30 06:47:12 2021
Results reported at Thu Sep 30 06:47:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin105 357.356 5.579 266544001 266803201 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 :                                   777.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

