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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1330
RA = 207.387, Dec = -11.5188
tmin = 584064001, tmax = 584323201
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='999063', job_status='RUN', time_executed='2021-09-08 14:33:22.533744', time_epoch_executed='1631136802.53' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999063

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999063/ft1_4FGL_J1349.5-1131_daily_bin1330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999063/ft2_4FGL_J1349.5-1131_daily_bin1330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999063/ft1_4FGL_J1349.5-1131_daily_bin1330.fits outfile=/scratch/kocevski/999063/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1330.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=584064001.0 tmax=584323201.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 4.55
user 4.26
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999063/ft1_filtered_4FGL_J1349.5-1131_daily_bin1330.fits" evtable="EVENTS" scfile=/scratch/kocevski/999063/ft2_4FGL_J1349.5-1131_daily_bin1330.fits sctable="SC_DATA" outfile=/scratch/kocevski/999063/ltcube_584064001_584323201_4FGL_J1349.5-1131_daily_bin1330.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/999063/ft2_4FGL_J1349.5-1131_daily_bin1330.fits
.....................!
real 17.62
user 17.14
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999063/ft1_filtered_4FGL_J1349.5-1131_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/999063/ft2_4FGL_J1349.5-1131_daily_bin1330.fits sctable="SC_DATA" expcube=/scratch/kocevski/999063/ltcube_584064001_584323201_4FGL_J1349.5-1131_daily_bin1330.fits outfile=/scratch/kocevski/999063/expmap_584064001_584323201_4FGL_J1349.5-1131_daily_bin1330.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/999063/ltcube_584064001_584323201_4FGL_J1349.5-1131_daily_bin1330.fits
.....................!
real 192.38
user 186.94
sys 4.46

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/999063/ft1_filtered_4FGL_J1349.5-1131_daily_bin1330.fits scfile=/scratch/kocevski/999063/ft2_4FGL_J1349.5-1131_daily_bin1330.fits outfile=/scratch/kocevski/999063/cmap_584064001_584323201_4FGL_J1349.5-1131_daily_bin1330.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999063/ft1_filtered_4FGL_J1349.5-1131_daily_bin1330.fits scfile=/scratch/kocevski/999063/ft2_4FGL_J1349.5-1131_daily_bin1330.fits outfile=/scratch/kocevski/999063/cmap_HighResolution_584064001_584323201_4FGL_J1349.5-1131_daily_bin1330.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999063/ft1_filtered_4FGL_J1349.5-1131_daily_bin1330.fits evtable="EVENTS" scfile=/scratch/kocevski/999063/ft2_4FGL_J1349.5-1131_daily_bin1330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999063/Model_4FGL_J1349.5-1131_daily_bin1330.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/999063/ft1_filtered_4FGL_J1349.5-1131_daily_bin1330.fits.....................!
real 48.16
user 46.16
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    50.017       1.0000         .10000E-03   10000.    
     2 'norm      '    17.041       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11504E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9547       1.0000         .10000E-03   10000.    
     6 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.456       1.0000         .10000E-03   10000.    
     8 'norm      '    11.201       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    20.238       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8171       1.0000         .10000E-03   10000.    
    12 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .90002       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3897       1.0000         .10000E-03   10000.    
    17 'norm      '    .19052E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    33.274       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.838       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.990       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2591       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .89443       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=   5449.727     FROM MIGRAD    STATUS=CONVERGED    496 CALLS     2389 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          50.031        20.829       -.46973E-05    .38199E-04
   2  norm          17.043        13.217       -.45321E-07    .15893E-04
   3  Prefactor     .10000E-03    10.467        .35619E-06** at limit **
   4  Prefactor     .10000E-03    37.430        .59642E-06** at limit **
   5  Prefactor     7.8220        63.499       -.42217E-04   -.48351E-04
   6  norm          .10000E-03    .69180       -.14457E-06** at limit **
   7  norm          13.474        10.903        .58853E-05    .30880E-03
   8  norm          11.208        12.289       -.91799E-06    .20569E-03
   9  Prefactor     .10000E-03    23.064       -.12801E-06** at limit **
  10  norm          20.252        36.822       -.44934E-05    .34572E-05
  11  Prefactor     3.8210        15.076       -.11789E-05   -.67575E-04
  12  norm          .10000E-03    4.6294       -.19504E-06** at limit **
  13  Prefactor     .10000E-03    1.6367       -.29293E-07** at limit **
  14  Prefactor     .10000E-03    13.716        .14246E-06** at limit **
  15  norm          .90012        4.8893       -.25119E-05   -.10669E-02
  16  norm          5.3889        3.6921       -.33406E-06   -.64708E-04
  17  norm          .10000E-03    61.340       -.46181E-05** at limit **
  18  norm          33.271        13.532        .43787E-07    .61455E-04
  19  Prefactor     19.858        40.540       -.55421E-05    .18380E-04
  20  Prefactor     27.031        31.605       -.23527E-04    .76454E-05
  21  Normalizat    1.2592        .28151        .48962E-05    .12269E-03
  22  Prefactor     .89439        .14238        .17438E-05    .24170E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 50.0306
  norm       = 17.0435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.82196
  norm       = 0.0001
  norm       = 13.4738
  norm       = 11.208
  Prefactor  = 0.0001
  norm       = 20.2518
  Prefactor  = 3.82102
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.900119
  norm       = 5.38894
  norm       = 0.000100001
  norm       = 33.2714
  Prefactor  = 19.8576
  Prefactor  = 27.0306
  Normalizat = 1.25919
  Prefactor  = 0.894388
 **********
 **   18 **HESSE 
 **********

 FCN=   5449.727     FROM HESSE     STATUS=OK           344 CALLS     2733 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          50.031        20.821        .56704E-04   -1.4292    
   2  norm          17.043        13.213        .97023E-04   -1.4882    
   3  Prefactor     .10000E-03    10.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.693        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8220        61.963        .14216E-03   -1.5149    
   6  norm          .10000E-03    1.1937        .11780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.474        10.784        .10919E-03   -1.4974    
   8  norm          11.208        12.254        .11971E-03   -1.5038    
   9  Prefactor     .10000E-03    23.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          20.252        36.840        .89032E-04   -1.4808    
  11  Prefactor     3.8210        15.005        .20659E-03   -1.5317    
  12  norm          .10000E-03    4.7472        .31009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6385        .92200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .90012        4.8897        .32088E-03   -1.5518    
  16  norm          5.3889        3.6881        .11033E-03   -1.5244    
  17  norm          .10000E-03    63.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          33.271        13.520        .69467E-04   -1.4554    
  19  Prefactor     19.858        40.512        .89926E-04   -1.4816    
  20  Prefactor     27.031        31.377        .77112E-04   -1.4668    
  21  Normalizat    1.2592        .32629        .34309E-03   -.84793    
  22  Prefactor     .89439        .16695        .20925E-03   -.96337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71942e-09
