/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 95 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_J1141.5-1408_daily_bin1105
RA = 175.387, Dec = -14.1457
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='998702', job_status='RUN', time_executed='2021-09-04 07:42:48.717441', time_epoch_executed='1630766568.72' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998702

Creating custom pfile directory:
/scratch/kocevski/998702/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/998702/ft1_4FGL_J1141.5-1408_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/998702/ft2_4FGL_J1141.5-1408_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998702/ft1_4FGL_J1141.5-1408_daily_bin1105.fits outfile=/scratch/kocevski/998702/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1105.fits ra=175.387 dec=-14.1457 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.37
user 4.06
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/998702/ft2_4FGL_J1141.5-1408_daily_bin1105.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998702/ft2_4FGL_J1141.5-1408_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/998702/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1105.fits evtable="EVENTS" outfile="/scratch/kocevski/998702/ft1_filtered_4FGL_J1141.5-1408_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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998702/ft1_filtered_4FGL_J1141.5-1408_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/998702/ft2_4FGL_J1141.5-1408_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/998702/ltcube_525744001_526003201_4FGL_J1141.5-1408_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/998702/ft2_4FGL_J1141.5-1408_daily_bin1105.fits
.....................!
real 12.09
user 11.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998702/ft1_filtered_4FGL_J1141.5-1408_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/998702/ft2_4FGL_J1141.5-1408_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/998702/ltcube_525744001_526003201_4FGL_J1141.5-1408_daily_bin1105.fits outfile=/scratch/kocevski/998702/expmap_525744001_526003201_4FGL_J1141.5-1408_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/998702/ltcube_525744001_526003201_4FGL_J1141.5-1408_daily_bin1105.fits
.....................!
real 190.99
user 185.02
sys 5.56

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
Added 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1141.5-1408 @ 175.387 -14.1457

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/998702/ft1_filtered_4FGL_J1141.5-1408_daily_bin1105.fits scfile=/scratch/kocevski/998702/ft2_4FGL_J1141.5-1408_daily_bin1105.fits outfile=/scratch/kocevski/998702/cmap_525744001_526003201_4FGL_J1141.5-1408_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=175.387 yref=-14.1457 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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998702/ft1_filtered_4FGL_J1141.5-1408_daily_bin1105.fits scfile=/scratch/kocevski/998702/ft2_4FGL_J1141.5-1408_daily_bin1105.fits outfile=/scratch/kocevski/998702/cmap_HighResolution_525744001_526003201_4FGL_J1141.5-1408_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=175.387 yref=-14.1457 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/998702/ft1_filtered_4FGL_J1141.5-1408_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/998702/ft2_4FGL_J1141.5-1408_daily_bin1105.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998702/Model_4FGL_J1141.5-1408_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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/998702/ft1_filtered_4FGL_J1141.5-1408_daily_bin1105.fits.....................!
real 52.35
user 49.67
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/998702/ft1_filtered_4FGL_J1141.5-1408_daily_bin1105.fits', '/scratch/kocevski/998702/ft2_4FGL_J1141.5-1408_daily_bin1105.fits', expMap='/scratch/kocevski/998702/expmap_525744001_526003201_4FGL_J1141.5-1408_daily_bin1105.fits', expCube='/scratch/kocevski/998702/ltcube_525744001_526003201_4FGL_J1141.5-1408_daily_bin1105.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/998702/Model_4FGL_J1141.5-1408_daily_bin1105.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1141.5-1408'

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  2.590e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  1.965e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  3.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/998702/ft1_filtered_4FGL_J1141.5-1408_daily_bin1105.fits
Spacecraft file(s): /scratch/kocevski/998702/ft2_4FGL_J1141.5-1408_daily_bin1105.fits
Exposure map: /scratch/kocevski/998702/expmap_525744001_526003201_4FGL_J1141.5-1408_daily_bin1105.fits
Exposure cube: /scratch/kocevski/998702/ltcube_525744001_526003201_4FGL_J1141.5-1408_daily_bin1105.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/998702/Model_4FGL_J1141.5-1408_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) = 5289.87079963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.537       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12998E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.410       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10852E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .38753E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .83081       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2729       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .75218       1.0000         .10000E-03   10000.    
    13 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.316       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6671       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.773       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4908       1.0000         .10000E-03   10000.    
    20 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.4357       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    105.22       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .23569E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5377       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .68127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5289.805     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3575 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.537        8.7312        .84485E-07    .32749E-04
   2  Prefactor     .10001E-03    64.419        .46633E-05** at limit **
   3  Prefactor     .10000E-03    49.772        .23770E-05** at limit **
   4  Prefactor     .10000E-03    9.6337        .18952E-06** at limit **
   5  Prefactor     .10000E-03    4.9924        .58112E-07** at limit **
   6  Prefactor     12.425        7.5700        .37105E-06    .47740E-03
   7  Prefactor     .10001E-03    86.533       -.50000E-05** at limit **
   8  norm          .10000E-03    11.003       -.30100E-06** at limit **
   9  Prefactor     .10000E-03    28.609       -.77610E-06** at limit **
  10  norm          .83074        .84289       -.11129E-07    .15654E-03
  11  Prefactor     2.2827        5.6463        .19202E-06   -.18335E-04
  12  Prefactor     .75179        13.441       -.48046E-06    .15775E-03
  13  norm          .10000E-03    19.902       -.95184E-06** at limit **
  14  Prefactor     .10000E-03    28.641       -.93653E-06** at limit **
  15  Prefactor     27.334        54.350        .20872E-05    .14641E-03
  16  norm          .10000E-03    8.1690       -.64170E-07** at limit **
  17  Prefactor     4.6691        3.9889        .42957E-06   -.14975E-03
  18  Prefactor     13.758        23.233       -.65030E-06   -.39086E-04
  19  Prefactor     4.4941        12.288        .64491E-05   -.27375E-03
  20  norm          .10000E-03    2.4685       -.39438E-06** at limit **
  21  Prefactor     8.4338        24.858        .16295E-06   -.63688E-05
  22  Prefactor     .10000E-03    41.047       -.58700E-06** at limit **
  23  Prefactor     .10000E-03    22.464        .21362E-05** at limit **
  24  Prefactor     105.19        62.970       -.36157E-05   -.23816E-03
  25  Prefactor     .10000E-03    41.397       -.20455E-05** at limit **
  26  Prefactor     .10000E-03    2.7573        .34876E-07** at limit **
  27  Normalizat    1.5376        .25950       -.18059E-05    .15303E-03
  28  Prefactor     .68127        .14537       -.57973E-07    .53464E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.5375
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.425
  Prefactor  = 0.000100006
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.830737
  Prefactor  = 2.28275
  Prefactor  = 0.751785
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3339
  norm       = 0.0001
  Prefactor  = 4.66907
  Prefactor  = 13.758
  Prefactor  = 4.49406
  norm       = 0.0001
  Prefactor  = 8.43383
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 105.193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.53755
  Prefactor  = 0.681273
 **********
 **   18 **HESSE 
 **********

 FCN=   5289.805     FROM HESSE     STATUS=OK           515 CALLS     4090 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.537        8.7382        .98490E-04   -1.4894    
   2  Prefactor     .10001E-03    66.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    50.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.6632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9977        .15870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.425        7.4146        .11371E-03   -1.5003    
   7  Prefactor     .10001E-03    88.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    46.097        .41863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .83074        .84242        .64938E-04   -1.5526    
  11  Prefactor     2.2827        5.3102        .23852E-03   -1.5406    
  12  Prefactor     .75179        57.158        .45858E-02   -1.5535    
  13  norm          .10000E-03    19.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.334        54.566        .76652E-04   -1.4662    
  16  norm          .10000E-03    8.3222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6691        3.9850        .62196E-03   -1.5276    
  18  Prefactor     13.758        23.339        .10793E-03   -1.4966    
  19  Prefactor     4.4941        12.677        .94998E-03   -1.5284    
  20  norm          .10000E-03    2.4938        .11173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.4338        24.845        .13802E-03   -1.5127    
  22  Prefactor     .10000E-03    42.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     105.19        63.919        .19601E-03   -1.3653    
  25  Prefactor     .10000E-03    41.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.7712        .11794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.5376        .31115        .27267E-03   -.76728    
  28  Prefactor     .68127        .17345        .23189E-03   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68376e-09
