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


Performing analysis on: 4FGL_J1149.5-4029_daily_bin1105
RA = 177.387, Dec = -40.491
tmin = 525744001, tmax = 526003201
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='96402', job_status='RUN', time_executed='2021-09-04 12:26:54.191428', time_epoch_executed='1630783614.19' WHERE source_name='4FGL J1149.5-4029' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/96402

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/96402/ft1_4FGL_J1149.5-4029_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/96402/ft2_4FGL_J1149.5-4029_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/96402/ft1_4FGL_J1149.5-4029_daily_bin1105.fits outfile=/scratch/kocevski/96402/ft1_filteredMKT_4FGL_J1149.5-4029_daily_bin1105.fits ra=177.387 dec=-40.491 rad=12.0 tmin=525744001.0 tmax=526003201.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.38
user 4.08
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/96402/ft2_4FGL_J1149.5-4029_daily_bin1105.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/96402/ft1_filteredMKT_4FGL_J1149.5-4029_daily_bin1105.fits evtable="EVENTS" outfile="/scratch/kocevski/96402/ft1_filtered_4FGL_J1149.5-4029_daily_bin1105.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/96402/ft1_filtered_4FGL_J1149.5-4029_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/96402/ft2_4FGL_J1149.5-4029_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/96402/ltcube_525744001_526003201_4FGL_J1149.5-4029_daily_bin1105.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/96402/ft2_4FGL_J1149.5-4029_daily_bin1105.fits
.....................!
real 12.04
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/96402/ft1_filtered_4FGL_J1149.5-4029_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/96402/ft2_4FGL_J1149.5-4029_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/96402/ltcube_525744001_526003201_4FGL_J1149.5-4029_daily_bin1105.fits outfile=/scratch/kocevski/96402/expmap_525744001_526003201_4FGL_J1149.5-4029_daily_bin1105.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/96402/ltcube_525744001_526003201_4FGL_J1149.5-4029_daily_bin1105.fits
.....................!
real 190.74
user 185.94
sys 4.42

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/96402/ft1_filtered_4FGL_J1149.5-4029_daily_bin1105.fits scfile=/scratch/kocevski/96402/ft2_4FGL_J1149.5-4029_daily_bin1105.fits outfile=/scratch/kocevski/96402/cmap_525744001_526003201_4FGL_J1149.5-4029_daily_bin1105.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/96402/ft1_filtered_4FGL_J1149.5-4029_daily_bin1105.fits scfile=/scratch/kocevski/96402/ft2_4FGL_J1149.5-4029_daily_bin1105.fits outfile=/scratch/kocevski/96402/cmap_HighResolution_525744001_526003201_4FGL_J1149.5-4029_daily_bin1105.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/96402/ft1_filtered_4FGL_J1149.5-4029_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/96402/ft2_4FGL_J1149.5-4029_daily_bin1105.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/96402/Model_4FGL_J1149.5-4029_daily_bin1105.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/96402/ft1_filtered_4FGL_J1149.5-4029_daily_bin1105.fits.....................!
real 147.55
user 146.02
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10996E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.992       1.0000         .10000E-03   10000.    
     4 'norm      '    14.103       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    27.289       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.179       1.0000         .10000E-03   10000.    
    10 'norm      '    15.781       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1833       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2574       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2311       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .90386       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=   7791.502     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1635 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.236       -.10280E-06** at limit **
   2  norm          .10000E-03    1.0743        .12614E-06** at limit **
   3  Prefactor     12.991        11.169       -.15222E-05    .32071E-04
   4  norm          14.101        21.978        .36071E-06   -.16014E-05
   5  Prefactor     .10000E-03    22.152       -.13000E-05** at limit **
   6  norm          27.289        30.402        .23379E-07   -.96464E-06
   7  Prefactor     .10000E-03    11.686        .29996E-07** at limit **
   8  norm          17.778        9.1028        .11942E-07    .67640E-05
   9  Prefactor     25.178        25.496        .18199E-06    .11073E-04
  10  norm          15.781        15.398        .52648E-07   -.59594E-06
  11  Prefactor     3.1831        10.838       -.12615E-05    .12858E-04
  12  Prefactor     .10000E-03    38.607       -.36551E-05** at limit **
  13  Prefactor     .10000E-03    73.046        .24455E-05** at limit **
  14  Prefactor     5.2558        3.5001       -.86042E-06    .95999E-04
  15  Prefactor     .10000E-03    28.825       -.59667E-05** at limit **
  16  Normalizat    1.2312        .25813       -.16307E-06   -.43230E-04
  17  Prefactor     .90383        .90971E-01   -.73245E-07   -.18218E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9908
  norm       = 14.1011
  Prefactor  = 0.0001
  norm       = 27.2891
  Prefactor  = 0.0001
  norm       = 17.7779
  Prefactor  = 25.1779
  norm       = 15.7807
  Prefactor  = 3.18314
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 5.25581
  Prefactor  = 0.0001
  Normalizat = 1.23116
  Prefactor  = 0.903834
 **********
 **   18 **HESSE 
 **********

 FCN=   7791.502     FROM HESSE     STATUS=OK           227 CALLS     1862 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.5671        .17548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.991        11.184        .55566E-03   -1.4987    
   4  norm          14.101        21.955        .10666E-03   -1.4957    
   5  Prefactor     .10000E-03    22.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          27.289        30.414        .76689E-04   -1.4663    
   7  Prefactor     .10000E-03    11.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.778        9.0965        .94991E-04   -1.4864    
   9  Prefactor     25.178        25.492        .79832E-04   -1.4704    
  10  norm          15.781        15.399        .10082E-03   -1.4913    
  11  Prefactor     3.1831        10.815        .22713E-03   -1.5351    
  12  Prefactor     .10000E-03    38.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    73.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2558        3.4774        .12828E-03   -1.5249    
  15  Prefactor     .10000E-03    28.518        .38750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2312        .30807        .39114E-03   -.85645    
  17  Prefactor     .90383        .10942        .15792E-03   -.96007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28689e-11
