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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1599
RA = 175.387, Dec = -14.1457
tmin = 653788801, tmax = 654048001
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='952468', job_status='RUN', time_executed='2021-09-23 00:23:20.191514', time_epoch_executed='1632381800.19' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/952468

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/952468/ft1_4FGL_J1141.5-1408_daily_bin1599.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/952468/ft2_4FGL_J1141.5-1408_daily_bin1599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/952468/ft1_4FGL_J1141.5-1408_daily_bin1599.fits outfile=/scratch/kocevski/952468/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1599.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=653788801.0 tmax=654048001.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.92
user 3.63
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/952468/ft2_4FGL_J1141.5-1408_daily_bin1599.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/952468/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1599.fits evtable="EVENTS" outfile="/scratch/kocevski/952468/ft1_filtered_4FGL_J1141.5-1408_daily_bin1599.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/952468/ft1_filtered_4FGL_J1141.5-1408_daily_bin1599.fits" evtable="EVENTS" scfile=/scratch/kocevski/952468/ft2_4FGL_J1141.5-1408_daily_bin1599.fits sctable="SC_DATA" outfile=/scratch/kocevski/952468/ltcube_653788801_654048001_4FGL_J1141.5-1408_daily_bin1599.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/952468/ft2_4FGL_J1141.5-1408_daily_bin1599.fits
.....................!
real 13.95
user 13.54
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/952468/ft1_filtered_4FGL_J1141.5-1408_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/952468/ft2_4FGL_J1141.5-1408_daily_bin1599.fits sctable="SC_DATA" expcube=/scratch/kocevski/952468/ltcube_653788801_654048001_4FGL_J1141.5-1408_daily_bin1599.fits outfile=/scratch/kocevski/952468/expmap_653788801_654048001_4FGL_J1141.5-1408_daily_bin1599.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/952468/ltcube_653788801_654048001_4FGL_J1141.5-1408_daily_bin1599.fits
.....................!
real 192.44
user 185.93
sys 6.07

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/952468/ft1_filtered_4FGL_J1141.5-1408_daily_bin1599.fits scfile=/scratch/kocevski/952468/ft2_4FGL_J1141.5-1408_daily_bin1599.fits outfile=/scratch/kocevski/952468/cmap_653788801_654048001_4FGL_J1141.5-1408_daily_bin1599.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.86
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/952468/ft1_filtered_4FGL_J1141.5-1408_daily_bin1599.fits scfile=/scratch/kocevski/952468/ft2_4FGL_J1141.5-1408_daily_bin1599.fits outfile=/scratch/kocevski/952468/cmap_HighResolution_653788801_654048001_4FGL_J1141.5-1408_daily_bin1599.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.60
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/952468/ft1_filtered_4FGL_J1141.5-1408_daily_bin1599.fits evtable="EVENTS" scfile=/scratch/kocevski/952468/ft2_4FGL_J1141.5-1408_daily_bin1599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/952468/Model_4FGL_J1141.5-1408_daily_bin1599.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/952468/ft1_filtered_4FGL_J1141.5-1408_daily_bin1599.fits.....................!
real 58.34
user 56.43
sys 1.55

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.181       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    69.869       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.680       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.941       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.1299       1.0000         .10000E-03   10000.    
     9 'Prefactor '    87.201       1.0000         .10000E-03   10000.    
    10 'norm      '    .58385E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4112       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.303       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.465       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.097       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    76.735       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .69375       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1721       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=   6166.734     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3517 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.181        9.9494        .32291E-07   -.45674E-04
   2  Prefactor     .10002E-03    72.882       -.46082E-04** at limit **
   3  Prefactor     69.893        119.50        .28260E-04    .23171E-03
   4  Prefactor     29.682        23.730        .51991E-06   -.14218E-03
   5  Prefactor     11.941        12.662       -.58687E-07   -.60055E-04
   6  Prefactor     .10000E-03    3.5780        .15733E-06** at limit **
   7  Prefactor     .10000E-03    39.540        .54826E-04** at limit **
   8  norm          9.1293        17.941       -.72722E-07   -.12992E-03
   9  Prefactor     87.198        80.284       -.29220E-05    .13283E-03
  10  norm          .56884E-01    .78097       -.53266E-06    .15469E-03
  11  Prefactor     8.2475        9.1087       -.91614E-07   -.46953E-03
  12  Prefactor     .10000E-03    5.9405        .29378E-05** at limit **
  13  norm          6.4109        19.217       -.19978E-06   -.53672E-04
  14  Prefactor     .10000E-03    18.786        .16491E-04** at limit **
  15  Prefactor     26.304        39.324        .10957E-05   -.62871E-05
  16  norm          .10000E-03    4.6631        .64931E-06** at limit **
  17  Prefactor     .10000E-03    1.9610        .27749E-07** at limit **
  18  Prefactor     44.464        21.902        .14530E-06    .45483E-05
  19  Prefactor     .10000E-03    5.5823       -.28804E-05** at limit **
  20  norm          .10000E-03    1.3985        .20519E-07** at limit **
  21  Prefactor     .10000E-03    26.988       -.18334E-04** at limit **
  22  Prefactor     32.099        20.709        .73501E-06    .96623E-04
  23  Prefactor     .10000E-03    24.178       -.24194E-04** at limit **
  24  Prefactor     76.736        56.560        .35071E-06    .26101E-04
  25  Prefactor     .10000E-03    9.4188       -.14761E-05** at limit **
  26  Prefactor     .10000E-03    2.4554        .79404E-08** at limit **
  27  Normalizat    .69369        .26593       -.35824E-05    .12055E-03
  28  Prefactor     1.1721        .15280        .42989E-06    .23972E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.1807
  Prefactor  = 0.000100018
  Prefactor  = 69.8928
  Prefactor  = 29.6817
  Prefactor  = 11.9406
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.12925
  Prefactor  = 87.1981
  norm       = 0.056884
  Prefactor  = 8.24753
  Prefactor  = 0.0001
  norm       = 6.41089
  Prefactor  = 0.0001
  Prefactor  = 26.3038
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.4644
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0985
  Prefactor  = 0.0001
  Prefactor  = 76.7356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.693691
  Prefactor  = 1.17214
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.734     FROM HESSE     STATUS=OK           515 CALLS     4032 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.181        9.9463        .99569E-04   -1.4903    
   2  Prefactor     .10002E-03    74.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     69.893        120.27        .48023E-04   -1.4034    
   4  Prefactor     29.682        23.721        .73542E-04   -1.4618    
   5  Prefactor     11.941        12.628        .11593E-03   -1.5017    
   6  Prefactor     .10000E-03    3.5863        .14482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.1293        17.737        .13264E-03   -1.5104    
   9  Prefactor     87.198        79.358        .43024E-04   -1.3838    
  10  norm          .56884E-01    5.5802        .12262E-02   -1.5660    
  11  Prefactor     8.2475        9.0470        .13959E-03   -1.5134    
  12  Prefactor     .10000E-03    5.9667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4109        19.208        .15851E-03   -1.5202    
  14  Prefactor     .10000E-03    18.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.304        39.324        .78110E-04   -1.4682    
  16  norm          .10000E-03    4.8071        .33102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7323        .21109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     44.464        21.767        .60124E-04   -1.4373    
  19  Prefactor     .10000E-03    5.5930        .18114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.4058        .90660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.099        20.723        .70726E-04   -1.4574    
  23  Prefactor     .10000E-03    24.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     76.736        56.561        .45840E-04   -1.3954    
  25  Prefactor     .10000E-03    9.4203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.4661        .12016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .69369        .29383        .39559E-03   -1.0414    
  28  Prefactor     1.1721        .17144        .19555E-03   -.87193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48352e-09
