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


Performing analysis on: 4FGL_J1424.2+0433_daily_bin895
RA = 216.051, Dec = 4.5628
tmin = 471312001, tmax = 471571201
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='424736', job_status='RUN', time_executed='2021-09-09 13:54:17.068459', time_epoch_executed='1631220857.07' WHERE source_name='4FGL J1424.2+0433' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424736/ft1_4FGL_J1424.2+0433_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424736/ft2_4FGL_J1424.2+0433_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424736/ft1_4FGL_J1424.2+0433_daily_bin895.fits outfile=/scratch/kocevski/424736/ft1_filteredMKT_4FGL_J1424.2+0433_daily_bin895.fits ra=216.051 dec=4.5628 rad=12.0 tmin=471312001.0 tmax=471571201.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.01
user 4.76
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/424736/ft2_4FGL_J1424.2+0433_daily_bin895.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/424736/ft1_filteredMKT_4FGL_J1424.2+0433_daily_bin895.fits evtable="EVENTS" outfile="/scratch/kocevski/424736/ft1_filtered_4FGL_J1424.2+0433_daily_bin895.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424736/ft1_filtered_4FGL_J1424.2+0433_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/424736/ft2_4FGL_J1424.2+0433_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/424736/ltcube_471312001_471571201_4FGL_J1424.2+0433_daily_bin895.fits outfile=/scratch/kocevski/424736/expmap_471312001_471571201_4FGL_J1424.2+0433_daily_bin895.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/424736/ltcube_471312001_471571201_4FGL_J1424.2+0433_daily_bin895.fits
.....................!
real 191.36
user 186.18
sys 4.87

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/424736/ft1_filtered_4FGL_J1424.2+0433_daily_bin895.fits scfile=/scratch/kocevski/424736/ft2_4FGL_J1424.2+0433_daily_bin895.fits outfile=/scratch/kocevski/424736/cmap_471312001_471571201_4FGL_J1424.2+0433_daily_bin895.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424736/ft1_filtered_4FGL_J1424.2+0433_daily_bin895.fits scfile=/scratch/kocevski/424736/ft2_4FGL_J1424.2+0433_daily_bin895.fits outfile=/scratch/kocevski/424736/cmap_HighResolution_471312001_471571201_4FGL_J1424.2+0433_daily_bin895.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/424736/ft1_filtered_4FGL_J1424.2+0433_daily_bin895.fits', '/scratch/kocevski/424736/ft2_4FGL_J1424.2+0433_daily_bin895.fits', expMap='/scratch/kocevski/424736/expmap_471312001_471571201_4FGL_J1424.2+0433_daily_bin895.fits', expCube='/scratch/kocevski/424736/ltcube_471312001_471571201_4FGL_J1424.2+0433_daily_bin895.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/424736/Model_4FGL_J1424.2+0433_daily_bin895.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/424736/ft1_filtered_4FGL_J1424.2+0433_daily_bin895.fits
Spacecraft file(s): /scratch/kocevski/424736/ft2_4FGL_J1424.2+0433_daily_bin895.fits
Exposure map: /scratch/kocevski/424736/expmap_471312001_471571201_4FGL_J1424.2+0433_daily_bin895.fits
Exposure cube: /scratch/kocevski/424736/ltcube_471312001_471571201_4FGL_J1424.2+0433_daily_bin895.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/424736/Model_4FGL_J1424.2+0433_daily_bin895.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) = 7241.85637918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6597       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.191       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.817       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.793       1.0000         .10000E-03   10000.    
     7 'norm      '    18.817       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2162       1.0000         .10000E-03   10000.    
     9 'norm      '    .29529E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11470E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6880       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15881E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .99807E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.458       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2024       1.0000         .10000E-03   10000.    
    18 'norm      '    4.5789       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1267       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0334       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.

 FCN=   7241.705     FROM MIGRAD    STATUS=CONVERGED    802 CALLS     2296 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8833        .32308E-03** at limit **
   2  Prefactor     .10000E-03    10.463        .18142E-02** at limit **
   3  Prefactor     2.6602        3.8879        .19767E-03    .13481E-03
   4  Prefactor     14.193        11.599        .10632E-03   -.18722E-03
   5  Prefactor     11.822        17.514        .11653E-03   -.15843E-03
   6  Prefactor     43.789        32.517        .60581E-04    .42636E-04
   7  norm          18.817        11.900        .92331E-04   -.12830E-03
   8  Prefactor     4.2190        15.369        .19625E-03   -.49181E-04
   9  norm          .10474E-03    16.304        .10629    ** at limit **
  10  Prefactor     .10000E-03    8.8516        .18142E-02** at limit **
  11  Prefactor     1.7273        25.217        .32406E-03    .58377E-04
  12  Prefactor     .10000E-03    99.001        .18142E-02** at limit **
  13  Prefactor     .10011E-03    202.78        .83822E-02** at limit **
  14  norm          .10000E-03    19.380        .18142E-02** at limit **
  15  Prefactor     .10000E-03    15.469        .18142E-02** at limit **
  16  Prefactor     32.461        27.696        .70332E-04    .62588E-04
  17  norm          2.2024        .40974        .22578E-04    .75590E-03
  18  norm          4.5793        2.8619        .10849E-03    .26418E-03
  19  norm          .10000E-03    2.6654        .13563E-02** at limit **
  20  Normalizat    1.1266        .26156        .31890E-03    .14146E-03
  21  Prefactor     1.0334        .16087        .21040E-03    .43166E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.66023
  Prefactor  = 14.1933
  Prefactor  = 11.822
  Prefactor  = 43.789
  norm       = 18.817
  Prefactor  = 4.21899
  norm       = 0.000104739
  Prefactor  = 0.000100001
  Prefactor  = 1.72731
  Prefactor  = 0.0001
  Prefactor  = 0.000100105
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.4607
  norm       = 2.20239
  norm       = 4.57932
  norm       = 0.0001
  Normalizat = 1.12656
  Prefactor  = 1.03343
 **********
 **   18 **HESSE 
 **********

 FCN=   7241.705     FROM HESSE     STATUS=OK           305 CALLS     2601 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8834        .64615E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6602        3.8878        .79069E-05   -1.5382    
   4  Prefactor     14.193        11.599        .42530E-05   -1.4954    
   5  Prefactor     11.822        17.512        .46614E-05   -1.5020    
   6  Prefactor     43.789        32.514        .12116E-04   -1.4384    
   7  norm          18.817        11.899        .36932E-05   -1.4840    
   8  Prefactor     4.2190        15.367        .78502E-05   -1.5297    
   9  norm          .10474E-03    15.451        .11150       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.8549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7273        25.184        .12962E-04   -1.5445    
  12  Prefactor     .10000E-03    99.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10011E-03    210.09        .33529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    19.384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.461        27.696        .14066E-04   -1.4568    
  17  norm          2.2024        .40974        .45156E-05   -1.5411    
  18  norm          4.5793        2.8618        .43396E-05   -1.5280    
  19  norm          .10000E-03    2.6655        .27125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1266        .26173        .12756E-04   -.88904    
  21  Prefactor     1.0334        .16102        .42081E-04   -.91623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50697e-09
