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


Performing analysis on: 4FGL_J1424.6+1447_daily_bin199
RA = 216.169, Dec = 14.784
tmin = 290908801, tmax = 291168001
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='429729', job_status='RUN', time_executed='2021-09-09 14:09:48.688936', time_epoch_executed='1631221788.69' WHERE source_name='4FGL J1424.6+1447' and cadence='daily' and bin_id='199'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429729

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429729/ft1_4FGL_J1424.6+1447_daily_bin199.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429729/ft2_4FGL_J1424.6+1447_daily_bin199.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429729/ft1_4FGL_J1424.6+1447_daily_bin199.fits outfile=/scratch/kocevski/429729/ft1_filteredMKT_4FGL_J1424.6+1447_daily_bin199.fits ra=216.169 dec=14.784 rad=12.0 tmin=290908801.0 tmax=291168001.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.44
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/429729/ft2_4FGL_J1424.6+1447_daily_bin199.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/429729/ft1_filteredMKT_4FGL_J1424.6+1447_daily_bin199.fits evtable="EVENTS" outfile="/scratch/kocevski/429729/ft1_filtered_4FGL_J1424.6+1447_daily_bin199.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429729/ft1_filtered_4FGL_J1424.6+1447_daily_bin199.fits" evtable="EVENTS" scfile=/scratch/kocevski/429729/ft2_4FGL_J1424.6+1447_daily_bin199.fits sctable="SC_DATA" outfile=/scratch/kocevski/429729/ltcube_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.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/429729/ft2_4FGL_J1424.6+1447_daily_bin199.fits
.....................!
real 14.12
user 13.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429729/ft1_filtered_4FGL_J1424.6+1447_daily_bin199.fits evtable="EVENTS" scfile=/scratch/kocevski/429729/ft2_4FGL_J1424.6+1447_daily_bin199.fits sctable="SC_DATA" expcube=/scratch/kocevski/429729/ltcube_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.fits outfile=/scratch/kocevski/429729/expmap_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.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/429729/ltcube_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.fits
.....................!
real 192.68
user 187.07
sys 5.21

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/429729/ft1_filtered_4FGL_J1424.6+1447_daily_bin199.fits scfile=/scratch/kocevski/429729/ft2_4FGL_J1424.6+1447_daily_bin199.fits outfile=/scratch/kocevski/429729/cmap_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429729/ft1_filtered_4FGL_J1424.6+1447_daily_bin199.fits scfile=/scratch/kocevski/429729/ft2_4FGL_J1424.6+1447_daily_bin199.fits outfile=/scratch/kocevski/429729/cmap_HighResolution_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/429729/ft1_filtered_4FGL_J1424.6+1447_daily_bin199.fits', '/scratch/kocevski/429729/ft2_4FGL_J1424.6+1447_daily_bin199.fits', expMap='/scratch/kocevski/429729/expmap_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.fits', expCube='/scratch/kocevski/429729/ltcube_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/429729/Model_4FGL_J1424.6+1447_daily_bin199.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/429729/ft1_filtered_4FGL_J1424.6+1447_daily_bin199.fits
Spacecraft file(s): /scratch/kocevski/429729/ft2_4FGL_J1424.6+1447_daily_bin199.fits
Exposure map: /scratch/kocevski/429729/expmap_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.fits
Exposure cube: /scratch/kocevski/429729/ltcube_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/429729/Model_4FGL_J1424.6+1447_daily_bin199.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9869       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1114       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.718       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.008       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.6101       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4810       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4805       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5082       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.464       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4769       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1748       1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2544       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86400       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.

 FCN=   6166.692     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2695 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9783        38.144       -.13084E-04   -.12466E-03
   2  Prefactor     .10000E-03    1.2851        .10668E-06** at limit **
   3  Prefactor     .10000E-03    3.1167       -.67418E-07** at limit **
   4  Prefactor     1.1120        8.0080        .20759E-06   -.36377E-03
   5  Prefactor     32.719        35.490        .62865E-06    .19875E-04
   6  Prefactor     29.010        24.559        .82625E-06    .56508E-04
   7  norm          .10000E-03    11.480       -.64957E-06** at limit **
   8  Prefactor     .10000E-03    5.3267       -.13098E-06** at limit **
   9  norm          6.6101        2.9408       -.27478E-07   -.36338E-04
  10  Prefactor     6.4800        7.2072        .63958E-07   -.41375E-04
  11  norm          .10000E-03    .99972        .64677E-08** at limit **
  12  Prefactor     .10000E-03    18.764       -.14478E-05** at limit **
  13  norm          2.4793        9.4145        .42581E-05   -.83133E-03
  14  norm          5.5083        4.2673        .13395E-05    .53331E-03
  15  Prefactor     .10000E-03    27.510       -.35334E-05** at limit **
  16  Prefactor     24.466        29.670        .87469E-06    .56952E-04
  17  Prefactor     5.4760        8.2703       -.54822E-09   -.77605E-05
  18  Prefactor     .10000E-03    9.4700        .19952E-06** at limit **
  19  Prefactor     .10000E-03    18.701       -.10332E-05** at limit **
  20  Prefactor     4.1748        4.5142        .38334E-06    .15483E-03
  21  norm          .10000E-03    .11121       -.13656E-07** at limit **
  22  norm          .10000E-03    23.174        .48151E-05** at limit **
  23  Normalizat    1.2545        .20505       -.42565E-06    .80561E-04
  24  Prefactor     .86392        .14797       -.98010E-07    .54406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.97829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.11203
  Prefactor  = 32.7188
  Prefactor  = 29.0096
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.61007
  Prefactor  = 6.47996
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.47926
  norm       = 5.50833
  Prefactor  = 0.000100001
  Prefactor  = 24.4656
  Prefactor  = 5.47599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.17483
  norm       = 0.0001
  norm       = 0.000100001
  Normalizat = 1.25449
  Prefactor  = 0.863916
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.692     FROM HESSE     STATUS=OK           401 CALLS     3096 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9783        39.631        .18008E-03   -1.5262    
   2  Prefactor     .10000E-03    1.2880        .86948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1197        .13539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1120        8.5100        .43854E-03   -1.5497    
   5  Prefactor     32.719        35.544        .70053E-04   -1.4563    
   6  Prefactor     29.010        24.568        .74387E-04   -1.4630    
   7  norm          .10000E-03    11.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3471        .17674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.6101        2.9421        .86913E-04   -1.5194    
  10  Prefactor     6.4800        7.2197        .15765E-03   -1.5199    
  11  norm          .10000E-03    1.0101        .76641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4793        19.451        .12979E-02   -1.5393    
  14  norm          5.5083        4.2866        .13912E-03   -1.5239    
  15  Prefactor     .10000E-03    27.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.466        29.653        .80988E-04   -1.4718    
  17  Prefactor     5.4760        8.2637        .17169E-03   -1.5240    
  18  Prefactor     .10000E-03    9.4853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1748        4.5194        .16941E-03   -1.5299    
  21  norm          .10000E-03    .26866        .50165E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    23.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2545        .25228        .25463E-03   -.84935    
  24  Prefactor     .86392        .18152        .22020E-03   -.97414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37436e-09
