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


Performing analysis on: 4FGL_J1149.5-4029_daily_bin485
RA = 177.387, Dec = -40.491
tmin = 365040001, tmax = 365299201
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='93204', job_status='RUN', time_executed='2021-09-04 12:18:31.476185', time_epoch_executed='1630783111.48' WHERE source_name='4FGL J1149.5-4029' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/93204

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/93204/ft1_4FGL_J1149.5-4029_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/93204/ft2_4FGL_J1149.5-4029_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/93204/ft1_4FGL_J1149.5-4029_daily_bin485.fits outfile=/scratch/kocevski/93204/ft1_filteredMKT_4FGL_J1149.5-4029_daily_bin485.fits ra=177.387 dec=-40.491 rad=12.0 tmin=365040001.0 tmax=365299201.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.63
user 3.40
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/93204/ft1_filtered_4FGL_J1149.5-4029_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/93204/ft2_4FGL_J1149.5-4029_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/93204/ltcube_365040001_365299201_4FGL_J1149.5-4029_daily_bin485.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/93204/ft2_4FGL_J1149.5-4029_daily_bin485.fits
.....................!
real 11.82
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/93204/ft1_filtered_4FGL_J1149.5-4029_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/93204/ft2_4FGL_J1149.5-4029_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/93204/ltcube_365040001_365299201_4FGL_J1149.5-4029_daily_bin485.fits outfile=/scratch/kocevski/93204/expmap_365040001_365299201_4FGL_J1149.5-4029_daily_bin485.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/93204/ltcube_365040001_365299201_4FGL_J1149.5-4029_daily_bin485.fits
.....................!
real 190.08
user 185.31
sys 4.41

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/93204/ft1_filtered_4FGL_J1149.5-4029_daily_bin485.fits scfile=/scratch/kocevski/93204/ft2_4FGL_J1149.5-4029_daily_bin485.fits outfile=/scratch/kocevski/93204/cmap_365040001_365299201_4FGL_J1149.5-4029_daily_bin485.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.61
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/93204/ft1_filtered_4FGL_J1149.5-4029_daily_bin485.fits scfile=/scratch/kocevski/93204/ft2_4FGL_J1149.5-4029_daily_bin485.fits outfile=/scratch/kocevski/93204/cmap_HighResolution_365040001_365299201_4FGL_J1149.5-4029_daily_bin485.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.62
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/93204/ft1_filtered_4FGL_J1149.5-4029_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/93204/ft2_4FGL_J1149.5-4029_daily_bin485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/93204/Model_4FGL_J1149.5-4029_daily_bin485.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/93204/ft1_filtered_4FGL_J1149.5-4029_daily_bin485.fits.....................!
real 155.89
user 153.36
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.7257       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3601       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    56.796       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.758       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.486       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.887       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2321       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5404       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.665       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .72498       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1114       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=   8002.613     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1573 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3551        .22891E-06** at limit **
   2  norm          5.7258        3.2525       -.15590E-06   -.21928E-03
   3  Prefactor     3.3594        8.8028        .85893E-05   -.62628E-03
   4  norm          .10000E-03    23.387        .40040E-05** at limit **
   5  Prefactor     56.800        68.334        .15083E-05    .15276E-04
   6  norm          .10000E-03    18.047       -.44493E-05** at limit **
   7  Prefactor     .10000E-03    13.276        .24304E-05** at limit **
   8  norm          12.759        8.4736        .42410E-06   -.16277E-03
   9  Prefactor     .10000E-03    11.262       -.51420E-06** at limit **
  10  norm          15.486        24.770        .12461E-06   -.35965E-05
  11  Prefactor     14.887        13.287        .34460E-07   -.94156E-05
  12  Prefactor     5.1789        118.82       -.27273E-04   -.13492E-03
  13  Prefactor     .10000E-03    48.416       -.14771E-05** at limit **
  14  Prefactor     5.5411        6.1607        .24362E-05    .38450E-03
  15  Prefactor     16.665        11.081        .34135E-06    .66108E-04
  16  Normalizat    .72495        .29076        .30368E-06   -.10808E-07
  17  Prefactor     1.1114        .10208       -.31633E-06    .79038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.72579
  Prefactor  = 3.35937
  norm       = 0.000100001
  Prefactor  = 56.7997
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.7587
  Prefactor  = 0.0001
  norm       = 15.4864
  Prefactor  = 14.887
  Prefactor  = 5.17894
  Prefactor  = 0.0001
  Prefactor  = 5.54112
  Prefactor  = 16.6646
  Normalizat = 0.724947
  Prefactor  = 1.11139
 **********
 **   18 **HESSE 
 **********

 FCN=   8002.613     FROM HESSE     STATUS=OK           225 CALLS     1798 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.7258        3.2464        .11471E-03   -1.5229    
   3  Prefactor     3.3594        9.2684        .11038E-02   -1.5341    
   4  norm          .10000E-03    23.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     56.800        68.261        .53230E-04   -1.4199    
   6  norm          .10000E-03    18.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.759        8.4740        .56072E-03   -1.4993    
   9  Prefactor     .10000E-03    11.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.486        24.764        .10178E-03   -1.4921    
  11  Prefactor     14.887        13.279        .10381E-03   -1.4936    
  12  Prefactor     5.1789        134.20        .17573E-03   -1.5253    
  13  Prefactor     .10000E-03    48.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5411        6.3591        .13529E-03   -1.5237    
  15  Prefactor     16.665        11.084        .98111E-04   -1.4891    
  16  Normalizat    .72495        .31549        .51633E-03   -1.0292    
  17  Prefactor     1.1114        .11298        .15206E-03   -.89103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79034e-09
