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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin135
RA = 357.356, Dec = 5.579
tmin = 274320001, tmax = 274579201
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='149093', job_status='RUN', time_executed='2021-09-30 06:39:26.094932', time_epoch_executed='1633009166.09' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149093

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149093/ft1_4FGL_J2349.4+0534_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149093/ft2_4FGL_J2349.4+0534_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149093/ft1_4FGL_J2349.4+0534_daily_bin135.fits outfile=/scratch/kocevski/149093/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin135.fits ra=357.356 dec=5.579 rad=12.0 tmin=274320001.0 tmax=274579201.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.58
user 3.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149093/ft2_4FGL_J2349.4+0534_daily_bin135.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/149093/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin135.fits evtable="EVENTS" outfile="/scratch/kocevski/149093/ft1_filtered_4FGL_J2349.4+0534_daily_bin135.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149093/ft1_filtered_4FGL_J2349.4+0534_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/149093/ft2_4FGL_J2349.4+0534_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/149093/ltcube_274320001_274579201_4FGL_J2349.4+0534_daily_bin135.fits outfile=/scratch/kocevski/149093/expmap_274320001_274579201_4FGL_J2349.4+0534_daily_bin135.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/149093/ltcube_274320001_274579201_4FGL_J2349.4+0534_daily_bin135.fits
.....................!
real 196.51
user 191.08
sys 5.06

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/149093/ft1_filtered_4FGL_J2349.4+0534_daily_bin135.fits scfile=/scratch/kocevski/149093/ft2_4FGL_J2349.4+0534_daily_bin135.fits outfile=/scratch/kocevski/149093/cmap_274320001_274579201_4FGL_J2349.4+0534_daily_bin135.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149093/ft1_filtered_4FGL_J2349.4+0534_daily_bin135.fits scfile=/scratch/kocevski/149093/ft2_4FGL_J2349.4+0534_daily_bin135.fits outfile=/scratch/kocevski/149093/cmap_HighResolution_274320001_274579201_4FGL_J2349.4+0534_daily_bin135.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.626       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.040       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.413       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9532       1.0000         .10000E-03   10000.    
     8 'norm      '    .23777       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3326       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .15157E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.673       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8315       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.2753       1.0000         .10000E-03   10000.    
    17 'norm      '    13.695       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.870       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .78293E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27387E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5362       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .67222       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=   5410.333     FROM MIGRAD    STATUS=CONVERGED    939 CALLS     3422 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.844        .18142E-02** at limit **
   2  norm          .10000E-03    5.1610        .21180E-02** at limit **
   3  norm          .10000E-03    2.0878        .10343E-02** at limit **
   4  Prefactor     10.624        13.436        .12291E-03    .49115E-04
   5  Prefactor     10.028        39.978        .12646E-03    .35959E-06
   6  Prefactor     20.416        16.359        .88651E-04    .72200E-04
   7  Prefactor     4.9425        20.464        .18071E-03   -.72978E-04
   8  norm          .23775        .78372        .10466E-02   -.79644E-03
   9  Prefactor     3.3372        6.7195        .22172E-03    .10404E-03
  10  Prefactor     .10000E-03    25.477        .18142E-02** at limit **
  11  norm          .10000E-03    16.963        .33336E-02** at limit **
  12  Prefactor     .10000E-03    5.3005        .16420E-02** at limit **
  13  Prefactor     72.394        154.97        .23547E-03   -.21775E-04
  14  Prefactor     2.8265        21.070        .12084E-02   -.18978E-03
  15  Prefactor     .10000E-03    8.7797        .18142E-02** at limit **
  16  norm          6.2743        9.3486        .16024E-03    .13977E-04
  17  norm          13.701        30.344        .10824E-03   -.22299E-03
  18  Prefactor     .10000E-03    1.5971        .90602E-03** at limit **
  19  Prefactor     21.837        42.623        .85649E-04   -.49112E-05
  20  Prefactor     .10000E-03    37.520        .97416E-01** at limit **
  21  Prefactor     .10001E-03    23.083        .85502E-01** at limit **
  22  Normalizat    1.5367        .25871        .24543E-03   -.18225E-03
  23  Prefactor     .67211        .16784        .23977E-03    .13191E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.624
  Prefactor  = 10.0281
  Prefactor  = 20.4159
  Prefactor  = 4.94246
  norm       = 0.237754
  Prefactor  = 3.33718
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.3935
  Prefactor  = 2.82649
  Prefactor  = 0.0001
  norm       = 6.27434
  norm       = 13.7011
  Prefactor  = 0.0001
  Prefactor  = 21.8373
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Normalizat = 1.53672
  Prefactor  = 0.672114
 **********
 **   18 **HESSE 
 **********

 FCN=   5410.333     FROM HESSE     STATUS=OK           368 CALLS     3790 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.1928        .42359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0879        .20685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.624        13.434        .49164E-05   -1.5056    
   5  Prefactor     10.028        39.982        .50585E-05   -1.5075    
   6  Prefactor     20.416        16.359        .35460E-05   -1.4804    
   7  Prefactor     4.9425        20.463        .72283E-05   -1.5263    
   8  norm          .23775        .78253        .41863E-04   -1.5610    
   9  Prefactor     3.3372        6.7184        .88689E-05   -1.5343    
  10  Prefactor     .10000E-03    25.478        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    17.090        .66673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3027        .32840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     72.394        154.91        .94189E-05   -1.4004    
  14  Prefactor     2.8265        20.630        .48335E-04   -1.5372    
  15  Prefactor     .10000E-03    8.7800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.2743        9.3485        .64097E-05   -1.5207    
  17  norm          13.701        30.056        .43294E-05   -1.4967    
  18  Prefactor     .10000E-03    1.5972        .18120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.837        42.609        .34260E-05   -1.4773    
  20  Prefactor     .10000E-03    34.227        .10277       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    21.345        .89932E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5367        .25871        .49087E-04   -.76752    
  23  Prefactor     .67211        .16794        .95908E-05   -1.0463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01258e-09
