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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1349
RA = 175.387, Dec = -14.1457
tmin = 588988801, tmax = 589248001
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='999039', job_status='RUN', time_executed='2021-09-04 07:42:38.981833', time_epoch_executed='1630766558.98' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999039

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999039/ft1_4FGL_J1141.5-1408_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999039/ft2_4FGL_J1141.5-1408_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999039/ft1_4FGL_J1141.5-1408_daily_bin1349.fits outfile=/scratch/kocevski/999039/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1349.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=588988801.0 tmax=589248001.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.54
user 2.90
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/999039/ft2_4FGL_J1141.5-1408_daily_bin1349.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/999039/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1349.fits evtable="EVENTS" outfile="/scratch/kocevski/999039/ft1_filtered_4FGL_J1141.5-1408_daily_bin1349.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999039/ft1_filtered_4FGL_J1141.5-1408_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/999039/ft2_4FGL_J1141.5-1408_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/999039/ltcube_588988801_589248001_4FGL_J1141.5-1408_daily_bin1349.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/999039/ft2_4FGL_J1141.5-1408_daily_bin1349.fits
.....................!
real 12.31
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999039/ft1_filtered_4FGL_J1141.5-1408_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/999039/ft2_4FGL_J1141.5-1408_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/999039/ltcube_588988801_589248001_4FGL_J1141.5-1408_daily_bin1349.fits outfile=/scratch/kocevski/999039/expmap_588988801_589248001_4FGL_J1141.5-1408_daily_bin1349.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/999039/ltcube_588988801_589248001_4FGL_J1141.5-1408_daily_bin1349.fits
.....................!
real 189.72
user 184.92
sys 4.37

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/999039/ft1_filtered_4FGL_J1141.5-1408_daily_bin1349.fits scfile=/scratch/kocevski/999039/ft2_4FGL_J1141.5-1408_daily_bin1349.fits outfile=/scratch/kocevski/999039/cmap_588988801_589248001_4FGL_J1141.5-1408_daily_bin1349.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999039/ft1_filtered_4FGL_J1141.5-1408_daily_bin1349.fits scfile=/scratch/kocevski/999039/ft2_4FGL_J1141.5-1408_daily_bin1349.fits outfile=/scratch/kocevski/999039/cmap_HighResolution_588988801_589248001_4FGL_J1141.5-1408_daily_bin1349.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.59
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999039/ft1_filtered_4FGL_J1141.5-1408_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/999039/ft2_4FGL_J1141.5-1408_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999039/Model_4FGL_J1141.5-1408_daily_bin1349.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/999039/ft1_filtered_4FGL_J1141.5-1408_daily_bin1349.fits.....................!
real 47.57
user 44.81
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.654       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.758       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13127E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.844       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4681       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.740       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.727       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.997       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0651       1.0000         .10000E-03   10000.    
    20 'norm      '    3.9055       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11422E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.467       1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.481       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.374       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1212       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80119       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=   4792.704     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3435 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.655        15.252       -.42509E-06   -.22816E-04
   2  Prefactor     .10000E-03    11.339       -.14637E-04** at limit **
   3  Prefactor     .10000E-03    36.649       -.81463E-05** at limit **
   4  Prefactor     31.749        32.050        .26352E-05   -.13068E-03
   5  Prefactor     .10000E-03    10.876        .56386E-05** at limit **
   6  Prefactor     .10055E-03    8.1977        .16779E-05** at limit **
   7  Prefactor     .10000E-03    34.245       -.15250E-05** at limit **
   8  norm          .10000E-03    5.5123        .62106E-07** at limit **
   9  Prefactor     62.842        59.898       -.24069E-05    .10002E-04
  10  norm          2.4681        1.6163       -.65830E-07   -.12765E-03
  11  Prefactor     .10000E-03    2.3126       -.12592E-06** at limit **
  12  Prefactor     22.747        16.777        .10714E-05    .10874E-04
  13  norm          .10000E-03    12.182        .12844E-04** at limit **
  14  Prefactor     .10000E-03    20.116        .51470E-05** at limit **
  15  Prefactor     10.629        44.622       -.16770E-04   -.28394E-05
  16  norm          .10000E-03    3.6937        .96393E-07** at limit **
  17  Prefactor     17.997        7.5933        .45092E-08   -.70649E-04
  18  Prefactor     .10000E-03    14.812       -.67553E-05** at limit **
  19  Prefactor     7.0667        14.884       -.31088E-06   -.43481E-04
  20  norm          3.9055        5.0218       -.90338E-07   -.21411E-03
  21  Prefactor     .10000E-03    41.337        .12022E-04** at limit **
  22  Prefactor     22.465        21.924       -.29930E-05   -.31824E-04
  23  Prefactor     45.518        44.423        .36354E-05   -.87585E-05
  24  Prefactor     .10000E-03    36.738       -.81646E-05** at limit **
  25  Prefactor     19.374        18.796       -.63497E-06    .18924E-04
  26  Prefactor     .10000E-03    1.3738       -.97587E-07** at limit **
  27  Normalizat    1.1207        .27376       -.72844E-07   -.33767E-05
  28  Prefactor     .80148        .15313        .95006E-06   -.36678E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 33.6551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.7492
  Prefactor  = 0.0001
  Prefactor  = 0.000100551
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 62.842
  norm       = 2.4681
  Prefactor  = 0.0001
  Prefactor  = 22.7472
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6292
  norm       = 0.0001
  Prefactor  = 17.9968
  Prefactor  = 0.0001
  Prefactor  = 7.06667
  norm       = 3.90549
  Prefactor  = 0.0001
  Prefactor  = 22.4651
  Prefactor  = 45.5177
  Prefactor  = 0.0001
  Prefactor  = 19.3744
  Prefactor  = 0.0001
  Normalizat = 1.12067
  Prefactor  = 0.801484
 **********
 **   18 **HESSE 
 **********

 FCN=   4792.704     FROM HESSE     STATUS=OK           513 CALLS     3948 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.655        15.258        .69075E-04   -1.4547    
   2  Prefactor     .10000E-03    11.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.749        31.804        .71102E-04   -1.4580    
   5  Prefactor     .10000E-03    10.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10055E-03    56.232        .37825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.5152        .15873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     62.842        59.892        .50619E-04   -1.4121    
  10  norm          2.4681        1.6079        .65597E-04   -1.5394    
  11  Prefactor     .10000E-03    2.3157        .10281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.747        16.829        .83998E-04   -1.4754    
  13  norm          .10000E-03    12.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.629        44.636        .12233E-03   -1.5056    
  16  norm          .10000E-03    3.6976        .12988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.997        7.5999        .94412E-04   -1.4859    
  18  Prefactor     .10000E-03    14.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.0667        14.736        .15092E-03   -1.5176    
  20  norm          3.9055        4.9652        .14599E-03   -1.5313    
  21  Prefactor     .10000E-03    41.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.465        21.947        .84505E-04   -1.4760    
  23  Prefactor     45.518        44.415        .59451E-04   -1.4358    
  24  Prefactor     .10000E-03    36.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.374        18.799        .90995E-04   -1.4827    
  26  Prefactor     .10000E-03    1.3743        .79245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1207        .32500        .31753E-03   -.89091    
  28  Prefactor     .80148        .18138        .21532E-03   -.99674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.57386e-09
