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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1461
RA = 207.387, Dec = -11.5188
tmin = 618019201, tmax = 618278401
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='381', job_status='RUN', time_executed='2021-09-08 14:36:01.746692', time_epoch_executed='1631136961.75' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381/ft1_4FGL_J1349.5-1131_daily_bin1461.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381/ft2_4FGL_J1349.5-1131_daily_bin1461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381/ft1_4FGL_J1349.5-1131_daily_bin1461.fits outfile=/scratch/kocevski/381/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1461.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=618019201.0 tmax=618278401.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 5.25
user 4.88
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/381/ft2_4FGL_J1349.5-1131_daily_bin1461.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/381/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1461.fits evtable="EVENTS" outfile="/scratch/kocevski/381/ft1_filtered_4FGL_J1349.5-1131_daily_bin1461.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.54
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381/ft1_filtered_4FGL_J1349.5-1131_daily_bin1461.fits" evtable="EVENTS" scfile=/scratch/kocevski/381/ft2_4FGL_J1349.5-1131_daily_bin1461.fits sctable="SC_DATA" outfile=/scratch/kocevski/381/ltcube_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.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/381/ft2_4FGL_J1349.5-1131_daily_bin1461.fits
.....................!
real 14.92
user 14.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381/ft1_filtered_4FGL_J1349.5-1131_daily_bin1461.fits evtable="EVENTS" scfile=/scratch/kocevski/381/ft2_4FGL_J1349.5-1131_daily_bin1461.fits sctable="SC_DATA" expcube=/scratch/kocevski/381/ltcube_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.fits outfile=/scratch/kocevski/381/expmap_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.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/381/ltcube_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.fits
.....................!
real 192.20
user 186.49
sys 5.19

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/381/ft1_filtered_4FGL_J1349.5-1131_daily_bin1461.fits scfile=/scratch/kocevski/381/ft2_4FGL_J1349.5-1131_daily_bin1461.fits outfile=/scratch/kocevski/381/cmap_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381/ft1_filtered_4FGL_J1349.5-1131_daily_bin1461.fits scfile=/scratch/kocevski/381/ft2_4FGL_J1349.5-1131_daily_bin1461.fits outfile=/scratch/kocevski/381/cmap_HighResolution_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.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.57
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/381/ft1_filtered_4FGL_J1349.5-1131_daily_bin1461.fits', '/scratch/kocevski/381/ft2_4FGL_J1349.5-1131_daily_bin1461.fits', expMap='/scratch/kocevski/381/expmap_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.fits', expCube='/scratch/kocevski/381/ltcube_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/381/Model_4FGL_J1349.5-1131_daily_bin1461.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/381/ft1_filtered_4FGL_J1349.5-1131_daily_bin1461.fits
Spacecraft file(s): /scratch/kocevski/381/ft2_4FGL_J1349.5-1131_daily_bin1461.fits
Exposure map: /scratch/kocevski/381/expmap_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.fits
Exposure cube: /scratch/kocevski/381/ltcube_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/381/Model_4FGL_J1349.5-1131_daily_bin1461.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) = 11197.6285853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    44.400       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7375       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7815       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.503       1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .58197E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.260       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18418E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    29.414       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .84140       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8600       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.131       1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    58.230       1.0000         .10000E-03   10000.    
    17 'norm      '    10.109       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .59019       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.159       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4309       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .72691       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=   11197.62     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2402 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          44.400        14.520       -.50524E-07   -.14543E-04
   2  norm          .10000E-03    2.5183       -.14383E-08** at limit **
   3  Prefactor     4.7373        6.5811        .53480E-06   -.10852E-03
   4  Prefactor     1.7768        6.9636        .34869E-05    .16380E-04
   5  Prefactor     14.493        16.793       -.25335E-05   -.87495E-03
   6  norm          .10000E-03    .39709       -.28929E-07** at limit **
   7  norm          .10001E-03    1.7731        .37831E-06** at limit **
   8  norm          15.258        6.7986        .14675E-05   -.37689E-03
   9  Prefactor     .10000E-03    4.1993       -.93096E-06** at limit **
  10  norm          29.413        25.566       -.59222E-06   -.59479E-04
  11  Prefactor     .84286        6.2355        .29421E-05   -.34632E-03
  12  norm          1.8599        1.8634       -.82358E-09    .36685E-04
  13  Prefactor     .10000E-03    1.0054        .35635E-08** at limit **
  14  Prefactor     22.127        27.148       -.21394E-05   -.15866E-03
  15  norm          .10000E-03    5.4357       -.46414E-07** at limit **
  16  norm          58.229        5.1195        .25959E-07    .51407E-03
  17  norm          10.109        10.924       -.17393E-06   -.39918E-04
  18  norm          .10000E-03    3.4846       -.30477E-06** at limit **
  19  Prefactor     .58375        7.2462       -.16328E-05    .42792E-03
  20  Prefactor     18.158        17.868       -.80049E-06   -.95355E-04
  21  Normalizat    1.4310        .18762       -.22242E-07    .24864E-04
  22  Prefactor     .72689        .93692E-01    .13641E-06    .55247E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 44.3997
  norm       = 0.0001
  Prefactor  = 4.73725
  Prefactor  = 1.77682
  Prefactor  = 14.4931
  norm       = 0.0001
  norm       = 0.000100009
  norm       = 15.2583
  Prefactor  = 0.000100001
  norm       = 29.413
  Prefactor  = 0.842859
  norm       = 1.85986
  Prefactor  = 0.0001
  Prefactor  = 22.1274
  norm       = 0.0001
  norm       = 58.2286
  norm       = 10.109
  norm       = 0.0001
  Prefactor  = 0.583752
  Prefactor  = 18.1577
  Normalizat = 1.43102
  Prefactor  = 0.726891
 **********
 **   18 **HESSE 
 **********

 FCN=   11197.62     FROM HESSE     STATUS=OK           352 CALLS     2754 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          44.400        14.533        .60168E-04   -1.4374    
   2  norm          .10000E-03    2.5204        .16400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7373        6.5514        .18486E-03   -1.5273    
   4  Prefactor     1.7768        6.9606        .31354E-03   -1.5441    
   5  Prefactor     14.493        16.962        .10517E-03   -1.4946    
   6  norm          .10000E-03    .62058        .12916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10001E-03    4.5967        .22650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.258        6.7085        .10253E-03   -1.4927    
   9  Prefactor     .10000E-03    21.753        .40437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          29.413        25.588        .73873E-04   -1.4623    
  11  Prefactor     .84286        7.3997        .50373E-03   -1.5524    
  12  norm          1.8599        1.8667        .14052E-03   -1.5435    
  13  Prefactor     .10000E-03    1.0113        .10359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.127        27.331        .85144E-04   -1.4767    
  15  norm          .10000E-03    5.6667        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          58.229        5.1249        .52574E-04   -1.4180    
  17  norm          10.109        10.926        .12602E-03   -1.5072    
  18  norm          .10000E-03    3.5273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .58375        43.826        .53009E-02   -1.5555    
  20  Prefactor     18.158        17.921        .93989E-04   -1.4855    
  21  Normalizat    1.4310        .21812        .31368E-03   -.79736    
  22  Prefactor     .72689        .10947        .21989E-03   -1.0248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95376e-09
