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


Performing analysis on: 4FGL_J1149.5-4029_daily_bin909
RA = 177.387, Dec = -40.491
tmin = 474940801, tmax = 475200001
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='94959', job_status='RUN', time_executed='2021-09-04 12:23:49.883460', time_epoch_executed='1630783429.88' WHERE source_name='4FGL J1149.5-4029' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94959

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94959/ft1_4FGL_J1149.5-4029_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94959/ft2_4FGL_J1149.5-4029_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94959/ft1_4FGL_J1149.5-4029_daily_bin909.fits outfile=/scratch/kocevski/94959/ft1_filteredMKT_4FGL_J1149.5-4029_daily_bin909.fits ra=177.387 dec=-40.491 rad=12.0 tmin=474940801.0 tmax=475200001.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.57
user 3.36
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/94959/ft2_4FGL_J1149.5-4029_daily_bin909.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94959/ft2_4FGL_J1149.5-4029_daily_bin909.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/94959/ft1_filteredMKT_4FGL_J1149.5-4029_daily_bin909.fits evtable="EVENTS" outfile="/scratch/kocevski/94959/ft1_filtered_4FGL_J1149.5-4029_daily_bin909.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/94959/ft1_filtered_4FGL_J1149.5-4029_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/94959/ft2_4FGL_J1149.5-4029_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/94959/ltcube_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.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/94959/ft2_4FGL_J1149.5-4029_daily_bin909.fits
.....................!
real 13.00
user 12.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94959/ft1_filtered_4FGL_J1149.5-4029_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/94959/ft2_4FGL_J1149.5-4029_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/94959/ltcube_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.fits outfile=/scratch/kocevski/94959/expmap_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.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/94959/ltcube_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.fits
.....................!
real 191.74
user 186.63
sys 4.64

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
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source FGES J1036.3-5833 in ROI with RadialDisk spatial model.
Extended source FGES J1109.4-6115 in ROI with RadialDisk spatial model.
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 231 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1149.5-4029 @ 177.387 -40.491

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/94959/ft1_filtered_4FGL_J1149.5-4029_daily_bin909.fits scfile=/scratch/kocevski/94959/ft2_4FGL_J1149.5-4029_daily_bin909.fits outfile=/scratch/kocevski/94959/cmap_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.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=177.387 yref=-40.491 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94959/ft1_filtered_4FGL_J1149.5-4029_daily_bin909.fits scfile=/scratch/kocevski/94959/ft2_4FGL_J1149.5-4029_daily_bin909.fits outfile=/scratch/kocevski/94959/cmap_HighResolution_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.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=177.387 yref=-40.491 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 1.00
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94959/ft1_filtered_4FGL_J1149.5-4029_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/94959/ft2_4FGL_J1149.5-4029_daily_bin909.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94959/Model_4FGL_J1149.5-4029_daily_bin909.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 CenA Lobes
adding source EG_v02
adding source FGES J1036.3-5833
adding source FGES J1109.4-6115
adding source G296.5+10.0
adding source GAL_V02
Working on...
/scratch/kocevski/94959/ft1_filtered_4FGL_J1149.5-4029_daily_bin909.fits.....................!
real 164.67
user 162.79
sys 1.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94959/ft1_filtered_4FGL_J1149.5-4029_daily_bin909.fits', '/scratch/kocevski/94959/ft2_4FGL_J1149.5-4029_daily_bin909.fits', expMap='/scratch/kocevski/94959/expmap_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.fits', expCube='/scratch/kocevski/94959/ltcube_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94959/Model_4FGL_J1149.5-4029_daily_bin909.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1149.5-4029'

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  3.786e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
406        Index:  2.363e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
407        Scale:  1.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/94959/ft1_filtered_4FGL_J1149.5-4029_daily_bin909.fits
Spacecraft file(s): /scratch/kocevski/94959/ft2_4FGL_J1149.5-4029_daily_bin909.fits
Exposure map: /scratch/kocevski/94959/expmap_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.fits
Exposure cube: /scratch/kocevski/94959/ltcube_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94959/Model_4FGL_J1149.5-4029_daily_bin909.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) = 8565.00176152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2714       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.4219       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.996       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2971       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0492       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1292       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8564.982     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1583 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5461       -.11196E-06** at limit **
   2  norm          2.2724        2.6693        .28938E-07   -.57994E-03
   3  Prefactor     .10000E-03    3.9532       -.31681E-07** at limit **
   4  norm          7.3642        26.281       -.43102E-04   -.11747E-04
   5  Prefactor     .10000E-03    65.718        .48031E-04** at limit **
   6  norm          .10000E-03    33.634       -.16379E-04** at limit **
   7  Prefactor     .10000E-03    9.3289       -.65511E-06** at limit **
   8  norm          .10000E-03    1.3541       -.80561E-07** at limit **
   9  Prefactor     .10000E-03    6.5584       -.28852E-06** at limit **
  10  norm          .10000E-03    7.2137        .70018E-06** at limit **
  11  Prefactor     .10000E-03    27.095        .14667E-04** at limit **
  12  Prefactor     45.920        36.272       -.53737E-04   -.21604E-03
  13  Prefactor     .10000E-03    34.170       -.15906E-04** at limit **
  14  Prefactor     1.3019        2.5075        .10849E-04    .14875E-02
  15  Prefactor     .10000E-03    3.9792        .61606E-06** at limit **
  16  Normalizat    1.0497        .26629        .70531E-05   -.14699E-03
  17  Prefactor     1.1291        .96005E-01    .21913E-05   -.79192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.27235
  Prefactor  = 0.0001
  norm       = 7.36419
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 45.9199
  Prefactor  = 0.0001
  Prefactor  = 1.30189
  Prefactor  = 0.0001
  Normalizat = 1.04965
  Prefactor  = 1.1291
 **********
 **   18 **HESSE 
 **********

 FCN=   8564.982     FROM HESSE     STATUS=OK           213 CALLS     1796 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5511        .17019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2724        2.6524        .15535E-03   -1.5406    
   3  Prefactor     .10000E-03    3.9618        .17969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.3642        26.274        .14722E-03   -1.5165    
   5  Prefactor     .10000E-03    65.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    33.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.3549        .10517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.2147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.920        36.152        .59119E-04   -1.4352    
  13  Prefactor     .10000E-03    34.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3019        2.4511        .17231E-03   -1.5480    
  15  Prefactor     .10000E-03    3.9942        .18030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0497        .30359        .45161E-03   -.91385    
  17  Prefactor     1.1291        .11024        .15645E-03   -.88542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08174e-09
