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


Performing analysis on: 4FGL_J2349.2+4535_daily_bin368
RA = 357.305, Dec = 45.5979
tmin = 334713601, tmax = 334972801
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='141961', job_status='RUN', time_executed='2021-09-30 06:10:27.965624', time_epoch_executed='1633007427.97' WHERE source_name='4FGL J2349.2+4535' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/141961

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/141961/ft1_4FGL_J2349.2+4535_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/141961/ft2_4FGL_J2349.2+4535_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/141961/ft1_4FGL_J2349.2+4535_daily_bin368.fits outfile=/scratch/kocevski/141961/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin368.fits ra=357.305 dec=45.5979 rad=12.0 tmin=334713601.0 tmax=334972801.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.50
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/141961/ft2_4FGL_J2349.2+4535_daily_bin368.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/141961/ft1_filteredMKT_4FGL_J2349.2+4535_daily_bin368.fits evtable="EVENTS" outfile="/scratch/kocevski/141961/ft1_filtered_4FGL_J2349.2+4535_daily_bin368.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/141961/ft1_filtered_4FGL_J2349.2+4535_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/141961/ft2_4FGL_J2349.2+4535_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/141961/ltcube_334713601_334972801_4FGL_J2349.2+4535_daily_bin368.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/141961/ft2_4FGL_J2349.2+4535_daily_bin368.fits
.....................!
real 12.33
user 11.93
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/141961/ft1_filtered_4FGL_J2349.2+4535_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/141961/ft2_4FGL_J2349.2+4535_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/141961/ltcube_334713601_334972801_4FGL_J2349.2+4535_daily_bin368.fits outfile=/scratch/kocevski/141961/expmap_334713601_334972801_4FGL_J2349.2+4535_daily_bin368.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/141961/ltcube_334713601_334972801_4FGL_J2349.2+4535_daily_bin368.fits
.....................!
real 192.07
user 186.24
sys 5.50

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/141961/ft1_filtered_4FGL_J2349.2+4535_daily_bin368.fits scfile=/scratch/kocevski/141961/ft2_4FGL_J2349.2+4535_daily_bin368.fits outfile=/scratch/kocevski/141961/cmap_334713601_334972801_4FGL_J2349.2+4535_daily_bin368.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/141961/ft1_filtered_4FGL_J2349.2+4535_daily_bin368.fits scfile=/scratch/kocevski/141961/ft2_4FGL_J2349.2+4535_daily_bin368.fits outfile=/scratch/kocevski/141961/cmap_HighResolution_334713601_334972801_4FGL_J2349.2+4535_daily_bin368.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.9155       1.0000         .10000E-03   10000.    
     3 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5609       1.0000         .10000E-03   10000.    
     5 'norm      '    .12315       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11900E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11095E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2266       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.838       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    105.85       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0004       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91010       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=   9874.386     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2300 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.196       -.11314E-05** at limit **
   2  Prefactor     6.9178        16.786        .71998E-07   -.56911E-04
   3  norm          .10000E-03    14.310       -.15074E-05** at limit **
   4  Prefactor     2.5581        6.5778        .56070E-06    .21441E-03
   5  norm          .12148        1.2701        .12549E-05   -.56951E-03
   6  Prefactor     .10000E-03    1.2548        .45753E-06** at limit **
   7  Prefactor     .10000E-03    14.628        .26618E-05** at limit **
   8  Prefactor     .10001E-03    127.88        .56421E-06** at limit **
   9  Prefactor     .10000E-03    9.3329       -.43489E-07** at limit **
  10  Prefactor     .10000E-03    2.2156        .50445E-07** at limit **
  11  Prefactor     .10000E-03    131.11        .38683E-05** at limit **
  12  Prefactor     2.2280        6.5759        .38656E-05    .41171E-03
  13  norm          .10000E-03    3.1032        .38360E-07** at limit **
  14  norm          .10000E-03    .97736        .90061E-07** at limit **
  15  Prefactor     .10000E-03    6.6322        .14645E-07** at limit **
  16  norm          11.838        10.539        .12310E-06   -.92427E-05
  17  Prefactor     .10000E-03    50.666       -.12219E-05** at limit **
  18  Prefactor     105.82        72.154       -.13800E-06    .17239E-03
  19  Prefactor     .10003E-03    14.319       -.48798E-05** at limit **
  20  Normalizat    1.0003        .20492       -.26362E-05   -.63118E-04
  21  Prefactor     .91013        .63056E-01   -.67989E-07   -.96736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.9178
  norm       = 0.0001
  Prefactor  = 2.55811
  norm       = 0.121481
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.22803
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8377
  Prefactor  = 0.0001
  Prefactor  = 105.817
  Prefactor  = 0.000100028
  Normalizat = 1.00026
  Prefactor  = 0.91013
 **********
 **   18 **HESSE 
 **********

 FCN=   9874.386     FROM HESSE     STATUS=OK           315 CALLS     2615 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.9178        16.765        .15256E-03   -1.5182    
   3  norm          .10000E-03    14.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5581        6.5727        .25511E-03   -1.5388    
   5  norm          .12148        6.0783        .18397E-02   -1.5638    
   6  Prefactor     .10000E-03    5.5156        .21201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    132.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.3350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2241        .14446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    136.74        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2280        7.4599        .13777E-02   -1.5409    
  13  norm          .10000E-03    3.1066        .17096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .99270        .95988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.838        10.543        .11643E-03   -1.5020    
  17  Prefactor     .10000E-03    50.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     105.82        74.676        .39087E-04   -1.3647    
  19  Prefactor     .10003E-03    29.726        .45366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0003        .21648        .40450E-03   -.93022    
  21  Prefactor     .91013        .68097E-01    .13830E-03   -.95788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31028e-09
