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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1568
RA = 207.387, Dec = -11.5188
tmin = 645753601, tmax = 646012801
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='534', job_status='RUN', time_executed='2021-09-08 14:37:38.456478', time_epoch_executed='1631137058.46' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534/ft1_4FGL_J1349.5-1131_daily_bin1568.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534/ft2_4FGL_J1349.5-1131_daily_bin1568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534/ft1_4FGL_J1349.5-1131_daily_bin1568.fits outfile=/scratch/kocevski/534/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1568.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=645753601.0 tmax=646012801.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 2.32
user 2.09
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/534/ft2_4FGL_J1349.5-1131_daily_bin1568.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/534/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1568.fits evtable="EVENTS" outfile="/scratch/kocevski/534/ft1_filtered_4FGL_J1349.5-1131_daily_bin1568.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/534/ft1_filtered_4FGL_J1349.5-1131_daily_bin1568.fits" evtable="EVENTS" scfile=/scratch/kocevski/534/ft2_4FGL_J1349.5-1131_daily_bin1568.fits sctable="SC_DATA" outfile=/scratch/kocevski/534/ltcube_645753601_646012801_4FGL_J1349.5-1131_daily_bin1568.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/534/ft2_4FGL_J1349.5-1131_daily_bin1568.fits
.....................!
real 16.04
user 15.61
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534/ft1_filtered_4FGL_J1349.5-1131_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/534/ft2_4FGL_J1349.5-1131_daily_bin1568.fits sctable="SC_DATA" expcube=/scratch/kocevski/534/ltcube_645753601_646012801_4FGL_J1349.5-1131_daily_bin1568.fits outfile=/scratch/kocevski/534/expmap_645753601_646012801_4FGL_J1349.5-1131_daily_bin1568.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/534/ltcube_645753601_646012801_4FGL_J1349.5-1131_daily_bin1568.fits
.....................!
real 192.83
user 187.50
sys 4.70

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/534/ft1_filtered_4FGL_J1349.5-1131_daily_bin1568.fits scfile=/scratch/kocevski/534/ft2_4FGL_J1349.5-1131_daily_bin1568.fits outfile=/scratch/kocevski/534/cmap_645753601_646012801_4FGL_J1349.5-1131_daily_bin1568.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534/ft1_filtered_4FGL_J1349.5-1131_daily_bin1568.fits scfile=/scratch/kocevski/534/ft2_4FGL_J1349.5-1131_daily_bin1568.fits outfile=/scratch/kocevski/534/cmap_HighResolution_645753601_646012801_4FGL_J1349.5-1131_daily_bin1568.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/534/ft1_filtered_4FGL_J1349.5-1131_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/534/ft2_4FGL_J1349.5-1131_daily_bin1568.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534/Model_4FGL_J1349.5-1131_daily_bin1568.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/534/ft1_filtered_4FGL_J1349.5-1131_daily_bin1568.fits.....................!
real 72.57
user 71.12
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    142.61       1.0000         .10000E-03   10000.    
     2 'norm      '    .10857E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7534       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2012       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5105       1.0000         .10000E-03   10000.    
     8 'norm      '    35.353       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.469       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3801       1.0000         .10000E-03   10000.    
    12 'norm      '    5.0803       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.195       1.0000         .10000E-03   10000.    
    17 'norm      '    29.445       1.0000         .10000E-03   10000.    
    18 'norm      '    .90551       1.0000         .10000E-03   10000.    
    19 'Prefactor '    93.314       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.9018       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .52540       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=   9090.378     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2058 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          142.61        22.402         .0000        .35330E-02
   2  norm          .10000E-03    5.4572         .0000    ** at limit **
   3  Prefactor     .10000E-03    2.1157         .0000    ** at limit **
   4  Prefactor     3.7523        6.5720         .0000        .88844E-02
   5  Prefactor     .10006E-03    13.009         .0000    ** at limit **
   6  norm          2.2010        1.4143         .0000        .60193E-03
   7  norm          3.5092        3.9121         .0000       -.56575E-02
   8  norm          35.352        10.003         .0000       -.41428E-02
   9  Prefactor     .10000E-03    4.4407         .0000    ** at limit **
  10  norm          11.469        20.209         .0000        .23007E-03
  11  Prefactor     7.3775        9.6800         .0000        .30298E-02
  12  norm          5.0800        3.8243         .0000       -.14249E-02
  13  Prefactor     .10000E-03    1.9425         .0000    ** at limit **
  14  Prefactor     .10006E-03    11.861         .0000    ** at limit **
  15  norm          .10000E-03    6.6146         .0000    ** at limit **
  16  norm          16.196        4.2083         .0000        .38742E-03
  17  norm          29.445        15.780         .0000        .33209E-04
  18  norm          .90145        6.7322         .0000        .45104E-01
  19  Prefactor     93.315        32.670         .0000       -.11899E-02
  20  Prefactor     .10000E-03    12.574         .0000    ** at limit **
  21  Normalizat    1.9020        .22185         .0000        .32019E-04
  22  Prefactor     .52531        .10661         .0000        .43875E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 142.61
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 3.7523
  Prefactor  = 0.000100061
  norm       = 2.20101
  norm       = 3.50918
  norm       = 35.352
  Prefactor  = 0.0001
  norm       = 11.4693
  Prefactor  = 7.37746
  norm       = 5.08
  Prefactor  = 0.0001
  Prefactor  = 0.000100064
  norm       = 0.000100001
  norm       = 16.1957
  norm       = 29.4448
  norm       = 0.901452
  Prefactor  = 93.315
  Prefactor  = 0.000100001
  Normalizat = 1.90201
  Prefactor  = 0.525307
 **********
 **   18 **HESSE 
 **********

 FCN=   9090.378     FROM HESSE     STATUS=OK           342 CALLS     2400 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          142.61        22.399        .33737E-04   -1.3314    
   2  norm          .10000E-03    27.471        .43127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.1289        .13542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7523        6.5760        .10420E-02   -1.5321    
   5  Prefactor     .10006E-03    13.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2010        1.4132        .85941E-04   -1.5411    
   7  norm          3.5092        3.8714        .16642E-03   -1.5333    
   8  norm          35.352        9.9475        .67400E-04   -1.4518    
   9  Prefactor     .10000E-03    4.4462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.469        20.205        .11829E-03   -1.5031    
  11  Prefactor     7.3775        9.6827        .73818E-03   -1.5165    
  12  norm          5.0800        3.8228        .15579E-03   -1.5257    
  13  Prefactor     .10000E-03    1.9548        .12971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10006E-03    11.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.7937        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.196        4.2145        .93707E-04   -1.4903    
  17  norm          29.445        15.781        .73835E-04   -1.4622    
  18  norm          .90145        6.7118        .23594E-02   -1.5518    
  19  Prefactor     93.315        32.616        .41603E-04   -1.3773    
  20  Prefactor     .10000E-03    12.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.9020        .25964        .29819E-03   -.67030    
  22  Prefactor     .52531        .12299        .26539E-03   -1.1083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15339e-08
