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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin589
RA = 357.356, Dec = 5.579
tmin = 391996801, tmax = 392256001
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='151964', job_status='RUN', time_executed='2021-09-30 06:48:09.097464', time_epoch_executed='1633009689.1' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151964

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151964/ft1_4FGL_J2349.4+0534_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151964/ft2_4FGL_J2349.4+0534_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151964/ft1_4FGL_J2349.4+0534_daily_bin589.fits outfile=/scratch/kocevski/151964/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin589.fits ra=357.356 dec=5.579 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.34
user 5.10
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151964/ft1_filtered_4FGL_J2349.4+0534_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/151964/ft2_4FGL_J2349.4+0534_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/151964/ltcube_391996801_392256001_4FGL_J2349.4+0534_daily_bin589.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/151964/ft2_4FGL_J2349.4+0534_daily_bin589.fits
.....................!
real 11.76
user 11.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151964/ft1_filtered_4FGL_J2349.4+0534_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/151964/ft2_4FGL_J2349.4+0534_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/151964/ltcube_391996801_392256001_4FGL_J2349.4+0534_daily_bin589.fits outfile=/scratch/kocevski/151964/expmap_391996801_392256001_4FGL_J2349.4+0534_daily_bin589.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/151964/ltcube_391996801_392256001_4FGL_J2349.4+0534_daily_bin589.fits
.....................!
real 190.15
user 185.01
sys 4.83

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/151964/ft1_filtered_4FGL_J2349.4+0534_daily_bin589.fits scfile=/scratch/kocevski/151964/ft2_4FGL_J2349.4+0534_daily_bin589.fits outfile=/scratch/kocevski/151964/cmap_391996801_392256001_4FGL_J2349.4+0534_daily_bin589.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/151964/ft1_filtered_4FGL_J2349.4+0534_daily_bin589.fits scfile=/scratch/kocevski/151964/ft2_4FGL_J2349.4+0534_daily_bin589.fits outfile=/scratch/kocevski/151964/cmap_HighResolution_391996801_392256001_4FGL_J2349.4+0534_daily_bin589.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=357.356 yref=5.579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.5556       1.0000         .10000E-03   10000.    
     3 'norm      '    5.8172       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0557       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.775       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.152       1.0000         .10000E-03   10000.    
     8 'norm      '    5.5747       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.313       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26654E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.625       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.345       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.800       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .64827       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1128       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=   6887.938     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2543 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1330       -.34931E-07** at limit **
   2  norm          1.5554        1.7274       -.15276E-06   -.75188E-04
   3  norm          5.8170        3.7888        .29595E-07    .20116E-04
   4  Prefactor     5.0551        5.4670        .82789E-07    .72324E-05
   5  Prefactor     .10000E-03    11.166       -.20875E-06** at limit **
   6  Prefactor     12.775        13.761       -.57861E-07    .38086E-05
   7  Prefactor     11.151        15.388       -.15891E-05   -.39270E-04
   8  norm          5.5744        1.3276        .16852E-08   -.24108E-03
   9  Prefactor     .10000E-03    2.9714        .99838E-08** at limit **
  10  Prefactor     .10000E-03    20.321        .64144E-06** at limit **
  11  norm          19.321        10.277        .75564E-06    .11273E-04
  12  Prefactor     .10000E-03    39.366        .76464E-06** at limit **
  13  Prefactor     .10000E-03    53.669        .11321E-05** at limit **
  14  Prefactor     .10000E-03    4.7864        .23753E-06** at limit **
  15  Prefactor     .10000E-03    9.6106        .28834E-06** at limit **
  16  norm          20.626        18.064        .82948E-07    .62321E-05
  17  norm          .10000E-03    11.094       -.32100E-07** at limit **
  18  Prefactor     .10000E-03    2.0773        .24947E-06** at limit **
  19  Prefactor     44.315        39.205        .20835E-05    .24481E-04
  20  Prefactor     .10000E-03    20.226        .10781E-05** at limit **
  21  Prefactor     12.796        13.196       -.54133E-07   -.22195E-04
  22  Normalizat    .64856        .20910       -.16576E-05   -.16425E-04
  23  Prefactor     1.1126        .14330        .10469E-05   -.15890E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.55538
  norm       = 5.81695
  Prefactor  = 5.05507
  Prefactor  = 0.0001
  Prefactor  = 12.7755
  Prefactor  = 11.151
  norm       = 5.57437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.3206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.6263
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.3154
  Prefactor  = 0.0001
  Prefactor  = 12.7963
  Normalizat = 0.648563
  Prefactor  = 1.11261
 **********
 **   18 **HESSE 
 **********

 FCN=   6887.938     FROM HESSE     STATUS=OK           370 CALLS     2913 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1343        .14345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5554        1.7164        .11003E-03   -1.5459    
   3  norm          5.8170        3.7885        .12607E-03   -1.5226    
   4  Prefactor     5.0551        5.4671        .17883E-03   -1.5258    
   5  Prefactor     .10000E-03    11.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.775        13.758        .11207E-03   -1.4993    
   7  Prefactor     11.151        15.601        .59984E-03   -1.5040    
   8  norm          5.5744        1.3247        .44800E-04   -1.5236    
   9  Prefactor     .10000E-03    2.9774        .13975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.321        10.282        .91137E-04   -1.4829    
  12  Prefactor     .10000E-03    39.075        .39635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    53.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8150        .17717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.6348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.626        18.070        .88195E-04   -1.4799    
  17  norm          .10000E-03    11.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1083        .22716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.315        39.650        .60204E-04   -1.4376    
  20  Prefactor     .10000E-03    20.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.796        13.207        .11196E-03   -1.4992    
  22  Normalizat    .64856        .22828        .34721E-03   -1.0596    
  23  Prefactor     1.1126        .15853        .19518E-03   -.89065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42975e-10
