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


Performing analysis on: 4FGL_J2349.4+0534_daily_bin180
RA = 357.356, Dec = 5.579
tmin = 285984001, tmax = 286243201
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='149185', job_status='RUN', time_executed='2021-09-30 06:36:17.406627', time_epoch_executed='1633008977.41' WHERE source_name='4FGL J2349.4+0534' and cadence='daily' and bin_id='180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149185

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149185/ft1_4FGL_J2349.4+0534_daily_bin180.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149185/ft2_4FGL_J2349.4+0534_daily_bin180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149185/ft1_4FGL_J2349.4+0534_daily_bin180.fits outfile=/scratch/kocevski/149185/ft1_filteredMKT_4FGL_J2349.4+0534_daily_bin180.fits ra=357.356 dec=5.579 rad=12.0 tmin=285984001.0 tmax=286243201.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.44
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149185/ft1_filtered_4FGL_J2349.4+0534_daily_bin180.fits" evtable="EVENTS" scfile=/scratch/kocevski/149185/ft2_4FGL_J2349.4+0534_daily_bin180.fits sctable="SC_DATA" outfile=/scratch/kocevski/149185/ltcube_285984001_286243201_4FGL_J2349.4+0534_daily_bin180.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/149185/ft2_4FGL_J2349.4+0534_daily_bin180.fits
.....................!
real 11.83
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149185/ft1_filtered_4FGL_J2349.4+0534_daily_bin180.fits evtable="EVENTS" scfile=/scratch/kocevski/149185/ft2_4FGL_J2349.4+0534_daily_bin180.fits sctable="SC_DATA" expcube=/scratch/kocevski/149185/ltcube_285984001_286243201_4FGL_J2349.4+0534_daily_bin180.fits outfile=/scratch/kocevski/149185/expmap_285984001_286243201_4FGL_J2349.4+0534_daily_bin180.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/149185/ltcube_285984001_286243201_4FGL_J2349.4+0534_daily_bin180.fits
.....................!
real 189.84
user 185.08
sys 4.40

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/149185/ft1_filtered_4FGL_J2349.4+0534_daily_bin180.fits scfile=/scratch/kocevski/149185/ft2_4FGL_J2349.4+0534_daily_bin180.fits outfile=/scratch/kocevski/149185/cmap_285984001_286243201_4FGL_J2349.4+0534_daily_bin180.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149185/ft1_filtered_4FGL_J2349.4+0534_daily_bin180.fits scfile=/scratch/kocevski/149185/ft2_4FGL_J2349.4+0534_daily_bin180.fits outfile=/scratch/kocevski/149185/cmap_HighResolution_285984001_286243201_4FGL_J2349.4+0534_daily_bin180.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.491       1.0000         .10000E-03   10000.    
     2 'norm      '    .87192       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3853       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.867       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0310       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.946       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.286       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.816       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.204       1.0000         .10000E-03   10000.    
    16 'norm      '    13.837       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .64967       1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.251       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.718       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87547       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91384       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7393.396     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     3138 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.494        16.208         .0000       -.50944E-03
   2  norm          .87174        2.2297         .0000        .14675E-02
   3  norm          1.3848        3.9921         .0000        .30009E-01
   4  Prefactor     .10000E-03    2.9539         .0000    ** at limit **
   5  Prefactor     14.865        35.474         .0000        .14121E-02
   6  Prefactor     .10000E-03    12.022         .0000    ** at limit **
   7  Prefactor     .10000E-03    32.398         .0000    ** at limit **
   8  norm          2.0312        .85235         .0000        .17881E-03
   9  Prefactor     16.944        10.776         .0000       -.13986E-03
  10  Prefactor     .10000E-03    32.854         .0000    ** at limit **
  11  norm          .10000E-03    6.3063         .0000    ** at limit **
  12  Prefactor     12.285        8.1732         .0000        .37601E-03
  13  Prefactor     31.816        91.605         .0000       -.72938E-03
  14  Prefactor     .10000E-03    2.1816         .0000    ** at limit **
  15  Prefactor     30.203        26.923         .0000        .24756E-03
  16  norm          13.836        13.313         .0000        .17357E-03
  17  norm          .10000E-03    4.2480         .0000    ** at limit **
  18  Prefactor     .64928        1.8533         .0000        .12885E-02
  19  Prefactor     31.252        33.282         .0000       -.71315E-03
  20  Prefactor     .10000E-03    7.4692         .0000    ** at limit **
  21  Prefactor     16.721        12.386         .0000        .36969E-03
  22  Normalizat    .87530        .18593         .0000        .92775E-04
  23  Prefactor     .91399        .12107         .0000        .66081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4938
  norm       = 0.871745
  norm       = 1.38478
  Prefactor  = 0.0001
  Prefactor  = 14.8654
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 2.03117
  Prefactor  = 16.944
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 12.2845
  Prefactor  = 31.8163
  Prefactor  = 0.0001
  Prefactor  = 30.2035
  norm       = 13.8363
  norm       = 0.0001
  Prefactor  = 0.649283
  Prefactor  = 31.2516
  Prefactor  = 0.0001
  Prefactor  = 16.7205
  Normalizat = 0.875298
  Prefactor  = 0.913987
 **********
 **   18 **HESSE 
 **********

 FCN=   7393.396     FROM HESSE     STATUS=OK           368 CALLS     3506 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.494        15.648        .90721E-04   -1.4825    
   2  norm          .87174        2.1386        .17076E-03   -1.5521    
   3  norm          1.3848        3.9903        .13765E-02   -1.5473    
   4  Prefactor     .10000E-03    2.9640        .14428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.865        35.487        .10388E-03   -1.4937    
   6  Prefactor     .10000E-03    12.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0312        .85307        .49533E-04   -1.5423    
   9  Prefactor     16.944        10.764        .97294E-04   -1.4884    
  10  Prefactor     .10000E-03    32.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.3417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.285        8.1564        .11428E-03   -1.5007    
  13  Prefactor     31.816        91.146        .71037E-04   -1.4579    
  14  Prefactor     .10000E-03    2.1837        .12401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.203        26.900        .72903E-04   -1.4608    
  16  norm          13.836        13.313        .10768E-03   -1.4964    
  17  norm          .10000E-03    4.2489        .17307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .64928        1.7245        .18738E-02   -1.5547    
  19  Prefactor     31.252        33.369        .71674E-04   -1.4589    
  20  Prefactor     .10000E-03    7.4884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.721        12.397        .97956E-04   -1.4890    
  22  Normalizat    .87530        .21577        .29604E-03   -.97334    
  23  Prefactor     .91399        .14194        .20328E-03   -.95654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03673e-08
