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


Performing analysis on: 4FGL_J1424.2+0433_daily_bin147
RA = 216.051, Dec = 4.5628
tmin = 277430401, tmax = 277689601
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='420960', job_status='RUN', time_executed='2021-09-09 13:43:41.390040', time_epoch_executed='1631220221.39' WHERE source_name='4FGL J1424.2+0433' and cadence='daily' and bin_id='147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/420960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/420960/ft1_4FGL_J1424.2+0433_daily_bin147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/420960/ft2_4FGL_J1424.2+0433_daily_bin147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/420960/ft1_4FGL_J1424.2+0433_daily_bin147.fits outfile=/scratch/kocevski/420960/ft1_filteredMKT_4FGL_J1424.2+0433_daily_bin147.fits ra=216.051 dec=4.5628 rad=12.0 tmin=277430401.0 tmax=277689601.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.51
user 3.28
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/420960/ft2_4FGL_J1424.2+0433_daily_bin147.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/420960/ft2_4FGL_J1424.2+0433_daily_bin147.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/420960/ft1_filteredMKT_4FGL_J1424.2+0433_daily_bin147.fits evtable="EVENTS" outfile="/scratch/kocevski/420960/ft1_filtered_4FGL_J1424.2+0433_daily_bin147.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/420960/ft1_filtered_4FGL_J1424.2+0433_daily_bin147.fits" evtable="EVENTS" scfile=/scratch/kocevski/420960/ft2_4FGL_J1424.2+0433_daily_bin147.fits sctable="SC_DATA" outfile=/scratch/kocevski/420960/ltcube_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.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/420960/ft2_4FGL_J1424.2+0433_daily_bin147.fits
.....................!
real 11.71
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/420960/ft1_filtered_4FGL_J1424.2+0433_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/420960/ft2_4FGL_J1424.2+0433_daily_bin147.fits sctable="SC_DATA" expcube=/scratch/kocevski/420960/ltcube_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.fits outfile=/scratch/kocevski/420960/expmap_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.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/420960/ltcube_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.fits
.....................!
real 190.76
user 185.46
sys 4.97

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

Setting source of interest to:
4FGL J1424.2+0433 @ 216.051 4.5628

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/420960/ft1_filtered_4FGL_J1424.2+0433_daily_bin147.fits scfile=/scratch/kocevski/420960/ft2_4FGL_J1424.2+0433_daily_bin147.fits outfile=/scratch/kocevski/420960/cmap_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.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.051 yref=4.5628 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/420960/ft1_filtered_4FGL_J1424.2+0433_daily_bin147.fits scfile=/scratch/kocevski/420960/ft2_4FGL_J1424.2+0433_daily_bin147.fits outfile=/scratch/kocevski/420960/cmap_HighResolution_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.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.051 yref=4.5628 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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/420960/ft1_filtered_4FGL_J1424.2+0433_daily_bin147.fits evtable="EVENTS" scfile=/scratch/kocevski/420960/ft2_4FGL_J1424.2+0433_daily_bin147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/420960/Model_4FGL_J1424.2+0433_daily_bin147.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/420960/ft1_filtered_4FGL_J1424.2+0433_daily_bin147.fits.....................!
real 50.88
user 49.57
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/420960/ft1_filtered_4FGL_J1424.2+0433_daily_bin147.fits', '/scratch/kocevski/420960/ft2_4FGL_J1424.2+0433_daily_bin147.fits', expMap='/scratch/kocevski/420960/expmap_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.fits', expCube='/scratch/kocevski/420960/ltcube_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/420960/Model_4FGL_J1424.2+0433_daily_bin147.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1424.2+0433'

4FGL J1424.2+0433
   Spectrum: LogParabola
