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


Performing analysis on: 4FGL_J1424.6+1447_daily_bin489
RA = 216.169, Dec = 14.784
tmin = 366076801, tmax = 366336001
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='431424', job_status='RUN', time_executed='2021-09-09 14:14:29.495487', time_epoch_executed='1631222069.5' WHERE source_name='4FGL J1424.6+1447' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/431424

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/431424/ft1_4FGL_J1424.6+1447_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/431424/ft2_4FGL_J1424.6+1447_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/431424/ft1_4FGL_J1424.6+1447_daily_bin489.fits outfile=/scratch/kocevski/431424/ft1_filteredMKT_4FGL_J1424.6+1447_daily_bin489.fits ra=216.169 dec=14.784 rad=12.0 tmin=366076801.0 tmax=366336001.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 5.37
user 5.04
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/431424/ft2_4FGL_J1424.6+1447_daily_bin489.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/431424/ft1_filteredMKT_4FGL_J1424.6+1447_daily_bin489.fits evtable="EVENTS" outfile="/scratch/kocevski/431424/ft1_filtered_4FGL_J1424.6+1447_daily_bin489.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.56
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/431424/ft1_filtered_4FGL_J1424.6+1447_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/431424/ft2_4FGL_J1424.6+1447_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/431424/ltcube_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.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/431424/ft2_4FGL_J1424.6+1447_daily_bin489.fits
.....................!
real 12.01
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/431424/ft1_filtered_4FGL_J1424.6+1447_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/431424/ft2_4FGL_J1424.6+1447_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/431424/ltcube_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.fits outfile=/scratch/kocevski/431424/expmap_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.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/431424/ltcube_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.fits
.....................!
real 189.76
user 185.14
sys 4.16

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/431424/ft1_filtered_4FGL_J1424.6+1447_daily_bin489.fits scfile=/scratch/kocevski/431424/ft2_4FGL_J1424.6+1447_daily_bin489.fits outfile=/scratch/kocevski/431424/cmap_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/431424/ft1_filtered_4FGL_J1424.6+1447_daily_bin489.fits scfile=/scratch/kocevski/431424/ft2_4FGL_J1424.6+1447_daily_bin489.fits outfile=/scratch/kocevski/431424/cmap_HighResolution_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.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.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/431424/ft1_filtered_4FGL_J1424.6+1447_daily_bin489.fits', '/scratch/kocevski/431424/ft2_4FGL_J1424.6+1447_daily_bin489.fits', expMap='/scratch/kocevski/431424/expmap_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.fits', expCube='/scratch/kocevski/431424/ltcube_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/431424/Model_4FGL_J1424.6+1447_daily_bin489.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/431424/ft1_filtered_4FGL_J1424.6+1447_daily_bin489.fits
Spacecraft file(s): /scratch/kocevski/431424/ft2_4FGL_J1424.6+1447_daily_bin489.fits
Exposure map: /scratch/kocevski/431424/expmap_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.fits
Exposure cube: /scratch/kocevski/431424/ltcube_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/431424/Model_4FGL_J1424.6+1447_daily_bin489.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) = 6612.84114628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4912       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.537       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7053       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.7502       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14037E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7040       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.783       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4890       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.854       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4643       1.0000         .10000E-03   10000.    
    21 'norm      '    .36283E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2753       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90448       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=   6612.813     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2728 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.631        .68506E-06** at limit **
   2  Prefactor     .10000E-03    3.0160       -.75278E-07** at limit **
   3  Prefactor     11.101        14.522       -.44745E-07   -.23745E-04
   4  Prefactor     2.4914        23.360       -.35473E-05    .39845E-04
   5  Prefactor     .10000E-03    40.034        .91015E-06** at limit **
   6  Prefactor     22.566        30.694       -.32950E-06    .22795E-03
   7  norm          1.6528        190.69       -.57856E-05    .25979E-05
   8  Prefactor     .10000E-03    3.6620       -.47741E-07** at limit **
   9  norm          9.7503        3.5466       -.43511E-07   -.17374E-04
  10  Prefactor     .10000E-03    91.074       -.14219E-04** at limit **
  11  norm          2.7042        2.3563       -.18459E-07    .58152E-05
  12  Prefactor     .10000E-03    18.272       -.23823E-06** at limit **
  13  norm          .10000E-03    10.943       -.87213E-06** at limit **
  14  norm          .10000E-03    2.9155       -.63884E-07** at limit **
  15  Prefactor     .10000E-03    9.9486        .22549E-06** at limit **
  16  Prefactor     24.781        20.277        .45449E-06    .61048E-04
  17  Prefactor     7.4929        17.574        .52689E-09    .23960E-06
  18  Prefactor     .10000E-03    12.962        .65630E-06** at limit **
  19  Prefactor     46.883        41.612        .18158E-05    .19373E-04
  20  Prefactor     9.4638        8.5603        .16565E-07   -.11588E-04
  21  norm          .36166E-01    .84394E-01   -.32062E-06   -.25912E-02
  22  norm          .10000E-03    26.659       -.92092E-06** at limit **
  23  Normalizat    1.2752        .23606        .22414E-05   -.25311E-04
  24  Prefactor     .90458        .15840       -.11059E-05    .33080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1009
  Prefactor  = 2.4914
  Prefactor  = 0.0001
  Prefactor  = 22.5659
  norm       = 1.65284
  Prefactor  = 0.0001
  norm       = 9.75027
  Prefactor  = 0.000100001
  norm       = 2.70419
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7815
  Prefactor  = 7.49294
  Prefactor  = 0.0001
  Prefactor  = 46.8826
  Prefactor  = 9.4638
  norm       = 0.0361657
  norm       = 0.0001
  Normalizat = 1.2752
  Prefactor  = 0.90458
 **********
 **   18 **HESSE 
 **********

 FCN=   6612.813     FROM HESSE     STATUS=OK           407 CALLS     3135 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.0727        .13789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.101        14.527        .12024E-03   -1.5041    
   4  Prefactor     2.4914        23.266        .12948E-02   -1.5392    
   5  Prefactor     .10000E-03    40.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.566        30.603        .84373E-04   -1.4758    
   7  norm          1.6528        195.56        .32203E-03   -1.5451    
   8  Prefactor     .10000E-03    3.6744        .15188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.7503        3.5475        .89417E-04   -1.5083    
  10  Prefactor     .10000E-03    7.9352        .55075E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7042        2.3517        .11229E-03   -1.5379    
  12  Prefactor     .10000E-03    18.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9551        .13559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.9547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.781        20.311        .80465E-04   -1.4712    
  17  Prefactor     7.4929        17.554        .14655E-03   -1.5160    
  18  Prefactor     .10000E-03    12.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.883        41.428        .29289E-03   -1.4337    
  20  Prefactor     9.4638        8.5619        .65133E-03   -1.5093    
  21  norm          .36166E-01    .83991E-01    .38876E-03   -1.5670    
  22  norm          .10000E-03    26.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2752        .27476        .27103E-03   -.84310    
  24  Prefactor     .90458        .18668        .22406E-03   -.95981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.50552e-10
