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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin1141
RA = 357.356, Dec = 5.579
tmin = 535075201, tmax = 535334401
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='153735', job_status='RUN', time_executed='2021-09-30 06:52:57.602716', time_epoch_executed='1633009977.6' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='1141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153735

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153735/ft1_4FGL_J2349.4+0534_daily_bin1141.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153735/ft2_4FGL_J2349.4+0534_daily_bin1141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153735/ft1_4FGL_J2349.4+0534_daily_bin1141.fits outfile=/scratch/kocevski/153735/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1141.fits ra=357.356 dec=5.579 rad=12.0 tmin=535075201.0 tmax=535334401.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.92
user 4.67
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/153735/ft2_4FGL_J2349.4+0534_daily_bin1141.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/153735/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin1141.fits evtable="EVENTS" outfile="/scratch/kocevski/153735/ft1_filtered_4FGL_J2349.4+0534_daily_bin1141.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153735/ft1_filtered_4FGL_J2349.4+0534_daily_bin1141.fits" evtable="EVENTS" scfile=/scratch/kocevski/153735/ft2_4FGL_J2349.4+0534_daily_bin1141.fits sctable="SC_DATA" outfile=/scratch/kocevski/153735/ltcube_535075201_535334401_4FGL_J2349.4+0534_daily_bin1141.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/153735/ft2_4FGL_J2349.4+0534_daily_bin1141.fits
.....................!
real 14.05
user 13.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153735/ft1_filtered_4FGL_J2349.4+0534_daily_bin1141.fits evtable="EVENTS" scfile=/scratch/kocevski/153735/ft2_4FGL_J2349.4+0534_daily_bin1141.fits sctable="SC_DATA" expcube=/scratch/kocevski/153735/ltcube_535075201_535334401_4FGL_J2349.4+0534_daily_bin1141.fits outfile=/scratch/kocevski/153735/expmap_535075201_535334401_4FGL_J2349.4+0534_daily_bin1141.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/153735/ltcube_535075201_535334401_4FGL_J2349.4+0534_daily_bin1141.fits
.....................!
real 191.23
user 185.78
sys 5.14

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/153735/ft1_filtered_4FGL_J2349.4+0534_daily_bin1141.fits scfile=/scratch/kocevski/153735/ft2_4FGL_J2349.4+0534_daily_bin1141.fits outfile=/scratch/kocevski/153735/cmap_535075201_535334401_4FGL_J2349.4+0534_daily_bin1141.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=357.356 yref=5.579 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153735/ft1_filtered_4FGL_J2349.4+0534_daily_bin1141.fits scfile=/scratch/kocevski/153735/ft2_4FGL_J2349.4+0534_daily_bin1141.fits outfile=/scratch/kocevski/153735/cmap_HighResolution_535075201_535334401_4FGL_J2349.4+0534_daily_bin1141.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 1.87
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.409       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1037       1.0000         .10000E-03   10000.    
     3 'norm      '    13.727       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25569E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8236       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0882       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6635       1.0000         .10000E-03   10000.    
    13 'Prefactor '    153.01       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .43400E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.191       1.0000         .10000E-03   10000.    
    17 'norm      '    63.332       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20738E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.382       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4995       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .77181       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0360       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=   5442.711     FROM MIGRAD    STATUS=CONVERGED    914 CALLS     3347 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.441        21.104        .10203E-03    .10418E-03
   2  norm          1.0976        4.4403        .24279E-03    .20107E-03
   3  norm          13.727        6.9573        .10811E-03    .81393E-04
   4  Prefactor     .10000E-03    7.2277        .18142E-02** at limit **
   5  Prefactor     .10011E-03    38.046        .13144    ** at limit **
   6  Prefactor     .10000E-03    7.6503        .18142E-02** at limit **
   7  Prefactor     .10000E-03    7.0759        .18142E-02** at limit **
   8  norm          1.8236        1.0918        .15459E-03    .38080E-03
   9  Prefactor     .10000E-03    4.3881        .15076E-02** at limit **
  10  Prefactor     .10000E-03    41.795        .18142E-02** at limit **
  11  norm          4.0868        10.254        .99697E-03    .17271E-03
  12  Prefactor     6.6634        9.5691        .77725E-03    .19015E-04
  13  Prefactor     153.03        181.48        .16294E-03    .40817E-04
  14  Prefactor     .10012E-03    64.045        .42285E-02** at limit **
  15  Prefactor     .10000E-03    14.105        .18142E-02** at limit **
  16  norm          26.192        18.149        .78277E-04   -.27595E-05
  17  norm          63.323        35.050        .50425E-04    .28471E-03
  18  Prefactor     .10000E-03    11.095        .24507E-02** at limit **
  19  Prefactor     40.385        51.020        .63078E-04    .71768E-04
  20  Prefactor     .10000E-03    24.137        .18142E-02** at limit **
  21  Prefactor     1.4989        71.674        .17487E-02    .31070E-04
  22  Normalizat    .77175        .27488        .33656E-03    .30475E-03
  23  Prefactor     1.0361        .17708        .20282E-03    .67656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4407
  norm       = 1.09763
  norm       = 13.727
  Prefactor  = 0.0001
  Prefactor  = 0.000100108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.08684
  Prefactor  = 6.6634
  Prefactor  = 153.028
  Prefactor  = 0.000100117
  Prefactor  = 0.0001
  norm       = 26.1922
  norm       = 63.3234
  Prefactor  = 0.000100001
  Prefactor  = 40.3849
  Prefactor  = 0.0001
  Prefactor  = 1.49886
  Normalizat = 0.771753
  Prefactor  = 1.0361
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.711     FROM HESSE     STATUS=OK           362 CALLS     3709 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.441        21.071        .40813E-05   -1.4922    
   2  norm          1.0976        4.4209        .97115E-05   -1.5498    
   3  norm          13.727        6.9564        .43244E-05   -1.4967    
   4  Prefactor     .10000E-03    7.2285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10011E-03    37.380        .13318       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6512        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8236        1.0918        .61834E-05   -1.5438    
   9  Prefactor     .10000E-03    4.3883        .30153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0868        10.230        .19939E-03   -1.5304    
  12  Prefactor     6.6634        9.5470        .31090E-04   -1.5192    
  13  Prefactor     153.03        181.47        .32588E-04   -1.3228    
  14  Prefactor     .10012E-03    64.294        .84569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.192        18.147        .31311E-05   -1.4684    
  17  norm          63.323        34.890        .10085E-04   -1.4115    
  18  Prefactor     .10000E-03    11.117        .49015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.385        51.015        .12616E-04   -1.4436    
  20  Prefactor     .10000E-03    24.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4989        71.199        .69947E-04   -1.5463    
  22  Normalizat    .77175        .27449        .13462E-04   -1.0113    
  23  Prefactor     1.0361        .17716        .40564E-04   -.91536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40035e-09
