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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1506
RA = 207.387, Dec = -11.5188
tmin = 629683201, tmax = 629942401
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='444', job_status='RUN', time_executed='2021-09-08 14:36:05.649719', time_epoch_executed='1631136965.65' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/444

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/444/ft1_4FGL_J1349.5-1131_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/444/ft2_4FGL_J1349.5-1131_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/444/ft1_4FGL_J1349.5-1131_daily_bin1506.fits outfile=/scratch/kocevski/444/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1506.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=629683201.0 tmax=629942401.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.65
user 3.37
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/444/ft2_4FGL_J1349.5-1131_daily_bin1506.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/444/ft2_4FGL_J1349.5-1131_daily_bin1506.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/444/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1506.fits evtable="EVENTS" outfile="/scratch/kocevski/444/ft1_filtered_4FGL_J1349.5-1131_daily_bin1506.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/444/ft1_filtered_4FGL_J1349.5-1131_daily_bin1506.fits" evtable="EVENTS" scfile=/scratch/kocevski/444/ft2_4FGL_J1349.5-1131_daily_bin1506.fits sctable="SC_DATA" outfile=/scratch/kocevski/444/ltcube_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.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/444/ft2_4FGL_J1349.5-1131_daily_bin1506.fits
.....................!
real 14.06
user 13.63
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/444/ft1_filtered_4FGL_J1349.5-1131_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/444/ft2_4FGL_J1349.5-1131_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/444/ltcube_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.fits outfile=/scratch/kocevski/444/expmap_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.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/444/ltcube_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.fits
.....................!
real 190.86
user 185.96
sys 4.18

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1349.5-1131 @ 207.387 -11.5188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/444/ft1_filtered_4FGL_J1349.5-1131_daily_bin1506.fits scfile=/scratch/kocevski/444/ft2_4FGL_J1349.5-1131_daily_bin1506.fits outfile=/scratch/kocevski/444/cmap_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.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=207.387 yref=-11.5188 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/444/ft1_filtered_4FGL_J1349.5-1131_daily_bin1506.fits scfile=/scratch/kocevski/444/ft2_4FGL_J1349.5-1131_daily_bin1506.fits outfile=/scratch/kocevski/444/cmap_HighResolution_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.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=207.387 yref=-11.5188 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/444/ft1_filtered_4FGL_J1349.5-1131_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/444/ft2_4FGL_J1349.5-1131_daily_bin1506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/444/Model_4FGL_J1349.5-1131_daily_bin1506.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/444/ft1_filtered_4FGL_J1349.5-1131_daily_bin1506.fits.....................!
real 54.87
user 53.45
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/444/ft1_filtered_4FGL_J1349.5-1131_daily_bin1506.fits', '/scratch/kocevski/444/ft2_4FGL_J1349.5-1131_daily_bin1506.fits', expMap='/scratch/kocevski/444/expmap_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.fits', expCube='/scratch/kocevski/444/ltcube_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/444/Model_4FGL_J1349.5-1131_daily_bin1506.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1349.5-1131'

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.801e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/444/ft1_filtered_4FGL_J1349.5-1131_daily_bin1506.fits
Spacecraft file(s): /scratch/kocevski/444/ft2_4FGL_J1349.5-1131_daily_bin1506.fits
Exposure map: /scratch/kocevski/444/expmap_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.fits
Exposure cube: /scratch/kocevski/444/ltcube_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/444/Model_4FGL_J1349.5-1131_daily_bin1506.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) = 6859.19147102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4648       1.0000         .10000E-03   10000.    
     5 'Prefactor '    44.341       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0166       1.0000         .10000E-03   10000.    
     7 'norm      '    .11502E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .17930E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .45117       1.0000         .10000E-03   10000.    
    12 'norm      '    14.718       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.666       1.0000         .10000E-03   10000.    
    15 'norm      '    10.683       1.0000         .10000E-03   10000.    
    16 'norm      '    29.475       1.0000         .10000E-03   10000.    
    17 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .35232E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8471       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .58216       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6859.180     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2363 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.6659       -.10378E-05** at limit **
   2  norm          .10000E-03    3.8269       -.95332E-07** at limit **
   3  Prefactor     .10000E-03    3.5102        .24482E-06** at limit **
   4  Prefactor     9.4631        10.261       -.36024E-06   -.63265E-04
   5  Prefactor     44.319        18.912       -.69475E-06   -.28396E-03
   6  norm          2.0165        1.5178       -.12473E-06    .75574E-04
   7  norm          .10000E-03    2.1324        .18358E-05** at limit **
   8  norm          .10000E-03    3.4041        .85844E-06** at limit **
   9  Prefactor     .10000E-03    4.9171        .39507E-06** at limit **
  10  norm          .10000E-03    8.2372        .85383E-06** at limit **
  11  Prefactor     .40961        40.987       -.12890E-04    .11096E-03
  12  norm          14.719        6.3279       -.12459E-07   -.96438E-04
  13  Prefactor     .10000E-03    4.9422       -.13686E-06** at limit **
  14  Prefactor     28.649        53.282        .17140E-05    .54800E-04
  15  norm          10.683        6.8924       -.29847E-06   -.23760E-05
  16  norm          29.472        5.1875       -.51934E-08   -.57404E-03
  17  norm          .10000E-03    18.961       -.11361E-05** at limit **
  18  norm          .10002E-03    7.8124       -.32334E-05** at limit **
  19  Prefactor     .10000E-03    16.999        .20178E-06** at limit **
  20  Prefactor     4.8453        58.105       -.31438E-06    .77663E-05
  21  Normalizat    .58225        .26835        .19483E-06   -.12825E-03
  22  Prefactor     1.2158        .14088       -.24422E-07   -.23461E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.46314
  Prefactor  = 44.319
  norm       = 2.01654
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.409615
  norm       = 14.7188
  Prefactor  = 0.0001
  Prefactor  = 28.649
  norm       = 10.6826
  norm       = 29.4723
  norm       = 0.0001
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 4.84526
  Normalizat = 0.582248
  Prefactor  = 1.21581
 **********
 **   18 **HESSE 
 **********

 FCN=   6859.180     FROM HESSE     STATUS=OK           340 CALLS     2703 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.7566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.8301        .15822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5177        .15156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.4631        10.235        .13026E-03   -1.5093    
   5  Prefactor     44.319        19.172        .60207E-04   -1.4376    
   6  norm          2.0165        1.5028        .83305E-04   -1.5424    
   7  norm          .10000E-03    2.1713        .11816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    18.124        .28870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9305        .17938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.2634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .40961        46.887        .42334E-02   -1.5580    
  12  norm          14.719        6.3250        .10440E-03   -1.4940    
  13  Prefactor     .10000E-03    5.0754        .35874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.649        53.530        .74829E-04   -1.4637    
  15  norm          10.683        6.8754        .12258E-03   -1.5054    
  16  norm          29.472        5.1126        .73782E-04   -1.4622    
  17  norm          .10000E-03    19.415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10002E-03    18.228        .38534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8453        58.355        .18272E-03   -1.5268    
  21  Normalizat    .58225        .28052        .46552E-03   -1.0874    
  22  Prefactor     1.2158        .15064        .18366E-03   -.85846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70876e-09
