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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin520
RA = 207.387, Dec = -11.5188
tmin = 374112001, tmax = 374371201
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='995164', job_status='RUN', time_executed='2021-09-08 14:18:21.872955', time_epoch_executed='1631135901.87' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995164

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995164/ft1_4FGL_J1349.5-1131_daily_bin520.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995164/ft2_4FGL_J1349.5-1131_daily_bin520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995164/ft1_4FGL_J1349.5-1131_daily_bin520.fits outfile=/scratch/kocevski/995164/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin520.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=374112001.0 tmax=374371201.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.48
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995164/ft1_filtered_4FGL_J1349.5-1131_daily_bin520.fits" evtable="EVENTS" scfile=/scratch/kocevski/995164/ft2_4FGL_J1349.5-1131_daily_bin520.fits sctable="SC_DATA" outfile=/scratch/kocevski/995164/ltcube_374112001_374371201_4FGL_J1349.5-1131_daily_bin520.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/995164/ft2_4FGL_J1349.5-1131_daily_bin520.fits
.....................!
real 15.98
user 15.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995164/ft1_filtered_4FGL_J1349.5-1131_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/995164/ft2_4FGL_J1349.5-1131_daily_bin520.fits sctable="SC_DATA" expcube=/scratch/kocevski/995164/ltcube_374112001_374371201_4FGL_J1349.5-1131_daily_bin520.fits outfile=/scratch/kocevski/995164/expmap_374112001_374371201_4FGL_J1349.5-1131_daily_bin520.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/995164/ltcube_374112001_374371201_4FGL_J1349.5-1131_daily_bin520.fits
.....................!
real 193.56
user 187.48
sys 5.35

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/995164/ft1_filtered_4FGL_J1349.5-1131_daily_bin520.fits scfile=/scratch/kocevski/995164/ft2_4FGL_J1349.5-1131_daily_bin520.fits outfile=/scratch/kocevski/995164/cmap_374112001_374371201_4FGL_J1349.5-1131_daily_bin520.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=207.387 yref=-11.5188 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/995164/ft1_filtered_4FGL_J1349.5-1131_daily_bin520.fits scfile=/scratch/kocevski/995164/ft2_4FGL_J1349.5-1131_daily_bin520.fits outfile=/scratch/kocevski/995164/cmap_HighResolution_374112001_374371201_4FGL_J1349.5-1131_daily_bin520.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/995164/ft1_filtered_4FGL_J1349.5-1131_daily_bin520.fits evtable="EVENTS" scfile=/scratch/kocevski/995164/ft2_4FGL_J1349.5-1131_daily_bin520.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995164/Model_4FGL_J1349.5-1131_daily_bin520.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/995164/ft1_filtered_4FGL_J1349.5-1131_daily_bin520.fits.....................!
real 57.55
user 56.19
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8699       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8855       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0382       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.464       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.678       1.0000         .10000E-03   10000.    
     6 'norm      '    .64419       1.0000         .10000E-03   10000.    
     7 'norm      '    7.9298       1.0000         .10000E-03   10000.    
     8 'norm      '    6.2427       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.031       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11572E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .32339E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7705       1.0000         .10000E-03   10000.    
    14 'Prefactor '    67.271       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.479       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.603       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7909       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73803       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=   6878.190     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2362 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8708        8.6381       -.16400E-06   -.25543E-04
   2  norm          5.8857        6.2727       -.12569E-06   -.25094E-04
   3  Prefactor     1.0479        15.818        .44300E-05    .32764E-04
   4  Prefactor     18.467        13.115       -.84050E-06   -.16338E-03
   5  Prefactor     18.659        28.937       -.25910E-05   -.77656E-04
   6  norm          .64619        1.8940        .10472E-05    .54021E-04
   7  norm          7.9303        6.4261        .39186E-06    .30437E-04
   8  norm          6.2457        10.504        .28725E-06    .76541E-04
   9  Prefactor     13.011        18.356        .19798E-05    .26620E-03
  10  norm          .10000E-03    13.855       -.86505E-06** at limit **
  11  Prefactor     .10000E-03    18.228       -.21153E-05** at limit **
  12  norm          .10018E-03    6.2104       -.22941E-05** at limit **
  13  Prefactor     1.7714        4.4013        .69978E-06    .79629E-04
  14  Prefactor     67.211        58.024       -.20372E-05    .12603E-04
  15  norm          .10000E-03    1.8710       -.37786E-07** at limit **
  16  norm          .10000E-03    1.0976        .18938E-06** at limit **
  17  norm          .10000E-03    5.4499        .99403E-07** at limit **
  18  norm          14.481        7.4863       -.75888E-07   -.14709E-04
  19  Prefactor     .10000E-03    11.502        .57565E-06** at limit **
  20  Prefactor     10.587        26.433       -.24013E-05   -.48397E-04
  21  Normalizat    1.7902        .26212       -.80625E-06    .23475E-03
  22  Prefactor     .73828        .12857        .14049E-05    .31742E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.87081
  norm       = 5.8857
  Prefactor  = 1.0479
  Prefactor  = 18.4672
  Prefactor  = 18.6587
  norm       = 0.646189
  norm       = 7.93032
  norm       = 6.24571
  Prefactor  = 13.0109
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100176
  Prefactor  = 1.7714
  Prefactor  = 67.2114
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.4813
  Prefactor  = 0.0001
  Prefactor  = 10.5872
  Normalizat = 1.79018
  Prefactor  = 0.738284
 **********
 **   18 **HESSE 
 **********

 FCN=   6878.190     FROM HESSE     STATUS=OK           348 CALLS     2710 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8708        8.6310        .16576E-03   -1.5223    
   2  norm          5.8857        6.2751        .16553E-03   -1.5223    
   3  Prefactor     1.0479        16.022        .49296E-03   -1.5503    
   4  Prefactor     18.467        13.255        .93208E-04   -1.4848    
   5  Prefactor     18.659        29.145        .92673E-04   -1.4844    
   6  norm          .64619        1.8956        .17637E-03   -1.5547    
   7  norm          7.9303        6.4193        .13371E-03   -1.5145    
   8  norm          6.2457        10.416        .16066E-03   -1.5208    
   9  Prefactor     13.011        18.498        .11096E-03   -1.4986    
  10  norm          .10000E-03    13.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10018E-03    28.751        .35815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7714        4.3659        .26066E-03   -1.5442    
  14  Prefactor     67.211        58.292        .24468E-03   -1.4066    
  15  norm          .10000E-03    1.8739        .11077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.1191        .84747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.4543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.481        7.4878        .10526E-03   -1.4947    
  19  Prefactor     .10000E-03    11.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.587        26.519        .12305E-03   -1.5057    
  21  Normalizat    1.7902        .30606        .30704E-03   -.69920    
  22  Prefactor     .73828        .14898        .22776E-03   -1.0204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15096e-09
