/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 159 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 = 7653
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1424.6+1447_daily_bin35
RA = 216.169, Dec = 14.784
tmin = 248400001, tmax = 248659201
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='428323', job_status='RUN', time_executed='2021-09-09 14:04:23.955903', time_epoch_executed='1631221463.96' WHERE source_name='4FGL J1424.6+1447' and cadence='daily' and bin_id='35'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428323

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428323/ft1_4FGL_J1424.6+1447_daily_bin35.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428323/ft2_4FGL_J1424.6+1447_daily_bin35.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428323/ft1_4FGL_J1424.6+1447_daily_bin35.fits outfile=/scratch/kocevski/428323/ft1_filteredMKT_4FGL_J1424.6+1447_daily_bin35.fits ra=216.169 dec=14.784 rad=12.0 tmin=248400001.0 tmax=248659201.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 1.42
user 1.23
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/428323/ft2_4FGL_J1424.6+1447_daily_bin35.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428323/ft2_4FGL_J1424.6+1447_daily_bin35.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/428323/ft1_filteredMKT_4FGL_J1424.6+1447_daily_bin35.fits evtable="EVENTS" outfile="/scratch/kocevski/428323/ft1_filtered_4FGL_J1424.6+1447_daily_bin35.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428323/ft1_filtered_4FGL_J1424.6+1447_daily_bin35.fits" evtable="EVENTS" scfile=/scratch/kocevski/428323/ft2_4FGL_J1424.6+1447_daily_bin35.fits sctable="SC_DATA" outfile=/scratch/kocevski/428323/ltcube_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.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/428323/ft2_4FGL_J1424.6+1447_daily_bin35.fits
.....................!
real 12.67
user 12.28
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428323/ft1_filtered_4FGL_J1424.6+1447_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/428323/ft2_4FGL_J1424.6+1447_daily_bin35.fits sctable="SC_DATA" expcube=/scratch/kocevski/428323/ltcube_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.fits outfile=/scratch/kocevski/428323/expmap_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.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/428323/ltcube_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.fits
.....................!
real 190.11
user 185.16
sys 4.58

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