Minuit parameter uncertainties:
  1  2.62126e-05
  2  5.07937e-06
  3  14.5316
  4  15.2345
  5  1.59353e-05
  6  30.6244
  7  36.0773
  8  9.40076e-07
  9  3.54758
  10  0.000158697
  11  2.35179
  12  3.28305e-05
  13  2.32492e-05
  14  4.21595e-06
  15  2.55207e-06
  16  20.3164
  17  17.5658
  18  2.20502e-05
  19  41.4531
  20  8.56297
  21  0.0839915
  22  1.7665e-05
  23  0.27507
  24  0.186807
Done.

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

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  9.401e-07  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.046e-01  1.868e-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.275e+00  2.751e-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: 6.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/431424/likelihoodResults_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.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) = 6612.81477999
delta logL = -0.00129535703854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6612.81348465
delta logL = -1.65573510458e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1749       1.0000          .0000       10.000    
     3 'Normalizat'    1.2752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90460       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=   6612.813     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.510        .90712E-02** at limit **
   2  Index         2.1778        8.8554        .50000       -.68417E-05
   3  Normalizat    1.2752        .20072E-01    .61280E-01    .10889E-04
   4  Prefactor     .90458        .14328E-01    .45064E-01    .16636E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17781
  Normalizat = 1.2752
  Prefactor  = 0.904576
 **********
 **   18 **HESSE 
 **********

 FCN=   6612.813     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    749.28        .15192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1778        5.0790        .50000       -.59975    
   3  Normalizat    1.2752        .12513        .27104E-03   -.84310    
   4  Prefactor     .90458        .89301E-01    .22406E-03   -.95981    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.73844e-09
Minuit parameter uncertainties:
  1  8.13245e-05
  2  59.7217
  3  0.125164
  4  0.0893154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/431424': 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) = 6612.81348462
delta logL = 9.62336343946e-09

Extracting fit parameters...

4FGL J1424.6+1447
   Spectrum: PowerLaw
221    Prefactor:  1.000e-04  8.132e-05  1.000e-04  1.000e+04 ( 1.000e-13)
222        Index:  2.178e+00  5.972e+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:  9.046e-01  8.932e-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.275e+00  1.252e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/431424/cmap_HighResolution_366076801_366336001_4FGL_J1424.6+1447_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2021-09-09 14:24:57.249717', job_id='431424', GAL2='0.90', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1631222697.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='9.62e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='489' AND source_name='4FGL J1424.6+1447' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 14:24:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 431424: <4FGL_J1424.6+1447_daily_bin489> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.6+1447_daily_bin489 216.169 14.784 366076801 366336001 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 :                                   624.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             266.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            833 sec.

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

