/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 4 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 = 7260
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1411.8+5249_daily_bin338
RA = 212.969, Dec = 52.8278
tmin = 326937601, tmax = 327196801
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='243061', job_status='RUN', time_executed='2021-09-09 04:11:51.078971', time_epoch_executed='1631185911.08' WHERE source_name='4FGL J1411.8+5249' and cadence='daily' and bin_id='338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/243061

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/243061/ft1_4FGL_J1411.8+5249_daily_bin338.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/243061/ft2_4FGL_J1411.8+5249_daily_bin338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/243061/ft1_4FGL_J1411.8+5249_daily_bin338.fits outfile=/scratch/kocevski/243061/ft1_filteredMKT_4FGL_J1411.8+5249_daily_bin338.fits ra=212.969 dec=52.8278 rad=12.0 tmin=326937601.0 tmax=327196801.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.39
user 3.15
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/243061/ft2_4FGL_J1411.8+5249_daily_bin338.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/243061/ft2_4FGL_J1411.8+5249_daily_bin338.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/243061/ft1_filteredMKT_4FGL_J1411.8+5249_daily_bin338.fits evtable="EVENTS" outfile="/scratch/kocevski/243061/ft1_filtered_4FGL_J1411.8+5249_daily_bin338.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.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/243061/ft1_filtered_4FGL_J1411.8+5249_daily_bin338.fits" evtable="EVENTS" scfile=/scratch/kocevski/243061/ft2_4FGL_J1411.8+5249_daily_bin338.fits sctable="SC_DATA" outfile=/scratch/kocevski/243061/ltcube_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.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/243061/ft2_4FGL_J1411.8+5249_daily_bin338.fits
.....................!
real 11.92
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/243061/ft1_filtered_4FGL_J1411.8+5249_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/243061/ft2_4FGL_J1411.8+5249_daily_bin338.fits sctable="SC_DATA" expcube=/scratch/kocevski/243061/ltcube_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.fits outfile=/scratch/kocevski/243061/expmap_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.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/243061/ltcube_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.fits
.....................!
real 191.03
user 186.36
sys 4.26

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

