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


Performing analysis on: 4FGL_J1149.5-4029_daily_bin803
RA = 177.387, Dec = -40.491
tmin = 447465601, tmax = 447724801
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='94743', job_status='RUN', time_executed='2021-09-04 12:21:55.540723', time_epoch_executed='1630783315.54' WHERE source_name='4FGL J1149.5-4029' and cadence='daily' and bin_id='803'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94743

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94743/ft1_4FGL_J1149.5-4029_daily_bin803.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94743/ft2_4FGL_J1149.5-4029_daily_bin803.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94743/ft1_4FGL_J1149.5-4029_daily_bin803.fits outfile=/scratch/kocevski/94743/ft1_filteredMKT_4FGL_J1149.5-4029_daily_bin803.fits ra=177.387 dec=-40.491 rad=12.0 tmin=447465601.0 tmax=447724801.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.39
user 3.18
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94743/ft2_4FGL_J1149.5-4029_daily_bin803.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/94743/ft1_filteredMKT_4FGL_J1149.5-4029_daily_bin803.fits evtable="EVENTS" outfile="/scratch/kocevski/94743/ft1_filtered_4FGL_J1149.5-4029_daily_bin803.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.55
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94743/ft1_filtered_4FGL_J1149.5-4029_daily_bin803.fits" evtable="EVENTS" scfile=/scratch/kocevski/94743/ft2_4FGL_J1149.5-4029_daily_bin803.fits sctable="SC_DATA" outfile=/scratch/kocevski/94743/ltcube_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.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/94743/ft2_4FGL_J1149.5-4029_daily_bin803.fits
.....................!
real 11.97
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94743/ft1_filtered_4FGL_J1149.5-4029_daily_bin803.fits evtable="EVENTS" scfile=/scratch/kocevski/94743/ft2_4FGL_J1149.5-4029_daily_bin803.fits sctable="SC_DATA" expcube=/scratch/kocevski/94743/ltcube_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.fits outfile=/scratch/kocevski/94743/expmap_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.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/94743/ltcube_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.fits
.....................!
real 188.28
user 184.34
sys 3.48

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/94743/ft1_filtered_4FGL_J1149.5-4029_daily_bin803.fits scfile=/scratch/kocevski/94743/ft2_4FGL_J1149.5-4029_daily_bin803.fits outfile=/scratch/kocevski/94743/cmap_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94743/ft1_filtered_4FGL_J1149.5-4029_daily_bin803.fits scfile=/scratch/kocevski/94743/ft2_4FGL_J1149.5-4029_daily_bin803.fits outfile=/scratch/kocevski/94743/cmap_HighResolution_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.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 0.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94743/ft1_filtered_4FGL_J1149.5-4029_daily_bin803.fits evtable="EVENTS" scfile=/scratch/kocevski/94743/ft2_4FGL_J1149.5-4029_daily_bin803.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94743/Model_4FGL_J1149.5-4029_daily_bin803.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/94743/ft1_filtered_4FGL_J1149.5-4029_daily_bin803.fits.....................!
real 141.74
user 140.34
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/94743/ft1_filtered_4FGL_J1149.5-4029_daily_bin803.fits', '/scratch/kocevski/94743/ft2_4FGL_J1149.5-4029_daily_bin803.fits', expMap='/scratch/kocevski/94743/expmap_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.fits', expCube='/scratch/kocevski/94743/ltcube_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/94743/Model_4FGL_J1149.5-4029_daily_bin803.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/94743/ft1_filtered_4FGL_J1149.5-4029_daily_bin803.fits
Spacecraft file(s): /scratch/kocevski/94743/ft2_4FGL_J1149.5-4029_daily_bin803.fits
Exposure map: /scratch/kocevski/94743/expmap_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.fits
Exposure cube: /scratch/kocevski/94743/ltcube_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/94743/Model_4FGL_J1149.5-4029_daily_bin803.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) = 7581.33570062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.587       1.0000         .10000E-03   10000.    
     4 'norm      '    .25380E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.971       1.0000         .10000E-03   10000.    
     6 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9869       1.0000         .10000E-03   10000.    
     8 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5218       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5609       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7228       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.442       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2263       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .83349E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    2.1981       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .73939       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=   7581.283     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     1650 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9418        .15122E-06** at limit **
   2  norm          .10000E-03    1.0179       -.95580E-07** at limit **
   3  Prefactor     10.588        9.4651       -.96658E-06    .26729E-04
   4  norm          .10204E-03    13.718       -.15025E-05** at limit **
   5  Prefactor     22.062        46.468        .70276E-04    .10720E-04
   6  norm          .10000E-03    10.752       -.15634E-07** at limit **
   7  Prefactor     6.9875        7.9596       -.74456E-05    .10770E-04
   8  norm          .10000E-03    6.0660        .22988E-06** at limit **
   9  Prefactor     3.4820        66.106        .13073E-04    .78708E-05
  10  norm          1.6077        130.03       -.38530E-04   -.21103E-04
  11  Prefactor     6.7094        17.314       -.31446E-04   -.30169E-04
  12  Prefactor     10.431        41.175       -.82883E-05    .66566E-04
  13  Prefactor     .10000E-03    97.137        .24962E-04** at limit **
  14  Prefactor     4.2274        5.4754        .12916E-05   -.16158E-03
  15  Prefactor     .10245E-03    9.5439       -.23512E-05** at limit **
  16  Normalizat    2.1982        .29356        .17278E-05    .24209E-03
  17  Prefactor     .73933        .95964E-01   -.22650E-06    .71660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.5877
  norm       = 0.000102035
  Prefactor  = 22.0619
  norm       = 0.0001
  Prefactor  = 6.98748
  norm       = 0.0001
  Prefactor  = 3.48199
  norm       = 1.60772
  Prefactor  = 6.70944
  Prefactor  = 10.4311
  Prefactor  = 0.0001
  Prefactor  = 4.22743
  Prefactor  = 0.000102449
  Normalizat = 2.1982
  Prefactor  = 0.73933
 **********
 **   18 **HESSE 
 **********

 FCN=   7581.283     FROM HESSE     STATUS=OK           235 CALLS     1885 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2358        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.0327        .85739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.588        9.4637        .12314E-03   -1.5057    
   4  norm          .10204E-03    12.576        .10910       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.062        46.416        .85452E-04   -1.4768    
   6  norm          .10000E-03    10.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9875        7.9587        .15177E-03   -1.5179    
   8  norm          .10000E-03    6.1301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4820        66.394        .21541E-03   -1.5335    
  10  norm          1.6077        132.84        .34058E-03   -1.5454    
  11  Prefactor     6.7094        17.361        .15475E-03   -1.5190    
  12  Prefactor     10.431        44.906        .12399E-03   -1.5062    
  13  Prefactor     .10000E-03    97.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2274        5.7499        .13258E-03   -1.5297    
  15  Prefactor     .10245E-03    112.85        .50976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    2.1982        .35250        .34894E-03   -.59671    
  17  Prefactor     .73933        .11446        .18391E-03   -1.0200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08282e-08