Minuit parameter uncertainties:
  1  3.09907e-05
  2  1.80444e-07
  3  3.43044e-06
  4  10.2367
  5  19.1746
  6  1.50279
  7  1.09066e-05
  8  8.80859e-05
  9  2.63344e-05
  10  6.54714e-05
  11  8.77085
  12  6.32531
  13  1.89695e-07
  14  53.6197
  15  6.87589
  16  5.11268
  17  9.55774e-06
  18  0.00110242
  19  4.08319e-05
  20  33.6706
  21  0.281202
  22  0.150689
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.897e-07  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.216e+00  1.507e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  5.822e-01  2.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/444/likelihoodResults_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.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) = 6859.18085284
delta logL = -0.00094003182312

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6859.17991459
delta logL = -1.78002846951e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5029       1.0000          .0000       10.000    
     3 'Normalizat'    .58189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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=   6859.180     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      249 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10074E-03    58.645        .35957E-02** at limit **
   2  Index         2.5642        8.0544        .50000       -.11723E-04
   3  Normalizat    .58225        .20314E-01    .46552E-03    .35753E-04
   4  Prefactor     1.2158        .11322E-01    .18366E-03    .74590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100738
  Index      = 2.56416
  Normalizat = 0.58225
  Prefactor  = 1.21581
 **********
 **   18 **HESSE 
 **********

 FCN=   6859.180     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10074E-03    431.03        .71915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5642        8.7179        .50000       -.50884    
   3  Normalizat    .58225        .60850E-01    .18621E-04   -1.0874    
   4  Prefactor     1.2158        .33899E-01    .73464E-05   -.85846    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.75898e-08
Minuit parameter uncertainties:
  1  0.0359323
  2  1252.96
  3  0.0608566
  4  0.0338994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/444': 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) = 6859.17991266
delta logL = 1.44107616507e-07

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.007e-04  3.593e-02  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.564e+00  1.253e+03  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.216e+00  3.390e-02  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  5.822e-01  6.086e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.387 -11.519

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/444/cmap_HighResolution_629683201_629942401_4FGL_J1349.5-1131_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-08 14:47:09.228721', job_id='444', GAL2='1.22', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1631137629.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1506' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:47:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 444: <4FGL_J1349.5-1131_daily_bin1506> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1506> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:35:24 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:35:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 14:35:32 2021
Terminated at Wed Sep  8 14:47:10 2021
Results reported at Wed Sep  8 14:47:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1506 207.387 -11.5188 629683201 629942401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1349.5-1131 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   627.30 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             315.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            706 sec.

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