Setting source of interest to:
4FGL J1411.8+5249 @ 212.969 52.8278

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/243061/ft1_filtered_4FGL_J1411.8+5249_daily_bin338.fits scfile=/scratch/kocevski/243061/ft2_4FGL_J1411.8+5249_daily_bin338.fits outfile=/scratch/kocevski/243061/cmap_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.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=212.969 yref=52.8278 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/243061/ft1_filtered_4FGL_J1411.8+5249_daily_bin338.fits scfile=/scratch/kocevski/243061/ft2_4FGL_J1411.8+5249_daily_bin338.fits outfile=/scratch/kocevski/243061/cmap_HighResolution_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.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=212.969 yref=52.8278 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 1.17
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/243061/ft1_filtered_4FGL_J1411.8+5249_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/243061/ft2_4FGL_J1411.8+5249_daily_bin338.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/243061/Model_4FGL_J1411.8+5249_daily_bin338.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/243061/ft1_filtered_4FGL_J1411.8+5249_daily_bin338.fits.....................!
real 48.08
user 46.12
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/243061/ft1_filtered_4FGL_J1411.8+5249_daily_bin338.fits', '/scratch/kocevski/243061/ft2_4FGL_J1411.8+5249_daily_bin338.fits', expMap='/scratch/kocevski/243061/expmap_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.fits', expCube='/scratch/kocevski/243061/ltcube_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/243061/Model_4FGL_J1411.8+5249_daily_bin338.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1411.8+5249'

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  5.211e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.110e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/243061/ft1_filtered_4FGL_J1411.8+5249_daily_bin338.fits
Spacecraft file(s): /scratch/kocevski/243061/ft2_4FGL_J1411.8+5249_daily_bin338.fits
Exposure map: /scratch/kocevski/243061/expmap_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.fits
Exposure cube: /scratch/kocevski/243061/ltcube_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/243061/Model_4FGL_J1411.8+5249_daily_bin338.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) = 5672.62446592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .27094       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.487       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6293       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.426       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.907       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1024       1.0000         .10000E-03   10000.    
    11 'norm      '    .19697E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3045       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5876       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .98609       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.183       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.368       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.424       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3031       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.040       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.124       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .75662       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1499       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5672.599     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     4199 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3888        2.4334       -.96367E-08   -.35646E-04
   2  Prefactor     .10000E-03    4.4497        .16299E-06** at limit **
   3  norm          .25321        2.0548       -.52391E-09    .83631E-04
   4  Prefactor     27.509        28.278       -.11671E-06   -.44149E-04
   5  Prefactor     7.6324        11.399        .16660E-06   -.13469E-04
   6  Prefactor     .10000E-03    12.554        .10811E-06** at limit **
   7  norm          .10000E-03    1.1647        .75580E-07** at limit **
   8  Prefactor     38.421        36.468        .15503E-06   -.16436E-04
   9  Prefactor     15.896        36.642        .58076E-06   -.11722E-04
  10  norm          4.1029        1.7419        .29927E-07   -.34314E-03
  11  norm          .10000E-03    149.43        .37451E-06** at limit **
  12  norm          .10000E-03    2.5023        .17002E-06** at limit **
  13  Prefactor     4.7787        7705.0       -.17177E-03   -.34164E-05
  14  Prefactor     .10000E-03    14.994        .50637E-07** at limit **
  15  Prefactor     .10000E-03    54.900        .16737E-06** at limit **
  16  Prefactor     2.5835        5.7214        .56839E-06   -.48881E-04
  17  Prefactor     1.0676        13.079        .19043E-05   -.26992E-03
  18  Prefactor     .10000E-03    1.4012       -.56824E-07** at limit **
  19  Prefactor     21.182        31.294        .17763E-06   -.17534E-04
  20  Prefactor     15.397        22.196        .27011E-06   -.95797E-05
  21  Prefactor     .10000E-03    33.787       -.13065E-06** at limit **
  22  Prefactor     .10000E-03    9.7243        .10766E-06** at limit **
  23  Prefactor     16.401        46.475        .81729E-07   -.46225E-05
  24  Prefactor     2.3129        34.940        .17121E-05   -.32398E-05
  25  Prefactor     12.036        16.279       -.23358E-06   -.71186E-04
  26  norm          .10000E-03    .85990        .91414E-07** at limit **
  27  Prefactor     .10000E-03    7.5741        .54353E-07** at limit **
  28  Prefactor     .10000E-03    1.7490        .73424E-07** at limit **
  29  Prefactor     10.126        9.0825        .32931E-06   -.11263E-04
  30  Normalizat    .75611        .17745       -.32498E-05   -.21795E-03
  31  Prefactor     1.1504        .20143        .22832E-05   -.34037E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.38881
  Prefactor  = 0.0001
  norm       = 0.253212
  Prefactor  = 27.5094
  Prefactor  = 7.63239
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.4209
  Prefactor  = 15.8962
  norm       = 4.10286
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.77871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58354
  Prefactor  = 1.06761
  Prefactor  = 0.0001
  Prefactor  = 21.1817
  Prefactor  = 15.3967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4011
  Prefactor  = 2.31291
  Prefactor  = 12.0364
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1264
  Normalizat = 0.756111
  Prefactor  = 1.15043
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.599     FROM HESSE     STATUS=OK           632 CALLS     4831 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3888        2.4351        .85182E-04   -1.5289    
   2  Prefactor     .10000E-03    4.4820        .15519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .25321        7.7298        .20424E-02   -1.5607    
   4  Prefactor     27.509        28.190        .76413E-04   -1.4658    
   5  Prefactor     7.6324        11.391        .14519E-03   -1.5155    
   6  Prefactor     .10000E-03    12.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1709        .79343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     38.421        36.484        .64657E-04   -1.4467    
   9  Prefactor     15.896        36.717        .10042E-03   -1.4910    
  10  norm          4.1029        1.7435        .61213E-04   -1.5303    
  11  norm          .10000E-03    149.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.6033        .23255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.7787        7765.7        .17451E-02   -1.5271    
  14  Prefactor     .10000E-03    15.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    55.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5835        5.7695        .24767E-03   -1.5386    
  17  Prefactor     1.0676        86.952        .46668E-02   -1.5501    
  18  Prefactor     .10000E-03    2.9711        .16675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     21.182        31.137        .87026E-04   -1.4787    
  20  Prefactor     15.397        21.609        .10217E-03   -1.4923    
  21  Prefactor     .10000E-03    33.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.7375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.401        46.322        .98829E-04   -1.4898    
  24  Prefactor     2.3129        34.217        .27040E-03   -1.5404    
  25  Prefactor     12.036        16.101        .11545E-03   -1.5014    
  26  norm          .10000E-03    .88526        .13591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    7.6296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    1.7549        .97262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.126        9.1074        .12593E-03   -1.5071    
  30  Normalizat    .75611        .20637        .23709E-03   -1.0172    
  31  Prefactor     1.1504        .23419        .24131E-03   -.87871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25364e-09