258         norm:  6.175e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
259        alpha:  1.980e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  1.489e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  1.196e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/420960/ft1_filtered_4FGL_J1424.2+0433_daily_bin147.fits
Spacecraft file(s): /scratch/kocevski/420960/ft2_4FGL_J1424.2+0433_daily_bin147.fits
Exposure map: /scratch/kocevski/420960/expmap_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.fits
Exposure cube: /scratch/kocevski/420960/ltcube_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/420960/Model_4FGL_J1424.2+0433_daily_bin147.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) = 6674.109075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    43.186       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26346E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.322       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.797       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.947       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7896       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.742       1.0000         .10000E-03   10000.    
     9 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2195       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.511       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6417       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0792       1.0000         .10000E-03   10000.    
    19 'norm      '    11.966       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .50743       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4299       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6674.103     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2254 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3400        .12654E-06** at limit **
   2  Prefactor     43.186        28.703       -.91857E-07   -.18702E-04
   3  Prefactor     .10002E-03    2.8765       -.42922E-06** at limit **
   4  Prefactor     11.322        10.377        .23604E-07    .48938E-05
   5  Prefactor     40.796        28.957       -.21283E-06   -.27994E-04
   6  Prefactor     13.858        28.111       -.52423E-05   -.29900E-03
   7  norm          3.7893        9.7886        .68804E-05   -.88872E-04
   8  Prefactor     50.739        32.995       -.66473E-07   -.25805E-04
   9  norm          .10000E-03    6.8089        .23493E-08** at limit **
  10  Prefactor     .10000E-03    3.7029       -.28619E-06** at limit **
  11  Prefactor     4.2266        9.7247        .75239E-06    .47394E-04
  12  Prefactor     .10000E-03    41.882       -.23459E-06** at limit **
  13  Prefactor     21.523        30.626        .78412E-06    .35330E-04
  14  norm          .10000E-03    14.407        .35808E-06** at limit **
  15  Prefactor     .10000E-03    88.033        .60051E-05** at limit **
  16  Prefactor     .10000E-03    15.272        .25990E-06** at limit **
  17  norm          1.6417        .35203        .11661E-07   -.35434E-03
  18  norm          3.0795        2.9604        .20549E-06   -.38994E-04
  19  norm          11.966        8.6160        .21180E-07   -.64385E-05
  20  Normalizat    .50736        .27283        .63990E-06   -.37309E-05
  21  Prefactor     1.4299        .16978       -.28407E-06    .27351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 43.1864
  Prefactor  = 0.000100019
  Prefactor  = 11.3219
  Prefactor  = 40.796
  Prefactor  = 13.858
  norm       = 3.78932
  Prefactor  = 50.7394
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.22663
  Prefactor  = 0.0001
  Prefactor  = 21.5227
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.6417
  norm       = 3.07947
  norm       = 11.9659
  Normalizat = 0.507365
  Prefactor  = 1.42992
 **********
 **   18 **HESSE 
 **********

 FCN=   6674.103     FROM HESSE     STATUS=OK           319 CALLS     2573 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3604        .12198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.186        28.640        .61004E-04   -1.4393    
   3  Prefactor     .10002E-03    19.021        .26621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.322        10.369        .11906E-03   -1.5035    
   5  Prefactor     40.796        28.878        .62758E-04   -1.4430    
   6  Prefactor     13.858        29.428        .10725E-03   -1.4963    
   7  norm          3.7893        9.9515        .10368E-02   -1.5319    
   8  Prefactor     50.739        32.916        .56299E-04   -1.4282    
   9  norm          .10000E-03    6.8096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7238        .15340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2266        9.6943        .19617E-03   -1.5297    
  12  Prefactor     .10000E-03    41.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.523        30.567        .86360E-04   -1.4780    
  14  norm          .10000E-03    14.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    90.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6417        .35181        .21521E-04   -1.5452    
  18  norm          3.0795        2.9476        .13006E-03   -1.5357    
  19  norm          11.966        8.6223        .11581E-03   -1.5016    
  20  Normalizat    .50736        .27887        .45742E-03   -1.1208    
  21  Prefactor     1.4299        .17807        .19052E-03   -.79522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63521e-09