Minuit parameter uncertainties:
  1  1.72213e-05
  2  5.17797e-07
  3  3.88818
  4  11.6006
  5  17.5198
  6  32.5269
  7  11.9007
  8  15.3814
  9  0.017119
  10  0.000151723
  11  13.1974
  12  8.40003e-05
  13  0.00943396
  14  2.22692e-05
  15  1.58767e-05
  16  27.7067
  17  0.409743
  18  2.86192
  19  5.92615e-07
  20  0.262037
  21  0.161093
Done.

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

Extracting fit parameters...

4FGL J1424.2+0433
   Spectrum: LogParabola
258         norm:  1.047e-04  1.712e-02  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.033e+00  1.611e-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:  1.127e+00  2.620e-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: 4.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424736/likelihoodResults_471312001_471571201_4FGL_J1424.2+0433_daily_bin895.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) = 7241.7046879
delta logL = -1.33781213663e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7241.61441026
delta logL = 0.0902642574847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8286       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9069       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0341       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7241.614     FROM MIGRAD    STATUS=FAILED       100 CALLS      324 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8357        15.183        .12090E-02   -.40960E-04
   2  alpha         2.9077        2.0010        .33228E-01    .19934E-03
   3  Normalizat    1.1175        .25129        .32003E-03   -.28100E-04
   4  Prefactor     1.0341        .15996        .21033E-03   -.36756E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7241.614     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      398 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8357        15.183        .16838E-03   -1.5371    
   2  alpha         2.9077        2.0010        .28505E-02    .16381    
   3  Normalizat    1.1175        .25129        .40538E-03   -.89193    
   4  Prefactor     1.0341        .15996        .26251E-03   -.91603    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7241.614     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      428 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8357        9.7684        .48362E-04   -.11049E-04
   2  alpha         2.9077        1.5991        .66455E-02    .80890E-05
   3  Normalizat    1.1175        .25153        .12801E-04   -.53286E-06
   4  Prefactor     1.0341        .16003        .84130E-05   -.54053E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.8357
  alpha      = 2.90771
  Normalizat = 1.11747
  Prefactor  = 1.03405
 **********
 **   18 **HESSE 
 **********

 FCN=   7241.614     FROM HESSE     STATUS=OK            25 CALLS      453 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8357        9.5054        .19345E-05   -1.5371    
   2  alpha         2.9077        1.5634        .13291E-02    .16382    
   3  Normalizat    1.1175        .25168        .25602E-05   -.89193    
   4  Prefactor     1.0341        .16014        .16826E-05   -.91603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18305e-13
Minuit parameter uncertainties:
  1  9.51044
  2  1.69332
  3  0.251953
  4  0.160215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424736': 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) = 7241.61440896
delta logL = 0.0902655569253

Extracting fit parameters...

4FGL J1424.2+0433
   Spectrum: LogParabola
258         norm:  2.836e+00  9.510e+00  1.000e-04  1.000e+04 ( 1.000e-13)
259        alpha:  2.908e+00  1.693e+00  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.034e+00  1.602e-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:  1.117e+00  2.520e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/424736/cmap_HighResolution_471312001_471571201_4FGL_J1424.2+0433_daily_bin895.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-05', job_status='DONE', photon_flux_upper_limit='4.87e-08', time_completed='2021-09-09 14:05:04.390516', job_id='424736', GAL2='1.03', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1631221504.39', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.03e-02', ts2='0.18', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='895' AND source_name='4FGL J1424.2+0433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 14:05:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 424736: <4FGL_J1424.2+0433_daily_bin895> in cluster <slac> Done

Job <4FGL_J1424.2+0433_daily_bin895> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  9 13:51:23 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 13:51: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:51:25 2021
Terminated at Thu Sep  9 14:05:05 2021
Results reported at Thu Sep  9 14:05:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.2+0433_daily_bin895 216.051 4.5628 471312001 471571201 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 :                                   638.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

