/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 157 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 = 7674
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin163
RA = 357.356, Dec = 5.579
tmin = 281577601, tmax = 281836801
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='149152', job_status='RUN', time_executed='2021-09-30 06:38:16.027221', time_epoch_executed='1633009096.03' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149152

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149152/ft1_4FGL_J2349.4+0534_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149152/ft2_4FGL_J2349.4+0534_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149152/ft1_4FGL_J2349.4+0534_daily_bin163.fits outfile=/scratch/kocevski/149152/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin163.fits ra=357.356 dec=5.579 rad=12.0 tmin=281577601.0 tmax=281836801.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/149152/ft2_4FGL_J2349.4+0534_daily_bin163.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149152/ft2_4FGL_J2349.4+0534_daily_bin163.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/149152/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin163.fits evtable="EVENTS" outfile="/scratch/kocevski/149152/ft1_filtered_4FGL_J2349.4+0534_daily_bin163.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/149152/ft1_filtered_4FGL_J2349.4+0534_daily_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/149152/ft2_4FGL_J2349.4+0534_daily_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/149152/ltcube_281577601_281836801_4FGL_J2349.4+0534_daily_bin163.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/149152/ft2_4FGL_J2349.4+0534_daily_bin163.fits
.....................!
real 11.99
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149152/ft1_filtered_4FGL_J2349.4+0534_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/149152/ft2_4FGL_J2349.4+0534_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/149152/ltcube_281577601_281836801_4FGL_J2349.4+0534_daily_bin163.fits outfile=/scratch/kocevski/149152/expmap_281577601_281836801_4FGL_J2349.4+0534_daily_bin163.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/149152/ltcube_281577601_281836801_4FGL_J2349.4+0534_daily_bin163.fits
.....................!
real 191.74
user 187.45
sys 3.95

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/149152/ft1_filtered_4FGL_J2349.4+0534_daily_bin163.fits scfile=/scratch/kocevski/149152/ft2_4FGL_J2349.4+0534_daily_bin163.fits outfile=/scratch/kocevski/149152/cmap_281577601_281836801_4FGL_J2349.4+0534_daily_bin163.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149152/ft1_filtered_4FGL_J2349.4+0534_daily_bin163.fits scfile=/scratch/kocevski/149152/ft2_4FGL_J2349.4+0534_daily_bin163.fits outfile=/scratch/kocevski/149152/cmap_HighResolution_281577601_281836801_4FGL_J2349.4+0534_daily_bin163.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2133       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.618       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2926       1.0000         .10000E-03   10000.    
     8 'norm      '    .11503E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.207       1.0000         .10000E-03   10000.    
    11 'norm      '    .10559E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.908       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.613       1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.354       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    26.473       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7927       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1278       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81087       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=   8211.241     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2554 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2126        6.3492       -.98759E-07   -.91751E-03
   2  norm          .10000E-03    .52428       -.18135E-07** at limit **
   3  norm          1.3400        3.3138       -.24207E-06   -.21490E-03
   4  Prefactor     .10000E-03    7.8007       -.28792E-06** at limit **
   5  Prefactor     18.604        34.508       -.24973E-04   -.92961E-04
   6  Prefactor     56.616        23.398        .87717E-07   -.10573E-05
   7  Prefactor     1.2876        5.3944        .21673E-05   -.11150E-02
   8  norm          .10000E-03    .37793       -.28956E-07** at limit **
   9  Prefactor     4.7199        9.3896        .10870E-05    .13773E-04
  10  Prefactor     30.208        31.472        .19766E-06    .73947E-05
  11  norm          .10000E-03    6.9234        .94278E-07** at limit **
  12  Prefactor     28.910        10.896        .11037E-06    .22534E-04
  13  Prefactor     .10000E-03    56.071        .14280E-05** at limit **
  14  Prefactor     13.610        12.501       -.82359E-06    .25906E-04
  15  Prefactor     66.353        32.817       -.81886E-06   -.12705E-05
  16  norm          .10000E-03    4.9079       -.23508E-07** at limit **
  17  norm          26.475        22.333        .83646E-06    .17530E-04
  18  Prefactor     .10000E-03    2.0422       -.28998E-08** at limit **
  19  Prefactor     .10000E-03    9.0318        .20827E-06** at limit **
  20  Prefactor     .10000E-03    22.680       -.22561E-06** at limit **
  21  Prefactor     5.7906        9.9332       -.57345E-06   -.83208E-05
  22  Normalizat    1.1281        .18102        .18458E-05   -.37020E-04
  23  Prefactor     .81068        .11846       -.57313E-07    .11690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.21257
  norm       = 0.0001
  norm       = 1.34003
  Prefactor  = 0.0001
  Prefactor  = 18.6042
  Prefactor  = 56.6159
  Prefactor  = 1.28764
  norm       = 0.0001
  Prefactor  = 4.71993
  Prefactor  = 30.2076
  norm       = 0.0001
  Prefactor  = 28.9096
  Prefactor  = 0.0001
  Prefactor  = 13.6098
  Prefactor  = 66.3533
  norm       = 0.0001
  norm       = 26.4747
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.79058
  Normalizat = 1.12814
  Prefactor  = 0.81068
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.241     FROM HESSE     STATUS=OK           374 CALLS     2928 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2126        6.5909        .11300E-02   -1.5349    
   2  norm          .10000E-03    .53003        .64033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3400        3.3017        .24906E-03   -1.5476    
   4  Prefactor     .10000E-03    7.9464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.604        34.526        .92806E-04   -1.4845    
   6  Prefactor     56.616        23.397        .53313E-04   -1.4202    
   7  Prefactor     1.2876        26.117        .19466E-02   -1.5481    
   8  norm          .10000E-03    1.6377        .10565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.7199        9.3469        .18524E-03   -1.5273    
  10  Prefactor     30.208        31.476        .72899E-04   -1.4608    
  11  norm          .10000E-03    6.9488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.910        10.907        .74515E-04   -1.4632    
  13  Prefactor     .10000E-03    56.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.610        12.433        .10856E-03   -1.4970    
  15  Prefactor     66.353        32.752        .49270E-04   -1.4077    
  16  norm          .10000E-03    4.9173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          26.475        22.370        .77859E-04   -1.4678    
  18  Prefactor     .10000E-03    2.0576        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.0403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.7906        9.9373        .16687E-03   -1.5227    
  22  Normalizat    1.1281        .21016        .28276E-03   -.88853    
  23  Prefactor     .81068        .13745        .22611E-03   -.99336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41035e-08
