/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 = 7323
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1349.5-1131_daily_bin330
RA = 207.387, Dec = -11.5188
tmin = 324864001, tmax = 325123201
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='992731', job_status='RUN', time_executed='2021-09-08 14:08:43.955027', time_epoch_executed='1631135323.96' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992731

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992731/ft1_4FGL_J1349.5-1131_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992731/ft2_4FGL_J1349.5-1131_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992731/ft1_4FGL_J1349.5-1131_daily_bin330.fits outfile=/scratch/kocevski/992731/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin330.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=324864001.0 tmax=325123201.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 5.88
user 5.51
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992731/ft1_filtered_4FGL_J1349.5-1131_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/992731/ft2_4FGL_J1349.5-1131_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/992731/ltcube_324864001_325123201_4FGL_J1349.5-1131_daily_bin330.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/992731/ft2_4FGL_J1349.5-1131_daily_bin330.fits
.....................!
real 17.02
user 16.46
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992731/ft1_filtered_4FGL_J1349.5-1131_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/992731/ft2_4FGL_J1349.5-1131_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/992731/ltcube_324864001_325123201_4FGL_J1349.5-1131_daily_bin330.fits outfile=/scratch/kocevski/992731/expmap_324864001_325123201_4FGL_J1349.5-1131_daily_bin330.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/992731/ltcube_324864001_325123201_4FGL_J1349.5-1131_daily_bin330.fits
.....................!
real 198.50
user 190.76
sys 5.29

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/992731/ft1_filtered_4FGL_J1349.5-1131_daily_bin330.fits scfile=/scratch/kocevski/992731/ft2_4FGL_J1349.5-1131_daily_bin330.fits outfile=/scratch/kocevski/992731/cmap_324864001_325123201_4FGL_J1349.5-1131_daily_bin330.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.56
user 0.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992731/ft1_filtered_4FGL_J1349.5-1131_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/992731/ft2_4FGL_J1349.5-1131_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992731/Model_4FGL_J1349.5-1131_daily_bin330.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/992731/ft1_filtered_4FGL_J1349.5-1131_daily_bin330.fits.....................!
real 66.31
user 64.14
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23685       1.0000         .10000E-03   10000.    
     2 'norm      '    6.0991       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.206       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.938       1.0000         .10000E-03   10000.    
     6 'norm      '    .41849       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1421       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8414       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.192       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2099       1.0000         .10000E-03   10000.    
    17 'norm      '    15.787       1.0000         .10000E-03   10000.    
    18 'norm      '    .10055E-03   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'    .76828       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2791       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8625.319     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2378 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23875        4.3827         .0000       -.41948E-03
   2  norm          6.0991        6.6218         .0000        .27718E-03
   3  Prefactor     .10000E-03    4.2425         .0000    ** at limit **
   4  Prefactor     15.205        8.0110         .0000       -.10614E-02
   5  Prefactor     29.944        15.466         .0000        .15806E-03
   6  norm          .41839        .90989         .0000        .23732E-02
   7  norm          .10000E-03    2.2816         .0000    ** at limit **
   8  norm          .10000E-03    3.8269         .0000    ** at limit **
   9  Prefactor     .10000E-03    2.1773         .0000    ** at limit **
  10  norm          .10002E-03    41.214         .0000    ** at limit **
  11  Prefactor     .10000E-03    1.9533         .0000    ** at limit **
  12  norm          1.1413        2.5991         .0000        .11173E-02
  13  Prefactor     1.8413        5.3018         .0000        .32689E-01
  14  Prefactor     .10002E-03    52.261         .0000    ** at limit **
  15  norm          17.192        8.4361         .0000        .88370E-03
  16  norm          2.2104        2.0707         .0000        .33333E-03
  17  norm          15.787        13.961         .0000        .61606E-04
  18  norm          .10000E-03    6.7597         .0000    ** at limit **
  19  Prefactor     .10002E-03    5.0552         .0000    ** at limit **
  20  Prefactor     .10002E-03    5.2270         .0000    ** at limit **
  21  Normalizat    .76829        .22085         .0000        .77170E-04
  22  Prefactor     1.2791        .11735         .0000        .68828E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.238749
  norm       = 6.09913
  Prefactor  = 0.000100001
  Prefactor  = 15.2054
  Prefactor  = 29.9437
  norm       = 0.418391
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100016
  Prefactor  = 0.0001
  norm       = 1.14131
  Prefactor  = 1.84127
  Prefactor  = 0.000100019
  norm       = 17.1921
  norm       = 2.21044
  norm       = 15.7865
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.000100016
  Normalizat = 0.768286
  Prefactor  = 1.2791
 **********
 **   18 **HESSE 
 **********

 FCN=   8625.319     FROM HESSE     STATUS=OK           342 CALLS     2720 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23875        27.682        .37855E-02   -1.5610    
   2  norm          6.0991        6.6198        .16257E-03   -1.5214    
   3  Prefactor     .10000E-03    4.2730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.205        8.0136        .10271E-03   -1.4928    
   5  Prefactor     29.944        15.304        .73225E-04   -1.4613    
   6  norm          .41839        .90223        .12358E-03   -1.5579    
   7  norm          .10000E-03    2.3223        .27122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8697        .17715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1797        .13383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10002E-03    41.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9581        .12675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1413        2.5449        .21876E-03   -1.5494    
  13  Prefactor     1.8413        5.2093        .15228E-02   -1.5437    
  14  Prefactor     .10002E-03    53.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.192        8.3082        .96596E-04   -1.4878    
  16  norm          2.2104        2.0603        .12355E-03   -1.5411    
  17  norm          15.787        13.960        .10080E-03   -1.4913    
  18  norm          .10000E-03    6.9638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    5.0622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    5.2295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .76829        .24144        .39577E-03   -1.0126    
  22  Prefactor     1.2791        .13034        .17748E-03   -.83931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0188e-08