Setting source of interest to:
4FGL J1424.6+1447 @ 216.169 14.784

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/428323/ft1_filtered_4FGL_J1424.6+1447_daily_bin35.fits scfile=/scratch/kocevski/428323/ft2_4FGL_J1424.6+1447_daily_bin35.fits outfile=/scratch/kocevski/428323/cmap_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.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=216.169 yref=14.784 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.67
user 0.36
sys 0.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428323/ft1_filtered_4FGL_J1424.6+1447_daily_bin35.fits scfile=/scratch/kocevski/428323/ft2_4FGL_J1424.6+1447_daily_bin35.fits outfile=/scratch/kocevski/428323/cmap_HighResolution_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.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=216.169 yref=14.784 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/428323/ft1_filtered_4FGL_J1424.6+1447_daily_bin35.fits evtable="EVENTS" scfile=/scratch/kocevski/428323/ft2_4FGL_J1424.6+1447_daily_bin35.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/428323/Model_4FGL_J1424.6+1447_daily_bin35.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/428323/ft1_filtered_4FGL_J1424.6+1447_daily_bin35.fits.....................!
real 50.54
user 49.18
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/428323/ft1_filtered_4FGL_J1424.6+1447_daily_bin35.fits', '/scratch/kocevski/428323/ft2_4FGL_J1424.6+1447_daily_bin35.fits', expMap='/scratch/kocevski/428323/expmap_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.fits', expCube='/scratch/kocevski/428323/ltcube_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/428323/Model_4FGL_J1424.6+1447_daily_bin35.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1424.6+1447'

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.029e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  1.760e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/428323/ft1_filtered_4FGL_J1424.6+1447_daily_bin35.fits
Spacecraft file(s): /scratch/kocevski/428323/ft2_4FGL_J1424.6+1447_daily_bin35.fits
Exposure map: /scratch/kocevski/428323/expmap_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.fits
Exposure cube: /scratch/kocevski/428323/ltcube_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/428323/Model_4FGL_J1424.6+1447_daily_bin35.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) = 6580.20877659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.805       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5625       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13801E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16232       1.0000         .10000E-03   10000.    
     9 'norm      '    5.5832       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0453       1.0000         .10000E-03   10000.    
    11 'norm      '    .16671E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.941       1.0000         .10000E-03   10000.    
    13 'norm      '    .16546E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .19744       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.124       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30327E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.505       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34660E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7969       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4436       1.0000         .10000E-03   10000.    
    22 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92802       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4690E+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=   6580.169     FROM MIGRAD    STATUS=FAILED       997 CALLS     3288 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.319        .18142E-02** at limit **
   2  Prefactor     .10000E-03    1.4402        .94809E-03** at limit **
   3  Prefactor     22.807        15.641        .83878E-04   -.36804E-03
   4  Prefactor     1.5561        18.470        .34036E-03    .84307E-04
   5  Prefactor     .10017E-03    208.60        .68556E-02** at limit **
   6  Prefactor     .10000E-03    11.124        .18142E-02** at limit **
   7  norm          .10000E-03    6.5299        .18142E-02** at limit **
   8  Prefactor     .18351        18.919        .30548E-02    .26785E-02
   9  norm          5.5832        2.7656        .92174E-04   -.77950E-04
  10  Prefactor     1.0445        6.0368        .37179E-03   -.77057E-04
  11  norm          .10000E-03    5.3744        .20291E-02** at limit **
  12  Prefactor     42.883        30.606        .61177E-04   -.70319E-03
  13  norm          .10210E-03    221.18        .50897E-02** at limit **
  14  norm          .19380        30.379        .33745E-02   -.31763E-03
  15  Prefactor     22.084        33.560        .85158E-04    .35778E-04
  16  Prefactor     .10001E-03    102.04        .52051E-02** at limit **
  17  Prefactor     .10000E-03    8.3613        .18142E-02** at limit **
  18  Prefactor     12.507        33.149        .11328E-03   -.12646E-03
  19  Prefactor     .10001E-03    215.93        .42656E-02** at limit **
  20  Prefactor     2.7945        17.312        .24327E-03    .12197E-04
  21  norm          2.4436        .34328        .17156E-04   -.37309E-03
  22  norm          .10000E-03    17.023        .18142E-02** at limit **
  23  Normalizat    1.1455        .25102        .27875E-03   -.16114E-03
  24  Prefactor     .92803        .18061        .22555E-03   -.19034E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6580.169     FROM SIMPLEX   STATUS=UNCHANGED   1372 CALLS     4660 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.319        .60696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4402        .18423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.807        15.641        .10589E-05   -1.4752    
   4  Prefactor     1.5561        18.470        .11110E-05   -1.5458    
   5  Prefactor     .10017E-03    208.60        .87396E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.124        .24492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.5299        .38062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .18351        18.919        .11208E-05   -1.5622    
   9  norm          5.5832        2.7656        .10932E-05   -1.5235    
  10  Prefactor     1.0445        6.0368        .11131E-05   -1.5504    
  11  norm          .10000E-03    5.3744        .21050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.883        30.606        .10332E-05   -1.4397    
  13  norm          .10210E-03    221.18        .83883E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .19380        30.379        .11331E-05   -1.5620    
  15  Prefactor     22.084        33.560        .10576E-05   -1.4768    
  16  Prefactor     .10001E-03    102.04        .10176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3613        .31939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.507        33.149        .10758E-05   -1.5001    
  19  Prefactor     .10001E-03    215.93        .57036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7945        17.312        .11051E-05   -1.5374    
  21  norm          2.4436        .34328        .11048E-05   -1.5395    
  22  norm          .10000E-03    17.023        .58230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1455        .25102        .63309E-06   -.88304    
  24  Prefactor     .92803        .18061        .68296E-06   -.95168    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6580.169     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     5043 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.320        .36285E-03** at limit **
   2  Prefactor     .10000E-03    1.4403        .18962E-03** at limit **
   3  Prefactor     22.807        15.637        .16776E-04    .34969E-04
   4  Prefactor     1.5560        18.439        .13614E-04   -.53443E-05
   5  Prefactor     .10000E-03    217.22        .27422E-02** at limit **
   6  Prefactor     .10000E-03    11.125        .36285E-03** at limit **
   7  norm          .10000E-03    6.5300        .36285E-03** at limit **
   8  Prefactor     .18354        19.112        .61097E-03    .15928E-04
   9  norm          5.5832        2.7653        .36870E-05   -.24051E-04
  10  Prefactor     1.0445        5.9993        .14872E-04    .81032E-05
  11  norm          .10000E-03    5.4435        .40582E-03** at limit **
  12  Prefactor     42.883        30.091        .12235E-04   -.35215E-03
  13  norm          .10000E-03    222.21        .20359E-03** at limit **
  14  norm          .19403        30.884        .13498E-03    .21983E-04
  15  Prefactor     22.084        33.537        .34063E-05   -.73426E-05
  16  Prefactor     .10000E-03    104.12        .10410E-02** at limit **
  17  Prefactor     .10000E-03    8.3620        .36285E-03** at limit **
  18  Prefactor     12.507        33.126        .45311E-05    .65235E-05
  19  Prefactor     .10000E-03    217.54        .85311E-03** at limit **
  20  Prefactor     2.7945        17.299        .97307E-05   -.77110E-05
  21  norm          2.4436        .34321        .68623E-06   -.31345E-03
  22  norm          .10000E-03    17.023        .36285E-03** at limit **
  23  Normalizat    1.1455        .25084        .11150E-04   -.75656E-04
  24  Prefactor     .92803        .18075        .45111E-04   -.11028E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8072
  Prefactor  = 1.556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.183538
  norm       = 5.58317
  Prefactor  = 1.0445
  norm       = 0.0001
  Prefactor  = 42.8833
  norm       = 0.0001
  norm       = 0.194033
  Prefactor  = 22.0837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5073
  Prefactor  = 0.0001
  Prefactor  = 2.79447
  norm       = 2.44364
  norm       = 0.0001
  Normalizat = 1.1455
  Prefactor  = 0.928028
 **********
 **   18 **HESSE 
 **********

 FCN=   6580.169     FROM HESSE     STATUS=OK           375 CALLS     5418 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.320        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4403        .37924E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.807        15.637        .33551E-05   -1.4752    
   4  Prefactor     1.5560        18.434        .27229E-05   -1.5458    
   5  Prefactor     .10000E-03    218.88        .54845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.125        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.5300        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .18354        19.087        .24439E-04   -1.5622    
   9  norm          5.5832        2.7649        .73739E-06   -1.5235    
  10  Prefactor     1.0445        5.9919        .29743E-05   -1.5504    
  11  norm          .10000E-03    5.4463        .81164E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.883        30.092        .24471E-05   -1.4397    
  13  norm          .10000E-03    222.19        .40718E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .19403        30.850        .53992E-05   -1.5620    
  15  Prefactor     22.084        33.534        .68126E-06   -1.4768    
  16  Prefactor     .10000E-03    104.21        .20820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3620        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.507        33.160        .90621E-06   -1.5001    
  19  Prefactor     .10000E-03    217.60        .17062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7945        17.299        .19461E-05   -1.5374    
  21  norm          2.4436        .34318        .36705E-06   -1.5395    
  22  norm          .10000E-03    17.023        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1455        .25077        .22300E-05   -.88304    
  24  Prefactor     .92803        .18074        .90222E-05   -.95168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72846e-10