Minuit parameter uncertainties:
  1  2.03074e-06
  2  3.24654
  3  9.27239
  4  0.000235468
  5  68.355
  6  0.000296607
  7  9.51107e-05
  8  8.47479
  9  3.51656e-05
  10  24.7807
  11  13.2819
  12  52.8583
  13  0.000140347
  14  6.35983
  15  11.0854
  16  0.31629
  17  0.113002
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
818    Prefactor:  1.111e+00  1.130e-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:  7.249e-01  3.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/93204/likelihoodResults_365040001_365299201_4FGL_J1149.5-4029_daily_bin485.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8002.61364863
delta logL = -0.000422155979322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8002.61322754
delta logL = -1.06861443783e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3547       1.0000          .0000       10.000    
     3 'Normalizat'    .72467       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1114       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8002.613     FROM MIGRAD    STATUS=FAILED        91 CALLS      246 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10121E-03    542.43        .18142E-02** at limit **
   2  Index         2.2451        7.2429        .50000        .42860E-05
   3  Normalizat    .72495        .49138E-01    .51632E-03   -.26642E-05
   4  Prefactor     1.1114        .17730E-01    .15206E-03   -.63550E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8002.613     FROM SIMPLEX   STATUS=UNCHANGED    151 CALLS      397 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10121E-03    542.43        .51667E-03** at limit **
   2  Index         2.2451        7.2429        .41989E-04    .42860E-05
   3  Normalizat    .72495        .49138E-01    .75798E-06   -.26642E-05
   4  Prefactor     1.1114        .17730E-01    .13451E-06   -.63550E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8002.613     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      437 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6308.7        .36285E-03** at limit **
   2  Index         2.0476        5.0152        .50000        .82855E-07
   3  Normalizat    .72495        .24575        .20653E-04    .24441E-04
   4  Prefactor     1.1114        .88569E-01    .60824E-05    .84484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04757
  Normalizat = 0.724948
  Prefactor  = 1.11139
 **********
 **   18 **HESSE 
 **********

 FCN=   8002.613     FROM HESSE     STATUS=OK            29 CALLS      466 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.566        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0476        8.7626        .50000       -.63166    
   3  Normalizat    .72495        .30817        .41306E-05   -1.0292    
   4  Prefactor     1.1114        .11145        .12165E-05   -.89103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0142e-11
Minuit parameter uncertainties:
  1  4.37283e-05
  2  268.328
  3  0.308907
  4  0.11147
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/93204': 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) = 8002.61322622
delta logL = 2.57787178271e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
818    Prefactor:  1.111e+00  1.115e-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:  7.249e-01  3.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/93204/cmap_HighResolution_365040001_365299201_4FGL_J1149.5-4029_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-03', job_status='DONE', photon_flux_upper_limit='9.85e-08', time_completed='2021-09-04 12:32:34.754311', job_id='93204', GAL2='1.11', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630783954.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='485' AND source_name='4FGL J1149.5-4029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:32:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 93204: <4FGL_J1149.5-4029_daily_bin485> in cluster <slac> Done

Job <4FGL_J1149.5-4029_daily_bin485> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 12:16:36 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:16:37 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:37 2021
Terminated at Sat Sep  4 12:32:35 2021
Results reported at Sat Sep  4 12:32:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1149.5-4029_daily_bin485 177.387 -40.491 365040001 365299201 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 :                                   840.07 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             374.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            959 sec.

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