Minuit parameter uncertainties:
  1  8.4941e-05
  2  1.21652e-06
  3  9.46502
  4  0.0101207
  5  46.4922
  6  3.16105e-06
  7  7.95986
  8  6.42145e-06
  9  30.448
  10  29.2941
  11  17.3743
  12  43.3411
  13  4.99821e-05
  14  5.7507
  15  0.0333118
  16  0.352929
  17  0.1145
Done.

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

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  3.482e+00  3.045e+01  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:  7.393e-01  1.145e-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:  2.198e+00  3.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 177.387 -40.491
Photon Flux Upper Limit: 1.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/94743/likelihoodResults_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.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) = 7577.04826199
delta logL = 4.23487696397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7577.03084284
delta logL = 4.25229611129

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21133       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4834       1.0000          .0000       10.000    
     3 'Normalizat'    1.8426       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81227       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.

 FCN=   7577.031     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      315 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20997        1.0576        .35317E-02    .25302E-02
   2  Index         5.4865        1.8197        .68941E-01    .26408E-03
   3  Normalizat    1.8420        .10316        .83858E-01    .33759E-04
   4  Prefactor     .81243        .34145E-01    .43877E-01    .12073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.209971
  Index      = 5.48645
  Normalizat = 1.84199
  Prefactor  = 0.812433
 **********
 **   18 **HESSE 
 **********

 FCN=   7577.031     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      348 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20997        1.7381        .15773E-04   -1.5616    
   2  Index         5.4865        2.4607        .28685E-02    .97445E-01
   3  Normalizat    1.8420        .32473        .37115E-03   -.68573    
   4  Prefactor     .81243        .10567        .17593E-03   -.99272    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.15916e-11
Minuit parameter uncertainties:
  1  1.20798
  2  2.57393
  3  0.325118
  4  0.105692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94743': 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) = 7577.03083892
delta logL = 4.25230002656

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  2.100e-01  1.208e+00  1.000e-04  1.000e+04 ( 1.000e-13)
406        Index:  5.486e+00  2.574e+00  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:  8.124e-01  1.057e-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.842e+00  3.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.38
Ra Dec: 177.387 -40.491
Photon Index (Free Index): 5.49 +/- 2.57
Photon Flux (Free Index): 3.06e-07 +/- 1.28e-07
Energy Flux (Free Index): 3.93e-05 +/- 1.81e-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/94743/cmap_HighResolution_447465601_447724801_4FGL_J1149.5-4029_daily_bin803.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', energy_flux2='3.93e-05', dlogl='4.25e+00', photon_flux2='3.06e-07', job_status='DONE', time_completed='2021-09-04 12:35:26.090527', photon_index_error2='2.57', photon_index2='5.49', ts='0.01', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.81e-05', EG='2.20', time_epoch_completed='1630784126.09', return_code='0', job_id='94743', GAL2='0.81', EG2='1.84', return_code2='102', photon_flux_error2='1.28e-07', ts2='9.38', photon_index='2.36' WHERE bin_id='803' AND source_name='4FGL J1149.5-4029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:35:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 94743: <4FGL_J1149.5-4029_daily_bin803> in cluster <slac> Done

Job <4FGL_J1149.5-4029_daily_bin803> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 12:21:33 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:21:34 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:34 2021
Terminated at Sat Sep  4 12:35:28 2021
Results reported at Sat Sep  4 12:35:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1149.5-4029_daily_bin803 177.387 -40.491 447465601 447724801 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 :                                   808.18 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             358.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            835 sec.

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