Minuit parameter uncertainties:
  1  20.8242
  2  13.2157
  3  7.02559e-05
  4  2.23857e-05
  5  44.0933
  6  1.02626e-05
  7  10.7852
  8  12.2566
  9  2.61995e-05
  10  36.881
  11  15.0199
  12  1.19422e-05
  13  3.19256e-06
  14  9.66618e-07
  15  4.19614
  16  3.68826
  17  0.000386313
  18  13.5216
  19  40.5682
  20  31.3965
  21  0.326822
  22  0.167045
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.193e-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:  8.944e-01  1.670e-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.259e+00  3.268e-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: 8.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999063/likelihoodResults_584064001_584323201_4FGL_J1349.5-1131_daily_bin1330.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) = 5449.72947304
delta logL = -0.00283640540601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5449.72663647
delta logL = 1.63086951943e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4790       1.0000          .0000       10.000    
     3 'Normalizat'    1.2591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89443       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=   5449.727     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      249 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.983        .93085E-02** at limit **
   2  Index         2.0361        6.7146        .50000        .15093E-06
   3  Normalizat    1.2592        .17662E-01    .34309E-03   -.20525E-03
   4  Prefactor     .89439        .93137E-02    .20925E-03   -.32409E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03608
  Normalizat = 1.25919
  Prefactor  = 0.894387
 **********
 **   18 **HESSE 
 **********

 FCN=   5449.727     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    106.38        .99767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0361        8.1659        .50000       -.63451    
   3  Normalizat    1.2592        .55849E-01    .68618E-04   -.84793    
   4  Prefactor     .89439        .29452E-01    .41850E-04   -.96338    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.14277e-10
Minuit parameter uncertainties:
  1  3.2242e-05
  2  594.999
  3  0.0558513
  4  0.0294525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999063': 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) = 5449.72663221
delta logL = 4.42809778178e-06

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.224e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.036e+00  5.950e+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:  8.944e-01  2.945e-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.259e+00  5.585e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/999063/cmap_HighResolution_584064001_584323201_4FGL_J1349.5-1131_daily_bin1330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.55e-08', time_completed='2021-09-08 14:43:52.483077', job_id='999063', GAL2='0.89', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631137432.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1330' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:43:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 999063: <4FGL_J1349.5-1131_daily_bin1330> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1330> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 14:30:33 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:31:06 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:31:06 2021
Terminated at Wed Sep  8 14:43:53 2021
Results reported at Wed Sep  8 14:43:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1330 207.387 -11.5188 584064001 584323201 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 :                                   572.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            800 sec.

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

