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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1383
RA = 175.387, Dec = -14.1457
tmin = 597801601, tmax = 598060801
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='999088', job_status='RUN', time_executed='2021-09-04 07:42:47.134079', time_epoch_executed='1630766567.13' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1383'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999088

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999088/ft1_4FGL_J1141.5-1408_daily_bin1383.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999088/ft2_4FGL_J1141.5-1408_daily_bin1383.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999088/ft1_4FGL_J1141.5-1408_daily_bin1383.fits outfile=/scratch/kocevski/999088/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1383.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=597801601.0 tmax=598060801.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.66
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/999088/ft2_4FGL_J1141.5-1408_daily_bin1383.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/999088/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1383.fits evtable="EVENTS" outfile="/scratch/kocevski/999088/ft1_filtered_4FGL_J1141.5-1408_daily_bin1383.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.62
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999088/ft1_filtered_4FGL_J1141.5-1408_daily_bin1383.fits" evtable="EVENTS" scfile=/scratch/kocevski/999088/ft2_4FGL_J1141.5-1408_daily_bin1383.fits sctable="SC_DATA" outfile=/scratch/kocevski/999088/ltcube_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.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/999088/ft2_4FGL_J1141.5-1408_daily_bin1383.fits
.....................!
real 11.62
user 11.30
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999088/ft1_filtered_4FGL_J1141.5-1408_daily_bin1383.fits evtable="EVENTS" scfile=/scratch/kocevski/999088/ft2_4FGL_J1141.5-1408_daily_bin1383.fits sctable="SC_DATA" expcube=/scratch/kocevski/999088/ltcube_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.fits outfile=/scratch/kocevski/999088/expmap_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.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/999088/ltcube_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.fits
.....................!
real 190.51
user 186.27
sys 3.88

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/999088/ft1_filtered_4FGL_J1141.5-1408_daily_bin1383.fits scfile=/scratch/kocevski/999088/ft2_4FGL_J1141.5-1408_daily_bin1383.fits outfile=/scratch/kocevski/999088/cmap_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999088/ft1_filtered_4FGL_J1141.5-1408_daily_bin1383.fits scfile=/scratch/kocevski/999088/ft2_4FGL_J1141.5-1408_daily_bin1383.fits outfile=/scratch/kocevski/999088/cmap_HighResolution_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999088/ft1_filtered_4FGL_J1141.5-1408_daily_bin1383.fits evtable="EVENTS" scfile=/scratch/kocevski/999088/ft2_4FGL_J1141.5-1408_daily_bin1383.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999088/Model_4FGL_J1141.5-1408_daily_bin1383.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/999088/ft1_filtered_4FGL_J1141.5-1408_daily_bin1383.fits....................!
real 60.15
user 58.66
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/999088/ft1_filtered_4FGL_J1141.5-1408_daily_bin1383.fits', '/scratch/kocevski/999088/ft2_4FGL_J1141.5-1408_daily_bin1383.fits', expMap='/scratch/kocevski/999088/expmap_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.fits', expCube='/scratch/kocevski/999088/ltcube_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/999088/Model_4FGL_J1141.5-1408_daily_bin1383.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/999088/ft1_filtered_4FGL_J1141.5-1408_daily_bin1383.fits
Spacecraft file(s): /scratch/kocevski/999088/ft2_4FGL_J1141.5-1408_daily_bin1383.fits
Exposure map: /scratch/kocevski/999088/expmap_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.fits
Exposure cube: /scratch/kocevski/999088/ltcube_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/999088/Model_4FGL_J1141.5-1408_daily_bin1383.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) = 6522.28115985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.973       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    105.81       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.348       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.924       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6605       1.0000         .10000E-03   10000.    
    12 'Prefactor '    78.402       1.0000         .10000E-03   10000.    
    13 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7399       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    64.611       1.0000         .10000E-03   10000.    
    20 'norm      '    1.4574       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5967       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.255       1.0000         .10000E-03   10000.    
    25 'Prefactor '    25.522       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8565       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2726       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80664       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=   6522.279     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3451 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.971        10.172        .18167E-07   -.21539E-04
   2  Prefactor     9.7177        19.870       -.32177E-06    .54511E-05
   3  Prefactor     105.78        109.40        .36456E-05    .57524E-04
   4  Prefactor     21.343        19.219        .94321E-07   -.46601E-05
   5  Prefactor     .10000E-03    3.9154       -.65865E-07** at limit **
   6  Prefactor     .10000E-03    4.0958        .24743E-07** at limit **
   7  Prefactor     .10000E-03    42.043        .18985E-05** at limit **
   8  norm          10.924        10.603       -.79610E-06   -.19880E-04
   9  Prefactor     .10000E-03    15.736       -.83527E-06** at limit **
  10  norm          .10000E-03    .41422       -.14187E-06** at limit **
  11  Prefactor     4.6521        5.5596        .20919E-05   -.21767E-03
  12  Prefactor     78.397        16.898        .11659E-06    .10060E-03
  13  norm          .10000E-03    38.190       -.18970E-05** at limit **
  14  Prefactor     7.7331        25.906       -.32566E-06    .50753E-04
  15  Prefactor     .10000E-03    22.039       -.11266E-05** at limit **
  16  norm          .10000E-03    5.4109        .10853E-07** at limit **
  17  Prefactor     .10000E-03    1.7098        .52065E-07** at limit **
  18  Prefactor     .10000E-03    5.8079        .90692E-07** at limit **
  19  Prefactor     64.605        20.816        .37195E-06    .97864E-04
  20  norm          1.4583        3.3784       -.47507E-07   -.93210E-04
  21  Prefactor     .10000E-03    20.047        .62600E-06** at limit **
  22  Prefactor     6.5970        11.385        .26260E-07   -.39075E-04
  23  Prefactor     .10000E-03    17.793        .13038E-05** at limit **
  24  Prefactor     51.254        44.765        .17577E-06    .97224E-05
  25  Prefactor     25.523        26.173       -.61900E-07   -.53705E-05
  26  Prefactor     1.8566        5.2080        .54451E-06   -.91933E-06
  27  Normalizat    1.2730        .24507        .42686E-08    .89808E-04
  28  Prefactor     .80648        .14141       -.70389E-06   -.79281E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 24.9711
  Prefactor  = 9.71767
  Prefactor  = 105.785
  Prefactor  = 21.3431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9244
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.6521
  Prefactor  = 78.3975
  norm       = 0.0001
  Prefactor  = 7.73314
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.6051
  norm       = 1.45827
  Prefactor  = 0.0001
  Prefactor  = 6.59702
  Prefactor  = 0.0001
  Prefactor  = 51.2544
  Prefactor  = 25.5229
  Prefactor  = 1.85659
  Normalizat = 1.27299
  Prefactor  = 0.806476
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.279     FROM HESSE     STATUS=OK           517 CALLS     3968 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.971        10.179        .80160E-04   -1.4708    
   2  Prefactor     9.7177        19.861        .12855E-03   -1.5084    
   3  Prefactor     105.78        109.65        .39095E-04   -1.3647    
   4  Prefactor     21.343        19.227        .86688E-04   -1.4784    
   5  Prefactor     .10000E-03    3.9176        .15603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1432        .15921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    42.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.924        10.578        .12121E-03   -1.5047    
   9  Prefactor     .10000E-03    15.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .63414        .10065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6521        5.6260        .91237E-03   -1.5277    
  12  Prefactor     78.397        16.990        .45354E-04   -1.3935    
  13  norm          .10000E-03    38.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.7331        26.053        .14414E-03   -1.5152    
  15  Prefactor     .10000E-03    22.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.5762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.7409        .10305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.8146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     64.605        20.662        .49926E-04   -1.4099    
  20  norm          1.4583        3.3027        .20563E-03   -1.5466    
  21  Prefactor     .10000E-03    20.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.5970        11.404        .15624E-03   -1.5194    
  23  Prefactor     .10000E-03    17.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     51.254        44.763        .56018E-04   -1.4275    
  25  Prefactor     25.523        26.188        .79294E-04   -1.4697    
  26  Prefactor     1.8566        5.1753        .29790E-03   -1.5435    
  27  Normalizat    1.2730        .29173        .31333E-03   -.84376    
  28  Prefactor     .80648        .16725        .23428E-03   -.99490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17869e-10
