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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1279
RA = 207.387, Dec = -11.5188
tmin = 570844801, tmax = 571104001
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='998987', job_status='RUN', time_executed='2021-09-08 14:33:42.253257', time_epoch_executed='1631136822.25' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998987

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998987/ft1_4FGL_J1349.5-1131_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998987/ft2_4FGL_J1349.5-1131_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998987/ft1_4FGL_J1349.5-1131_daily_bin1279.fits outfile=/scratch/kocevski/998987/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1279.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=570844801.0 tmax=571104001.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.05
user 2.80
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998987/ft1_filtered_4FGL_J1349.5-1131_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/998987/ft2_4FGL_J1349.5-1131_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/998987/ltcube_570844801_571104001_4FGL_J1349.5-1131_daily_bin1279.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/998987/ft2_4FGL_J1349.5-1131_daily_bin1279.fits
.....................!
real 17.22
user 16.74
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998987/ft1_filtered_4FGL_J1349.5-1131_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/998987/ft2_4FGL_J1349.5-1131_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/998987/ltcube_570844801_571104001_4FGL_J1349.5-1131_daily_bin1279.fits outfile=/scratch/kocevski/998987/expmap_570844801_571104001_4FGL_J1349.5-1131_daily_bin1279.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/998987/ltcube_570844801_571104001_4FGL_J1349.5-1131_daily_bin1279.fits
.....................!
real 193.14
user 187.80
sys 4.46

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1349.5-1131 @ 207.387 -11.5188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/998987/ft1_filtered_4FGL_J1349.5-1131_daily_bin1279.fits scfile=/scratch/kocevski/998987/ft2_4FGL_J1349.5-1131_daily_bin1279.fits outfile=/scratch/kocevski/998987/cmap_570844801_571104001_4FGL_J1349.5-1131_daily_bin1279.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.58
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998987/ft1_filtered_4FGL_J1349.5-1131_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/998987/ft2_4FGL_J1349.5-1131_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998987/Model_4FGL_J1349.5-1131_daily_bin1279.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/998987/ft1_filtered_4FGL_J1349.5-1131_daily_bin1279.fits.....................!
real 59.56
user 57.47
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12270E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5250       1.0000         .10000E-03   10000.    
     7 'norm      '    13.152       1.0000         .10000E-03   10000.    
     8 'norm      '    .57601E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9682       1.0000         .10000E-03   10000.    
    10 'norm      '    .10314E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.246       1.0000         .10000E-03   10000.    
    12 'norm      '    5.4630       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0781       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36570E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10376E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3544       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2721       1.0000         .10000E-03   10000.    
    18 'norm      '    .41922       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.416       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0365       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0214       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=   7431.433     FROM MIGRAD    STATUS=CONVERGED    503 CALLS     2504 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.8980       -.71748E-06** at limit **
   2  norm          .10000E-03    7.4519        .94273E-07** at limit **
   3  Prefactor     .10000E-03    3.8127        .64484E-07** at limit **
   4  Prefactor     .10000E-03    4.1577        .12094E-06** at limit **
   5  Prefactor     .10000E-03    70.579        .32241E-05** at limit **
   6  norm          1.5245        1.5305       -.34120E-07    .54575E-03
   7  norm          13.152        4.8039       -.47831E-06    .28809E-03
   8  norm          .10067E-03    7.4842       -.11057E-05** at limit **
   9  Prefactor     2.9617        25.758       -.20313E-05   -.24618E-04
  10  norm          .10000E-03    22.603        .56137E-06** at limit **
  11  Prefactor     13.295        15.179        .12460E-05    .64839E-04
  12  norm          5.4647        4.5631        .75209E-06   -.26393E-05
  13  Prefactor     4.0753        4.9894       -.49960E-06    .11974E-03
  14  Prefactor     .10004E-03    21.935        .46558E-05** at limit **
  15  norm          .10000E-03    9.8662        .14341E-05** at limit **
  16  norm          3.3543        2.4393        .65797E-07   -.97122E-04
  17  norm          6.2715        6.2547        .45645E-07   -.83739E-04
  18  norm          .39922        18.917        .64835E-05    .12131E-03
  19  Prefactor     10.412        17.995       -.16348E-06   -.26171E-04
  20  Prefactor     .10000E-03    8.2697        .16433E-06** at limit **
  21  Normalizat    1.0367        .22424       -.45951E-06   -.51813E-04
  22  Prefactor     1.0214        .11608       -.35819E-06   -.11369E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52452
  norm       = 13.152
  norm       = 0.000100667
  Prefactor  = 2.96171
  norm       = 0.0001
  Prefactor  = 13.2947
  norm       = 5.46471
  Prefactor  = 4.0753
  Prefactor  = 0.000100039
  norm       = 0.0001
  norm       = 3.35432
  norm       = 6.27149
  norm       = 0.399218
  Prefactor  = 10.4119
  Prefactor  = 0.0001
  Normalizat = 1.03673
  Prefactor  = 1.02139
 **********
 **   18 **HESSE 
 **********

 FCN=   7431.433     FROM HESSE     STATUS=OK           356 CALLS     2860 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.8917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.5157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.8206        .16440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1837        .17167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    75.266        .41244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5245        1.5161        .10099E-03   -1.5461    
   7  norm          13.152        5.2246        .10774E-03   -1.4982    
   8  norm          .10067E-03    8.5536        .56424E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9617        24.130        .23568E-03   -1.5364    
  10  norm          .10000E-03    22.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.295        14.815        .11005E-03   -1.4979    
  12  norm          5.4647        4.5589        .16129E-03   -1.5240    
  13  Prefactor     4.0753        5.0071        .19965E-03   -1.5304    
  14  Prefactor     .10004E-03    96.801        .62701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.222        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3543        2.4268        .10813E-03   -1.5342    
  17  norm          6.2715        6.2594        .16028E-03   -1.5207    
  18  norm          .39922        20.512        .36498E-02   -1.5582    
  19  Prefactor     10.412        17.939        .12415E-03   -1.5063    
  20  Prefactor     .10000E-03    8.2786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0367        .26031        .34560E-03   -.91810    
  22  Prefactor     1.0214        .13563        .18575E-03   -.92020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19617e-09
