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


Performing analysis on: 4FGL_J2349.2+4535_daily_bin1359
RA = 357.305, Dec = 45.5979
tmin = 591580801, tmax = 591840001
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='147486', job_status='RUN', time_executed='2021-09-30 06:30:34.136558', time_epoch_executed='1633008634.14' WHERE source_name='4FGL J2349.2+4535' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147486

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147486/ft1_4FGL_J2349.2+4535_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147486/ft2_4FGL_J2349.2+4535_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147486/ft1_4FGL_J2349.2+4535_daily_bin1359.fits outfile=/scratch/kocevski/147486/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin1359.fits ra=357.305 dec=45.5979 rad=12.0 tmin=591580801.0 tmax=591840001.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.86
user 3.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147486/ft1_filtered_4FGL_J2349.2+4535_daily_bin1359.fits" evtable="EVENTS" scfile=/scratch/kocevski/147486/ft2_4FGL_J2349.2+4535_daily_bin1359.fits sctable="SC_DATA" outfile=/scratch/kocevski/147486/ltcube_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.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/147486/ft2_4FGL_J2349.2+4535_daily_bin1359.fits
.....................!
real 12.17
user 11.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147486/ft1_filtered_4FGL_J2349.2+4535_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/147486/ft2_4FGL_J2349.2+4535_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/147486/ltcube_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.fits outfile=/scratch/kocevski/147486/expmap_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.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/147486/ltcube_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.fits
.....................!
real 189.96
user 185.33
sys 4.26

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/147486/ft1_filtered_4FGL_J2349.2+4535_daily_bin1359.fits scfile=/scratch/kocevski/147486/ft2_4FGL_J2349.2+4535_daily_bin1359.fits outfile=/scratch/kocevski/147486/cmap_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147486/ft1_filtered_4FGL_J2349.2+4535_daily_bin1359.fits scfile=/scratch/kocevski/147486/ft2_4FGL_J2349.2+4535_daily_bin1359.fits outfile=/scratch/kocevski/147486/cmap_HighResolution_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147486/ft1_filtered_4FGL_J2349.2+4535_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/147486/ft2_4FGL_J2349.2+4535_daily_bin1359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147486/Model_4FGL_J2349.2+4535_daily_bin1359.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/147486/ft1_filtered_4FGL_J2349.2+4535_daily_bin1359.fits....................!
real 55.55
user 54.19
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147486/ft1_filtered_4FGL_J2349.2+4535_daily_bin1359.fits', '/scratch/kocevski/147486/ft2_4FGL_J2349.2+4535_daily_bin1359.fits', expMap='/scratch/kocevski/147486/expmap_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.fits', expCube='/scratch/kocevski/147486/ltcube_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147486/Model_4FGL_J2349.2+4535_daily_bin1359.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/147486/ft1_filtered_4FGL_J2349.2+4535_daily_bin1359.fits
Spacecraft file(s): /scratch/kocevski/147486/ft2_4FGL_J2349.2+4535_daily_bin1359.fits
Exposure map: /scratch/kocevski/147486/expmap_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.fits
Exposure cube: /scratch/kocevski/147486/ltcube_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147486/Model_4FGL_J2349.2+4535_daily_bin1359.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) = 3974.32558577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .88934E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0581       1.0000         .10000E-03   10000.    
     5 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.218       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.1507       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.968       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    25.318       1.0000         .10000E-03   10000.    
    14 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98842       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .78489       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=   3974.308     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2251 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.238        .23912E-05** at limit **
   2  Prefactor     .10000E-03    11.172       -.90074E-06** at limit **
   3  norm          .10000E-03    258.53       -.48536E-04** at limit **
   4  Prefactor     9.0397        13.494        .24410E-06   -.23013E-04
   5  norm          .10000E-03    1.8535        .22732E-06** at limit **
   6  Prefactor     .10000E-03    1.5548        .64978E-06** at limit **
   7  Prefactor     .10000E-03    12.745        .11318E-05** at limit **
   8  Prefactor     .10000E-03    13.755        .49048E-06** at limit **
   9  Prefactor     34.189        63.480        .72398E-05    .10963E-03
  10  Prefactor     8.1507        13.234       -.65951E-06   -.54468E-04
  11  Prefactor     33.970        82.235       -.18431E-05   -.13125E-04
  12  Prefactor     .10000E-03    20.278       -.35722E-05** at limit **
  13  norm          25.322        25.158       -.53328E-07    .36393E-04
  14  norm          .10000E-03    5.2052       -.54074E-06** at limit **
  15  Prefactor     .10000E-03    9.9087        .24134E-06** at limit **
  16  norm          .10000E-03    6.4324       -.98263E-07** at limit **
  17  Prefactor     .10000E-03    138.80       -.25597E-05** at limit **
  18  Prefactor     .10000E-03    39.044       -.94647E-06** at limit **
  19  Prefactor     .10000E-03    5.6506       -.20659E-06** at limit **
  20  Normalizat    .98865        .32292       -.50635E-05    .18389E-03
  21  Prefactor     .78478        .95489E-01    .13671E-05   -.40295E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.03969
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.1887
  Prefactor  = 8.15068
  Prefactor  = 33.9705
  Prefactor  = 0.0001
  norm       = 25.3216
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.988647
  Prefactor  = 0.784785
 **********
 **   18 **HESSE 
 **********

 FCN=   3974.308     FROM HESSE     STATUS=OK           309 CALLS     2560 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    254.33        .52562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0397        12.633        .13317E-03   -1.5107    
   5  norm          .10000E-03    3.3224        .16679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5685        .76971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.189        63.889        .68505E-04   -1.4538    
  10  Prefactor     8.1507        13.241        .14043E-03   -1.5137    
  11  Prefactor     33.970        82.274        .68756E-04   -1.4542    
  12  Prefactor     .10000E-03    20.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          25.322        25.147        .79612E-04   -1.4701    
  14  norm          .10000E-03    5.3079        .14014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.9121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.4355        .15617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    139.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    39.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6568        .14627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98865        .33347        .38059E-03   -.93412    
  21  Prefactor     .78478        .10051        .13298E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46422e-09
