/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 144 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin444
RA = 357.356, Dec = 5.579
tmin = 354412801, tmax = 354672001
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='150608', job_status='RUN', time_executed='2021-09-30 06:42:57.035258', time_epoch_executed='1633009377.04' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150608

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150608/ft1_4FGL_J2349.4+0534_daily_bin444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150608/ft2_4FGL_J2349.4+0534_daily_bin444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150608/ft1_4FGL_J2349.4+0534_daily_bin444.fits outfile=/scratch/kocevski/150608/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin444.fits ra=357.356 dec=5.579 rad=12.0 tmin=354412801.0 tmax=354672001.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.44
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150608/ft1_filtered_4FGL_J2349.4+0534_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/150608/ft2_4FGL_J2349.4+0534_daily_bin444.fits sctable="SC_DATA" expcube=/scratch/kocevski/150608/ltcube_354412801_354672001_4FGL_J2349.4+0534_daily_bin444.fits outfile=/scratch/kocevski/150608/expmap_354412801_354672001_4FGL_J2349.4+0534_daily_bin444.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/150608/ltcube_354412801_354672001_4FGL_J2349.4+0534_daily_bin444.fits
.....................!
real 190.46
user 184.84
sys 5.26

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/150608/ft1_filtered_4FGL_J2349.4+0534_daily_bin444.fits scfile=/scratch/kocevski/150608/ft2_4FGL_J2349.4+0534_daily_bin444.fits outfile=/scratch/kocevski/150608/cmap_354412801_354672001_4FGL_J2349.4+0534_daily_bin444.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150608/ft1_filtered_4FGL_J2349.4+0534_daily_bin444.fits scfile=/scratch/kocevski/150608/ft2_4FGL_J2349.4+0534_daily_bin444.fits outfile=/scratch/kocevski/150608/cmap_HighResolution_354412801_354672001_4FGL_J2349.4+0534_daily_bin444.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/150608/ft1_filtered_4FGL_J2349.4+0534_daily_bin444.fits evtable="EVENTS" scfile=/scratch/kocevski/150608/ft2_4FGL_J2349.4+0534_daily_bin444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150608/Model_4FGL_J2349.4+0534_daily_bin444.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/150608/ft1_filtered_4FGL_J2349.4+0534_daily_bin444.fits.....................!
real 78.23
user 76.68
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.2055       1.0000         .10000E-03   10000.    
     3 'norm      '    14.073       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.016       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .53109E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .44757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    92.176       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0682       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.255       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .72577       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3822       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=   7473.783     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2240 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2488       -.13193E-05** at limit **
   2  norm          5.2051        2.7675        .36329E-07   -.58159E-05
   3  norm          14.073        7.1023        .18011E-06   -.42303E-03
   4  Prefactor     30.013        17.849       -.27221E-07   -.25544E-05
   5  Prefactor     .10000E-03    10.735       -.23974E-05** at limit **
   6  Prefactor     .10000E-03    4.9597        .32840E-06** at limit **
   7  Prefactor     .10000E-03    6.3454       -.13799E-06** at limit **
   8  norm          .44779        .80857        .25575E-07   -.30990E-03
   9  Prefactor     .10000E-03    6.6588       -.53389E-07** at limit **
  10  Prefactor     92.175        55.093       -.55839E-06   -.21659E-04
  11  norm          5.1975        7.3679        .65835E-06   -.88897E-03
  12  Prefactor     .10000E-03    12.781        .88578E-06** at limit **
  13  Prefactor     .10000E-03    59.429       -.25179E-05** at limit **
  14  Prefactor     6.0629        8.0639        .64377E-06   -.62875E-03
  15  Prefactor     13.262        29.227        .37750E-05    .46494E-04
  16  norm          .10000E-03    18.662       -.28533E-06** at limit **
  17  norm          .10000E-03    35.761        .19619E-05** at limit **
  18  Prefactor     .10000E-03    2.5384        .14142E-07** at limit **
  19  Prefactor     .10000E-03    37.771        .59804E-05** at limit **
  20  Prefactor     .10000E-03    32.302       -.55970E-05** at limit **
  21  Prefactor     .10000E-03    8.9846        .25378E-05** at limit **
  22  Normalizat    .72596        .21755       -.96655E-06   -.39334E-04
  23  Prefactor     1.3821        .14828       -.18189E-07   -.53996E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.20505
  norm       = 14.0727
  Prefactor  = 30.0132
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.447791
  Prefactor  = 0.0001
  Prefactor  = 92.1752
  norm       = 5.19754
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.06287
  Prefactor  = 13.2621
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.725955
  Prefactor  = 1.38212
 **********
 **   18 **HESSE 
 **********

 FCN=   7473.783     FROM HESSE     STATUS=OK           368 CALLS     2608 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.2051        2.7701        .10039E-03   -1.5252    
   3  norm          14.073        7.2027        .53385E-03   -1.4958    
   4  Prefactor     30.013        17.843        .73130E-04   -1.4612    
   5  Prefactor     .10000E-03    10.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.284        .37395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .44779        .68323        .10006E-02   -1.5574    
   9  Prefactor     .10000E-03    6.6967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     92.175        55.078        .41857E-04   -1.3785    
  11  norm          5.1975        10.613        .88182E-03   -1.5252    
  12  Prefactor     .10000E-03    13.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    59.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0629        8.5979        .81494E-03   -1.5215    
  15  Prefactor     13.262        30.358        .11002E-03   -1.4979    
  16  norm          .10000E-03    18.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    36.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5817        .13431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    38.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.0560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .72596        .24703        .38831E-03   -1.0288    
  23  Prefactor     1.3821        .16979        .20591E-03   -.80897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83349e-09
