/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 83 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 = 4927
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2349.2+4535_daily_bin1339
RA = 357.305, Dec = 45.5979
tmin = 586396801, tmax = 586656001
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='147454', job_status='RUN', time_executed='2021-09-30 06:31:59.215632', time_epoch_executed='1633008719.22' WHERE source_name='4FGL J2349.2+4535' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147454

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147454/ft1_4FGL_J2349.2+4535_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147454/ft2_4FGL_J2349.2+4535_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147454/ft1_4FGL_J2349.2+4535_daily_bin1339.fits outfile=/scratch/kocevski/147454/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1339.fits ra=357.305 dec=45.5979 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.64
user 2.44
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/147454/ft2_4FGL_J2349.2+4535_daily_bin1339.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147454/ft2_4FGL_J2349.2+4535_daily_bin1339.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/147454/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1339.fits evtable="EVENTS" outfile="/scratch/kocevski/147454/ft1_filtered_4FGL_J2349.2+4535_daily_bin1339.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.47
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147454/ft1_filtered_4FGL_J2349.2+4535_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/147454/ft2_4FGL_J2349.2+4535_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/147454/ltcube_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.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/147454/ft2_4FGL_J2349.2+4535_daily_bin1339.fits
.....................!
real 8.25
user 7.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147454/ft1_filtered_4FGL_J2349.2+4535_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/147454/ft2_4FGL_J2349.2+4535_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/147454/ltcube_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.fits outfile=/scratch/kocevski/147454/expmap_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.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/147454/ltcube_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.fits
.....................!
real 190.91
user 185.37
sys 5.05

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 180 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2349.2+4535 @ 357.305 45.5979

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/147454/ft1_filtered_4FGL_J2349.2+4535_daily_bin1339.fits scfile=/scratch/kocevski/147454/ft2_4FGL_J2349.2+4535_daily_bin1339.fits outfile=/scratch/kocevski/147454/cmap_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.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.305 yref=45.5979 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147454/ft1_filtered_4FGL_J2349.2+4535_daily_bin1339.fits scfile=/scratch/kocevski/147454/ft2_4FGL_J2349.2+4535_daily_bin1339.fits outfile=/scratch/kocevski/147454/cmap_HighResolution_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.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.305 yref=45.5979 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147454/ft1_filtered_4FGL_J2349.2+4535_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/147454/ft2_4FGL_J2349.2+4535_daily_bin1339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147454/Model_4FGL_J2349.2+4535_daily_bin1339.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/147454/ft1_filtered_4FGL_J2349.2+4535_daily_bin1339.fits.....................!
real 95.49
user 94.01
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147454/ft1_filtered_4FGL_J2349.2+4535_daily_bin1339.fits', '/scratch/kocevski/147454/ft2_4FGL_J2349.2+4535_daily_bin1339.fits', expMap='/scratch/kocevski/147454/expmap_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.fits', expCube='/scratch/kocevski/147454/ltcube_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147454/Model_4FGL_J2349.2+4535_daily_bin1339.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2349.2+4535'

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  5.568e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/147454/ft1_filtered_4FGL_J2349.2+4535_daily_bin1339.fits
Spacecraft file(s): /scratch/kocevski/147454/ft2_4FGL_J2349.2+4535_daily_bin1339.fits
Exposure map: /scratch/kocevski/147454/expmap_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.fits
Exposure cube: /scratch/kocevski/147454/ltcube_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147454/Model_4FGL_J2349.2+4535_daily_bin1339.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) = 7499.92004221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    102.03       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.174       1.0000         .10000E-03   10000.    
     3 'norm      '    .10404E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0641       1.0000         .10000E-03   10000.    
     5 'norm      '    .16024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.747       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7119       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12269E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8429       1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.445       1.0000         .10000E-03   10000.    
    16 'norm      '    25.628       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    70.990       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4049       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3863       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81898       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7499.915     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2207 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     102.03        50.269        .37867E-05   -.20437E-04
   2  Prefactor     24.176        24.459       -.14619E-06   -.87430E-05
   3  norm          .10000E-03    17.555       -.29504E-05** at limit **
   4  Prefactor     8.0659        9.2758       -.87972E-06    .83350E-05
   5  norm          .10038E-03    1.2215        .60310E-06** at limit **
   6  Prefactor     .10000E-03    2.0123       -.22759E-07** at limit **
   7  Prefactor     14.749        24.330        .88944E-06   -.55129E-04
   8  Prefactor     8.7168        27.678        .41358E-05   -.20683E-04
   9  Prefactor     .10000E-03    64.814        .37173E-04** at limit **
  10  Prefactor     .10000E-03    2.2664        .53748E-07** at limit **
  11  Prefactor     .10000E-03    84.323       -.37888E-04** at limit **
  12  Prefactor     8.8357        13.608        .50113E-06    .47535E-05
  13  norm          .10000E-03    7.4946       -.10038E-06** at limit **
  14  norm          .10000E-03    2.3016        .74266E-07** at limit **
  15  Prefactor     13.449        27.480        .27806E-05   -.69410E-05
  16  norm          25.629        14.951        .29119E-07   -.22345E-04
  17  Prefactor     .10000E-03    28.526       -.14729E-04** at limit **
  18  Prefactor     71.000        77.521        .94914E-05    .57564E-04
  19  Prefactor     2.4081        9.3052       -.74701E-05   -.35678E-03
  20  Normalizat    1.3860        .26143       -.13157E-05    .13642E-04
  21  Prefactor     .81905        .73206E-01    .12665E-06   -.96359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 102.034
  Prefactor  = 24.1758
  norm       = 0.0001
  Prefactor  = 8.06589
  norm       = 0.000100384
  Prefactor  = 0.0001
  Prefactor  = 14.7489
  Prefactor  = 8.7168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.8357
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.4495
  norm       = 25.6285
  Prefactor  = 0.0001
  Prefactor  = 70.9997
  Prefactor  = 2.40814
  Normalizat = 1.38596
  Prefactor  = 0.819046
 **********
 **   18 **HESSE 
 **********

 FCN=   7499.915     FROM HESSE     STATUS=OK           323 CALLS     2530 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     102.03        50.261        .19902E-03   -1.3684    
   2  Prefactor     24.176        24.472        .81472E-04   -1.4724    
   3  norm          .10000E-03    17.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.0659        9.2595        .14119E-03   -1.5140    
   5  norm          .10038E-03    1.5724        .36860E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0362        .11974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.749        24.443        .10430E-03   -1.4940    
   8  Prefactor     8.7168        27.836        .13580E-03   -1.5117    
   9  Prefactor     .10000E-03    64.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2698        .12732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    84.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8357        13.677        .13479E-03   -1.5113    
  13  norm          .10000E-03    7.5229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.3866        .25633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.449        27.504        .10924E-03   -1.4974    
  16  norm          25.629        14.952        .79131E-04   -1.4695    
  17  Prefactor     .10000E-03    28.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     71.000        77.261        .47645E-04   -1.4021    
  19  Prefactor     2.4081        9.3008        .26402E-03   -1.5398    
  20  Normalizat    1.3860        .29314        .38458E-03   -.81036    
  21  Prefactor     .81905        .81619E-01    .14856E-03   -.99030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69464e-09