Minuit parameter uncertainties:
  1  5.14298
  2  6.62058
  3  0.000125219
  4  8.01415
  5  15.3058
  6  0.902259
  7  5.91704e-06
  8  3.00785e-05
  9  9.84284e-07
  10  0.00164634
  11  5.43777e-06
  12  2.54514
  13  5.21057
  14  0.00198512
  15  8.30879
  16  2.06038
  17  13.9628
  18  3.02123e-05
  19  0.000642811
  20  0.000582898
  21  0.241777
  22  0.130375
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.841e+00  5.211e+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.279e+00  1.304e-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:  7.683e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992731/likelihoodResults_324864001_325123201_4FGL_J1349.5-1131_daily_bin330.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) = 8624.44194098
delta logL = 0.876837495089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8624.35807112
delta logL = 0.960707358645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14161       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0099       1.0000          .0000       10.000    
     3 'Normalizat'    .68631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3084       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=   8624.358     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      274 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13930        1.5194        .57799E-02    .36660E-02
   2  Index         5.0190        2.7698        .12812        .20870E-03
   3  Normalizat    .68666        .47487E-01    .93990E-01    .47647E-04
   4  Prefactor     1.3082        .26893E-01    .32465E-01   -.55497E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.139296
  Index      = 5.01899
  Normalizat = 0.686662
  Prefactor  = 1.30816
 **********
 **   18 **HESSE 
 **********

 FCN=   8624.358     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      309 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13930        4.0686        .26568E-03   -1.5633    
   2  Index         5.0190        7.3287        .63271E-02    .37990E-02
   3  Normalizat    .68666        .17383        .41643E-03   -1.0442    
   4  Prefactor     1.3082        .96910E-01    .17568E-03   -.83065    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78905e-10
Minuit parameter uncertainties:
  1  1.50521
  2  5.95986
  3  0.173974
  4  0.096923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992731': 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): 102
logL (Free Index) = 8624.35806307
delta logL = 0.960715409761

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.393e-01  1.505e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  5.019e+00  5.960e+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.308e+00  9.692e-02  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:  6.867e-01  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 5.02 +/- 5.96
Photon Flux (Free Index): 7.82e-08 +/- 6.39e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.17e-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/992731/cmap_HighResolution_324864001_325123201_4FGL_J1349.5-1131_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.12e-03', comment='SUCCESS', energy_flux2='1.04e-05', dlogl='9.61e-01', photon_flux2='7.82e-08', job_status='DONE', time_completed='2021-09-08 14:21:18.248592', photon_index_error2='5.96', photon_index2='5.02', ts='0.16', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.17e-05', EG='0.77', time_epoch_completed='1631136078.25', return_code='0', job_id='992731', GAL2='1.31', EG2='0.69', return_code2='102', photon_flux_error2='6.39e-08', ts2='2.25', photon_index='2.49' WHERE bin_id='330' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:21:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 992731: <4FGL_J1349.5-1131_daily_bin330> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin330> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 14:05:35 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:05:50 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:05:50 2021
Terminated at Wed Sep  8 14:21:19 2021
Results reported at Wed Sep  8 14:21:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin330 207.387 -11.5188 324864001 325123201 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 :                                   744.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            944 sec.

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