Minuit parameter uncertainties:
  1  6.59235
  2  1.24955e-06
  3  3.3021
  4  1.79263e-05
  5  34.5629
  6  23.4005
  7  11.6034
  8  7.33937e-06
  9  9.34979
  10  31.4931
  11  5.29449e-06
  12  10.9074
  13  2.85661e-05
  14  12.4351
  15  32.7607
  16  3.59365e-06
  17  22.3767
  18  1.70409e-06
  19  1.25157e-06
  20  4.16394e-05
  21  9.94015
  22  0.210316
  23  0.137512
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  4.164e-05  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.107e-01  1.375e-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.128e+00  2.103e-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: 7.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149152/likelihoodResults_281577601_281836801_4FGL_J2349.4+0534_daily_bin163.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) = 8211.2415423
delta logL = -0.000207688337468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8211.24133529
delta logL = -6.80924131302e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12276E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4555       1.0000          .0000       10.000    
     3 'Normalizat'    1.1280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81076       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=   8211.241     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.826        .90712E-02** at limit **
   2  Index         2.4456        5.1937        .50000        .35360E-05
   3  Normalizat    1.1281        .51436E-02    .63923E-01    .32110E-04
   4  Prefactor     .81068        .35643E-02    .43857E-01    .37585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.44559
  Normalizat = 1.12814
  Prefactor  = 0.810679
 **********
 **   18 **HESSE 
 **********

 FCN=   8211.241     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    195.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4456        5.5468        .50000       -.53621    
   3  Normalizat    1.1281        .13213E-01    .28276E-03   -.88853    
   4  Prefactor     .81068        .91616E-02    .22611E-03   -.99336    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.13107e-07
Minuit parameter uncertainties:
  1  0.000151643
  2  412.784
  3  0.0132127
  4  0.00916159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149152': 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) = 8211.24133459
delta logL = 1.85646058526e-08

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.516e-04  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.446e+00  4.128e+02  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.107e-01  9.162e-03  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.128e+00  1.321e-02  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/149152/cmap_HighResolution_281577601_281836801_4FGL_J2349.4+0534_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-03', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2021-09-30 06:50:54.868511', job_id='149152', GAL2='0.81', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1633009854.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.86e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='163' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:50:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 149152: <4FGL_J2349.4+0534_daily_bin163> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin163> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:27 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 30 06:35:29 2021
Terminated at Thu Sep 30 06:50:55 2021
Results reported at Thu Sep 30 06:50:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin163 357.356 5.579 281577601 281836801 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 :                                   759.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