Minuit parameter uncertainties:
  1  22.4007
  2  0.000738315
  3  6.92688e-06
  4  6.57725
  5  0.00178918
  6  1.41322
  7  3.8717
  8  9.94796
  9  1.28044e-05
  10  20.2166
  11  9.68476
  12  3.82296
  13  9.97987e-06
  14  0.00174482
  15  0.000119851
  16  4.21461
  17  15.7831
  18  4.91999
  19  32.6221
  20  0.000214815
  21  0.259832
  22  0.123055
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  9.980e-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:  5.253e-01  1.231e-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.902e+00  2.598e-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: 8.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534/likelihoodResults_645753601_646012801_4FGL_J1349.5-1131_daily_bin1568.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) = 9090.38024953
delta logL = -0.00242204390452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9090.37782755
delta logL = -6.44740794087e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4935       1.0000          .0000       10.000    
     3 'Normalizat'    1.9020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52532       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=   9090.378     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1919        .90712E-02** at limit **
   2  Index         2.4928        5.8234        .50000        .24809E-05
   3  Normalizat    1.9020        .20748        .67422E-01   -.26920E-04
   4  Prefactor     .52531        .10523        .59986E-01    .19657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49284
  Normalizat = 1.90201
  Prefactor  = 0.525307
 **********
 **   18 **HESSE 
 **********

 FCN=   9090.378     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0899        .12971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4928        6.1903        .50000       -.52525    
   3  Normalizat    1.9020        .23793        .29819E-03   -.67030    
   4  Prefactor     .52531        .12059        .26539E-03   -1.1083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14195e-11
Minuit parameter uncertainties:
  1  7.40902e-06
  2  5.44099
  3  0.238073
  4  0.120647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534': 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) = 9090.37782748
delta logL = 7.91260390542e-10

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  7.409e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.493e+00  5.441e+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:  5.253e-01  1.206e-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.902e+00  2.381e-01  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/534/cmap_HighResolution_645753601_646012801_4FGL_J1349.5-1131_daily_bin1568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-03', job_status='DONE', photon_flux_upper_limit='8.10e-08', time_completed='2021-09-08 14:49:46.099438', job_id='534', GAL2='0.53', fit_tolerance='1e-08', EG2='1.90', EG='1.90', time_epoch_completed='1631137786.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='7.91e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1568' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:49:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 534: <4FGL_J1349.5-1131_daily_bin1568> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1568> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:35:31 2021
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:35:41 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:41 2021
Terminated at Wed Sep  8 14:49:46 2021
Results reported at Wed Sep  8 14:49:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1568 207.387 -11.5188 645753601 646012801 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 :                                   719.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            855 sec.

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