Minuit parameter uncertainties:
  1  9.94735
  2  0.00229675
  3  120.695
  4  23.7285
  5  12.631
  6  4.60077e-06
  7  1.60415e-05
  8  17.7468
  9  79.4542
  10  1.12592
  11  9.04848
  12  3.79061e-07
  13  19.2269
  14  5.88634e-06
  15  39.3625
  16  3.69758e-06
  17  3.32317e-05
  18  21.7711
  19  7.71095e-06
  20  2.39839e-06
  21  3.47594e-05
  22  20.7275
  23  3.55643e-05
  24  56.6007
  25  2.71592e-06
  26  2.95778e-06
  27  0.294494
  28  0.171526
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  2.630e+01  3.936e+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:  1.172e+00  1.715e-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:  6.937e-01  2.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/952468/likelihoodResults_653788801_654048001_4FGL_J1141.5-1408_daily_bin1599.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) = 6166.23643602
delta logL = 0.497254715952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6166.19050775
delta logL = 0.543182988752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4586       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9443       1.0000          .0000       10.000    
     3 'Normalizat'    .62378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1957       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6166.191     FROM MIGRAD    STATUS=FAILED        84 CALLS      287 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4614        217.39        .15792E-03    .30264E-02
   2  Index         2.9444        3.6824        .41912E-02    .11373E-02
   3  Normalizat    .62360        .28417        .41575E-03    .70985E-03
   4  Prefactor     1.1958        .17374        .19382E-03    .15388E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6166.191     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      373 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4614        217.39        .26706E-03    .30264E-02
   2  Index         2.9444        3.6824        .77182E-03    .11373E-02
   3  Normalizat    .62360        .28417        .36414E-03    .70985E-03
   4  Prefactor     1.1958        .17374        .18648E-03    .15388E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6166.191     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      406 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4619        19.122        .63169E-05    .10222E-03
   2  Index         2.9444        1.0801        .16765E-03    .29838E-04
   3  Normalizat    .62360        .27546        .83150E-04   -.10665E-04
   4  Prefactor     1.1958        .17030        .38764E-04    .19826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.4619
  Index      = 2.94435
  Normalizat = 0.623598
  Prefactor  = 1.19578
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.191     FROM HESSE     STATUS=OK            23 CALLS      429 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4619        18.554        .12634E-05   -1.5200    
   2  Index         2.9444        1.0485        .67059E-05   -.42369    
   3  Normalizat    .62360        .27524        .33260E-05   -1.0699    
   4  Prefactor     1.1958        .17017        .77527E-05   -.86461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15269e-11