Minuit parameter uncertainties:
  1  1.53327e-06
  2  1.71642
  3  3.78868
  4  5.46764
  5  2.23712e-06
  6  13.7617
  7  15.6063
  8  1.32466
  9  2.0753e-07
  10  1.56234e-05
  11  10.2828
  12  0.00010263
  13  6.50704e-05
  14  4.02472e-06
  15  2.96861e-06
  16  18.0743
  17  1.3254e-05
  18  7.60567e-05
  19  39.6736
  20  2.57824e-06
  21  13.2101
  22  0.228609
  23  0.158596
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.578e-06  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.113e+00  1.586e-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:  6.486e-01  2.286e-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: 8.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/151964/likelihoodResults_391996801_392256001_4FGL_J2349.4+0534_daily_bin589.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) = 6887.9382716
delta logL = -0.000234287568674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6887.93803719
delta logL = 1.15423063107e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7801       1.0000          .0000       10.000    
     3 'Normalizat'    .64856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1126       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=   6887.938     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      247 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.026        .90712E-02** at limit **
   2  Index         2.7788        5.0844        .50000        .57012E-06
   3  Normalizat    .64856        .40453E-02    .78415E-01    .36966E-04
   4  Prefactor     1.1126        .29263E-02    .37126E-01    .13583E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.77881
  Normalizat = 0.648561
  Prefactor  = 1.11261
 **********
 **   18 **HESSE 
 **********

 FCN=   6887.938     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7788        6.5007        .50000       -.46032    
   3  Normalizat    .64856        .10653E-01    .34720E-03   -1.0596    
   4  Prefactor     1.1126        .77243E-02    .19518E-03   -.89064    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.19697e-10
Minuit parameter uncertainties:
  1  0.000149805
  2  222.402
  3  0.0106531
  4  0.00772433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151964': 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) = 6887.93803713
delta logL = 1.76214598469e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  1.498e-04  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.779e+00  2.224e+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:  1.113e+00  7.724e-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:  6.486e-01  1.065e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/151964/cmap_HighResolution_391996801_392256001_4FGL_J2349.4+0534_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.73e-03', job_status='DONE', photon_flux_upper_limit='8.67e-08', time_completed='2021-09-30 06:59:35.559957', job_id='151964', GAL2='1.11', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1633010375.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='589' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:59:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 151964: <4FGL_J2349.4+0534_daily_bin589> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin589> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:45:21 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:45:23 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:45:23 2021
Terminated at Thu Sep 30 06:59:35 2021
Results reported at Thu Sep 30 06:59:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin589 357.356 5.579 391996801 392256001 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 :                                   686.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            854 sec.

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