Minuit parameter uncertainties:
  1  1.12931e-06
  2  28.6491
  3  0.00121816
  4  10.3708
  5  28.8877
  6  29.4587
  7  9.9558
  8  32.9276
  9  3.27726e-07
  10  6.67298e-06
  11  9.69792
  12  0.000105616
  13  30.5894
  14  2.43868e-05
  15  0.000984543
  16  8.82808e-06
  17  0.351815
  18  2.94776
  19  8.62324
  20  0.279641
  21  0.17815
Done.

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

Extracting fit parameters...

4FGL J1424.2+0433
   Spectrum: LogParabola
258         norm:  1.000e-04  3.277e-07  1.000e-04  1.000e+04 ( 1.000e-13)
259        alpha:  1.980e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  1.489e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  1.196e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.430e+00  1.782e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  5.074e-01  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 216.051 4.563
Photon Flux Upper Limit: 3.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/420960/likelihoodResults_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.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) = 6674.10363304
delta logL = -0.000673460938742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6674.10295958
delta logL = 4.69299266115e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9708       1.0000          .0000       5.0000    
     3 'Normalizat'    .50739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4299       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+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=   6674.103     FROM MIGRAD    STATUS=FAILED        93 CALLS      240 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    234.62        .18142E-01** at limit **
   2  alpha         1.6417        3.8368        .16953       -.41980E-07
   3  Normalizat    .50736        .32747E-01    .45741E-03   -.64672E-04
   4  Prefactor     1.4299        .22051E-01    .19052E-03   -.15734E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6674.103     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      400 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    234.62        .44333E-03** at limit **
   2  alpha         1.6417        3.8368        .69811E-05   -.41980E-07
   3  Normalizat    .50736        .32747E-01    .25689E-06   -.64672E-04
   4  Prefactor     1.4299        .22051E-01    .94969E-07   -.15734E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6674.103     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      428 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.3424        .21532E-02** at limit **
   2  alpha         1.6461        2.9960        .67811E-02    .48954E-07
   3  Normalizat    .50736        .25963        .18296E-04   -.64498E-04
   4  Prefactor     1.4299        .17517        .38105E-04   -.15646E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.64611
  Normalizat = 0.507365
  Prefactor  = 1.42992
 **********
 **   18 **HESSE 
 **********

 FCN=   6674.103     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2849        .43063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6461        3.5343        .13562E-02   -.34857    
   3  Normalizat    .50736        .25951        .36592E-05   -1.1208    
   4  Prefactor     1.4299        .17511        .76210E-05   -.79522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10509e-10
Minuit parameter uncertainties:
  1  0.000100779
  2  337.545
  3  0.260127
  4  0.175184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/420960': 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) = 6674.1029591
delta logL = 4.78698893858e-07

Extracting fit parameters...

4FGL J1424.2+0433
   Spectrum: LogParabola
258         norm:  1.000e-04  1.008e-04  1.000e-04  1.000e+04 ( 1.000e-13)
259        alpha:  1.646e+00  3.375e+02  0.000e+00  5.000e+00 ( 1.000e+00)
260         beta:  1.489e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  1.196e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.430e+00  1.752e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  5.074e-01  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 216.051 4.563

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/420960/cmap_HighResolution_277430401_277689601_4FGL_J1424.2+0433_daily_bin147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', job_status='DONE', photon_flux_upper_limit='3.53e-08', time_completed='2021-09-09 13:55:36.682120', job_id='420960', GAL2='1.43', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1631220936.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='4.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='147' AND source_name='4FGL J1424.2+0433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 13:55:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 420960: <4FGL_J1424.2+0433_daily_bin147> in cluster <slac> Done

Job <4FGL_J1424.2+0433_daily_bin147> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 13:41:24 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 13:41:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 13:41:25 2021
Terminated at Thu Sep  9 13:55:37 2021
Results reported at Thu Sep  9 13:55:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.2+0433_daily_bin147 216.051 4.5628 277430401 277689601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1424.2+0433 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

