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


Performing analysis on: 4FGL_J1149.5-4029_daily_bin1475
RA = 177.387, Dec = -40.491
tmin = 621648001, tmax = 621907201
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='99043', job_status='RUN', time_executed='2021-09-04 12:38:57.773364', time_epoch_executed='1630784337.77' WHERE source_name='4FGL J1149.5-4029' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99043

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99043/ft1_4FGL_J1149.5-4029_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99043/ft2_4FGL_J1149.5-4029_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99043/ft1_4FGL_J1149.5-4029_daily_bin1475.fits outfile=/scratch/kocevski/99043/ft1_filteredMKT_4FGL_J1149.5-4029_daily_bin1475.fits ra=177.387 dec=-40.491 rad=12.0 tmin=621648001.0 tmax=621907201.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 5.37
user 5.11
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99043/ft1_filtered_4FGL_J1149.5-4029_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/99043/ft2_4FGL_J1149.5-4029_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/99043/ltcube_621648001_621907201_4FGL_J1149.5-4029_daily_bin1475.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/99043/ft2_4FGL_J1149.5-4029_daily_bin1475.fits
.....................!
real 11.77
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99043/ft1_filtered_4FGL_J1149.5-4029_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/99043/ft2_4FGL_J1149.5-4029_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/99043/ltcube_621648001_621907201_4FGL_J1149.5-4029_daily_bin1475.fits outfile=/scratch/kocevski/99043/expmap_621648001_621907201_4FGL_J1149.5-4029_daily_bin1475.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/99043/ltcube_621648001_621907201_4FGL_J1149.5-4029_daily_bin1475.fits
.....................!
real 190.14
user 185.10
sys 4.58

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/99043/ft1_filtered_4FGL_J1149.5-4029_daily_bin1475.fits scfile=/scratch/kocevski/99043/ft2_4FGL_J1149.5-4029_daily_bin1475.fits outfile=/scratch/kocevski/99043/cmap_621648001_621907201_4FGL_J1149.5-4029_daily_bin1475.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99043/ft1_filtered_4FGL_J1149.5-4029_daily_bin1475.fits scfile=/scratch/kocevski/99043/ft2_4FGL_J1149.5-4029_daily_bin1475.fits outfile=/scratch/kocevski/99043/cmap_HighResolution_621648001_621907201_4FGL_J1149.5-4029_daily_bin1475.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99043/ft1_filtered_4FGL_J1149.5-4029_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/99043/ft2_4FGL_J1149.5-4029_daily_bin1475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99043/Model_4FGL_J1149.5-4029_daily_bin1475.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/99043/ft1_filtered_4FGL_J1149.5-4029_daily_bin1475.fits.....................!
real 151.28
user 149.64
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    4.3360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3239       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26727       1.0000         .10000E-03   10000.    
     6 'norm      '    50.858       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .27259E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.976       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2887       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .64043E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.890       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0404       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0144       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=   7893.054     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1706 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4465        .24972E-07** at limit **
   2  norm          4.3363        2.5592       -.32802E-07   -.17788E-03
   3  Prefactor     3.3232        14.116        .18665E-05    .47393E-05
   4  norm          .10000E-03    6.9200       -.78260E-08** at limit **
   5  Prefactor     .10041E-03    27.014        .49339E-06** at limit **
   6  norm          50.855        41.846        .10038E-06   -.12518E-04
   7  Prefactor     .10000E-03    11.835        .46132E-08** at limit **
   8  norm          .76480E-01    5.2926        .15867E-05   -.22803E-03
   9  Prefactor     44.914        24.037       -.48457E-05   -.88394E-03
  10  norm          .10000E-03    14.631        .24610E-07** at limit **
  11  Prefactor     3.2857        10.408        .45319E-05   -.84888E-03
  12  Prefactor     .10000E-03    18.914       -.50844E-08** at limit **
  13  Prefactor     54.893        117.33        .14343E-05    .81968E-05
  14  Prefactor     .10000E-03    2.0427        .75275E-08** at limit **
  15  Prefactor     .10000E-03    4.6915        .16068E-07** at limit **
  16  Normalizat    1.0399        .26423        .50717E-06   -.23962E-03
  17  Prefactor     1.0145        .93022E-01   -.10675E-06   -.41439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.33625
  Prefactor  = 3.32319
  norm       = 0.0001
  Prefactor  = 0.000100414
  norm       = 50.8551
  Prefactor  = 0.0001
  norm       = 0.0764803
  Prefactor  = 44.9138
  norm       = 0.0001
  Prefactor  = 3.28574
  Prefactor  = 0.000100001
  Prefactor  = 54.8927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03989
  Prefactor  = 1.01452
 **********
 **   18 **HESSE 
 **********

 FCN=   7893.054     FROM HESSE     STATUS=OK           245 CALLS     1951 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3363        2.5536        .10393E-03   -1.5291    
   3  Prefactor     3.3232        14.089        .22203E-03   -1.5343    
   4  norm          .10000E-03    6.9228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10041E-03    27.790        .16289       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          50.855        41.880        .56235E-04   -1.4280    
   7  Prefactor     .10000E-03    11.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .76480E-01    11.014        .57706E-01   -1.5653    
   9  Prefactor     44.914        26.035        .59783E-04   -1.4367    
  10  norm          .10000E-03    14.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2857        16.432        .11163E-02   -1.5345    
  12  Prefactor     .10000E-03    19.350        .10002       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     54.893        117.41        .54141E-04   -1.4225    
  14  Prefactor     .10000E-03    4.1039        .22359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0399        .31008        .42639E-03   -.91706    
  17  Prefactor     1.0145        .10980        .15308E-03   -.92247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65651e-09
