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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1275
RA = 207.387, Dec = -11.5188
tmin = 569808001, tmax = 570067201
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='998981', job_status='RUN', time_executed='2021-09-08 14:31:49.997535', time_epoch_executed='1631136710.0' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998981

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998981/ft1_4FGL_J1349.5-1131_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998981/ft2_4FGL_J1349.5-1131_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998981/ft1_4FGL_J1349.5-1131_daily_bin1275.fits outfile=/scratch/kocevski/998981/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1275.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=569808001.0 tmax=570067201.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.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998981/ft1_filtered_4FGL_J1349.5-1131_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/998981/ft2_4FGL_J1349.5-1131_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/998981/ltcube_569808001_570067201_4FGL_J1349.5-1131_daily_bin1275.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/998981/ft2_4FGL_J1349.5-1131_daily_bin1275.fits
.....................!
real 17.20
user 16.76
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998981/ft1_filtered_4FGL_J1349.5-1131_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/998981/ft2_4FGL_J1349.5-1131_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/998981/ltcube_569808001_570067201_4FGL_J1349.5-1131_daily_bin1275.fits outfile=/scratch/kocevski/998981/expmap_569808001_570067201_4FGL_J1349.5-1131_daily_bin1275.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/998981/ltcube_569808001_570067201_4FGL_J1349.5-1131_daily_bin1275.fits
.....................!
real 191.56
user 185.75
sys 5.09

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/998981/ft1_filtered_4FGL_J1349.5-1131_daily_bin1275.fits scfile=/scratch/kocevski/998981/ft2_4FGL_J1349.5-1131_daily_bin1275.fits outfile=/scratch/kocevski/998981/cmap_569808001_570067201_4FGL_J1349.5-1131_daily_bin1275.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998981/ft1_filtered_4FGL_J1349.5-1131_daily_bin1275.fits scfile=/scratch/kocevski/998981/ft2_4FGL_J1349.5-1131_daily_bin1275.fits outfile=/scratch/kocevski/998981/cmap_HighResolution_569808001_570067201_4FGL_J1349.5-1131_daily_bin1275.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998981/ft1_filtered_4FGL_J1349.5-1131_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/998981/ft2_4FGL_J1349.5-1131_daily_bin1275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998981/Model_4FGL_J1349.5-1131_daily_bin1275.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/998981/ft1_filtered_4FGL_J1349.5-1131_daily_bin1275.fits.....................!
real 58.29
user 56.89
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.842       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .93374       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.640       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4751       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.5999       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.017       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.934       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.0896       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    48.288       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0855       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98272       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=   7043.078     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2392 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.844        15.751        .34602E-06    .43352E-04
   2  norm          .10000E-03    4.0285        .56749E-08** at limit **
   3  Prefactor     2.2327        7.8313       -.31288E-06   -.93001E-04
   4  Prefactor     .93111        5.3940       -.63116E-07   -.80088E-04
   5  Prefactor     .10000E-03    7.7519       -.10491E-05** at limit **
   6  norm          .10000E-03    .80952       -.32796E-07** at limit **
   7  norm          15.642        4.8816       -.86565E-07    .86285E-04
   8  norm          2.4752        2.4830        .73934E-06   -.23737E-02
   9  Prefactor     .10000E-03    10.378        .35689E-07** at limit **
  10  norm          5.6003        25.863        .45273E-06    .42121E-06
  11  Prefactor     .10000E-03    5.7892       -.78357E-07** at limit **
  12  norm          13.997        6.6487        .83019E-07   -.40348E-03
  13  Prefactor     11.017        5.6998        .22341E-07   -.46816E-03
  14  Prefactor     15.930        29.392       -.47480E-05   -.70700E-04
  15  norm          .10000E-03    2.0249       -.12364E-07** at limit **
  16  norm          2.0896        2.1181       -.23321E-07   -.79221E-04
  17  norm          .10000E-03    7.4120        .10359E-05** at limit **
  18  norm          .10000E-03    2.3373       -.11228E-08** at limit **
  19  Prefactor     .10000E-03    33.042        .10981E-06** at limit **
  20  Prefactor     48.279        31.800       -.58788E-05   -.22854E-03
  21  Normalizat    1.0852        .23098       -.32925E-06    .62023E-04
  22  Prefactor     .98287        .12130        .73768E-06   -.40609E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.8438
  norm       = 0.0001
  Prefactor  = 2.23275
  Prefactor  = 0.931113
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.6416
  norm       = 2.47524
  Prefactor  = 0.0001
  norm       = 5.6003
  Prefactor  = 0.0001
  norm       = 13.9975
  Prefactor  = 11.0173
  Prefactor  = 15.9303
  norm       = 0.0001
  norm       = 2.08962
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.2795
  Normalizat = 1.08518
  Prefactor  = 0.982874
 **********
 **   18 **HESSE 
 **********

 FCN=   7043.078     FROM HESSE     STATUS=OK           348 CALLS     2740 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.844        15.744        .82036E-04   -1.4731    
   2  norm          .10000E-03    4.0329        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2327        7.8125        .27537E-03   -1.5409    
   4  Prefactor     .93111        26.479        .35553E-02   -1.5515    
   5  Prefactor     .10000E-03    7.7640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.0564        .14544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.642        4.9546        .98248E-04   -1.4917    
   8  norm          2.4752        4.4932        .11431E-02   -1.5393    
   9  Prefactor     .10000E-03    10.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6003        25.860        .16976E-03   -1.5235    
  11  Prefactor     .10000E-03    5.8088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.997        6.6791        .53529E-03   -1.4960    
  13  Prefactor     11.017        5.7170        .60352E-03   -1.5044    
  14  Prefactor     15.930        29.430        .10034E-03   -1.4909    
  15  norm          .10000E-03    2.0277        .11660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.0896        2.1097        .11803E-03   -1.5419    
  17  norm          .10000E-03    7.4823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.3438        .12529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     48.279        32.154        .57705E-04   -1.4317    
  21  Normalizat    1.0852        .26983        .34332E-03   -.90229    
  22  Prefactor     .98287        .14254        .19458E-03   -.93303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16124e-08