Minuit parameter uncertainties:
  1  14.5337
  2  2.29072e-06
  3  6.55241
  4  6.96378
  5  16.9672
  6  6.60638e-06
  7  0.000398765
  8  6.70882
  9  0.000356466
  10  25.5971
  11  4.9953
  12  1.8668
  13  1.73553e-06
  14  27.3461
  15  1.30631e-05
  16  5.1249
  17  10.9282
  18  1.09656e-05
  19  10.1229
  20  17.9266
  21  0.218263
  22  0.109507
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.736e-06  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:  7.269e-01  1.095e-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:  1.431e+00  2.183e-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: 4.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381/likelihoodResults_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.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) = 11197.6221523
delta logL = -0.00465641397386

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11197.6174957
delta logL = 1.92008883459e-07

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     '    2.4844       1.0000          .0000       10.000    
     3 'Normalizat'    1.4310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72689       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=   11197.62     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      249 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8774        .10400E-01** at limit **
   2  Index         2.1344        5.8875        .50000       -.62164E-07
   3  Normalizat    1.4310        .11049E-01    .31368E-03   -.25028E-03
   4  Prefactor     .72689        .57663E-02    .21989E-03   -.33130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13445
  Normalizat = 1.43102
  Prefactor  = 0.726891
 **********
 **   18 **HESSE 
 **********

 FCN=   11197.62     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.367        .10778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1344        8.1207        .50000       -.61030    
   3  Normalizat    1.4310        .41725E-01    .62737E-04   -.79736    
   4  Prefactor     .72689        .21776E-01    .87957E-05   -1.0248    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05376e-09
Minuit parameter uncertainties:
  1  5.18775e-05
  2  560.845
  3  0.0417264
  4  0.0217759
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381': 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) = 11197.6174923
delta logL = 3.64949119103e-06

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.188e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.134e+00  5.608e+02  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:  7.269e-01  2.178e-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:  1.431e+00  4.173e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/381/cmap_HighResolution_618019201_618278401_4FGL_J1349.5-1131_daily_bin1461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='4.87e-08', time_completed='2021-09-08 14:51:18.160454', job_id='381', GAL2='0.73', fit_tolerance='1e-08', EG2='1.43', EG='1.43', time_epoch_completed='1631137878.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='3.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1461' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:51:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 381: <4FGL_J1349.5-1131_daily_bin1461> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1461> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:35:18 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:35:24 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:24 2021
Terminated at Wed Sep  8 14:51:19 2021
Results reported at Wed Sep  8 14:51:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1461 207.387 -11.5188 618019201 618278401 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 :                                   882.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            961 sec.

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