Minuit parameter uncertainties:
  1  2.55803e-06
  2  2.55369
  3  13.6903
  4  3.70108e-06
  5  0.00678323
  6  41.9041
  7  5.62136e-06
  8  1.83474
  9  26.0419
  10  2.11159e-06
  11  14.7018
  12  0.000306942
  13  117.914
  14  7.0253e-06
  15  3.01364e-06
  16  0.310617
  17  0.109827
Done.

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

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  4.491e+01  2.604e+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:  1.015e+00  1.098e-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.040e+00  3.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.65
Ra Dec: 177.387 -40.491
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 6.09e-08
Energy Flux (Fixed Index): 3.62e-05 +/- 2.10e-05

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) = 7892.91441094
delta logL = 0.139694968886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7892.91342652
delta logL = 0.140679385981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.612       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1078       1.0000          .0000       10.000    
     3 'Normalizat'    1.0677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0082       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=   7892.913     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      303 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.589        35.241        .53791E-04    .45229E-04
   2  Index         2.1074        .47031        .72623E-02    .35894E-03
   3  Normalizat    1.0678        .30586        .42149E-03   -.70669E-05
   4  Prefactor     1.0083        .10817        .15350E-03    .86447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.5893
  Index      = 2.1074
  Normalizat = 1.06776
  Prefactor  = 1.00827
 **********
 **   18 **HESSE 
 **********

 FCN=   7892.913     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.589        34.597        .10758E-04   -1.4215    
   2  Index         2.1074        .46137        .14525E-02   -.61691    
   3  Normalizat    1.0678        .30582        .16859E-04   -.90794    
   4  Prefactor     1.0083        .10819        .30700E-04   -.92454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95175e-11
Minuit parameter uncertainties:
  1  34.6099
  2  0.46236
  3  0.306322
  4  0.108215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99043': 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) = 7892.91342535
delta logL = 0.140680553975

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  5.559e+01  3.461e+01  1.000e-04  1.000e+04 ( 1.000e-13)
406        Index:  2.107e+00  4.624e-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:  1.008e+00  1.082e-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.068e+00  3.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.91
Ra Dec: 177.387 -40.491
Photon Index (Free Index): 2.11 +/- 0.46
Photon Flux (Free Index): 8.58e-08 +/- 6.24e-08
Energy Flux (Free Index): 4.63e-05 +/- 3.59e-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/99043/cmap_HighResolution_621648001_621907201_4FGL_J1149.5-4029_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='4.63e-05', photon_flux_error='6.09e-08', dlogl='1.41e-01', energy_flux='3.62e-05', photon_flux2='8.58e-08', job_status='DONE', time_completed='2021-09-04 12:52:03.033473', photon_index_error2='0.46', photon_index2='2.11', ts='5.65', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.59e-05', EG='1.04', time_epoch_completed='1630785123.03', return_code='0', job_id='99043', GAL2='1.01', EG2='1.07', return_code2='0', energy_flux_error='2.10e-05', photon_flux_error2='6.24e-08', ts2='5.91', photon_index='2.36' WHERE bin_id='1475' AND source_name='4FGL J1149.5-4029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:52:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 99043: <4FGL_J1149.5-4029_daily_bin1475> in cluster <slac> Done

Job <4FGL_J1149.5-4029_daily_bin1475> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 12:36:24 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:36:25 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:36:25 2021
Terminated at Sat Sep  4 12:52:03 2021
Results reported at Sat Sep  4 12:52:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1149.5-4029_daily_bin1475 177.387 -40.491 621648001 621907201 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 :                                   782.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             325.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

