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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin599
RA = 207.387, Dec = -11.5188
tmin = 394588801, tmax = 394848001
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='995284', job_status='RUN', time_executed='2021-09-08 14:17:42.673291', time_epoch_executed='1631135862.67' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/995284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/995284/ft1_4FGL_J1349.5-1131_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/995284/ft2_4FGL_J1349.5-1131_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/995284/ft1_4FGL_J1349.5-1131_daily_bin599.fits outfile=/scratch/kocevski/995284/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin599.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=394588801.0 tmax=394848001.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.61
user 4.29
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/995284/ft1_filtered_4FGL_J1349.5-1131_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/995284/ft2_4FGL_J1349.5-1131_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/995284/ltcube_394588801_394848001_4FGL_J1349.5-1131_daily_bin599.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/995284/ft2_4FGL_J1349.5-1131_daily_bin599.fits
.....................!
real 16.47
user 15.96
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/995284/ft1_filtered_4FGL_J1349.5-1131_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/995284/ft2_4FGL_J1349.5-1131_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/995284/ltcube_394588801_394848001_4FGL_J1349.5-1131_daily_bin599.fits outfile=/scratch/kocevski/995284/expmap_394588801_394848001_4FGL_J1349.5-1131_daily_bin599.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/995284/ltcube_394588801_394848001_4FGL_J1349.5-1131_daily_bin599.fits
.....................!
real 192.34
user 186.15
sys 5.47

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/995284/ft1_filtered_4FGL_J1349.5-1131_daily_bin599.fits scfile=/scratch/kocevski/995284/ft2_4FGL_J1349.5-1131_daily_bin599.fits outfile=/scratch/kocevski/995284/cmap_394588801_394848001_4FGL_J1349.5-1131_daily_bin599.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.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/995284/ft1_filtered_4FGL_J1349.5-1131_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/995284/ft2_4FGL_J1349.5-1131_daily_bin599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/995284/Model_4FGL_J1349.5-1131_daily_bin599.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/995284/ft1_filtered_4FGL_J1349.5-1131_daily_bin599.fits.....................!
real 65.49
user 64.04
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4593       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7259       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7903       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .32871       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6188       1.0000         .10000E-03   10000.    
     8 'norm      '    11.515       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5322       1.0000         .10000E-03   10000.    
    10 'norm      '    6.5607       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0569       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3647       1.0000         .10000E-03   10000.    
    16 'norm      '    .86168       1.0000         .10000E-03   10000.    
    17 'norm      '    11.305       1.0000         .10000E-03   10000.    
    18 'norm      '    21.678       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'    1.1817       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87248       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=   8532.997     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2012 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4592        5.8355        .95427E-07   -.48633E-03
   2  norm          2.7258        4.7162       -.17340E-07   -.74829E-04
   3  Prefactor     .10000E-03    4.5314        .18826E-05** at limit **
   4  Prefactor     4.7894        5.8431        .51031E-06   -.18960E-02
   5  Prefactor     .10000E-03    13.457       -.92291E-05** at limit **
   6  norm          .32901        .94431       -.77223E-08   -.33811E-03
   7  norm          2.6177        2.3153        .95752E-07    .68546E-03
   8  norm          11.514        5.5568       -.51871E-07    .27543E-03
   9  Prefactor     4.5319        7.5760        .57676E-06   -.95846E-03
  10  norm          6.5565        17.920       -.72404E-05   -.12065E-03
  11  Prefactor     .10000E-03    5.2186       -.26158E-05** at limit **
  12  norm          4.0570        3.5052       -.22797E-06   -.41502E-04
  13  Prefactor     .10000E-03    3.4449       -.43356E-06** at limit **
  14  Prefactor     .10000E-03    12.775        .88013E-05** at limit **
  15  norm          3.3632        3.7228        .78369E-06   -.29083E-02
  16  norm          .86150        2.2911        .93990E-07   -.43456E-03
  17  norm          11.305        12.984        .98455E-07   -.20188E-03
  18  norm          21.679        8.6022       -.25233E-07   -.33043E-04
  19  Prefactor     .10000E-03    5.8283        .26976E-05** at limit **
  20  Prefactor     .10000E-03    5.3888       -.20714E-05** at limit **
  21  Normalizat    1.1817        .18874       -.14400E-06    .11904E-03
  22  Prefactor     .87247        .98273E-01   -.58950E-08    .15942E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.45923
  norm       = 2.72584
  Prefactor  = 0.0001
  Prefactor  = 4.78936
  Prefactor  = 0.000100001
  norm       = 0.329007
  norm       = 2.61768
  norm       = 11.5139
  Prefactor  = 4.53192
  norm       = 6.55651
  Prefactor  = 0.0001
  norm       = 4.05704
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.36319
  norm       = 0.861495
  norm       = 11.3046
  norm       = 21.6791
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18168
  Prefactor  = 0.87247
 **********
 **   18 **HESSE 
 **********

 FCN=   8532.997     FROM HESSE     STATUS=OK           350 CALLS     2362 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4592        5.8589        .85986E-03   -1.5241    
   2  norm          2.7258        4.6978        .24665E-03   -1.5378    
   3  Prefactor     .10000E-03    4.5689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7894        6.7359        .91910E-03   -1.5270    
   5  Prefactor     .10000E-03    13.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .32901        1.2047        .14071E-02   -1.5593    
   7  norm          2.6177        2.3071        .12400E-03   -1.5384    
   8  norm          11.514        5.5443        .11806E-03   -1.5029    
   9  Prefactor     4.5319        8.0562        .94552E-03   -1.5282    
  10  norm          6.5565        17.981        .15668E-03   -1.5196    
  11  Prefactor     .10000E-03    5.2930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0570        3.5045        .15453E-03   -1.5305    
  13  Prefactor     .10000E-03    3.5863        .33409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3632        4.7455        .11031E-02   -1.5341    
  16  norm          .86150        2.2654        .20869E-03   -1.5522    
  17  norm          11.305        13.029        .59577E-03   -1.5035    
  18  norm          21.679        8.5098        .86027E-04   -1.4776    
  19  Prefactor     .10000E-03    5.8443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.3966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1817        .22424        .29968E-03   -.87171    
  22  Prefactor     .87247        .11575        .18648E-03   -.97110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4764e-08
