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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin593
RA = 357.356, Dec = 5.579
tmin = 393033601, tmax = 393292801
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='151970', job_status='RUN', time_executed='2021-09-30 06:48:29.298852', time_epoch_executed='1633009709.3' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151970/ft1_4FGL_J2349.4+0534_daily_bin593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151970/ft2_4FGL_J2349.4+0534_daily_bin593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151970/ft1_4FGL_J2349.4+0534_daily_bin593.fits outfile=/scratch/kocevski/151970/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin593.fits ra=357.356 dec=5.579 rad=12.0 tmin=393033601.0 tmax=393292801.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.52
user 3.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/151970/ft2_4FGL_J2349.4+0534_daily_bin593.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/151970/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin593.fits evtable="EVENTS" outfile="/scratch/kocevski/151970/ft1_filtered_4FGL_J2349.4+0534_daily_bin593.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151970/ft1_filtered_4FGL_J2349.4+0534_daily_bin593.fits" evtable="EVENTS" scfile=/scratch/kocevski/151970/ft2_4FGL_J2349.4+0534_daily_bin593.fits sctable="SC_DATA" outfile=/scratch/kocevski/151970/ltcube_393033601_393292801_4FGL_J2349.4+0534_daily_bin593.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/151970/ft2_4FGL_J2349.4+0534_daily_bin593.fits
.....................!
real 11.64
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151970/ft1_filtered_4FGL_J2349.4+0534_daily_bin593.fits evtable="EVENTS" scfile=/scratch/kocevski/151970/ft2_4FGL_J2349.4+0534_daily_bin593.fits sctable="SC_DATA" expcube=/scratch/kocevski/151970/ltcube_393033601_393292801_4FGL_J2349.4+0534_daily_bin593.fits outfile=/scratch/kocevski/151970/expmap_393033601_393292801_4FGL_J2349.4+0534_daily_bin593.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/151970/ltcube_393033601_393292801_4FGL_J2349.4+0534_daily_bin593.fits
.....................!
real 191.65
user 186.29
sys 5.01

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/151970/ft1_filtered_4FGL_J2349.4+0534_daily_bin593.fits scfile=/scratch/kocevski/151970/ft2_4FGL_J2349.4+0534_daily_bin593.fits outfile=/scratch/kocevski/151970/cmap_393033601_393292801_4FGL_J2349.4+0534_daily_bin593.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/151970/ft1_filtered_4FGL_J2349.4+0534_daily_bin593.fits scfile=/scratch/kocevski/151970/ft2_4FGL_J2349.4+0534_daily_bin593.fits outfile=/scratch/kocevski/151970/cmap_HighResolution_393033601_393292801_4FGL_J2349.4+0534_daily_bin593.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=357.356 yref=5.579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.656       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3007       1.0000         .10000E-03   10000.    
     3 'norm      '    .96922       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5243       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0710       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .36615E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    17.462       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.4438       1.0000         .10000E-03   10000.    
    13 'Prefactor '    243.11       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10805E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.811       1.0000         .10000E-03   10000.    
    16 'norm      '    10.397       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6502       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4990       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.330       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88262       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0686       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=   6961.957     FROM MIGRAD    STATUS=CONVERGED    897 CALLS     3024 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.651        24.263        .10839E-03    .16090E-03
   2  norm          2.3016        3.6687        .15782E-03   -.59410E-03
   3  norm          .96881        4.3330        .32874E-03   -.81097E-04
   4  Prefactor     .10000E-03    4.4452        .17160E-02** at limit **
   5  Prefactor     6.5245        22.224        .78559E-03    .79753E-04
   6  Prefactor     .10000E-03    4.8976        .18017E-02** at limit **
   7  Prefactor     .10000E-03    3.7682        .15816E-02** at limit **
   8  norm          3.0713        1.1002        .49851E-04   -.31807E-02
   9  Prefactor     .10000E-03    3.3136        .14817E-02** at limit **
  10  Prefactor     .10000E-03    36.581        .15660    ** at limit **
  11  norm          17.463        12.432        .95846E-04    .92401E-04
  12  Prefactor     7.4434        11.764        .73499E-03    .42021E-03
  13  Prefactor     243.49        242.09        .12986E-03    .29433E-04
  14  Prefactor     .10001E-03    63.614        .44207E-02** at limit **
  15  Prefactor     44.812        29.660        .59892E-04    .96390E-04
  16  norm          10.398        15.453        .12426E-03    .35224E-04
  17  norm          .10000E-03    7.9479        .18142E-02** at limit **
  18  Prefactor     1.6381        5.1768        .28316E-03    .27920E-03
  19  Prefactor     .10000E-03    9.3699        .18142E-02** at limit **
  20  Prefactor     3.5014        28.606        .21614E-03   -.18251E-04
  21  Prefactor     14.338        16.802        .10581E-03   -.15182E-03
  22  Normalizat    .88259        .24567        .32664E-03    .44491E-03
  23  Prefactor     1.0686        .15613        .20724E-03    .44434E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6506
  norm       = 2.30164
  norm       = 0.968812
  Prefactor  = 0.0001
  Prefactor  = 6.52451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.0713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.4626
  Prefactor  = 7.4434
  Prefactor  = 243.492
  Prefactor  = 0.000100008
  Prefactor  = 44.8123
  norm       = 10.3983
  norm       = 0.0001
  Prefactor  = 1.63814
  Prefactor  = 0.0001
  Prefactor  = 3.50139
  Prefactor  = 14.3377
  Normalizat = 0.882587
  Prefactor  = 1.06855
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.957     FROM HESSE     STATUS=OK           356 CALLS     3380 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.651        24.240        .43355E-05   -1.4969    
   2  norm          2.3016        3.6651        .63126E-05   -1.5405    
   3  norm          .96881        4.3301        .13149E-04   -1.5511    
   4  Prefactor     .10000E-03    4.4455        .34320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5245        22.222        .31424E-04   -1.5197    
   6  Prefactor     .10000E-03    4.8979        .36034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7682        .31632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0713        1.1000        .99702E-05   -1.5357    
   9  Prefactor     .10000E-03    3.3137        .29634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.546        .15670       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          17.463        12.416        .38338E-05   -1.4872    
  12  Prefactor     7.4434        11.741        .29400E-04   -1.5162    
  13  Prefactor     243.49        241.82        .25972E-04   -1.2574    
  14  Prefactor     .10001E-03    64.308        .88413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     44.812        29.658        .11978E-04   -1.4368    
  16  norm          10.398        15.452        .49704E-05   -1.5063    
  17  norm          .10000E-03    7.9480        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6381        5.1562        .11326E-04   -1.5452    
  19  Prefactor     .10000E-03    9.3701        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.5014        28.599        .86458E-05   -1.5334    
  21  Prefactor     14.338        16.802        .42323E-05   -1.4950    
  22  Normalizat    .88259        .24568        .65328E-04   -.97075    
  23  Prefactor     1.0686        .15623        .82897E-05   -.90478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9075e-09