Minuit parameter uncertainties:
  1  2.02224e-05
  2  2.65258
  3  1.9125e-05
  4  26.3157
  5  0.000486606
  6  4.22556e-05
  7  8.36066e-05
  8  4.90693e-06
  9  2.11033e-05
  10  1.40571e-05
  11  0.000581195
  12  36.1694
  13  4.49386e-05
  14  2.45128
  15  7.83543e-05
  16  0.304094
  17  0.110257
Done.

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

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  1.000e-04  2.110e-05  1.000e-04  1.000e+04 ( 1.000e-13)
406        Index:  2.363e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
407        Scale:  1.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
818    Prefactor:  1.129e+00  1.103e-01  0.000e+00  1.000e+01 ( 1.000e+00)
819        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
820        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
807   Normalization:  1.050e+00  3.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 177.387 -40.491
Photon Flux Upper Limit: 6.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94959/likelihoodResults_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.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) = 8564.98222824
delta logL = -0.000724288958736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8564.98150364
delta logL = 3.03316483041e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3315       1.0000          .0000       10.000    
     3 'Normalizat'    1.0497       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8210E+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=   8564.982     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      251 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10328E-03    5.8935        .18142E-01** at limit **
   2  Index         2.2438        6.1645        .50000        .31895E-04
   3  Normalizat    1.0496        .60022E-02    .45161E-03   -.21146E-05
   4  Prefactor     1.1291        .21640E-02    .15645E-03   -.13225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103279
  Index      = 2.24376
  Normalizat = 1.04965
  Prefactor  = 1.12911
 **********
 **   18 **HESSE 
 **********

 FCN=   8564.982     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10328E-03    48.281        .24841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2438        5.2893        .50000       -.58386    
   3  Normalizat    1.0496        .17227E-01    .18064E-04   -.91385    
   4  Prefactor     1.1291        .62108E-02    .62582E-05   -.88542    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.83984e-09
Minuit parameter uncertainties:
  1  0.0251836
  2  218.483
  3  0.0172269
  4  0.00621085
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94959': 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) = 8564.98150312
delta logL = 8.21966750664e-07

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  1.033e-04  2.518e-02  1.000e-04  1.000e+04 ( 1.000e-13)
406        Index:  2.244e+00  2.185e+02  0.000e+00  1.000e+01 (-1.000e+00)
407        Scale:  1.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
818    Prefactor:  1.129e+00  6.211e-03  0.000e+00  1.000e+01 ( 1.000e+00)
819        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
820        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
807   Normalization:  1.050e+00  1.723e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.387 -40.491

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/94959/cmap_HighResolution_474940801_475200001_4FGL_J1149.5-4029_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-04 12:38:16.274691', job_id='94959', GAL2='1.13', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630784296.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='8.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='909' AND source_name='4FGL J1149.5-4029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:38:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 94959: <4FGL_J1149.5-4029_daily_bin909> in cluster <slac> Done

Job <4FGL_J1149.5-4029_daily_bin909> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 12:21:46 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:21:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 12:21:47 2021
Terminated at Sat Sep  4 12:38:17 2021
Results reported at Sat Sep  4 12:38:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1149.5-4029_daily_bin909 177.387 -40.491 474940801 475200001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1149.5-4029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   862.40 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             313.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            991 sec.

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

