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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin170
RA = 357.356, Dec = 5.579
tmin = 283392001, tmax = 283651201
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='149166', job_status='RUN', time_executed='2021-09-30 06:35:52.469184', time_epoch_executed='1633008952.47' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149166

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149166/ft1_4FGL_J2349.4+0534_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149166/ft2_4FGL_J2349.4+0534_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149166/ft1_4FGL_J2349.4+0534_daily_bin170.fits outfile=/scratch/kocevski/149166/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin170.fits ra=357.356 dec=5.579 rad=12.0 tmin=283392001.0 tmax=283651201.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.59
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149166/ft2_4FGL_J2349.4+0534_daily_bin170.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/149166/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/149166/ft1_filtered_4FGL_J2349.4+0534_daily_bin170.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149166/ft1_filtered_4FGL_J2349.4+0534_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/149166/ft2_4FGL_J2349.4+0534_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/149166/ltcube_283392001_283651201_4FGL_J2349.4+0534_daily_bin170.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/149166/ft2_4FGL_J2349.4+0534_daily_bin170.fits
.....................!
real 11.69
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149166/ft1_filtered_4FGL_J2349.4+0534_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/149166/ft2_4FGL_J2349.4+0534_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/149166/ltcube_283392001_283651201_4FGL_J2349.4+0534_daily_bin170.fits outfile=/scratch/kocevski/149166/expmap_283392001_283651201_4FGL_J2349.4+0534_daily_bin170.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/149166/ltcube_283392001_283651201_4FGL_J2349.4+0534_daily_bin170.fits
.....................!
real 192.56
user 186.96
sys 5.22

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/149166/ft1_filtered_4FGL_J2349.4+0534_daily_bin170.fits scfile=/scratch/kocevski/149166/ft2_4FGL_J2349.4+0534_daily_bin170.fits outfile=/scratch/kocevski/149166/cmap_283392001_283651201_4FGL_J2349.4+0534_daily_bin170.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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149166/ft1_filtered_4FGL_J2349.4+0534_daily_bin170.fits scfile=/scratch/kocevski/149166/ft2_4FGL_J2349.4+0534_daily_bin170.fits outfile=/scratch/kocevski/149166/cmap_HighResolution_283392001_283651201_4FGL_J2349.4+0534_daily_bin170.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9664       1.0000         .10000E-03   10000.    
     2 'norm      '    .59782       1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.052       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7208       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .75200       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.7003       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1074       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.438       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15837E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7648       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5628       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .70461       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=   6209.785     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2535 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9630        11.452       -.26120E-06   -.36023E-04
   2  norm          .60022        2.5290        .37039E-06   -.47406E-03
   3  norm          .10000E-03    2.5878        .21257E-07** at limit **
   4  Prefactor     21.054        15.799       -.32033E-07   -.15121E-04
   5  Prefactor     .10000E-03    14.305       -.19270E-06** at limit **
   6  Prefactor     7.7154        14.303        .75676E-06   -.32012E-03
   7  Prefactor     .10000E-03    9.0266        .76974E-07** at limit **
   8  norm          .75200        .86152        .34129E-07   -.21721E-03
   9  Prefactor     8.7004        6.8036       -.53586E-08    .24984E-04
  10  Prefactor     .10000E-03    60.486        .36786E-05** at limit **
  11  norm          2.1061        5.3647        .87502E-07   -.18815E-03
  12  Prefactor     .10000E-03    7.3155       -.23700E-07** at limit **
  13  Prefactor     .10000E-03    48.302        .81675E-06** at limit **
  14  Prefactor     .10000E-03    3.1143       -.49679E-08** at limit **
  15  Prefactor     .10000E-03    23.328       -.38925E-05** at limit **
  16  norm          15.438        19.728        .21878E-07   -.64546E-05
  17  norm          .10000E-03    6.1235        .23889E-07** at limit **
  18  Prefactor     .10000E-03    1.5944       -.14203E-07** at limit **
  19  Prefactor     .10000E-03    65.889       -.42732E-05** at limit **
  20  Prefactor     .10000E-03    21.894        .36809E-05** at limit **
  21  Prefactor     4.7647        7.1587        .51271E-06   -.54978E-03
  22  Normalizat    1.5627        .20622       -.14192E-06   -.24059E-05
  23  Prefactor     .70460        .13641       -.10137E-06   -.20101E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96301
  norm       = 0.600218
  norm       = 0.0001
  Prefactor  = 21.0535
  Prefactor  = 0.0001
  Prefactor  = 7.71541
  Prefactor  = 0.0001
  norm       = 0.751995
  Prefactor  = 8.70043
  Prefactor  = 0.000100001
  norm       = 2.10613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 15.438
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 4.76472
  Normalizat = 1.56267
  Prefactor  = 0.704596
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.785     FROM HESSE     STATUS=OK           370 CALLS     2905 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9630        11.334        .15200E-03   -1.5180    
   2  norm          .60022        2.9511        .24685E-03   -1.5553    
   3  norm          .10000E-03    2.6082        .12368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.054        15.837        .87297E-04   -1.4790    
   5  Prefactor     .10000E-03    14.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7154        15.852        .72158E-03   -1.5152    
   7  Prefactor     .10000E-03    9.0508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .75200        .82404        .76089E-03   -1.5535    
   9  Prefactor     8.7004        6.8021        .13590E-03   -1.5118    
  10  Prefactor     .10000E-03    61.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1061        5.4071        .28342E-03   -1.5418    
  12  Prefactor     .10000E-03    7.4427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1205        .13581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.438        19.750        .10194E-03   -1.4922    
  17  norm          .10000E-03    6.1263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6055        .97153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    67.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    22.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.7647        8.0771        .92161E-03   -1.5271    
  22  Normalizat    1.5627        .23999        .25296E-03   -.76032    
  23  Prefactor     .70460        .15761        .24170E-03   -1.0335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98287e-09