Minuit parameter uncertainties:
  1  24.2576
  2  3.66541
  3  4.09666
  4  5.40741e-07
  5  22.2503
  6  5.70096e-05
  7  1.96813e-05
  8  1.10005
  9  3.17259e-05
  10  6.93037e-05
  11  12.4181
  12  11.745
  13  242.825
  14  0.00139144
  15  29.6676
  16  15.4584
  17  5.37653e-05
  18  5.15761
  19  8.09724e-05
  20  20.0264
  21  16.8074
  22  0.245991
  23  0.156301
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.501e+00  2.003e+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:  1.069e+00  1.563e-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:  8.826e-01  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/151970/likelihoodResults_393033601_393292801_4FGL_J2349.4+0534_daily_bin593.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): 0
logL (Free Index) = 6961.91459641
delta logL = 0.0422949410549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6961.91431541
delta logL = 0.0425759408063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5982       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9943       1.0000          .0000       10.000    
     3 'Normalizat'    .87494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0698       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6961.914     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      293 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6179        18.160        .10651E-02    .16079E-03
   2  Index         2.9918        1.9846        .79993E-02    .83540E-04
   3  Normalizat    .87475        .22073        .32796E-03   -.15253E-04
   4  Prefactor     1.0698        .15212        .20712E-03    .15204E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.61791
  Index      = 2.99179
  Normalizat = 0.874754
  Prefactor  = 1.06976
 **********
 **   18 **HESSE 
 **********

 FCN=   6961.914     FROM HESSE     STATUS=OK            27 CALLS      320 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6179        14.171        .21302E-03   -1.5328    
   2  Index         2.9918        1.7496        .15999E-02   -.41331    
   3  Normalizat    .87475        .22092        .13118E-04   -.97353    
   4  Prefactor     1.0698        .15210        .82850E-05   -.90439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5032e-12
Minuit parameter uncertainties:
  1  14.1844
  2  1.79519
  3  0.221152
  4  0.152166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151970': 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) = 6961.9143124
delta logL = 0.0425789572309

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  3.618e+00  1.418e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.992e+00  1.795e+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:  1.070e+00  1.522e-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:  8.748e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/151970/cmap_HighResolution_393033601_393292801_4FGL_J2349.4+0534_daily_bin593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-30 07:00:30.287241', job_id='151970', GAL2='1.07', fit_tolerance='1e-08', EG2='0.87', EG='0.88', time_epoch_completed='1633010430.29', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='4.26e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='593' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:00:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 151970: <4FGL_J2349.4+0534_daily_bin593> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin593> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:45:22 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:45:24 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:24 2021
Terminated at Thu Sep 30 07:00:31 2021
Results reported at Thu Sep 30 07:00:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin593 357.356 5.579 393033601 393292801 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 :                                   720.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            909 sec.

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