Minuit parameter uncertainties:
  1  8.73885
  2  0.00115591
  3  0.000546787
  4  1.91486e-05
  5  1.35395e-06
  6  7.41516
  7  0.00141677
  8  0.000737806
  9  0.000127143
  10  0.842434
  11  5.31128
  12  13.1225
  13  0.000100291
  14  0.000121367
  15  54.6658
  16  4.35083e-06
  17  3.98526
  18  23.3549
  19  12.6848
  20  1.53064e-05
  21  24.8751
  22  1.87217e-05
  23  0.000333605
  24  63.9611
  25  8.15959e-05
  26  3.20087e-06
  27  0.311539
  28  0.173589
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  2.733e+01  5.467e+01  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  1.965e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  3.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  6.813e-01  1.736e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.538e+00  3.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.33
Ra Dec: 175.387 -14.146
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998702/likelihoodResults_525744001_526003201_4FGL_J1141.5-1408_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) = 5287.36653001
delta logL = 2.43895074565

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5287.31719278
delta logL = 2.48828797313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1906       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7787       1.0000          .0000       10.000    
     3 'Normalizat'    1.3477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75121       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5287.317     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      264 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1851        9.2367        .88258E-02   -.75847E-03
   2  Index         3.7807        1.6306        .54003E-01    .33681E-04
   3  Normalizat    1.3475        .82026E-01    .64888E-01   -.13546E-05
   4  Prefactor     .75125        .48548E-01    .43079E-01    .59383E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18506
  Index      = 3.78071
  Normalizat = 1.34752
  Prefactor  = 0.751247
 **********
 **   18 **HESSE 
 **********

 FCN=   5287.317     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1851        15.493        .39564E-04   -1.5490    
   2  Index         3.7807        2.2716        .22304E-02   -.24634    
   3  Normalizat    1.3475        .27122        .28703E-03   -.82159    
   4  Prefactor     .75125        .16092        .22154E-03   -1.0155    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.3539e-10
