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


Performing analysis on: 4FGL_J1411.8+5249_daily_bin1436
RA = 212.969, Dec = 52.8278
tmin = 611539201, tmax = 611798401
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='249650', job_status='RUN', time_executed='2021-09-09 04:36:41.606715', time_epoch_executed='1631187401.61' WHERE source_name='4FGL J1411.8+5249' and cadence='daily' and bin_id='1436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/249650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/249650/ft1_4FGL_J1411.8+5249_daily_bin1436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/249650/ft2_4FGL_J1411.8+5249_daily_bin1436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/249650/ft1_4FGL_J1411.8+5249_daily_bin1436.fits outfile=/scratch/kocevski/249650/ft1_filteredMKT_4FGL_J1411.8+5249_daily_bin1436.fits ra=212.969 dec=52.8278 rad=12.0 tmin=611539201.0 tmax=611798401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.61
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/249650/ft1_filtered_4FGL_J1411.8+5249_daily_bin1436.fits" evtable="EVENTS" scfile=/scratch/kocevski/249650/ft2_4FGL_J1411.8+5249_daily_bin1436.fits sctable="SC_DATA" outfile=/scratch/kocevski/249650/ltcube_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.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/249650/ft2_4FGL_J1411.8+5249_daily_bin1436.fits
.....................!
real 12.36
user 11.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/249650/ft1_filtered_4FGL_J1411.8+5249_daily_bin1436.fits evtable="EVENTS" scfile=/scratch/kocevski/249650/ft2_4FGL_J1411.8+5249_daily_bin1436.fits sctable="SC_DATA" expcube=/scratch/kocevski/249650/ltcube_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.fits outfile=/scratch/kocevski/249650/expmap_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.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/249650/ltcube_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.fits
.....................!
real 190.87
user 186.42
sys 3.99

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/249650/ft1_filtered_4FGL_J1411.8+5249_daily_bin1436.fits scfile=/scratch/kocevski/249650/ft2_4FGL_J1411.8+5249_daily_bin1436.fits outfile=/scratch/kocevski/249650/cmap_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/249650/ft1_filtered_4FGL_J1411.8+5249_daily_bin1436.fits scfile=/scratch/kocevski/249650/ft2_4FGL_J1411.8+5249_daily_bin1436.fits outfile=/scratch/kocevski/249650/cmap_HighResolution_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.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 0.60
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/249650/ft1_filtered_4FGL_J1411.8+5249_daily_bin1436.fits', '/scratch/kocevski/249650/ft2_4FGL_J1411.8+5249_daily_bin1436.fits', expMap='/scratch/kocevski/249650/expmap_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.fits', expCube='/scratch/kocevski/249650/ltcube_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/249650/Model_4FGL_J1411.8+5249_daily_bin1436.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/249650/ft1_filtered_4FGL_J1411.8+5249_daily_bin1436.fits
Spacecraft file(s): /scratch/kocevski/249650/ft2_4FGL_J1411.8+5249_daily_bin1436.fits
Exposure map: /scratch/kocevski/249650/expmap_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.fits
Exposure cube: /scratch/kocevski/249650/ltcube_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/249650/Model_4FGL_J1411.8+5249_daily_bin1436.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) = 4991.48792514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68323       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.489       1.0000         .10000E-03   10000.    
     3 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8654       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.353       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.693       1.0000         .10000E-03   10000.    
     7 'norm      '    .10441E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8459       1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.523       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5784       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15655E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.436       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.801       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.726       1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.204       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.0878       1.0000         .10000E-03   10000.    
    26 'norm      '    1.5185       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.2683       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .73226       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0426       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=   4991.470     FROM MIGRAD    STATUS=CONVERGED    804 CALLS     4110 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68307        1.8178       -.49704E-06   -.12223E-02
   2  Prefactor     12.492        11.082        .79552E-07   -.15278E-04
   3  norm          .10000E-03    3.2092        .21939E-06** at limit **
   4  Prefactor     6.8717        48.639       -.52507E-05   -.12497E-04
   5  Prefactor     14.361        12.505       -.10906E-05   -.69083E-04
   6  Prefactor     22.696        36.357       -.53511E-05   -.78193E-05
   7  norm          .10000E-03    2.6337        .27152E-06** at limit **
   8  Prefactor     6.8527        67.131        .72571E-05   -.95866E-05
   9  Prefactor     25.524        45.978        .16831E-06   -.87671E-05
  10  norm          2.5785        1.6152        .11745E-06   -.21657E-03
  11  norm          .10000E-03    28.631       -.18643E-04** at limit **
  12  norm          .10000E-03    1.3894       -.81363E-09** at limit **
  13  Prefactor     .10000E-03    246.52       -.64526E-05** at limit **
  14  Prefactor     .10000E-03    29.767        .18072E-04** at limit **
  15  Prefactor     35.446        42.043        .42190E-05   -.39744E-04
  16  Prefactor     .10000E-03    1.2452       -.17202E-07** at limit **
  17  Prefactor     .10000E-03    7.6042        .48481E-06** at limit **
  18  Prefactor     4.1455        2.7751       -.39247E-07   -.26310E-03
  19  Prefactor     .10000E-03    10.088       -.62460E-06** at limit **
  20  Prefactor     32.804        26.780       -.10357E-05   -.29831E-04
  21  Prefactor     .10000E-03    15.689        .10034E-05** at limit **
  22  Prefactor     46.729        31.078       -.19908E-06   -.43780E-05
  23  Prefactor     24.193        36.228       -.86108E-06   -.31821E-05
  24  Prefactor     .10000E-03    3.8490       -.18224E-07** at limit **
  25  Prefactor     7.0889        10.077        .57770E-07   -.51929E-04
  26  norm          1.5185        1.4639       -.76774E-07   -.40873E-03
  27  Prefactor     .10000E-03    2.0758        .84292E-08** at limit **
  28  Prefactor     2.2681        4.2104        .63381E-06   -.39757E-03
  29  Prefactor     .10000E-03    5.0683        .66099E-07** at limit **
  30  Normalizat    .73194        .17618        .16028E-06   -.81513E-04
  31  Prefactor     1.0429        .19940        .12178E-06   -.69974E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.683073
  Prefactor  = 12.4916
  norm       = 0.0001
  Prefactor  = 6.87168
  Prefactor  = 14.3613
  Prefactor  = 22.6959
  norm       = 0.000100001
  Prefactor  = 6.85267
  Prefactor  = 25.5237
  norm       = 2.57851
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.4461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.14549
  Prefactor  = 0.0001
  Prefactor  = 32.8044
  Prefactor  = 0.0001
  Prefactor  = 46.7292
  Prefactor  = 24.1928
  Prefactor  = 0.0001
  Prefactor  = 7.08892
  norm       = 1.51845
  Prefactor  = 0.0001
  Prefactor  = 2.26807
  Prefactor  = 0.0001
  Normalizat = 0.731936
  Prefactor  = 1.0429
 **********
 **   18 **HESSE 
 **********

 FCN=   4991.470     FROM HESSE     STATUS=OK           630 CALLS     4740 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68307        1.6602        .15284E-02   -1.5543    
   2  Prefactor     12.492        11.089        .11335E-03   -1.5001    
   3  norm          .10000E-03    3.3186        .24667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8717        47.256        .15312E-03   -1.5184    
   5  Prefactor     14.361        12.264        .10572E-03   -1.4950    
   6  Prefactor     22.696        35.872        .84084E-04   -1.4755    
   7  norm          .10000E-03    6.2910        .21757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.8527        66.872        .15334E-03   -1.5184    
   9  Prefactor     25.524        46.243        .79292E-04   -1.4697    
  10  norm          2.5785        1.6088        .66858E-04   -1.5387    
  11  norm          .10000E-03    28.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4027        .81289E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    246.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.446        42.069        .67321E-04   -1.4517    
  16  Prefactor     .10000E-03    1.2459        .76981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.6173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1455        2.7709        .88235E-04   -1.5301    
  19  Prefactor     .10000E-03    10.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.804        26.810        .69965E-04   -1.4562    
  21  Prefactor     .10000E-03    15.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     46.729        31.096        .58657E-04   -1.4340    
  23  Prefactor     24.193        36.224        .81421E-04   -1.4724    
  24  Prefactor     .10000E-03    3.8505        .13537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.0889        10.044        .15068E-03   -1.5175    
  26  norm          1.5185        1.4442        .80053E-04   -1.5462    
  27  Prefactor     .10000E-03    2.0769        .99408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     2.2681        4.1747        .18953E-03   -1.5407    
  29  Prefactor     .10000E-03    5.1748        .15525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .73194        .20826        .23257E-03   -1.0265    
  31  Prefactor     1.0429        .23502        .24100E-03   -.91313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97746e-10
