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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin799
RA = 357.356, Dec = 5.579
tmin = 446428801, tmax = 446688001
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='153244', job_status='RUN', time_executed='2021-09-30 06:53:35.036807', time_epoch_executed='1633010015.04' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='799'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153244

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153244/ft1_4FGL_J2349.4+0534_daily_bin799.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153244/ft2_4FGL_J2349.4+0534_daily_bin799.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153244/ft1_4FGL_J2349.4+0534_daily_bin799.fits outfile=/scratch/kocevski/153244/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin799.fits ra=357.356 dec=5.579 rad=12.0 tmin=446428801.0 tmax=446688001.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.54
user 3.35
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153244/ft1_filtered_4FGL_J2349.4+0534_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/153244/ft2_4FGL_J2349.4+0534_daily_bin799.fits sctable="SC_DATA" expcube=/scratch/kocevski/153244/ltcube_446428801_446688001_4FGL_J2349.4+0534_daily_bin799.fits outfile=/scratch/kocevski/153244/expmap_446428801_446688001_4FGL_J2349.4+0534_daily_bin799.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/153244/ltcube_446428801_446688001_4FGL_J2349.4+0534_daily_bin799.fits
.....................!
real 189.72
user 185.03
sys 4.37

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/153244/ft1_filtered_4FGL_J2349.4+0534_daily_bin799.fits scfile=/scratch/kocevski/153244/ft2_4FGL_J2349.4+0534_daily_bin799.fits outfile=/scratch/kocevski/153244/cmap_446428801_446688001_4FGL_J2349.4+0534_daily_bin799.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/153244/ft1_filtered_4FGL_J2349.4+0534_daily_bin799.fits scfile=/scratch/kocevski/153244/ft2_4FGL_J2349.4+0534_daily_bin799.fits outfile=/scratch/kocevski/153244/cmap_HighResolution_446428801_446688001_4FGL_J2349.4+0534_daily_bin799.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/153244/ft1_filtered_4FGL_J2349.4+0534_daily_bin799.fits evtable="EVENTS" scfile=/scratch/kocevski/153244/ft2_4FGL_J2349.4+0534_daily_bin799.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/153244/Model_4FGL_J2349.4+0534_daily_bin799.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/153244/ft1_filtered_4FGL_J2349.4+0534_daily_bin799.fits.....................!
real 70.85
user 69.53
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.3179       1.0000         .10000E-03   10000.    
     3 'norm      '    .16214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26472E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.741       1.0000         .10000E-03   10000.    
     8 'norm      '    .16375E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .60012       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.794       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.391       1.0000         .10000E-03   10000.    
    16 'norm      '    10.956       1.0000         .10000E-03   10000.    
    17 'norm      '    33.777       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .74062       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1614       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=   6747.769     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2578 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.427       -.23324E-06** at limit **
   2  norm          2.3175        2.9007        .77826E-07   -.20917E-03
   3  norm          .15029        2.4421       -.17313E-07   -.10273E-03
   4  Prefactor     .10003E-03    6.9828        .22787E-06** at limit **
   5  Prefactor     .10000E-03    30.694        .43903E-06** at limit **
   6  Prefactor     .10000E-03    21.853       -.97884E-06** at limit **
   7  Prefactor     45.740        20.690        .76665E-08   -.55939E-06
   8  norm          .14976E-01    .43047       -.11052E-06    .80135E-03
   9  Prefactor     .10000E-03    9.3118       -.24670E-06** at limit **
  10  Prefactor     .10000E-03    17.611        .57363E-06** at limit **
  11  norm          .59286        14.624       -.19929E-05   -.46177E-03
  12  Prefactor     11.803        11.251        .22255E-05   -.35013E-03
  13  Prefactor     .10000E-03    60.794       -.84771E-06** at limit **
  14  Prefactor     .10000E-03    5.2893        .22322E-07** at limit **
  15  Prefactor     30.363        33.618        .84343E-07   -.17789E-03
  16  norm          10.953        13.316       -.14046E-06   -.24281E-04
  17  norm          33.778        21.179       -.83792E-08    .30766E-04
  18  Prefactor     .10000E-03    1.7765        .23460E-07** at limit **
  19  Prefactor     .10000E-03    18.845        .67910E-07** at limit **
  20  Prefactor     .10000E-03    55.135        .23750E-06** at limit **
  21  Prefactor     .10000E-03    6.0694        .20411E-07** at limit **
  22  Normalizat    .74081        .20822        .27016E-07   -.40426E-04
  23  Prefactor     1.1614        .13799        .16433E-06   -.54565E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.31755
  norm       = 0.150291
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.7395
  norm       = 0.0149756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.592857
  Prefactor  = 11.8026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.363
  norm       = 10.9528
  norm       = 33.7785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.740805
  Prefactor  = 1.16144
 **********
 **   18 **HESSE 
 **********

 FCN=   6747.769     FROM HESSE     STATUS=OK           372 CALLS     2950 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3175        2.8937        .14376E-03   -1.5403    
   3  norm          .15029        20.273        .24047E-02   -1.5630    
   4  Prefactor     .10003E-03    49.278        .40326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.740        20.687        .29642E-03   -1.4354    
   8  norm          .14976E-01    10.471        .10266E-02   -1.5684    
   9  Prefactor     .10000E-03    9.3521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .59286        95.611        .43260E-02   -1.5554    
  12  Prefactor     11.803        14.909        .11665E-03   -1.5021    
  13  Prefactor     .10000E-03    60.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.2987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.363        34.314        .72679E-04   -1.4605    
  16  norm          10.953        13.340        .12104E-03   -1.5046    
  17  norm          33.778        21.139        .68950E-04   -1.4545    
  18  Prefactor     .10000E-03    1.7855        .10674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    56.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .74081        .23115        .34089E-03   -1.0230    
  23  Prefactor     1.1614        .15626        .19651E-03   -.87526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16775e-08