Minuit parameter uncertainties:
  1  8.57204
  2  2.36416
  3  0.271508
  4  0.161021
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998702': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5287.31718795
delta logL = 2.48829280118

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.185e+00  8.572e+00  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  3.781e+00  2.364e+00  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  3.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  7.512e-01  1.610e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.348e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.64
Ra Dec: 175.387 -14.146
Photon Index (Free Index): 3.78 +/- 2.36
Photon Flux (Free Index): 1.84e-07 +/- 9.61e-08
Energy Flux (Free Index): 2.86e-05 +/- 1.94e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/998702/cmap_HighResolution_525744001_526003201_4FGL_J1141.5-1408_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.53e-03', comment='SUCCESS', energy_flux2='2.86e-05', dlogl='2.49e+00', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-04 07:56:04.141959', photon_index_error2='2.36', photon_index2='3.78', ts='0.33', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='1.94e-05', EG='1.54', time_epoch_completed='1630767364.14', return_code='0', job_id='998702', GAL2='0.75', EG2='1.35', return_code2='102', photon_flux_error2='9.61e-08', ts2='5.64', photon_index='1.97' WHERE bin_id='1105' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:56:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 998702: <4FGL_J1141.5-1408_daily_bin1105> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin1105> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 07:41:01 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:41:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 07:41:02 2021
Terminated at Sat Sep  4 07:56:06 2021
Results reported at Sat Sep  4 07:56:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1105 175.387 -14.1457 525744001 526003201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1141.5-1408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            905 sec.

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