Minuit parameter uncertainties:
  1  10.1801
  2  19.874
  3  109.859
  4  19.2322
  5  6.8527e-06
  6  1.55347e-06
  7  0.000166088
  8  10.5793
  9  5.85719e-05
  10  3.41301e-06
  11  5.62659
  12  16.9913
  13  0.000274496
  14  26.0913
  15  7.5391e-05
  16  4.15158e-06
  17  3.14793e-06
  18  7.30524e-06
  19  20.6647
  20  3.3031
  21  4.77797e-05
  22  11.4081
  23  8.88938e-05
  24  44.792
  25  26.1996
  26  5.17657
  27  0.29211
  28  0.167356
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  7.539e-05  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:  8.065e-01  1.674e-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.273e+00  2.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 175.387 -14.146
Photon Flux Upper Limit: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999088/likelihoodResults_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.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) = 6522.27958548
delta logL = -0.000215999927605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6522.27936957
delta logL = -9.79898686637e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8823       1.0000          .0000       10.000    
     3 'Normalizat'    1.2730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80648       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=   6522.279     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    450.91        .90712E-02** at limit **
   2  Index         1.8913        8.6050        .50000       -.35089E-05
   3  Normalizat    1.2730        .28017E-01    .70812E-01    .10721E-04
   4  Prefactor     .80648        .17188E-01    .43802E-01    .14358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89132
  Normalizat = 1.27299
  Prefactor  = 0.806477
 **********
 **   18 **HESSE 
 **********

 FCN=   6522.279     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1045.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8913        5.9445        .50000       -.67096    
   3  Normalizat    1.2730        .44605E-01    .31332E-03   -.84376    
   4  Prefactor     .80648        .27386E-01    .23428E-03   -.99490    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.18483e-10
Minuit parameter uncertainties:
  1  0.000150164
  2  28.0117
  3  0.0446065
  4  0.027386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999088': 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) = 6522.27936955
delta logL = -7.40801624488e-08

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.502e-04  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  1.891e+00  2.801e+01  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:  8.065e-01  2.739e-02  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.273e+00  4.461e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 175.387 -14.146

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/999088/cmap_HighResolution_597801601_598060801_4FGL_J1141.5-1408_daily_bin1383.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.66e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-04 07:57:04.008336', job_id='999088', GAL2='0.81', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630767424.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-7.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1383' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:57:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 999088: <4FGL_J1141.5-1408_daily_bin1383> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin1383> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 07:41:30 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:41:32 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:32 2021
Terminated at Sat Sep  4 07:57:06 2021
Results reported at Sat Sep  4 07:57:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1383 175.387 -14.1457 597801601 598060801 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 :                                   826.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            936 sec.

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