Minuit parameter uncertainties:
  1  21.0814
  2  4.40603
  3  6.95677
  4  1.29551e-05
  5  0.00402208
  6  1.82141e-05
  7  1.87713e-05
  8  1.09178
  9  7.69871e-06
  10  0.000165205
  11  10.2344
  12  9.54921
  13  182.142
  14  0.00548122
  15  4.12778e-05
  16  18.1509
  17  34.9013
  18  0.000181381
  19  51.0701
  20  9.34392e-05
  21  20.6862
  22  0.274983
  23  0.177264
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  9.344e-05  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.467e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.036e+00  1.773e-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:  7.718e-01  2.750e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/153735/likelihoodResults_535075201_535334401_4FGL_J2349.4+0534_daily_bin1141.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) = 5442.71140538
delta logL = -0.000197381740691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5442.71120793
delta logL = 6.40466168988e-08

Fit tolerance = 1e-08

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

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

 FCN=   5442.711     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      204 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.041        .90712E-02** at limit **
   2  Index         2.5640        6.2779        .50000       -.14526E-04
   3  Normalizat    .77175        .21704        .76031E-01   -.44398E-04
   4  Prefactor     1.0361        .15053        .40801E-01   -.46338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.56404
  Normalizat = 0.771753
  Prefactor  = 1.0361
 **********
 **   18 **HESSE 
 **********

 FCN=   5442.711     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    118.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5640        5.1250        .50000       -.50887    
   3  Normalizat    .77175        .24949        .33656E-03   -1.0113    
   4  Prefactor     1.0361        .17344        .20282E-03   -.91536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38959e-09
Minuit parameter uncertainties:
  1  0.000445955
  2  9.01947
  3  0.249863
  4  0.173532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153735': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5442.71120769
delta logL = 3.03784872813e-07

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  4.460e-04  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.564e+00  9.019e+00  0.000e+00  1.000e+01 (-1.000e+00)
500        Scale:  9.996e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
532    Prefactor:  1.036e+00  1.735e-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:  7.718e-01  2.499e-01  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/153735/cmap_HighResolution_535075201_535334401_4FGL_J2349.4+0534_daily_bin1141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.07e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-30 07:07:28.412468', job_id='153735', GAL2='1.04', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1633010848.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1141' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 07:07:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 153735: <4FGL_J2349.4+0534_daily_bin1141> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin1141> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 30 06:50:53 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:50:55 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:50:55 2021
Terminated at Thu Sep 30 07:07:29 2021
Results reported at Thu Sep 30 07:07:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin1141 357.356 5.579 535075201 535334401 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 :                                   641.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             228.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            996 sec.

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