Minuit parameter uncertainties:
  1  15.651
  2  2.1388
  3  3.99105
  4  3.83653e-06
  5  35.5378
  6  2.79432e-06
  7  0.000803533
  8  0.853076
  9  10.7653
  10  0.000682839
  11  2.32928e-05
  12  8.15716
  13  91.5487
  14  7.42037e-06
  15  26.9103
  16  13.3161
  17  3.3652e-06
  18  1.72459
  19  33.3888
  20  4.30764e-05
  21  12.3988
  22  0.215981
  23  0.141997
Done.

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

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.000e-04  4.308e-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:  9.140e-01  1.420e-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.753e-01  2.160e-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: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149185/likelihoodResults_285984001_286243201_4FGL_J2349.4+0534_daily_bin180.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) = 7393.39642983
delta logL = -0.00063640364715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7393.39579344
delta logL = -4.42196324002e-09

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 'Index     '    2.4630       1.0000          .0000       10.000    
     3 'Normalizat'    .87529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91398       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=   7393.396     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    140.23        .18142E-02** at limit **
   2  Index         2.4353        8.1664        .50000        .36064E-05
   3  Normalizat    .87530        .19502E-01    .29604E-03   -.27726E-04
   4  Prefactor     .91399        .13750E-01    .20328E-03   -.26397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100151
  Index      = 2.4353
  Normalizat = 0.875297
  Prefactor  = 0.913988
 **********
 **   18 **HESSE 
 **********

 FCN=   7393.396     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    600.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4353        7.0523        .50000       -.53861    
   3  Normalizat    .87530        .44234E-01    .11842E-04   -.97334    
   4  Prefactor     .91399        .31180E-01    .81314E-05   -.95654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.4772e-09
Minuit parameter uncertainties:
  1  0.019256
  2  1549.7
  3  0.0442355
  4  0.031181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149185': 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) = 7393.39579341
delta logL = 1.8566424842e-08

Extracting fit parameters...

4FGL J2349.4+0534
   Spectrum: PowerLaw
498    Prefactor:  1.002e-04  1.926e-02  1.000e-04  1.000e+04 ( 1.000e-13)
499        Index:  2.435e+00  1.550e+03  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:  9.140e-01  3.118e-02  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.753e-01  4.424e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/149185/cmap_HighResolution_285984001_286243201_4FGL_J2349.4+0534_daily_bin180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-30 06:48:55.610927', job_id='149185', GAL2='0.91', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1633009735.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.86e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='180' AND source_name='4FGL J2349.4+0534' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 30 06:48:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 149185: <4FGL_J2349.4+0534_daily_bin180> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2349.4+0534_daily_bin180 357.356 5.579 285984001 286243201 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 :                                   753.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