Minuit parameter uncertainties:
  1  2.43515
  2  1.06581e-05
  3  2.7979
  4  28.2039
  5  11.3938
  6  1.53867e-05
  7  2.35394e-06
  8  36.5053
  9  36.7694
  10  1.74352
  11  3.70003e-05
  12  5.9983e-06
  13  376.334
  14  4.78694e-06
  15  5.48373e-06
  16  5.77069
  17  19.2979
  18  2.02862e-05
  19  31.1606
  20  21.6202
  21  2.99665e-05
  22  4.87024e-06
  23  46.4238
  24  17.804
  25  16.107
  26  7.5687e-07
  27  4.36281e-06
  28  2.22982e-06
  29  9.1086
  30  0.206581
  31  0.234399
Done.

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

Extracting fit parameters...

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  4.787e-06  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.110e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  2.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  1.150e+00  2.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  7.561e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 212.969 52.828
Photon Flux Upper Limit: 3.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/243061/likelihoodResults_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.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) = 5672.59913343
delta logL = -0.000316629646477

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5672.59881786
delta logL = -1.05794515548e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2973       1.0000          .0000       10.000    
     3 'Normalizat'    .75610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1504       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+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.

 FCN=   5672.599     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      273 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10149E-03    54.622        .18142E-02** at limit **
   2  Index         2.2369        8.4986        .50000        .25366E-04
   3  Normalizat    .75611        .79113E-02    .23709E-03   -.33469E-04
   4  Prefactor     1.1504        .97829E-02    .24131E-03   -.18374E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101486
  Index      = 2.23694
  Normalizat = 0.75611
  Prefactor  = 1.15043
 **********
 **   18 **HESSE 
 **********

 FCN=   5672.599     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10149E-03    239.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2369        5.3586        .50000       -.58549    
   3  Normalizat    .75611        .16890E-01    .94838E-05   -1.0172    
   4  Prefactor     1.1504        .20885E-01    .96524E-05   -.87871    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23255e-08
Minuit parameter uncertainties:
  1  0.037899
  2  261.149
  3  0.0168898
  4  0.0208854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/243061': 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) = 5672.5988175
delta logL = -6.95332346368e-07

Extracting fit parameters...

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  1.015e-04  3.790e-02  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.237e+00  2.611e+02  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  2.013e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  1.150e+00  2.089e-02  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  7.561e-01  1.689e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 212.969 52.828

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/243061/cmap_HighResolution_326937601_327196801_4FGL_J1411.8+5249_daily_bin338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-03', job_status='DONE', photon_flux_upper_limit='3.77e-08', time_completed='2021-09-09 04:27:30.732362', job_id='243061', GAL2='1.15', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631186850.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-6.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='338' AND source_name='4FGL J1411.8+5249' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 04:27:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 243061: <4FGL_J1411.8+5249_daily_bin338> in cluster <slac> Done

Job <4FGL_J1411.8+5249_daily_bin338> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 04:11:33 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 04:11:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 04:11:34 2021
Terminated at Thu Sep  9 04:27:32 2021
Results reported at Thu Sep  9 04:27:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1411.8+5249_daily_bin338 212.969 52.8278 326937601 327196801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1411.8+5249 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   935.07 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             330.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

