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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1084
RA = 207.387, Dec = -11.5188
tmin = 520300801, tmax = 520560001
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='997971', job_status='RUN', time_executed='2021-09-08 14:28:22.276208', time_epoch_executed='1631136502.28' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997971

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997971/ft1_4FGL_J1349.5-1131_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997971/ft2_4FGL_J1349.5-1131_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997971/ft1_4FGL_J1349.5-1131_daily_bin1084.fits outfile=/scratch/kocevski/997971/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1084.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.11
user 5.84
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997971/ft2_4FGL_J1349.5-1131_daily_bin1084.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/997971/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1084.fits evtable="EVENTS" outfile="/scratch/kocevski/997971/ft1_filtered_4FGL_J1349.5-1131_daily_bin1084.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997971/ft1_filtered_4FGL_J1349.5-1131_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/997971/ft2_4FGL_J1349.5-1131_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/997971/ltcube_520300801_520560001_4FGL_J1349.5-1131_daily_bin1084.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/997971/ft2_4FGL_J1349.5-1131_daily_bin1084.fits
.....................!
real 17.78
user 17.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997971/ft1_filtered_4FGL_J1349.5-1131_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/997971/ft2_4FGL_J1349.5-1131_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/997971/ltcube_520300801_520560001_4FGL_J1349.5-1131_daily_bin1084.fits outfile=/scratch/kocevski/997971/expmap_520300801_520560001_4FGL_J1349.5-1131_daily_bin1084.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/997971/ltcube_520300801_520560001_4FGL_J1349.5-1131_daily_bin1084.fits
.....................!
real 190.87
user 185.82
sys 4.62

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/997971/ft1_filtered_4FGL_J1349.5-1131_daily_bin1084.fits scfile=/scratch/kocevski/997971/ft2_4FGL_J1349.5-1131_daily_bin1084.fits outfile=/scratch/kocevski/997971/cmap_520300801_520560001_4FGL_J1349.5-1131_daily_bin1084.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997971/ft1_filtered_4FGL_J1349.5-1131_daily_bin1084.fits scfile=/scratch/kocevski/997971/ft2_4FGL_J1349.5-1131_daily_bin1084.fits outfile=/scratch/kocevski/997971/cmap_HighResolution_520300801_520560001_4FGL_J1349.5-1131_daily_bin1084.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997971/ft1_filtered_4FGL_J1349.5-1131_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/997971/ft2_4FGL_J1349.5-1131_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997971/Model_4FGL_J1349.5-1131_daily_bin1084.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/997971/ft1_filtered_4FGL_J1349.5-1131_daily_bin1084.fits.....................!
real 49.60
user 48.33
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.694       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.807       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6337       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0632       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.1627       1.0000         .10000E-03   10000.    
     8 'norm      '    9.2450       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2831       1.0000         .10000E-03   10000.    
    10 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7149       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0781       1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.432       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.1992       1.0000         .10000E-03   10000.    
    18 'norm      '    29.232       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9604       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .91704       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0584       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=   5569.420     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2343 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.692        15.151       -.11051E-06   -.37325E-04
   2  norm          .10000E-03    8.3687        .70319E-07** at limit **
   3  Prefactor     20.807        17.744       -.30245E-06   -.52275E-04
   4  Prefactor     1.6342        19.049        .17493E-05   -.48300E-04
   5  Prefactor     8.0874        130.10        .60303E-05    .84317E-04
   6  norm          .10000E-03    .74422       -.45269E-08** at limit **
   7  norm          9.1596        16.835       -.10877E-05   -.20846E-03
   8  norm          9.2462        14.989        .25621E-06   -.11658E-03
   9  Prefactor     3.2803        12.612        .11213E-04   -.45394E-03
  10  norm          .10001E-03    28.381       -.54521E-05** at limit **
  11  Prefactor     .10000E-03    22.221        .60344E-05** at limit **
  12  norm          2.7143        5.8738        .34885E-06   -.87847E-04
  13  Prefactor     4.0786        6.1882        .10914E-07   -.15554E-03
  14  Prefactor     47.435        61.738        .71430E-06    .29340E-04
  15  norm          .10000E-03    3.9582       -.34266E-07** at limit **
  16  norm          .10000E-03    2.1444        .67989E-07** at limit **
  17  norm          5.1978        13.671        .88861E-07   -.20960E-04
  18  norm          29.232        10.413        .24534E-06    .14905E-03
  19  Prefactor     1.9453        65.684       -.84757E-05   -.12820E-03
  20  Prefactor     .10000E-03    17.170       -.22775E-05** at limit **
  21  Normalizat    .91693        .28605       -.15835E-05   -.23016E-04
  22  Prefactor     1.0584        .13934        .49018E-07   -.82388E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.6921
  norm       = 0.0001
  Prefactor  = 20.8067
  Prefactor  = 1.63424
  Prefactor  = 8.08736
  norm       = 0.0001
  norm       = 9.15964
  norm       = 9.24618
  Prefactor  = 3.28029
  norm       = 0.000100007
  Prefactor  = 0.000100003
  norm       = 2.71427
  Prefactor  = 4.07857
  Prefactor  = 47.4346
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.19784
  norm       = 29.2318
  Prefactor  = 1.94525
  Prefactor  = 0.000100001
  Normalizat = 0.916925
  Prefactor  = 1.05843
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.420     FROM HESSE     STATUS=OK           344 CALLS     2687 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.692        15.152        .10449E-03   -1.4941    
   2  norm          .10000E-03    8.3863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.807        17.666        .87807E-04   -1.4795    
   4  Prefactor     1.6342        18.883        .33077E-03   -1.5452    
   5  Prefactor     8.0874        123.32        .14120E-03   -1.5139    
   6  norm          .10000E-03    .75541        .62833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.1596        16.423        .13240E-03   -1.5103    
   8  norm          9.2462        14.932        .13181E-03   -1.5100    
   9  Prefactor     3.2803        13.024        .11173E-02   -1.5346    
  10  norm          .10001E-03    29.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7143        5.8425        .24718E-03   -1.5378    
  13  Prefactor     4.0786        6.1721        .19965E-03   -1.5304    
  14  Prefactor     47.435        61.671        .58221E-04   -1.4329    
  15  norm          .10000E-03    3.9672        .14488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2077        .21312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.1978        13.667        .17630E-03   -1.5252    
  18  norm          29.232        10.400        .74102E-04   -1.4626    
  19  Prefactor     1.9453        68.537        .29627E-03   -1.5429    
  20  Prefactor     .10000E-03    17.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .91693        .32763        .38843E-03   -.95868    
  22  Prefactor     1.0584        .16186        .18542E-03   -.90806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8066e-09