Minuit parameter uncertainties:
  1  28.1177
  2  3.18047e-06
  3  3.74714e-07
  4  6.15347
  5  35.5668
  6  24.5767
  7  3.55762e-05
  8  6.19309e-06
  9  2.94216
  10  7.22072
  11  4.85279e-08
  12  0.000100258
  13  13.8947
  14  4.28687
  15  0.000241606
  16  29.6712
  17  8.26541
  18  1.00882e-05
  19  6.21289e-05
  20  4.51979
  21  8.20951e-08
  22  0.000330865
  23  0.252522
  24  0.181644
Done.

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

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  6.193e-06  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:  8.639e-01  1.816e-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.254e+00  2.525e-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: 7.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429729/likelihoodResults_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.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) = 6166.6932064
delta logL = -0.000891278822564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6166.69231515
delta logL = -3.46362867276e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1781       1.0000          .0000       10.000    
     3 'Normalizat'    1.2545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86394       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=   6166.692     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.685        .90712E-02** at limit **
   2  Index         2.1842        8.4000        .50000       -.98675E-05
   3  Normalizat    1.2545        .17166E-01    .57580E-01    .16057E-04
   4  Prefactor     .86392        .12643E-01    .44544E-01    .22438E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18423
  Normalizat = 1.25449
  Prefactor  = 0.863917
 **********
 **   18 **HESSE 
 **********

 FCN=   6166.692     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    884.50        .17698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1842        5.8024        .50000       -.59820    
   3  Normalizat    1.2545        .88529E-01    .25464E-03   -.84935    
   4  Prefactor     .86392        .65183E-01    .22020E-03   -.97414    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37485e-08
Minuit parameter uncertainties:
  1  0.000124256
  2  53.931
  3  0.0885392
  4  0.0651888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429729': 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) = 6166.69231509
delta logL = 2.8453541745e-08

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  1.243e-04  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.184e+00  5.393e+01  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:  8.639e-01  6.519e-02  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.254e+00  8.854e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/429729/cmap_HighResolution_290908801_291168001_4FGL_J1424.6+1447_daily_bin199.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.84e-08', time_completed='2021-09-09 14:20:05.161635', job_id='429729', GAL2='0.86', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631222405.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.85e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='199' AND source_name='4FGL J1424.6+1447' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 14:20:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 429729: <4FGL_J1424.6+1447_daily_bin199> in cluster <slac> Done

Job <4FGL_J1424.6+1447_daily_bin199> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 14:06:09 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 14:06:11 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:06:11 2021
Terminated at Thu Sep  9 14:20:05 2021
Results reported at Thu Sep  9 14:20:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.6+1447_daily_bin199 216.169 14.784 290908801 291168001 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 :                                   606.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             265.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