Minuit parameter uncertainties:
  1  8.63279
  2  6.27582
  3  8.1971
  4  13.2571
  5  29.1676
  6  1.89576
  7  6.41981
  8  10.4189
  9  18.506
  10  6.4471e-05
  11  0.000137478
  12  0.00449499
  13  4.36664
  14  58.342
  15  2.30636e-06
  16  4.88275e-07
  17  8.71129e-07
  18  7.48826
  19  2.01958e-05
  20  26.5486
  21  0.306391
  22  0.149063
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.771e+00  4.367e+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:  7.383e-01  1.491e-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.790e+00  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/995164/likelihoodResults_374112001_374371201_4FGL_J1349.5-1131_daily_bin520.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) = 6878.11120322
delta logL = 0.0787391016902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6878.10261393
delta logL = 0.0873283904839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4171       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9637       1.0000          .0000       10.000    
     3 'Normalizat'    1.7991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73413       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=   6878.103     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      232 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4199        4.6390        .65822E-02    .56254E-03
   2  Index         1.9657        1.0344        .26002E-01   -.40353E-03
   3  Normalizat    1.7995        .24343        .69270E-01    .55656E-06
   4  Prefactor     .73394        .12356        .42854E-01    .14766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41993
  Index      = 1.96566
  Normalizat = 1.79952
  Prefactor  = 0.733941
 **********
 **   18 **HESSE 
 **********

 FCN=   6878.103     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4199        4.6453        .23898E-03   -1.5397    
   2  Index         1.9657        1.0431        .52004E-02   -.65211    
   3  Normalizat    1.7995        .28322        .30640E-03   -.69676    
   4  Prefactor     .73394        .14379        .22833E-03   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00148e-13
Minuit parameter uncertainties:
  1  4.64602
  2  1.0555
  3  0.283477
  4  0.143864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995164': 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) = 6878.10261085
delta logL = 0.0873314734763

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.420e+00  4.646e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.966e+00  1.056e+00  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.339e-01  1.439e-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.800e+00  2.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-08 14:28:52.203602', job_id='995164', GAL2='0.73', fit_tolerance='1e-08', EG2='1.80', EG='1.79', time_epoch_completed='1631136532.2', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='8.73e-02', ts2='0.38', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='520' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:28:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 995164: <4FGL_J1349.5-1131_daily_bin520> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin520> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 14:15:21 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:15:25 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:15:25 2021
Terminated at Wed Sep  8 14:28:53 2021
Results reported at Wed Sep  8 14:28:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin520 207.387 -11.5188 374112001 374371201 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 :                                   630.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            812 sec.

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