Minuit parameter uncertainties:
  1  1.93513e-05
  2  2.89383
  3  3.49109
  4  0.00227559
  5  8.60165e-06
  6  5.80237e-05
  7  20.6902
  8  0.789467
  9  2.38938e-05
  10  2.55464e-05
  11  15.081
  12  14.9132
  13  7.33827e-05
  14  1.97555e-06
  15  34.336
  16  13.3433
  17  21.1438
  18  1.57482e-06
  19  1.51143e-05
  20  0.000194974
  21  4.10805e-06
  22  0.231452
  23  0.156325
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.950e-04  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.161e+00  1.563e-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:  7.408e-01  2.315e-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.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153244/likelihoodResults_446428801_446688001_4FGL_J2349.4+0534_daily_bin799.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) = 6747.7690578
delta logL = -8.47039118526e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6747.66388136
delta logL = 0.105091731706

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6747.664     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      295 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49178E-01    .94751        .87186E-02    .47485E-02
   2  Index         5.4199        2.3635        .20208        .84999E-04
   3  Normalizat    .70864        .22256E-01    .78623E-01   -.41027E-04
   4  Prefactor     1.1743        .15800E-01    .35269E-01   -.94931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0491783
  Index      = 5.41992
  Normalizat = 0.70864
  Prefactor  = 1.17429
 **********
 **   18 **HESSE 
 **********

 FCN=   6747.664     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      328 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49178E-01    10.982        .35400E-03   -1.5664    
   2  Index         5.4199        6.0120        .89872E-02    .84083E-01
   3  Normalizat    .70864        .12995        .34811E-03   -1.0355    
   4  Prefactor     1.1743        .91003E-01    .19558E-03   -.87126    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.5291e-06
Minuit parameter uncertainties:
  1  1.46858
  2  14.4442
  3  0.130007
  4  0.0910149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153244': 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): 102
logL (Free Index) = 6747.66387666
delta logL = 0.105096439856

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  4.918e-02  1.469e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  5.420e+00  1.444e+01  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.174e+00  9.101e-02  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:  7.086e-01  1.300e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/153244/cmap_HighResolution_446428801_446688001_4FGL_J2349.4+0534_daily_bin799.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-30 07:04:55.456304', job_id='153244', GAL2='1.17', fit_tolerance='1e-08', EG2='0.71', EG='0.74', time_epoch_completed='1633010695.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.05e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='799' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:04:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 153244: <4FGL_J2349.4+0534_daily_bin799> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin799 357.356 5.579 446428801 446688001 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 :                                   667.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