Minuit parameter uncertainties:
  1  2.60014e-06
  2  5.45772e-08
  3  15.6399
  4  10.7152
  5  0.000273955
  6  1.36256e-06
  7  1.18932e-07
  8  3.74357
  9  2.76495
  10  5.00392
  11  7.84832e-08
  12  30.1029
  13  0.000293528
  14  4.89455
  15  33.5628
  16  8.00502e-05
  17  8.92912e-07
  18  33.2087
  19  0.000128997
  20  13.9114
  21  0.343183
  22  1.11795e-06
  23  0.251031
  24  0.180858
Done.

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

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.835e-01  3.744e+00  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.172e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
223        Scale:  1.760e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
466    Prefactor:  9.280e-01  1.809e-01  0.000e+00  1.000e+01 ( 1.000e+00)
467        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
468        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
465   Normalization:  1.145e+00  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 216.169 14.784
Photon Flux Upper Limit: 5.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428323/likelihoodResults_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.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) = 6580.16855155
delta logL = 0.000505661757416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6580.16840333
delta logL = 0.000653877953482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18354       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2979       1.0000          .0000       10.000    
     3 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92798       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6580.168     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      238 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19133        5.5851        .46945E-01    .85639E-03
   2  Index         2.3361        .81965        .50000        .20254E-05
   3  Normalizat    1.1453        .66085E-02    .63024E-01    .56767E-05
   4  Prefactor     .92802        .48929E-02    .45361E-01   -.16270E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.191326
  Index      = 2.33606
  Normalizat = 1.14526
  Prefactor  = 0.928017
 **********
 **   18 **HESSE 
 **********

 FCN=   6580.168     FROM HESSE     STATUS=OK            35 CALLS      273 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19133        26.624        .28305E-02   -1.5621    
   2  Index         2.3361        5.9654        .11673E-01   -.56189    
   3  Normalizat    1.1453        .24081        .27877E-03   -.88312    
   4  Prefactor     .92802        .17867        .22556E-03   -.95169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2859e-10
Minuit parameter uncertainties:
  1  4.51476
  2  5.98429
  3  0.241038
  4  0.178787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428323': 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) = 6580.16835364
delta logL = 0.000703574338331

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.913e-01  4.515e+00  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.336e+00  5.984e+00  0.000e+00  1.000e+01 (-1.000e+00)
223        Scale:  1.760e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
466    Prefactor:  9.280e-01  1.788e-01  0.000e+00  1.000e+01 ( 1.000e+00)
467        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
468        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
465   Normalization:  1.145e+00  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 216.169 14.784

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/428323/cmap_HighResolution_248400001_248659201_4FGL_J1424.6+1447_daily_bin35.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', job_status='DONE', photon_flux_upper_limit='5.97e-08', time_completed='2021-09-09 14:17:08.723687', job_id='428323', GAL2='0.93', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631222228.72', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.04e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='35' AND source_name='4FGL J1424.6+1447' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 14:17:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 428323: <4FGL_J1424.6+1447_daily_bin35> in cluster <slac> Done

Job <4FGL_J1424.6+1447_daily_bin35> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 14:01:32 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 14:01:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 14:01:33 2021
Terminated at Thu Sep  9 14:17:09 2021
Results reported at Thu Sep  9 14:17:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.6+1447_daily_bin35 216.169 14.784 248400001 248659201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1424.6+1447 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   763.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