Minuit parameter uncertainties:
  1  11.3372
  2  2.66179
  3  7.52337e-07
  4  15.8406
  5  1.19532e-05
  6  15.8603
  7  3.82102e-06
  8  0.824053
  9  6.80275
  10  0.000469809
  11  5.40839
  12  2.58601e-06
  13  9.45549e-05
  14  1.75941e-07
  15  0.000303067
  16  19.7586
  17  9.91854e-07
  18  2.85132e-07
  19  0.000494917
  20  0.000286731
  21  8.07892
  22  0.240165
  23  0.157715
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.867e-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:  7.046e-01  1.577e-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.563e+00  2.402e-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.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149166/likelihoodResults_283392001_283651201_4FGL_J2349.4+0534_daily_bin170.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) = 6209.78482568
delta logL = -0.000211768335248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6209.72190218
delta logL = 0.0627117363392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32566       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4374       1.0000          .0000       10.000    
     3 'Normalizat'    1.5348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71412       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=   6209.722     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      265 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32037        6.1466        .25501E-01    .15416E-02
   2  Index         4.4462        2.3722        .20272        .68863E-04
   3  Normalizat    1.5348        .21736E-01    .57641E-01    .23461E-05
   4  Prefactor     .71422        .14686E-01    .42589E-01    .17082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.320371
  Index      = 4.44616
  Normalizat = 1.53477
  Prefactor  = 0.714225
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.722     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      300 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32037        109.45        .95003E-03   -1.5595    
   2  Index         4.4462        6.2958        .95341E-02   -.11100    
   3  Normalizat    1.5348        .14447        .25488E-03   -.76806    
   4  Prefactor     .71422        .95083E-01    .24023E-03   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.70618e-10
Minuit parameter uncertainties:
  1  11.863
  2  17.1457
  3  0.144511
  4  0.0951048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149166': 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) = 6209.72189887
delta logL = 0.0627150512155

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.204e-01  1.186e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  4.446e+00  1.715e+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:  7.142e-01  9.510e-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:  1.535e+00  1.445e-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/149166/cmap_HighResolution_283392001_283651201_4FGL_J2349.4+0534_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.22e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-30 06:46:43.102140', job_id='149166', GAL2='0.71', fit_tolerance='1e-08', EG2='1.53', EG='1.56', time_epoch_completed='1633009603.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='6.27e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='170' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:46:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 149166: <4FGL_J2349.4+0534_daily_bin170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin170 357.356 5.579 283392001 283651201 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 :                                   647.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            674 sec.

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