Minuit parameter uncertainties:
  1  1.66029
  2  11.0908
  3  3.27179e-05
  4  36.0811
  5  12.2659
  6  35.9064
  7  0.000153939
  8  42.876
  9  46.3082
  10  1.60879
  11  8.88855e-07
  12  2.69281e-06
  13  4.94561e-06
  14  5.67929e-05
  15  42.1045
  16  2.9371e-06
  17  8.11409e-06
  18  2.77102
  19  5.47704e-06
  20  26.8198
  21  6.85424e-06
  22  31.1068
  23  36.2564
  24  2.03517e-06
  25  10.0468
  26  1.44424
  27  8.25365e-08
  28  4.17528
  29  1.44728e-06
  30  0.208483
  31  0.235255
Done.

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

Extracting fit parameters...

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  1.000e-04  5.679e-05  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.043e+00  2.353e-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.319e-01  2.085e-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: 5.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/249650/likelihoodResults_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.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) = 4991.46994792
delta logL = -0.00016116646475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4991.46978771
delta logL = -9.54592906055e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7433       1.0000          .0000       10.000    
     3 'Normalizat'    .73193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0429       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=   4991.470     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      282 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10856E-03    .61769        .18142E-01** at limit **
   2  Index         2.5180        7.7612        .50000        .81207E-05
   3  Normalizat    .73194        .64574E-03    .23257E-03    .52108E-04
   4  Prefactor     1.0429        .79093E-03    .24100E-03    .32738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010856
  Index      = 2.518
  Normalizat = 0.731937
  Prefactor  = 1.0429
 **********
 **   18 **HESSE 
 **********

 FCN=   4991.470     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10856E-03    687.86        .65386E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5180        5.4834        .50000       -.51945    
   3  Normalizat    .73194        .22280E-01    .93030E-05   -1.0265    
   4  Prefactor     1.0429        .27238E-01    .96401E-05   -.91313    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01386e-07
