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


Performing analysis on: 4FGL_J1149.5-4029_daily_bin553
RA = 177.387, Dec = -40.491
tmin = 382665601, tmax = 382924801
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='93314', job_status='RUN', time_executed='2021-09-04 12:19:05.514755', time_epoch_executed='1630783145.51' WHERE source_name='4FGL J1149.5-4029' and cadence='daily' and bin_id='553'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93314

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93314/ft1_4FGL_J1149.5-4029_daily_bin553.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93314/ft2_4FGL_J1149.5-4029_daily_bin553.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93314/ft1_4FGL_J1149.5-4029_daily_bin553.fits outfile=/scratch/kocevski/93314/ft1_filteredMKT_4FGL_J1149.5-4029_daily_bin553.fits ra=177.387 dec=-40.491 rad=12.0 tmin=382665601.0 tmax=382924801.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.33
user 3.12
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93314/ft1_filtered_4FGL_J1149.5-4029_daily_bin553.fits" evtable="EVENTS" scfile=/scratch/kocevski/93314/ft2_4FGL_J1149.5-4029_daily_bin553.fits sctable="SC_DATA" outfile=/scratch/kocevski/93314/ltcube_382665601_382924801_4FGL_J1149.5-4029_daily_bin553.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/93314/ft2_4FGL_J1149.5-4029_daily_bin553.fits
.....................!
real 14.41
user 14.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93314/ft1_filtered_4FGL_J1149.5-4029_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/93314/ft2_4FGL_J1149.5-4029_daily_bin553.fits sctable="SC_DATA" expcube=/scratch/kocevski/93314/ltcube_382665601_382924801_4FGL_J1149.5-4029_daily_bin553.fits outfile=/scratch/kocevski/93314/expmap_382665601_382924801_4FGL_J1149.5-4029_daily_bin553.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/93314/ltcube_382665601_382924801_4FGL_J1149.5-4029_daily_bin553.fits
.....................!
real 190.16
user 185.16
sys 4.65

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/93314/ft1_filtered_4FGL_J1149.5-4029_daily_bin553.fits scfile=/scratch/kocevski/93314/ft2_4FGL_J1149.5-4029_daily_bin553.fits outfile=/scratch/kocevski/93314/cmap_382665601_382924801_4FGL_J1149.5-4029_daily_bin553.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93314/ft1_filtered_4FGL_J1149.5-4029_daily_bin553.fits scfile=/scratch/kocevski/93314/ft2_4FGL_J1149.5-4029_daily_bin553.fits outfile=/scratch/kocevski/93314/cmap_HighResolution_382665601_382924801_4FGL_J1149.5-4029_daily_bin553.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/93314/ft1_filtered_4FGL_J1149.5-4029_daily_bin553.fits evtable="EVENTS" scfile=/scratch/kocevski/93314/ft2_4FGL_J1149.5-4029_daily_bin553.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/93314/Model_4FGL_J1149.5-4029_daily_bin553.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/93314/ft1_filtered_4FGL_J1149.5-4029_daily_bin553.fits.....................!
real 136.03
user 134.47
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7802       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6823       1.0000         .10000E-03   10000.    
     4 'norm      '    .11833E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.1245       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.895       1.0000         .10000E-03   10000.    
    10 'norm      '    13.471       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1862       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.301       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2670       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8337       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5772       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .77883       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=   7248.881     FROM MIGRAD    STATUS=CONVERGED    319 CALLS     1557 TOTAL
                     EDM=   .86E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7805        8.1851        .10296E-06   -.41765E-03
   2  norm          .10000E-03    1.3698       -.11581E-07** at limit **
   3  Prefactor     5.6767        6.0743        .29995E-06   -.59102E-03
   4  norm          .10000E-03    33.701       -.44514E-07** at limit **
   5  Prefactor     .10000E-03    13.812       -.15326E-05** at limit **
   6  norm          .10000E-03    15.277        .69422E-06** at limit **
   7  Prefactor     .10000E-03    10.859       -.70392E-07** at limit **
   8  norm          6.1253        7.5982       -.98821E-07   -.34200E-04
   9  Prefactor     19.896        24.664        .89599E-06    .16750E-04
  10  norm          13.468        26.662       -.30574E-05   -.35432E-04
  11  Prefactor     8.1858        17.837       -.57269E-06   -.15906E-04
  12  Prefactor     .10000E-03    12.837        .97067E-06** at limit **
  13  Prefactor     61.304        83.033        .29337E-05    .14982E-04
  14  Prefactor     5.2688        3.3429       -.11804E-07   -.66137E-04
  15  Prefactor     7.8343        7.5024       -.36966E-07   -.48190E-05
  16  Normalizat    1.5774        .26690        .17798E-06   -.72496E-05
  17  Prefactor     .77873        .90651E-01   -.47226E-07    .95162E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.78048
  norm       = 0.0001
  Prefactor  = 5.6767
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.12529
  Prefactor  = 19.8958
  norm       = 13.4679
  Prefactor  = 8.18578
  Prefactor  = 0.0001
  Prefactor  = 61.3043
  Prefactor  = 5.26882
  Prefactor  = 7.83433
  Normalizat = 1.57737
  Prefactor  = 0.778734
 **********
 **   18 **HESSE 
 **********

 FCN=   7248.881     FROM HESSE     STATUS=OK           225 CALLS     1782 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7805        9.2424        .71880E-03   -1.5150    
   2  norm          .10000E-03    1.4065        .19444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6767        9.2455        .84255E-03   -1.5231    
   4  norm          .10000E-03    34.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.1253        7.5943        .16223E-03   -1.5213    
   9  Prefactor     19.896        24.654        .89797E-04   -1.4816    
  10  norm          13.468        26.811        .10913E-03   -1.4974    
  11  Prefactor     8.1858        17.907        .14012E-03   -1.5136    
  12  Prefactor     .10000E-03    12.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     61.304        83.107        .51248E-04   -1.4140    
  14  Prefactor     5.2688        3.3499        .11972E-03   -1.5249    
  15  Prefactor     7.8343        7.5046        .14326E-03   -1.5148    
  16  Normalizat    1.5774        .31985        .35717E-03   -.75627    
  17  Prefactor     .77873        .10912        .16594E-03   -1.0052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.40982e-10