Minuit parameter uncertainties:
  1  18.571
  2  1.05798
  3  0.275844
  4  0.170252
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/952468': 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) = 6166.19050736
delta logL = 0.543183378217

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  6.462e+00  1.857e+01  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  2.944e+00  1.058e+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:  1.196e+00  1.703e-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:  6.236e-01  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 175.387 -14.146
Photon Index (Free Index): 2.94 +/- 1.06
Photon Flux (Free Index): 8.12e-08 +/- 7.59e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.50e-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/952468/cmap_HighResolution_653788801_654048001_4FGL_J1141.5-1408_daily_bin1599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', comment='SUCCESS', energy_flux2='1.67e-05', dlogl='5.43e-01', photon_flux2='8.12e-08', job_status='DONE', time_completed='2021-09-23 00:37:07.839007', photon_index_error2='1.06', photon_index2='2.94', ts='0.61', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.50e-05', EG='0.69', time_epoch_completed='1632382627.84', return_code='0', job_id='952468', GAL2='1.20', EG2='0.62', return_code2='0', photon_flux_error2='7.59e-08', ts2='1.76', photon_index='1.97' WHERE bin_id='1599' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 23 00:37:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 952468: <4FGL_J1141.5-1408_daily_bin1599> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin1599> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 23 00:21:51 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 23 00:22:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 23 00:22:54 2021
Terminated at Thu Sep 23 00:37:08 2021
Results reported at Thu Sep 23 00:37:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1599 175.387 -14.1457 653788801 654048001 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 :                                   829.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            917 sec.

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