Minuit parameter uncertainties:
  1  1.43398e-05
  2  6.43628e-05
  3  5.22525e-06
  4  13.4381
  5  40.0889
  6  16.3621
  7  20.1251
  8  0.782568
  9  6.71992
  10  3.78578e-06
  11  0.000178393
  12  1.50315e-05
  13  155.79
  14  15.2794
  15  1.10348e-05
  16  9.35066
  17  30.0896
  18  1.92664e-05
  19  42.6683
  20  0.000255894
  21  0.000720031
  22  0.258931
  23  0.16807
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  2.559e-04  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:  6.721e-01  1.681e-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.537e+00  2.589e-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.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149093/likelihoodResults_274320001_274579201_4FGL_J2349.4+0534_daily_bin135.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) = 5410.3329012
delta logL = -3.39261168847e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5410.33290119
delta logL = -3.38661720889e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4667       1.0000          .0000       10.000    
     3 'Normalizat'    1.5367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67212       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5410.288     FROM MIGRAD    STATUS=FAILED       186 CALLS      368 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5647        841.35        .29342E-03   -.94540E-05
   2  Index         3.4738        8.2191        .10404E-01    .17488E-03
   3  Normalizat    1.5193        .21652        .24660E-03   -.92046E-04
   4  Prefactor     .67647        .15465        .23905E-03   -.85509E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5410.288     FROM SIMPLEX   STATUS=UNCHANGED     99 CALLS      467 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5647        841.35        .48079E-03   -.94540E-05
   2  Index         3.4738        8.2191        .28706E-02    .17488E-03
   3  Normalizat    1.5193        .21652        .91946E-04   -.92046E-04
   4  Prefactor     .67647        .15465        .77411E-04   -.85509E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5410.288     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      501 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5647        24.490        .11737E-04   -.16079E-04
   2  Index         3.4738        3.3214        .20807E-02   -.11747E-05
   3  Normalizat    1.5193        .24945        .49320E-04   -.90451E-04
   4  Prefactor     .67647        .16605        .95620E-05   -.83940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56467
  Index      = 3.47379
  Normalizat = 1.51925
  Prefactor  = 0.676468
 **********
 **   18 **HESSE 
 **********

 FCN=   5410.288     FROM HESSE     STATUS=OK            23 CALLS      524 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5647        19.349        .23473E-05   -1.5458    
   2  Index         3.4738        3.0157        .83228E-04   -.31019    
   3  Normalizat    1.5193        .24917        .98641E-05   -.77239    
   4  Prefactor     .67647        .16570        .19124E-05   -1.0446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8317e-12
Minuit parameter uncertainties:
  1  11.0087
  2  3.2658
  3  0.249374
  4  0.165824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149093': 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) = 5410.28840444
delta logL = 0.0444933642693

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.565e+00  1.101e+01  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  3.474e+00  3.266e+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:  6.765e-01  1.658e-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.519e+00  2.494e-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/149093/cmap_HighResolution_274320001_274579201_4FGL_J2349.4+0534_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.85e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-30 06:50:46.730332', job_id='149093', GAL2='0.68', fit_tolerance='1e-08', EG2='1.52', EG='1.54', time_epoch_completed='1633009846.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='4.45e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='135' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:50:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 149093: <4FGL_J2349.4+0534_daily_bin135> in cluster <slac> Done

Job <4FGL_J2349.4+0534_daily_bin135> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep 30 06:35:21 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 30 06:35:23 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:35:23 2021
Terminated at Thu Sep 30 06:50:47 2021
Results reported at Thu Sep 30 06:50:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin135 357.356 5.579 274320001 274579201 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 :                                   680.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            926 sec.

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