Minuit parameter uncertainties:
  1  15.1558
  2  7.20822e-06
  3  17.6708
  4  11.1144
  5  63.3182
  6  3.4553e-08
  7  16.4315
  8  14.9379
  9  13.0354
  10  0.000909494
  11  0.000486408
  12  5.84374
  13  6.17304
  14  61.7541
  15  4.9067e-06
  16  8.7396e-06
  17  13.6753
  18  10.4004
  19  23.1211
  20  0.000289612
  21  0.328342
  22  0.161935
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  4.079e+00  6.173e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.058e+00  1.619e-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:  9.169e-01  3.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 1.84e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997971/likelihoodResults_520300801_520560001_4FGL_J1349.5-1131_daily_bin1084.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): 0
logL (Free Index) = 5569.40757175
delta logL = 0.01237956159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5569.40593665
delta logL = 0.0140146596323

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7712       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6495       1.0000          .0000       10.000    
     3 'Normalizat'    .91159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0600       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=   5569.406     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      239 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7709        6.3158        .20134E-03    .32677E-03
   2  Index         2.6497        .97693        .10686E-01    .87535E-04
   3  Normalizat    .91158        .31101        .38946E-03   -.10132E-03
   4  Prefactor     1.0601        .15796        .18529E-03   -.20808E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.77093
  Index      = 2.64966
  Normalizat = 0.911578
  Prefactor  = 1.06005
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.406     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7709        6.0892        .80536E-05   -1.5320    
   2  Index         2.6497        .94191        .42745E-03   -.48937    
   3  Normalizat    .91158        .31124        .15578E-04   -.96054    
   4  Prefactor     1.0601        .15803        .37058E-04   -.90754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17726e-10
Minuit parameter uncertainties:
  1  6.09022
  2  0.94921
  3  0.311855
  4  0.158104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997971': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5569.40593664
delta logL = 0.0140146680114

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  3.771e+00  6.090e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.650e+00  9.492e-01  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.060e+00  1.581e-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:  9.116e-01  3.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.59
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/997971/cmap_HighResolution_520300801_520560001_4FGL_J1349.5-1131_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.84e-07', time_completed='2021-09-08 14:41:04.633395', job_id='997971', GAL2='1.06', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1631137264.63', return_code2='0', ts='0.59', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.40e-02', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1084' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:41:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 997971: <4FGL_J1349.5-1131_daily_bin1084> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1084> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:25:22 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:25:42 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:25:42 2021
Terminated at Wed Sep  8 14:41:05 2021
Results reported at Wed Sep  8 14:41:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1084 207.387 -11.5188 520300801 520560001 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 :                                   577.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             236.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            943 sec.

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