Minuit parameter uncertainties:
  1  0.000326711
  2  5.44987e-05
  3  0.000115267
  4  12.6364
  5  8.49466e-05
  6  1.634e-05
  7  0.00010821
  8  4.97159e-05
  9  64.0176
  10  13.2458
  11  82.551
  12  0.000172888
  13  25.1577
  14  3.2308e-05
  15  2.4936e-05
  16  7.48012e-06
  17  0.000327477
  18  0.00012478
  19  6.19175e-06
  20  0.33417
  21  0.100536
Done.

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

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.000e-04  3.275e-04  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:  7.848e-01  1.005e-01  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:  9.886e-01  3.342e-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: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147486/likelihoodResults_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.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) = 3974.30772855
delta logL = -3.4105965824e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3974.3076948
delta logL = -3.51444214175e-07

Fit tolerance = 1e-08

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

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

 FCN=   3974.308     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      247 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7391.5        .90712E-02** at limit **
   2  Index         2.1981        5.3535        .50000       -.40065E-05
   3  Normalizat    .98864        .55454E-01    .85959E-01    .16204E-04
   4  Prefactor     .78479        .17572E-01    .30095E-01    .95256E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.19805
  Normalizat = 0.988637
  Prefactor  = 0.784788
 **********
 **   18 **HESSE 
 **********

 FCN=   3974.308     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8795.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1981        6.6831        .50000       -.59486    
   3  Normalizat    .98864        .80623E-01    .38059E-03   -.93412    
   4  Prefactor     .78479        .25615E-01    .13298E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.97164e-09
Minuit parameter uncertainties:
  1  0.0158553
  2  37.0343
  3  0.0806331
  4  0.0256158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147486': 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) = 3974.30769443
delta logL = 2.08065102925e-08

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.000e-04  1.586e-02  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.198e+00  3.703e+01  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:  7.848e-01  2.562e-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:  9.886e-01  8.063e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/147486/cmap_HighResolution_591580801_591840001_4FGL_J2349.2+4535_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-09-30 06:39:43.536067', job_id='147486', GAL2='0.78', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1633009183.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1359' AND source_name='4FGL J2349.2+4535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:39:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 147486: <4FGL_J2349.2+4535_daily_bin1359> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.2+4535_daily_bin1359 357.305 45.5979 591580801 591840001 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 :                                   544.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             386.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            562 sec.

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

