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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin631
RA = 357.356, Dec = 5.579
tmin = 402883201, tmax = 403142401
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='152028', job_status='RUN', time_executed='2021-09-30 06:49:18.339075', time_epoch_executed='1633009758.34' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152028/ft1_4FGL_J2349.4+0534_daily_bin631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152028/ft2_4FGL_J2349.4+0534_daily_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152028/ft1_4FGL_J2349.4+0534_daily_bin631.fits outfile=/scratch/kocevski/152028/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin631.fits ra=357.356 dec=5.579 rad=12.0 tmin=402883201.0 tmax=403142401.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 4.60
user 4.35
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152028/ft1_filtered_4FGL_J2349.4+0534_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/152028/ft2_4FGL_J2349.4+0534_daily_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/152028/ltcube_402883201_403142401_4FGL_J2349.4+0534_daily_bin631.fits outfile=/scratch/kocevski/152028/expmap_402883201_403142401_4FGL_J2349.4+0534_daily_bin631.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/152028/ltcube_402883201_403142401_4FGL_J2349.4+0534_daily_bin631.fits
.....................!
real 190.49
user 185.47
sys 4.67

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/152028/ft1_filtered_4FGL_J2349.4+0534_daily_bin631.fits scfile=/scratch/kocevski/152028/ft2_4FGL_J2349.4+0534_daily_bin631.fits outfile=/scratch/kocevski/152028/cmap_402883201_403142401_4FGL_J2349.4+0534_daily_bin631.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.50
user 0.36
sys 0.13

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73178E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1107       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7708       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4733       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.454       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8285       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7408       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.9414       1.0000         .10000E-03   10000.    
    11 'norm      '    11.442       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5163       1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.303       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.279       1.0000         .10000E-03   10000.    
    17 'norm      '    65.858       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.917       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7845       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0605       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .68623       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=   4977.579     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2918 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.363        .81868E-07** at limit **
   2  norm          1.1100        2.5149       -.23324E-07   -.77113E-04
   3  norm          2.7709        5.8299       -.41123E-06   -.72092E-04
   4  Prefactor     2.4705        22.753        .26315E-05   -.80403E-06
   5  Prefactor     18.452        24.560       -.54683E-06   -.10978E-05
   6  Prefactor     .10000E-03    6.0780       -.97556E-08** at limit **
   7  Prefactor     .10000E-03    4.9427       -.13192E-06** at limit **
   8  norm          1.8284        1.3391       -.25567E-06    .21687E-04
   9  Prefactor     1.7388        3.6728        .16081E-06   -.68762E-03
  10  Prefactor     9.9328        47.182       -.17483E-04   -.18365E-05
  11  norm          11.443        11.340        .16175E-06   -.16770E-04
  12  Prefactor     7.5155        10.652        .12819E-05   -.89747E-05
  13  Prefactor     59.328        194.09        .31461E-04    .38496E-06
  14  Prefactor     .10000E-03    12.027        .51763E-06** at limit **
  15  Prefactor     .10000E-03    26.429        .31567E-06** at limit **
  16  norm          20.279        16.987       -.11158E-06   -.59079E-05
  17  norm          65.857        31.211       -.22234E-06   -.88137E-05
  18  Prefactor     .10000E-03    2.1771       -.31933E-07** at limit **
  19  Prefactor     26.914        29.934       -.12759E-05    .41191E-06
  20  Prefactor     .10000E-03    6.4825        .16074E-07** at limit **
  21  Prefactor     1.7813        40.565       -.40318E-06   -.13826E-03
  22  Normalizat    1.0606        .21129       -.13327E-06   -.51087E-04
  23  Prefactor     .68617        .13683       -.54673E-06   -.24057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.10998
  norm       = 2.77092
  Prefactor  = 2.47047
  Prefactor  = 18.4525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82844
  Prefactor  = 1.73882
  Prefactor  = 9.93278
  norm       = 11.443
  Prefactor  = 7.51551
  Prefactor  = 59.3281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.279
  norm       = 65.8569
  Prefactor  = 0.0001
  Prefactor  = 26.9144
  Prefactor  = 0.0001
  Prefactor  = 1.78131
  Normalizat = 1.06062
  Prefactor  = 0.686166
 **********
 **   18 **HESSE 
 **********

 FCN=   4977.579     FROM HESSE     STATUS=OK           378 CALLS     3296 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.95        .45171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1100        2.3736        .15218E-03   -1.5497    
   3  norm          2.7709        5.7532        .22417E-03   -1.5375    
   4  Prefactor     2.4705        22.262        .25999E-03   -1.5394    
   5  Prefactor     18.452        24.558        .93236E-04   -1.4849    
   6  Prefactor     .10000E-03    6.0929        .16987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.9444        .15319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8284        1.3308        .65863E-04   -1.5438    
   9  Prefactor     1.7388        9.4756        .15899E-02   -1.5444    
  10  Prefactor     9.9328        47.126        .12709E-03   -1.5078    
  11  norm          11.443        11.507        .11843E-03   -1.5031    
  12  Prefactor     7.5155        10.630        .14628E-03   -1.5160    
  13  Prefactor     59.328        194.00        .52099E-04   -1.4166    
  14  Prefactor     .10000E-03    12.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.279        17.000        .88943E-04   -1.4807    
  17  norm          65.857        31.144        .49454E-04   -1.4083    
  18  Prefactor     .10000E-03    2.1874        .10158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.914        29.956        .77217E-04   -1.4670    
  20  Prefactor     .10000E-03    6.4858        .17544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7813        50.584        .15661E-02   -1.5441    
  22  Normalizat    1.0606        .24829        .25971E-03   -.91027    
  23  Prefactor     .68617        .16041        .21410E-03   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09533e-09
