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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin187
RA = 357.356, Dec = 5.579
tmin = 287798401, tmax = 288057601
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='149197', job_status='RUN', time_executed='2021-09-30 06:35:48.046144', time_epoch_executed='1633008948.05' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149197

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149197/ft1_4FGL_J2349.4+0534_daily_bin187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149197/ft2_4FGL_J2349.4+0534_daily_bin187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149197/ft1_4FGL_J2349.4+0534_daily_bin187.fits outfile=/scratch/kocevski/149197/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin187.fits ra=357.356 dec=5.579 rad=12.0 tmin=287798401.0 tmax=288057601.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.64
user 3.44
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149197/ft2_4FGL_J2349.4+0534_daily_bin187.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/149197/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin187.fits evtable="EVENTS" outfile="/scratch/kocevski/149197/ft1_filtered_4FGL_J2349.4+0534_daily_bin187.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/149197/ft1_filtered_4FGL_J2349.4+0534_daily_bin187.fits" evtable="EVENTS" scfile=/scratch/kocevski/149197/ft2_4FGL_J2349.4+0534_daily_bin187.fits sctable="SC_DATA" outfile=/scratch/kocevski/149197/ltcube_287798401_288057601_4FGL_J2349.4+0534_daily_bin187.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/149197/ft2_4FGL_J2349.4+0534_daily_bin187.fits
.....................!
real 14.09
user 13.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149197/ft1_filtered_4FGL_J2349.4+0534_daily_bin187.fits evtable="EVENTS" scfile=/scratch/kocevski/149197/ft2_4FGL_J2349.4+0534_daily_bin187.fits sctable="SC_DATA" expcube=/scratch/kocevski/149197/ltcube_287798401_288057601_4FGL_J2349.4+0534_daily_bin187.fits outfile=/scratch/kocevski/149197/expmap_287798401_288057601_4FGL_J2349.4+0534_daily_bin187.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/149197/ltcube_287798401_288057601_4FGL_J2349.4+0534_daily_bin187.fits
.....................!
real 192.50
user 187.02
sys 5.15

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/149197/ft1_filtered_4FGL_J2349.4+0534_daily_bin187.fits scfile=/scratch/kocevski/149197/ft2_4FGL_J2349.4+0534_daily_bin187.fits outfile=/scratch/kocevski/149197/cmap_287798401_288057601_4FGL_J2349.4+0534_daily_bin187.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.74
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149197/ft1_filtered_4FGL_J2349.4+0534_daily_bin187.fits scfile=/scratch/kocevski/149197/ft2_4FGL_J2349.4+0534_daily_bin187.fits outfile=/scratch/kocevski/149197/cmap_HighResolution_287798401_288057601_4FGL_J2349.4+0534_daily_bin187.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5770       1.0000         .10000E-03   10000.    
     2 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.659       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7436       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.3890       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.559       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6696       1.0000         .10000E-03   10000.    
    11 'norm      '    .50111E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.355       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 '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.252       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2348       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6917       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.903       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4746       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .73962       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=   6048.562     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2547 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5798        46.828       -.54875E-06   -.35677E-04
   2  norm          .10000E-03    2.0278        .52050E-08** at limit **
   3  norm          11.098        5.2769        .64463E-06    .18547E-03
   4  Prefactor     .10000E-03    5.7372        .52756E-08** at limit **
   5  Prefactor     47.661        43.030        .12935E-05    .27958E-04
   6  Prefactor     4.7430        10.491        .54477E-06   -.49377E-03
   7  Prefactor     .10000E-03    18.504       -.52963E-07** at limit **
   8  norm          2.3890        1.4031        .33034E-07   -.45261E-04
   9  Prefactor     18.558        12.919        .18219E-07   -.47261E-04
  10  Prefactor     3.6615        234.76       -.24462E-04   -.22118E-04
  11  norm          .10000E-03    9.1212       -.29323E-06** at limit **
  12  Prefactor     13.355        9.5483        .20430E-06    .11076E-03
  13  Prefactor     .10000E-03    61.229       -.72648E-07** at limit **
  14  Prefactor     .10000E-03    3.6205       -.27123E-07** at limit **
  15  Prefactor     .10000E-03    25.571        .13422E-06** at limit **
  16  norm          12.252        11.007        .20803E-07    .44258E-05
  17  norm          .10000E-03    10.130       -.19487E-07** at limit **
  18  Prefactor     3.2351        2.9213        .31776E-06   -.16440E-02
  19  Prefactor     8.6955        89.959        .75510E-05    .19630E-04
  20  Prefactor     13.298        28.839        .95756E-06    .14459E-04
  21  Prefactor     10.904        21.097        .26366E-06   -.20892E-05
  22  Normalizat    1.4744        .23413       -.66324E-06    .70717E-04
  23  Prefactor     .73972        .14693        .11754E-06    .17952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.57985
  norm       = 0.0001
  norm       = 11.0977
  Prefactor  = 0.0001
  Prefactor  = 47.661
  Prefactor  = 4.74303
  Prefactor  = 0.0001
  norm       = 2.38904
  Prefactor  = 18.5582
  Prefactor  = 3.6615
  norm       = 0.0001
  Prefactor  = 13.3554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.2516
  norm       = 0.0001
  Prefactor  = 3.23515
  Prefactor  = 8.69555
  Prefactor  = 13.298
  Prefactor  = 10.9043
  Normalizat = 1.47442
  Prefactor  = 0.739715
 **********
 **   18 **HESSE 
 **********

 FCN=   6048.562     FROM HESSE     STATUS=OK           376 CALLS     2923 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5798        47.886        .33831E-03   -1.5457    
   2  norm          .10000E-03    2.0747        .21465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.098        5.2730        .11889E-03   -1.5042    
   4  Prefactor     .10000E-03    5.7574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     47.661        43.047        .58083E-04   -1.4326    
   6  Prefactor     4.7430        12.356        .92371E-03   -1.5272    
   7  Prefactor     .10000E-03    18.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.3890        1.3985        .67566E-04   -1.5399    
   9  Prefactor     18.558        12.678        .46486E-03   -1.4846    
  10  Prefactor     3.6615        240.23        .21085E-03   -1.5325    
  11  norm          .10000E-03    34.195        .39697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.355        8.7313        .10960E-03   -1.4977    
  13  Prefactor     .10000E-03    61.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6242        .14451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.252        11.008        .11444E-03   -1.5008    
  17  norm          .10000E-03    10.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2351        3.9360        .81633E-03   -1.5348    
  19  Prefactor     8.6955        90.449        .13596E-03   -1.5118    
  20  Prefactor     13.298        28.824        .10985E-03   -1.4978    
  21  Prefactor     10.904        21.174        .12134E-03   -1.5047    
  22  Normalizat    1.4744        .27741        .26913E-03   -.78500    
  23  Prefactor     .73972        .17169        .24447E-03   -1.0199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27265e-09
