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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1484
RA = 207.387, Dec = -11.5188
tmin = 623980801, tmax = 624240001
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='414', job_status='RUN', time_executed='2021-09-08 14:36:00.823963', time_epoch_executed='1631136960.82' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414/ft1_4FGL_J1349.5-1131_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414/ft2_4FGL_J1349.5-1131_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414/ft1_4FGL_J1349.5-1131_daily_bin1484.fits outfile=/scratch/kocevski/414/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1484.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=623980801.0 tmax=624240001.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.04
user 3.77
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414/ft1_filtered_4FGL_J1349.5-1131_daily_bin1484.fits" evtable="EVENTS" scfile=/scratch/kocevski/414/ft2_4FGL_J1349.5-1131_daily_bin1484.fits sctable="SC_DATA" outfile=/scratch/kocevski/414/ltcube_623980801_624240001_4FGL_J1349.5-1131_daily_bin1484.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/414/ft2_4FGL_J1349.5-1131_daily_bin1484.fits
.....................!
real 15.84
user 15.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414/ft1_filtered_4FGL_J1349.5-1131_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/414/ft2_4FGL_J1349.5-1131_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/414/ltcube_623980801_624240001_4FGL_J1349.5-1131_daily_bin1484.fits outfile=/scratch/kocevski/414/expmap_623980801_624240001_4FGL_J1349.5-1131_daily_bin1484.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/414/ltcube_623980801_624240001_4FGL_J1349.5-1131_daily_bin1484.fits
.....................!
real 191.83
user 187.04
sys 4.33

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/414/ft1_filtered_4FGL_J1349.5-1131_daily_bin1484.fits scfile=/scratch/kocevski/414/ft2_4FGL_J1349.5-1131_daily_bin1484.fits outfile=/scratch/kocevski/414/cmap_623980801_624240001_4FGL_J1349.5-1131_daily_bin1484.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414/ft1_filtered_4FGL_J1349.5-1131_daily_bin1484.fits scfile=/scratch/kocevski/414/ft2_4FGL_J1349.5-1131_daily_bin1484.fits outfile=/scratch/kocevski/414/cmap_HighResolution_623980801_624240001_4FGL_J1349.5-1131_daily_bin1484.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414/ft1_filtered_4FGL_J1349.5-1131_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/414/ft2_4FGL_J1349.5-1131_daily_bin1484.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414/Model_4FGL_J1349.5-1131_daily_bin1484.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/414/ft1_filtered_4FGL_J1349.5-1131_daily_bin1484.fits.....................!
real 64.80
user 63.34
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.599       1.0000         .10000E-03   10000.    
     2 'norm      '    34.575       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.2502       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.765       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9244       1.0000         .10000E-03   10000.    
     6 'norm      '    .78938E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .11799E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.091       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.885       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.390       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6437       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    25.444       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3659       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4353       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97737       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1976       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=   8115.739     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2358 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.598        15.306        .84820E-06    .43793E-04
   2  norm          34.573        21.882       -.11398E-05    .38015E-04
   3  Prefactor     9.2538        13.289       -.65595E-05    .24390E-04
   4  Prefactor     12.771        13.803       -.26598E-05    .13387E-03
   5  Prefactor     4.9504        19.284        .76604E-05    .17643E-03
   6  norm          .78839E-01    .69677       -.26803E-06    .10848E-03
   7  norm          .10003E-03    2.7115       -.63390E-06** at limit **
   8  norm          12.103        8.8509       -.17915E-05    .37155E-03
   9  Prefactor     10.885        12.319       -.83019E-06   -.27068E-04
  10  norm          .10000E-03    11.280        .86150E-06** at limit **
  11  Prefactor     14.390        12.664       -.20250E-06   -.27727E-04
  12  norm          .10000E-03    1.3627       -.33444E-07** at limit **
  13  Prefactor     4.6448        4.2379       -.25596E-06   -.21479E-03
  14  Prefactor     .10000E-03    9.3765        .30476E-06** at limit **
  15  norm          .10000E-03    4.2484        .49187E-07** at limit **
  16  norm          25.444        4.8889       -.26655E-06    .95105E-04
  17  norm          6.3647        15.916        .39525E-06   -.46879E-04
  18  norm          3.4352        4.7587       -.90692E-06   -.32119E-03
  19  Prefactor     .10000E-03    7.9950       -.15987E-05** at limit **
  20  Prefactor     .10000E-03    8.7803        .37397E-05** at limit **
  21  Normalizat    .97706        .26834        .38477E-05    .11360E-03
  22  Prefactor     1.1978        .13215       -.51927E-07    .33288E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.598
  norm       = 34.5727
  Prefactor  = 9.25375
  Prefactor  = 12.7714
  Prefactor  = 4.95042
  norm       = 0.0788391
  norm       = 0.000100029
  norm       = 12.103
  Prefactor  = 10.8852
  norm       = 0.0001
  Prefactor  = 14.3899
  norm       = 0.0001
  Prefactor  = 4.64484
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.4444
  norm       = 6.36468
  norm       = 3.43521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.977061
  Prefactor  = 1.19776
 **********
 **   18 **HESSE 
 **********

 FCN=   8115.739     FROM HESSE     STATUS=OK           352 CALLS     2710 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.598        15.322        .92870E-04   -1.4845    
   2  norm          34.573        21.875        .68152E-04   -1.4531    
   3  Prefactor     9.2538        13.320        .13177E-03   -1.5099    
   4  Prefactor     12.771        13.794        .11211E-03   -1.4993    
   5  Prefactor     4.9504        17.563        .18125E-03   -1.5263    
   6  norm          .78839E-01    6.8281        .14001E-02   -1.5652    
   7  norm          .10003E-03    10.252        .23304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.103        8.4284        .11520E-03   -1.5012    
   9  Prefactor     10.885        12.296        .12143E-03   -1.5048    
  10  norm          .10000E-03    11.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.390        12.643        .10559E-03   -1.4949    
  12  norm          .10000E-03    1.3681        .10269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6448        4.2355        .17011E-03   -1.5277    
  14  Prefactor     .10000E-03    9.3778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2901        .18111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          25.444        4.8920        .79416E-04   -1.4699    
  17  norm          6.3647        15.912        .15908E-03   -1.5203    
  18  norm          3.4352        4.7777        .21823E-03   -1.5337    
  19  Prefactor     .10000E-03    8.0086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.7661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97706        .30151        .41407E-03   -.93803    
  22  Prefactor     1.1978        .14927        .20199E-03   -.86400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15289e-09
