/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 146 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7428
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2349.4+0534_daily_bin407
RA = 357.356, Dec = 5.579
tmin = 344822401, tmax = 345081601
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='150553', job_status='RUN', time_executed='2021-09-30 06:42:54.485404', time_epoch_executed='1633009374.49' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150553

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150553/ft1_4FGL_J2349.4+0534_daily_bin407.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150553/ft2_4FGL_J2349.4+0534_daily_bin407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150553/ft1_4FGL_J2349.4+0534_daily_bin407.fits outfile=/scratch/kocevski/150553/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin407.fits ra=357.356 dec=5.579 rad=12.0 tmin=344822401.0 tmax=345081601.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.40
user 3.17
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150553/ft2_4FGL_J2349.4+0534_daily_bin407.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/150553/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin407.fits evtable="EVENTS" outfile="/scratch/kocevski/150553/ft1_filtered_4FGL_J2349.4+0534_daily_bin407.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150553/ft1_filtered_4FGL_J2349.4+0534_daily_bin407.fits" evtable="EVENTS" scfile=/scratch/kocevski/150553/ft2_4FGL_J2349.4+0534_daily_bin407.fits sctable="SC_DATA" outfile=/scratch/kocevski/150553/ltcube_344822401_345081601_4FGL_J2349.4+0534_daily_bin407.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/150553/ft2_4FGL_J2349.4+0534_daily_bin407.fits
.....................!
real 12.01
user 11.61
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150553/ft1_filtered_4FGL_J2349.4+0534_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/150553/ft2_4FGL_J2349.4+0534_daily_bin407.fits sctable="SC_DATA" expcube=/scratch/kocevski/150553/ltcube_344822401_345081601_4FGL_J2349.4+0534_daily_bin407.fits outfile=/scratch/kocevski/150553/expmap_344822401_345081601_4FGL_J2349.4+0534_daily_bin407.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/150553/ltcube_344822401_345081601_4FGL_J2349.4+0534_daily_bin407.fits
.....................!
real 191.47
user 186.36
sys 4.75

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/150553/ft1_filtered_4FGL_J2349.4+0534_daily_bin407.fits scfile=/scratch/kocevski/150553/ft2_4FGL_J2349.4+0534_daily_bin407.fits outfile=/scratch/kocevski/150553/cmap_344822401_345081601_4FGL_J2349.4+0534_daily_bin407.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.55
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.885       1.0000         .10000E-03   10000.    
     2 'norm      '    .41738       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3471       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7249       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12820E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10305E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10860E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53448E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4498       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    77.666       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8700       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8869       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0177       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1549       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5350E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6194.144     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2584 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.918        19.841        .78999E-05    .44317E-03
   2  norm          .41359        3.3074       -.24547E-05   -.91206E-03
   3  norm          .10000E-03    1.8832        .25308E-07** at limit **
   4  Prefactor     .10000E-03    7.0951        .22720E-07** at limit **
   5  Prefactor     3.3455        137.75        .87107E-06   -.37785E-05
   6  Prefactor     .10000E-03    9.4882        .76958E-07** at limit **
   7  Prefactor     .10000E-03    5.1789        .13613E-07** at limit **
   8  norm          1.7247        1.3623        .35906E-07   -.18229E-03
   9  Prefactor     .10000E-03    2.9060        .13354E-07** at limit **
  10  Prefactor     .10000E-03    40.235        .15987E-06** at limit **
  11  norm          .10000E-03    5.4599        .37703E-06** at limit **
  12  Prefactor     .10000E-03    3.2686        .51956E-07** at limit **
  13  Prefactor     .10000E-03    99.124        .64008E-05** at limit **
  14  Prefactor     .10000E-03    8.9604       -.43343E-06** at limit **
  15  Prefactor     .10017E-03    32.043       -.28692E-06** at limit **
  16  norm          .10000E-03    4.3726        .18482E-07** at limit **
  17  norm          2.4437        17.163        .21209E-05   -.55119E-03
  18  Prefactor     .10000E-03    1.5917       -.12761E-06** at limit **
  19  Prefactor     77.691        55.452        .72873E-05    .11989E-03
  20  Prefactor     9.8621        29.173       -.11026E-05   -.31907E-06
  21  Prefactor     1.8890        15.012        .41543E-05   -.71615E-03
  22  Normalizat    1.0173        .22707       -.33300E-05    .13772E-03
  23  Prefactor     1.1552        .15053        .21041E-06   -.20454E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.9184
  norm       = 0.413587
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.34548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.72469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100167
  norm       = 0.0001
  norm       = 2.44374
  Prefactor  = 0.0001
  Prefactor  = 77.6915
  Prefactor  = 9.86206
  Prefactor  = 1.88901
  Normalizat = 1.0173
  Prefactor  = 1.15516
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.144     FROM HESSE     STATUS=OK           374 CALLS     2958 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.918        20.122        .87644E-04   -1.4793    
   2  norm          .41359        3.4358        .25869E-03   -1.5579    
   3  norm          .10000E-03    1.8943        .10546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.1252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3455        138.08        .22122E-03   -1.5342    
   6  Prefactor     .10000E-03    9.6640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1809        .17493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7247        1.3495        .78037E-04   -1.5445    
   9  Prefactor     .10000E-03    2.9086        .13100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    40.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    17.902        .34718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2837        .13884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    99.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10017E-03    35.295        .10817       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.3757        .16073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4437        21.850        .13068E-02   -1.5395    
  18  Prefactor     .10000E-03    1.5984        .96860E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     77.691        54.988        .45567E-04   -1.3943    
  20  Prefactor     9.8621        29.153        .12755E-03   -1.5080    
  21  Prefactor     1.8890        30.277        .15148E-02   -1.5433    
  22  Normalizat    1.0173        .25917        .31512E-03   -.92453    
  23  Prefactor     1.1552        .17324        .20817E-03   -.87723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12345e-08