Minuit parameter uncertainties:
  1  5.85955
  2  4.69842
  3  2.86468e-05
  4  6.73695
  5  0.000218168
  6  1.20479
  7  2.30717
  8  5.54453
  9  8.05814
  10  17.9953
  11  3.6315e-05
  12  3.50468
  13  6.58352e-06
  14  0.000240531
  15  4.74598
  16  2.2656
  17  13.0327
  18  8.51026
  19  4.77296e-05
  20  3.70449e-05
  21  0.22442
  22  0.115787
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.584e-06  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:  8.725e-01  1.158e-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.182e+00  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 7.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/995284/likelihoodResults_394588801_394848001_4FGL_J1349.5-1131_daily_bin599.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): 102
logL (Free Index) = 8532.99842934
delta logL = -0.00133169503533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8532.997098
delta logL = -3.63443177775e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4607       1.0000          .0000       10.000    
     3 'Normalizat'    1.1814       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87262       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=   8532.997     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      261 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.767        .34934E-02** at limit **
   2  Index         2.0131        7.7702        .50000       -.28390E-06
   3  Normalizat    1.1817        .17284E-01    .29968E-03   -.12317E-02
   4  Prefactor     .87247        .94505E-02    .18648E-03   -.19402E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01308
  Normalizat = 1.18168
  Prefactor  = 0.872469
 **********
 **   18 **HESSE 
 **********

 FCN=   8532.997     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    327.04        .69868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0131        5.5323        .50000       -.64024    
   3  Normalizat    1.1817        .39639E-01    .59935E-04   -.87171    
   4  Prefactor     .87247        .21674E-01    .37297E-04   -.97110    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.53768e-09
Minuit parameter uncertainties:
  1  9.13594e-05
  2  535.319
  3  0.0396402
  4  0.0216747
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/995284': 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) = 8532.99709279
delta logL = 4.8560086725e-06

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  9.136e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.013e+00  5.353e+02  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:  8.725e-01  2.167e-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:  1.182e+00  3.964e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/995284/cmap_HighResolution_394588801_394848001_4FGL_J1349.5-1131_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-09-08 14:29:19.597764', job_id='995284', GAL2='0.87', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631136559.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.86e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='599' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:29:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 995284: <4FGL_J1349.5-1131_daily_bin599> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin599> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 14:15:31 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:15:42 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:42 2021
Terminated at Wed Sep  8 14:29:20 2021
Results reported at Wed Sep  8 14:29:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin599 207.387 -11.5188 394588801 394848001 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 :                                   694.28 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             317.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            829 sec.

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