Minuit parameter uncertainties:
  1  3.70575e-05
  2  5.09441e-06
  3  3.69262e-06
  4  7.11616e-06
  5  0.000136452
  6  1.51609
  7  5.22475
  8  0.00477697
  9  16.9165
  10  1.48933e-05
  11  14.8192
  12  4.55918
  13  5.00765
  14  0.00390929
  15  2.12189e-05
  16  2.42687
  17  6.26004
  18  5.72454
  19  17.9481
  20  7.74738e-07
  21  0.260634
  22  0.135672
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  4.075e+00  5.008e+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.021e+00  1.357e-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.037e+00  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/998987/likelihoodResults_570844801_571104001_4FGL_J1349.5-1131_daily_bin1279.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) = 7431.2284335
delta logL = 0.204490463227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7431.2201315
delta logL = 0.212792462259

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7192       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0535       1.0000          .0000       10.000    
     3 'Normalizat'    1.0135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0291       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=   7431.220     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7146        67.382        .61744E-02    .66424E-03
   2  Index         3.0545        6.5086        .16714        .11549E-03
   3  Normalizat    1.0136        .68463E-01    .78858E-01    .81288E-05
   4  Prefactor     1.0291        .36380E-01    .41331E-01   -.13703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.71457
  Index      = 3.05446
  Normalizat = 1.01356
  Prefactor  = 1.02908
 **********
 **   18 **HESSE 
 **********

 FCN=   7431.220     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7146        5.0992        .13382E-03   -1.5378    
   2  Index         3.0545        1.1339        .85351E-02   -.39966    
   3  Normalizat    1.0136        .25327        .34903E-03   -.92578    
   4  Prefactor     1.0291        .13392        .18511E-03   -.91766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3608e-08
Minuit parameter uncertainties:
  1  5.10001
  2  1.14566
  3  0.253567
  4  0.133962
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998987': 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) = 7431.22013086
delta logL = 0.212793106773

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.715e+00  5.100e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.054e+00  1.146e+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:  1.029e+00  1.340e-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.014e+00  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 3.05 +/- 1.15
Photon Flux (Free Index): 5.88e-08 +/- 5.94e-08
Energy Flux (Free Index): 1.14e-05 +/- 1.23e-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/998987/cmap_HighResolution_570844801_571104001_4FGL_J1349.5-1131_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', energy_flux2='1.14e-05', dlogl='2.13e-01', photon_flux2='5.88e-08', job_status='DONE', time_completed='2021-09-08 14:46:07.012935', photon_index_error2='1.15', photon_index2='3.05', ts='0.83', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.23e-05', EG='1.04', time_epoch_completed='1631137567.01', return_code='0', job_id='998987', GAL2='1.03', EG2='1.01', return_code2='0', photon_flux_error2='5.94e-08', ts2='1.28', photon_index='2.49' WHERE bin_id='1279' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:46:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 998987: <4FGL_J1349.5-1131_daily_bin1279> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1279> 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) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:30:47 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:47 2021
Terminated at Wed Sep  8 14:46:07 2021
Results reported at Wed Sep  8 14:46:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1279 207.387 -11.5188 570844801 571104001 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 :                                   672.09 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             259.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            940 sec.

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