Minuit parameter uncertainties:
  1  15.7471
  2  9.84203e-07
  3  7.81604
  4  9.93511
  5  2.43653e-05
  6  1.01728e-05
  7  4.95475
  8  4.49384
  9  8.2719e-06
  10  24.0856
  11  5.30381e-06
  12  6.67944
  13  5.71733
  14  29.4566
  15  3.151e-07
  16  2.10982
  17  1.82343e-05
  18  8.80317e-07
  19  1.01722e-05
  20  32.1654
  21  0.270168
  22  0.142592
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.102e+01  5.717e+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:  9.829e-01  1.426e-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.085e+00  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.51
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 5.56e-08
Energy Flux (Fixed Index): 3.13e-05 +/- 1.62e-05

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) = 7042.99404391
delta logL = 0.0838345508973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7042.98680036
delta logL = 0.0910781051552

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.824       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2769       1.0000          .0000       10.000    
     3 'Normalizat'    1.1068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97625       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.

 FCN=   7042.987     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      270 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.814        160.93        .29125E-02    .48785E-04
   2  Index         2.2760        5.9337        .16328        .39338E-04
   3  Normalizat    1.1072        .28762        .76911E-01    .19553E-04
   4  Prefactor     .97617        .95095E-01    .45970E-01    .35667E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8145
  Index      = 2.27603
  Normalizat = 1.10717
  Prefactor  = 0.976171
 **********
 **   18 **HESSE 
 **********

 FCN=   7042.987     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.814        6.4736        .11650E-03   -1.5020    
   2  Index         2.2760        .50820        .80728E-02   -.57614    
   3  Normalizat    1.1072        .26063        .34042E-03   -.89522    
   4  Prefactor     .97617        .13938        .19520E-03   -.93528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73392e-10
Minuit parameter uncertainties:
  1  6.47397
  2  0.509452
  3  0.260932
  4  0.139431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998981': 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) = 7042.98679666
delta logL = 0.0910818007151

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.181e+01  6.474e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.276e+00  5.095e-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:  9.762e-01  1.394e-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.107e+00  2.609e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.67
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 2.28 +/- 0.51
Photon Flux (Free Index): 8.70e-08 +/- 6.59e-08
Energy Flux (Free Index): 3.42e-05 +/- 2.12e-05

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/998981/cmap_HighResolution_569808001_570067201_4FGL_J1349.5-1131_daily_bin1275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='3.42e-05', photon_flux_error='5.56e-08', dlogl='9.11e-02', energy_flux='3.13e-05', photon_flux2='8.70e-08', job_status='DONE', time_completed='2021-09-08 14:41:57.549227', photon_index_error2='0.51', photon_index2='2.28', ts='9.51', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='1.09', time_epoch_completed='1631137317.55', return_code='0', job_id='998981', GAL2='0.98', EG2='1.11', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='6.59e-08', ts2='9.67', photon_index='2.49' WHERE bin_id='1275' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 998981: <4FGL_J1349.5-1131_daily_bin1275> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1275> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 14:30:27 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:30:44 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:30:44 2021
Terminated at Wed Sep  8 14:41:58 2021
Results reported at Wed Sep  8 14:41:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1275 207.387 -11.5188 569808001 570067201 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 :                                   592.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   673 sec.
    Turnaround time :                            691 sec.

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