Minuit parameter uncertainties:
  1  0.155286
  2  1646.36
  3  0.0222804
  4  0.0272384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/249650': 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) = 4991.46978742
delta logL = -6.59892066324e-07

Extracting fit parameters...

4FGL J1411.8+5249
   Spectrum: PowerLaw
322    Prefactor:  1.086e-04  1.553e-01  1.000e-04  1.000e+04 ( 1.000e-14)
323        Index:  2.518e+00  1.646e+03  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.043e+00  2.724e-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.319e-01  2.228e-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/249650/cmap_HighResolution_611539201_611798401_4FGL_J1411.8+5249_daily_bin1436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-03', job_status='DONE', photon_flux_upper_limit='5.10e-08', time_completed='2021-09-09 04:51:03.740737', job_id='249650', GAL2='1.04', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1631188263.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-6.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1436' AND source_name='4FGL J1411.8+5249' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 04:51:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 249650: <4FGL_J1411.8+5249_daily_bin1436> in cluster <slac> Done

Job <4FGL_J1411.8+5249_daily_bin1436> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 04:36:28 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 04:36:29 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:36:29 2021
Terminated at Thu Sep  9 04:51:04 2021
Results reported at Thu Sep  9 04:51:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1411.8+5249_daily_bin1436 212.969 52.8278 611539201 611798401 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 :                                   857.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            876 sec.

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