Minuit parameter uncertainties:
  1  0.000411071
  2  2.37382
  3  5.75434
  4  14.8392
  5  24.5711
  6  4.89975e-07
  7  5.1821e-06
  8  1.33079
  9  8.11996
  10  43.3263
  11  11.5089
  12  10.6324
  13  196.124
  14  1.42808e-05
  15  8.61276e-06
  16  17.0043
  17  31.1516
  18  6.01014e-06
  19  29.9724
  20  2.92755e-06
  21  19.002
  22  0.248561
  23  0.160522
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.928e-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:  6.862e-01  1.605e-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.061e+00  2.486e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152028/likelihoodResults_402883201_403142401_4FGL_J2349.4+0534_daily_bin631.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) = 4977.5792996
delta logL = -0.000732260190489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4977.57856756
delta logL = -2.16431544686e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4488       1.0000          .0000       10.000    
     3 'Normalizat'    1.0607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68610       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=   4977.579     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      259 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.170        .17764E-01** at limit **
   2  Index         1.8771        5.1823        .50000        .17760E-06
   3  Normalizat    1.0606        .94141E-02    .25971E-03    .11193E-03
   4  Prefactor     .68617        .64045E-02    .21410E-03    .13955E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87714
  Normalizat = 1.06062
  Prefactor  = 0.686166
 **********
 **   18 **HESSE 
 **********

 FCN=   4977.579     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    263.72        .19744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8771        8.9188        .50000       -.67458    
   3  Normalizat    1.0606        .30391E-01    .10388E-04   -.91026    
   4  Prefactor     .68617        .20676E-01    .85641E-05   -1.0407    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.94704e-09
Minuit parameter uncertainties:
  1  3.79904e-05
  2  1020.37
  3  0.0303918
  4  0.0206759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152028': 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) = 4977.57856572
delta logL = 1.62163632922e-06

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  3.799e-05  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  1.877e+00  1.020e+03  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:  6.862e-01  2.068e-02  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.061e+00  3.039e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/152028/cmap_HighResolution_402883201_403142401_4FGL_J2349.4+0534_daily_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-30 06:59:10.248734', job_id='152028', GAL2='0.69', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1633010350.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='631' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:59:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 152028: <4FGL_J2349.4+0534_daily_bin631> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin631 357.356 5.579 402883201 403142401 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 :                                   591.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             247.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