Minuit parameter uncertainties:
  1  17.4104
  2  3.42769e-06
  3  5.27322
  4  5.91992e-06
  5  43.0748
  6  12.3624
  7  1.86047e-05
  8  1.39855
  9  12.68
  10  59.5664
  11  3.91176e-05
  12  8.73216
  13  3.22077e-06
  14  4.67814e-07
  15  1.02065e-05
  16  11.0093
  17  8.18816e-07
  18  3.93628
  19  56.1986
  20  28.8537
  21  21.1887
  22  0.277693
  23  0.171814
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.330e+01  2.885e+01  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.397e-01  1.718e-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.474e+00  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149197/likelihoodResults_287798401_288057601_4FGL_J2349.4+0534_daily_bin187.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) = 6047.87090882
delta logL = 0.690978809863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6047.86433829
delta logL = 0.6975493317

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8499       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2005       1.0000          .0000       10.000    
     3 'Normalizat'    1.3946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77409       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=   6047.864     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      338 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8505        65.844        .87114E-04    .35811E-02
   2  Index         4.2006        7.0506        .53902E-02    .56153E-03
   3  Normalizat    1.3945        .22737        .27529E-03    .58204E-03
   4  Prefactor     .77413        .15275        .23946E-03    .53990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85046
  Index      = 4.20055
  Normalizat = 1.39453
  Prefactor  = 0.774132
 **********
 **   18 **HESSE 
 **********

 FCN=   6047.864     FROM HESSE     STATUS=OK            23 CALLS      361 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8505        8.7445        .34846E-05   -1.5436    
   2  Index         4.2006        2.1048        .21561E-03   -.16058    
   3  Normalizat    1.3945        .26283        .55057E-04   -.80787    
   4  Prefactor     .77413        .17219        .47891E-04   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63268e-09
Minuit parameter uncertainties:
  1  8.04692
  2  2.17451
  3  0.263086
  4  0.172308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149197': 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): 0
logL (Free Index) = 6047.86433815
delta logL = 0.697549475381

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.850e+00  8.047e+00  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  4.201e+00  2.175e+00  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.741e-01  1.723e-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.395e+00  2.631e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.78
Ra Dec: 357.356 5.579
Photon Index (Free Index): 4.20 +/- 2.17
Photon Flux (Free Index): 9.20e-08 +/- 8.22e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.23e-05

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/149197/cmap_HighResolution_287798401_288057601_4FGL_J2349.4+0534_daily_bin187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='6.98e-01', photon_flux2='9.20e-08', job_status='DONE', time_completed='2021-09-30 06:46:44.201697', photon_index_error2='2.17', photon_index2='4.20', ts='0.27', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.23e-05', EG='1.47', time_epoch_completed='1633009604.2', return_code='0', job_id='149197', GAL2='0.77', EG2='1.39', return_code2='0', photon_flux_error2='8.22e-08', ts2='1.78', photon_index='2.47' WHERE bin_id='187' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:46:44 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin187 357.356 5.579 287798401 288057601 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 :                                   652.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             372.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            673 sec.

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