Minuit parameter uncertainties:
  1  15.2593
  2  5.06285e-07
  3  4.28641e-06
  4  31.8213
  5  3.80713e-05
  6  0.0111448
  7  2.36232e-05
  8  1.17897e-05
  9  59.9497
  10  1.60794
  11  4.59802e-06
  12  16.8325
  13  3.52103e-06
  14  1.44638e-05
  15  43.6193
  16  4.64677e-07
  17  7.60034
  18  1.69989e-05
  19  14.744
  20  4.96576
  21  1.36851e-05
  22  21.9545
  23  44.447
  24  1.88419e-05
  25  18.805
  26  2.89939e-07
  27  0.325582
  28  0.181513
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.063e+01  4.362e+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:  8.015e-01  1.815e-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.121e+00  3.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/999039/likelihoodResults_588988801_589248001_4FGL_J1141.5-1408_daily_bin1349.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) = 4792.44910263
delta logL = 0.254867163161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4792.39514693
delta logL = 0.308822866849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6336       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9811       1.0000          .0000       10.000    
     3 'Normalizat'    1.0660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81654       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=   4792.395     FROM MIGRAD    STATUS=FAILED        81 CALLS      265 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6322        358.49        .18250E-03   -.15776E-02
   2  Index         2.9812        6.4026        .43777E-02   -.61034E-03
   3  Normalizat    1.0660        .34208        .32428E-03   -.57490E-03
   4  Prefactor     .81654        .19691        .21339E-03   -.78074E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4792.395     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      355 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6322        358.49        .33310E-03   -.15776E-02
   2  Index         2.9812        6.4026        .12263E-02   -.61034E-03
   3  Normalizat    1.0660        .34208        .29528E-03   -.57490E-03
   4  Prefactor     .81654        .19691        .15391E-03   -.78074E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4792.395     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      386 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6314        16.961        .73001E-05   -.84719E-04
   2  Index         2.9813        1.3259        .17511E-03   -.22334E-04
   3  Normalizat    1.0660        .31695        .64855E-04   -.38214E-05
   4  Prefactor     .81654        .18200        .42678E-04   -.96964E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.63138
  Index      = 2.98126
  Normalizat = 1.06597
  Prefactor  = 0.816538
 **********
 **   18 **HESSE 
 **********

 FCN=   4792.395     FROM HESSE     STATUS=OK            23 CALLS      409 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6314        16.613        .14600E-05   -1.5278    
   2  Index         2.9813        1.2993        .70044E-05   -.41561    
   3  Normalizat    1.0660        .31692        .12971E-04   -.90852    
   4  Prefactor     .81654        .18198        .85355E-05   -.99122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90511e-12
Minuit parameter uncertainties:
  1  16.63
  2  1.31743
  3  0.317488
  4  0.182115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999039': 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) = 4792.39514692
delta logL = 0.308822875926

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  4.631e+00  1.663e+01  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  2.981e+00  1.317e+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:  8.165e-01  1.821e-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.066e+00  3.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/999039/cmap_HighResolution_588988801_589248001_4FGL_J1141.5-1408_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.45e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-04 07:54:27.308454', job_id='999039', GAL2='0.82', fit_tolerance='1e-08', EG2='1.07', EG='1.12', time_epoch_completed='1630767267.31', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.09e-01', ts2='0.71', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1349' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:54:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 999039: <4FGL_J1141.5-1408_daily_bin1349> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1349 175.387 -14.1457 588988801 589248001 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 :                                   685.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            782 sec.

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