Minuit parameter uncertainties:
  1  1.35335e-06
  2  1.32455e-05
  3  11.1859
  4  21.9677
  5  0.000160096
  6  30.4314
  7  8.92793e-06
  8  9.09721
  9  25.5034
  10  15.403
  11  10.8214
  12  0.000288978
  13  0.000604836
  14  3.47749
  15  9.38691e-05
  16  0.308527
  17  0.10945
Done.

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

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  2.518e+01  2.550e+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:  9.038e-01  1.094e-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.231e+00  3.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 177.387 -40.491
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 5.90e-08 +/- 5.97e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 2.06e-05

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

Saving results to:
/scratch/kocevski/96402/likelihoodResults_525744001_526003201_4FGL_J1149.5-4029_daily_bin1105.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) = 7791.19678374
delta logL = 0.304930341089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7791.18225914
delta logL = 0.319454946084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.287       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9371       1.0000          .0000       10.000    
     3 'Normalizat'    1.1893       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91219       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=   7791.182     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      288 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.279        26.341        .10597E-03   -.24193E-03
   2  Index         2.9373        .98028        .63872E-02   -.29725E-04
   3  Normalizat    1.1893        .31326        .39683E-03   -.54949E-04
   4  Prefactor     .91220        .10905        .15722E-03   -.25706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2792
  Index      = 2.93732
  Normalizat = 1.18925
  Prefactor  = 0.912196
 **********
 **   18 **HESSE 
 **********

 FCN=   7791.182     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.279        20.779        .42387E-05   -1.4952    
   2  Index         2.9373        .77410        .25549E-03   -.42524    
   3  Normalizat    1.1893        .31247        .15873E-04   -.86936    
   4  Prefactor     .91220        .10878        .31443E-04   -.95716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17566e-11
Minuit parameter uncertainties:
  1  20.7891
  2  0.777874
  3  0.312965
  4  0.108806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/96402': 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) = 7791.18225906
delta logL = 0.319455019307

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  1.428e+01  2.079e+01  1.000e-04  1.000e+04 ( 1.000e-13)
406        Index:  2.937e+00  7.779e-01  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:  9.122e-01  1.088e-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.189e+00  3.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.20
Ra Dec: 177.387 -40.491
Photon Index (Free Index): 2.94 +/- 0.78
Photon Flux (Free Index): 9.55e-08 +/- 8.18e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.61e-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/96402/cmap_HighResolution_525744001_526003201_4FGL_J1149.5-4029_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', comment='SUCCESS', photon_flux='5.90e-08', energy_flux2='1.97e-05', photon_flux_error='5.97e-08', dlogl='3.19e-01', energy_flux='2.03e-05', photon_flux2='9.55e-08', job_status='DONE', time_completed='2021-09-04 12:40:45.158947', photon_index_error2='0.78', photon_index2='2.94', ts='1.52', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.85e-07', energy_flux_error2='1.61e-05', EG='1.23', time_epoch_completed='1630784445.16', return_code='0', job_id='96402', GAL2='0.91', EG2='1.19', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='8.18e-08', ts2='2.20', photon_index='2.36' WHERE bin_id='1105' AND source_name='4FGL J1149.5-4029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:40:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 96402: <4FGL_J1149.5-4029_daily_bin1105> in cluster <slac> Done

Job <4FGL_J1149.5-4029_daily_bin1105> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:26:35 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:26:36 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:26:36 2021
Terminated at Sat Sep  4 12:40:45 2021
Results reported at Sat Sep  4 12:40:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1149.5-4029_daily_bin1105 177.387 -40.491 525744001 526003201 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 :                                   828.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             365.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            850 sec.

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