Minuit parameter uncertainties:
  1  9.24404
  2  6.4022e-07
  3  9.24786
  4  6.26684e-06
  5  3.3229e-05
  6  1.48326e-05
  7  1.13358e-06
  8  7.59547
  9  24.6664
  10  26.835
  11  17.9192
  12  1.86903e-05
  13  83.2652
  14  3.35001
  15  7.50552
  16  0.320262
  17  0.109146
Done.

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

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  1.990e+01  2.467e+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.787e-01  1.091e-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.577e+00  3.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/93314/likelihoodResults_382665601_382924801_4FGL_J1149.5-4029_daily_bin553.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) = 7248.82967392
delta logL = 0.0512214799965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7248.8262917
delta logL = 0.0546037021995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.229       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1286       1.0000          .0000       10.000    
     3 'Normalizat'    1.5875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77644       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=   7248.826     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      293 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.227        30.146        .81379E-04    .30217E-03
   2  Index         2.1286        .69288        .86883E-02    .15059E-03
   3  Normalizat    1.5876        .31502        .35624E-03   -.13920E-03
   4  Prefactor     .77639        .10789        .16616E-03   -.36885E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2272
  Index      = 2.12864
  Normalizat = 1.58764
  Prefactor  = 0.776394
 **********
 **   18 **HESSE 
 **********

 FCN=   7248.826     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.227        29.776        .16276E-04   -1.4723    
   2  Index         2.1286        .68429        .34753E-03   -.61172    
   3  Normalizat    1.5876        .31519        .14250E-04   -.75345    
   4  Prefactor     .77639        .10796        .33231E-04   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54259e-10
Minuit parameter uncertainties:
  1  29.7943
  2  0.687514
  3  0.315584
  4  0.107988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93314': 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) = 7248.82629159
delta logL = 0.0546038151851

Extracting fit parameters...

4FGL J1149.5-4029
   Spectrum: PowerLaw
405    Prefactor:  2.423e+01  2.979e+01  1.000e-04  1.000e+04 ( 1.000e-13)
406        Index:  2.129e+00  6.875e-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:  7.764e-01  1.080e-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.588e+00  3.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 177.387 -40.491
Photon Index (Free Index): 2.13 +/- 0.69
Photon Flux (Free Index): 3.86e-08 +/- 5.55e-08
Energy Flux (Free Index): 1.99e-05 +/- 2.70e-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/93314/cmap_HighResolution_382665601_382924801_4FGL_J1149.5-4029_daily_bin553.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', comment='SUCCESS', energy_flux2='1.99e-05', dlogl='5.46e-02', photon_flux2='3.86e-08', job_status='DONE', time_completed='2021-09-04 12:31:55.555978', photon_index_error2='0.69', photon_index2='2.13', ts='0.91', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='2.70e-05', EG='1.58', time_epoch_completed='1630783915.56', return_code='0', job_id='93314', GAL2='0.78', EG2='1.59', return_code2='0', photon_flux_error2='5.55e-08', ts2='1.02', photon_index='2.36' WHERE bin_id='553' AND source_name='4FGL J1149.5-4029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:31:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 93314: <4FGL_J1149.5-4029_daily_bin553> in cluster <slac> Done

Job <4FGL_J1149.5-4029_daily_bin553> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 12:16:44 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:16:46 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:16:46 2021
Terminated at Sat Sep  4 12:31:56 2021
Results reported at Sat Sep  4 12:31:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1149.5-4029_daily_bin553 177.387 -40.491 382665601 382924801 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 :                                   769.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             288.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            912 sec.

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