Minuit parameter uncertainties:
  1  15.3252
  2  21.8803
  3  13.324
  4  13.7972
  5  17.5812
  6  1.46665
  7  0.00109032
  8  8.42926
  9  12.2992
  10  3.24087e-06
  11  12.645
  12  9.34122e-07
  13  4.23575
  14  1.95178e-06
  15  1.17158e-06
  16  4.89205
  17  15.9229
  18  4.77823
  19  4.77919e-06
  20  6.65154e-06
  21  0.302038
  22  0.149327
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  4.645e+00  4.236e+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.198e+00  1.493e-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.771e-01  3.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 207.387 -11.519
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 4.52e-08 +/- 4.12e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/414/likelihoodResults_623980801_624240001_4FGL_J1349.5-1131_daily_bin1484.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) = 8115.6230816
delta logL = 0.116316411972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8115.61953291
delta logL = 0.119865107944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7354       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1766       1.0000          .0000       10.000    
     3 'Normalizat'    .98716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1936       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=   8115.620     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7355        5.2200        .16772E-03   -.35770E-03
   2  Index         2.1768        .60942        .98189E-02   -.50659E-04
   3  Normalizat    .98712        .27045        .41217E-03    .19308E-04
   4  Prefactor     1.1937        .14515        .20226E-03    .47271E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.7355
  Index      = 2.17683
  Normalizat = 0.987124
  Prefactor  = 1.19365
 **********
 **   18 **HESSE 
 **********

 FCN=   8115.620     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7355        5.1721        .67086E-05   -1.5229    
   2  Index         2.1768        .60392        .39276E-03   -.59999    
   3  Normalizat    .98712        .27059        .16487E-04   -.93463    
   4  Prefactor     1.1937        .14523        .40452E-04   -.86527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0123e-10
Minuit parameter uncertainties:
  1  5.17252
  2  0.606093
  3  0.270962
  4  0.145274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414': 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) = 8115.61953282
delta logL = 0.119865192123

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  5.735e+00  5.173e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.177e+00  6.061e-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.194e+00  1.453e-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.871e-01  2.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 2.18 +/- 0.61
Photon Flux (Free Index): 3.76e-08 +/- 3.83e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.94e-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/414/cmap_HighResolution_623980801_624240001_4FGL_J1349.5-1131_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='4.52e-08', energy_flux2='1.76e-05', photon_flux_error='4.12e-08', dlogl='1.20e-01', energy_flux='1.32e-05', photon_flux2='3.76e-08', job_status='DONE', time_completed='2021-09-08 14:48:13.466577', photon_index_error2='0.61', photon_index2='2.18', ts='2.03', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.94e-05', EG='0.98', time_epoch_completed='1631137693.47', return_code='0', job_id='414', GAL2='1.19', EG2='0.99', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='3.83e-08', ts2='2.26', photon_index='2.49' WHERE bin_id='1484' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:48:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 414: <4FGL_J1349.5-1131_daily_bin1484> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1484> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:35:21 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:35:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 14:35:28 2021
Terminated at Wed Sep  8 14:48:14 2021
Results reported at Wed Sep  8 14:48:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1484 207.387 -11.5188 623980801 624240001 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 :                                   693.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            773 sec.

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