Minuit parameter uncertainties:
  1  2.82116e-05
  2  2.77013
  3  7.20311
  4  17.8459
  5  6.52624e-05
  6  0.000463525
  7  2.00517e-06
  8  0.683242
  9  2.06659e-05
  10  55.1086
  11  10.6173
  12  1.9303e-05
  13  0.000163978
  14  8.59969
  15  30.393
  16  5.51748e-06
  17  3.00124e-05
  18  1.09122e-06
  19  0.000274809
  20  0.000258745
  21  6.45293e-05
  22  0.24741
  23  0.169863
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.587e-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.382e+00  1.699e-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.260e-01  2.474e-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: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150608/likelihoodResults_354412801_354672001_4FGL_J2349.4+0534_daily_bin444.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) = 7473.78298823
delta logL = -0.000144585665112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7473.78284468
delta logL = -1.03248567029e-06

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7473.783     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      297 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10770E-03    .28027        .90634E-01** at limit **
   2  Index         2.6673        6.0199        .50000        .15477E-04
   3  Normalizat    .72596        .84889E-03    .38831E-03    .78903E-04
   4  Prefactor     1.3821        .60450E-03    .20591E-03   -.46836E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107703
  Index      = 2.66733
  Normalizat = 0.725962
  Prefactor  = 1.38212
 **********
 **   18 **HESSE 
 **********

 FCN=   7473.783     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      328 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10770E-03    59.046        .55607E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6673        5.0863        .50000       -.48537    
   3  Normalizat    .72596        .82107E-02    .15532E-04   -1.0288    
   4  Prefactor     1.3821        .58469E-02    .41182E-04   -.80897    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64358e-09
Minuit parameter uncertainties:
  1  0.0426959
  2  249.917
  3  0.00821067
  4  0.00584689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150608': 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) = 7473.78284431
delta logL = -6.62029378873e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.077e-04  4.270e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.667e+00  2.499e+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.382e+00  5.847e-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:  7.260e-01  8.211e-03  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/150608/cmap_HighResolution_354412801_354672001_4FGL_J2349.4+0534_daily_bin444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-09-30 06:54:20.811169', job_id='150608', GAL2='1.38', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1633010060.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='-6.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='444' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:54:20 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin444 357.356 5.579 354412801 354672001 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 :                                   681.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