Minuit parameter uncertainties:
  1  20.1289
  2  2.38402
  3  2.03109e-06
  4  1.15999e-06
  5  43.0922
  6  1.22905e-05
  7  1.60333e-06
  8  1.34956
  9  1.58021e-06
  10  3.21724e-05
  11  0.00017436
  12  8.43616e-06
  13  0.000402103
  14  3.22402e-05
  15  0.00486466
  16  3.06141e-06
  17  14.6213
  18  3.82797e-06
  19  55.0237
  20  29.1953
  21  15.134
  22  0.25949
  23  0.173324
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  9.862e+00  2.920e+01  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.155e+00  1.733e-01  0.000e+00  1.000e+01 ( 1.000e+00)
533        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
534        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
531   Normalization:  1.017e+00  2.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 357.356 5.579
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150553/likelihoodResults_344822401_345081601_4FGL_J2349.4+0534_daily_bin407.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) = 6190.76909202
delta logL = 3.37488954524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6190.35480098
delta logL = 3.78918058189

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 'Index     '    9.1186       1.0000          .0000       10.000    
     3 'Normalizat'    .84749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2385       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=   6190.355     FROM MIGRAD    STATUS=CONVERGED    230 CALLS      529 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27360E-02    .25332E-03** at limit **
   2  Index         9.1185        2.1712        .13123        .60215E-04
   3  Normalizat    .84756        .78837E-01    .76914E-01   -.31147E-04
   4  Prefactor     1.2384        .54846E-01    .33779E-01   -.57747E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.11855
  Normalizat = 0.847563
  Prefactor  = 1.23843
 **********
 **   18 **HESSE 
 **********

 FCN=   6190.355     FROM HESSE     STATUS=OK            29 CALLS      558 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .50781E-03    .69887E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.1185        .22301        .58241E-03    .96792    
   3  Normalizat    .84756        .25266        .34044E-03   -.98328    
   4  Prefactor     1.2384        .17616        .20178E-03   -.85157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45081e-11
Minuit parameter uncertainties:
  1  2.55484e-09
  2  0.223245
  3  0.253013
  4  0.176246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150553': 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) = 6190.35480081
delta logL = 3.78918074917

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.555e-09  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  9.119e+00  2.232e-01  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.238e+00  1.762e-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:  8.476e-01  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.18
Ra Dec: 357.356 5.579
Photon Index (Free Index): 9.12 +/- 0.22
Photon Flux (Free Index): 1.66e-07 +/- 7.84e-08
Energy Flux (Free Index): 1.88e-05 +/- 8.88e-06

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/150553/cmap_HighResolution_344822401_345081601_4FGL_J2349.4+0534_daily_bin407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='1.88e-05', dlogl='3.79e+00', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-30 06:54:04.010473', photon_index_error2='0.22', photon_index2='9.12', ts='0.13', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='8.88e-06', EG='1.02', time_epoch_completed='1633010044.01', return_code='0', job_id='150553', GAL2='1.24', EG2='0.85', return_code2='0', photon_flux_error2='7.84e-08', ts2='8.18', photon_index='2.47' WHERE bin_id='407' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:54:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 150553: <4FGL_J2349.4+0534_daily_bin407> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin407> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep 30 06:40:17 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:40: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:40:19 2021
Terminated at Thu Sep 30 06:54:04 2021
Results reported at Thu Sep 30 06:54:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin407 357.356 5.579 344822401 345081601 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 :                                   668.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            827 sec.

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