Minuit parameter uncertainties:
  1  2.01786e-05
  2  16.7764
  3  4.41407e-08
  4  6.57457
  5  1.71809
  6  3.02194e-05
  7  8.43605e-05
  8  0.00233745
  9  1.11093e-05
  10  4.36707e-06
  11  0.000298247
  12  7.46299
  13  4.53305e-06
  14  5.68146e-06
  15  8.63316e-06
  16  10.5445
  17  0.000117381
  18  74.7425
  19  0.00182498
  20  0.21667
  21  0.0681036
Done.

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

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.000e-04  1.174e-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:  9.101e-01  6.810e-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.000e+00  2.167e-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: 6.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/141961/likelihoodResults_334713601_334972801_4FGL_J2349.2+4535_daily_bin368.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) = 9874.38649313
delta logL = -9.38230441534e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9874.38640222
delta logL = -2.91461401503e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40748E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4828       1.0000          .0000       10.000    
     3 'Normalizat'    1.0003       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91013       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=   9874.386     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7146        .10628E-01** at limit **
   2  Index         2.4826        8.1214        .50000        .81095E-06
   3  Normalizat    1.0003        .12797E-02    .91335E-01    .12430E-03
   4  Prefactor     .91013        .42156E-03    .31298E-01    .10112E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.48263
  Normalizat = 1.00026
  Prefactor  = 0.910131
 **********
 **   18 **HESSE 
 **********

 FCN=   9874.386     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    130.95        .21255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4826        8.4336        .50000       -.52761    
   3  Normalizat    1.0003        .88222E-02    .40450E-03   -.93022    
   4  Prefactor     .91013        .29140E-02    .13830E-03   -.95788    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.94423e-09
Minuit parameter uncertainties:
  1  4.8599e-05
  2  477.294
  3  0.00882217
  4  0.00291399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/141961': 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) = 9874.38639928
delta logL = 2.71902536042e-08

Extracting fit parameters...

4FGL J2349.2+4535
   Spectrum: PowerLaw
567    Prefactor:  1.000e-04  4.860e-05  1.000e-04  1.000e+04 ( 1.000e-14)
568        Index:  2.483e+00  4.773e+02  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:  9.101e-01  2.914e-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.000e+00  8.822e-03  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/141961/cmap_HighResolution_334713601_334972801_4FGL_J2349.2+4535_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2021-09-30 06:25:17.935399', job_id='141961', GAL2='0.91', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1633008317.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.72e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='368' AND source_name='4FGL J2349.2+4535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:25:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 141961: <4FGL_J2349.2+4535_daily_bin368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.2+4535_daily_bin368 357.305 45.5979 334713601 334972801 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 :                                   887.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             387.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            900 sec.

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