Minuit parameter uncertainties:
  1  50.2824
  2  24.4826
  3  4.9068e-05
  4  9.26115
  5  0.00155403
  6  3.91227e-06
  7  24.4598
  8  27.8777
  9  0.000127358
  10  5.70663e-07
  11  0.000380057
  12  13.6823
  13  2.04311e-06
  14  1.13064e-06
  15  27.5301
  16  14.9546
  17  8.05249e-07
  18  77.3702
  19  9.3064
  20  0.293495
  21  0.081631
Done.

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

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.000e-04  8.052e-07  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.176e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.190e-01  8.163e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.386e+00  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 357.305 45.598
Photon Flux Upper Limit: 7.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147454/likelihoodResults_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.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) = 7499.91491907
delta logL = -0.000167229485669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7499.91475194
delta logL = -1.02571902971e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1578       1.0000          .0000       10.000    
     3 'Normalizat'    1.3860       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81903       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   7499.915     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10533E-03    17.876        .18142E-01** at limit **
   2  Index         1.8929        6.6465        .50000        .27946E-05
   3  Normalizat    1.3860        .50780E-02    .38458E-03    .12268E-04
   4  Prefactor     .81905        .15654E-02    .14856E-03    .34590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105333
  Index      = 1.89289
  Normalizat = 1.38596
  Prefactor  = 0.819046
 **********
 **   18 **HESSE 
 **********

 FCN=   7499.915     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10533E-03    444.00        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8929        9.0224        .50000       -.67056    
   3  Normalizat    1.3860        .25813E-01    .15383E-04   -.81036    
   4  Prefactor     .81905        .79572E-02    .29712E-04   -.99030    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.3689e-08
Minuit parameter uncertainties:
  1  0.09806
  2  1714.79
  3  0.0258129
  4  0.00795718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147454': 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) = 7499.91475164
delta logL = 1.99474925466e-07

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.053e-04  9.806e-02  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  1.893e+00  1.715e+03  0.000e+00  1.000e+01 (-1.000e+00)
569        Scale:  2.096e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.190e-01  7.957e-03  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
600   Normalization:  1.386e+00  2.581e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 357.305 45.598

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/147454/cmap_HighResolution_586396801_586656001_4FGL_J2349.2+4535_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-30 06:44:50.953347', job_id='147454', GAL2='0.82', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1633009490.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1339' AND source_name='4FGL J2349.2+4535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:44:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 147454: <4FGL_J2349.2+4535_daily_bin1339> in cluster <slac> Done

Job <4FGL_J2349.2+4535_daily_bin1339> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 30 06:30:19 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:30:21 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:30:21 2021
Terminated at Thu Sep 30 06:44:51 2021
Results reported at Thu Sep 30 06:44:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.2+4535_daily_bin1339 357.305 45.5979 586396801 586656001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2349.2+4535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   738.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

