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


Performing analysis on: 4FGL_J1424.2+0433_daily_bin594
RA = 216.051, Dec = 4.5628
tmin = 393292801, tmax = 393552001
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='422925', job_status='RUN', time_executed='2021-09-09 13:50:05.612811', time_epoch_executed='1631220605.61' WHERE source_name='4FGL J1424.2+0433' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422925

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422925/ft1_4FGL_J1424.2+0433_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422925/ft2_4FGL_J1424.2+0433_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422925/ft1_4FGL_J1424.2+0433_daily_bin594.fits outfile=/scratch/kocevski/422925/ft1_filteredMKT_4FGL_J1424.2+0433_daily_bin594.fits ra=216.051 dec=4.5628 rad=12.0 tmin=393292801.0 tmax=393552001.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 4.66
user 4.41
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/422925/ft2_4FGL_J1424.2+0433_daily_bin594.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/422925/ft1_filteredMKT_4FGL_J1424.2+0433_daily_bin594.fits evtable="EVENTS" outfile="/scratch/kocevski/422925/ft1_filtered_4FGL_J1424.2+0433_daily_bin594.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/422925/ft1_filtered_4FGL_J1424.2+0433_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/422925/ft2_4FGL_J1424.2+0433_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/422925/ltcube_393292801_393552001_4FGL_J1424.2+0433_daily_bin594.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/422925/ft2_4FGL_J1424.2+0433_daily_bin594.fits
.....................!
real 12.03
user 11.65
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422925/ft1_filtered_4FGL_J1424.2+0433_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/422925/ft2_4FGL_J1424.2+0433_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/422925/ltcube_393292801_393552001_4FGL_J1424.2+0433_daily_bin594.fits outfile=/scratch/kocevski/422925/expmap_393292801_393552001_4FGL_J1424.2+0433_daily_bin594.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/422925/ltcube_393292801_393552001_4FGL_J1424.2+0433_daily_bin594.fits
.....................!
real 192.45
user 187.38
sys 4.70

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/422925/ft1_filtered_4FGL_J1424.2+0433_daily_bin594.fits scfile=/scratch/kocevski/422925/ft2_4FGL_J1424.2+0433_daily_bin594.fits outfile=/scratch/kocevski/422925/cmap_393292801_393552001_4FGL_J1424.2+0433_daily_bin594.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422925/ft1_filtered_4FGL_J1424.2+0433_daily_bin594.fits scfile=/scratch/kocevski/422925/ft2_4FGL_J1424.2+0433_daily_bin594.fits outfile=/scratch/kocevski/422925/cmap_HighResolution_393292801_393552001_4FGL_J1424.2+0433_daily_bin594.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6354       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1153       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.278       1.0000         .10000E-03   10000.    
     7 'norm      '    21.001       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8757       1.0000         .10000E-03   10000.    
     9 'norm      '    38.407       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15862E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30708E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .64297E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    4.6840       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2750       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84855       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=   7434.002     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     2278 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6340        4.2376        .13429E-02   -.10502E-02
   2  Prefactor     .10000E-03    10.779        .18142E-02** at limit **
   3  Prefactor     .10000E-03    1.5993        .10623E-02** at limit **
   4  Prefactor     6.1133        12.262        .16235E-03   -.62253E-04
   5  Prefactor     .10000E-03    7.3419        .18142E-02** at limit **
   6  Prefactor     46.275        30.010        .58939E-04    .21603E-04
   7  norm          21.000        12.225        .87401E-04    .89752E-05
   8  Prefactor     1.8701        97.494        .30404E-03   -.68428E-05
   9  norm          38.409        24.093        .64674E-04    .72424E-04
  10  Prefactor     .10000E-03    2.8434        .14164E-02** at limit **
  11  Prefactor     .10000E-03    3.5100        .15749E-02** at limit **
  12  Prefactor     .10001E-03    36.548        .16474    ** at limit **
  13  Prefactor     .10000E-03    11.079        .18142E-02** at limit **
  14  norm          .10000E-03    22.158        .18142E-02** at limit **
  15  Prefactor     .10000E-03    5.6232        .18142E-02** at limit **
  16  Prefactor     .10001E-03    15.578        .10095    ** at limit **
  17  norm          .64379E-01    .16967        .50829E-03    .19052E-01
  18  norm          4.6838        2.2896        .87428E-04    .12470E-03
  19  norm          .10000E-03    4.2604        .17278E-02** at limit **
  20  Normalizat    1.2750        .24205        .26935E-03    .28922E-03
  21  Prefactor     .84864        .14625        .20629E-03    .17608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.63404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.11329
  Prefactor  = 0.0001
  Prefactor  = 46.2753
  norm       = 21.0002
  Prefactor  = 1.87012
  norm       = 38.4094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 0.0643794
  norm       = 4.68379
  norm       = 0.0001
  Normalizat = 1.27501
  Prefactor  = 0.848645
 **********
 **   18 **HESSE 
 **********

 FCN=   7434.002     FROM HESSE     STATUS=OK           317 CALLS     2595 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6340        4.2319        .53717E-04   -1.5452    
   2  Prefactor     .10000E-03    10.779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5994        .21246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1133        12.260        .64940E-05   -1.5213    
   5  Prefactor     .10000E-03    7.3422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.275        30.008        .23576E-05   -1.4346    
   7  norm          21.000        12.224        .34960E-05   -1.4791    
   8  Prefactor     1.8701        97.304        .12162E-04   -1.5434    
   9  norm          38.409        24.084        .12935E-04   -1.4468    
  10  Prefactor     .10000E-03    2.8437        .28327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5104        .31499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    36.501        .16491       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.080        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    22.178        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    15.115        .10341       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .64379E-01    .16948        .10166E-03   -1.5657    
  18  norm          4.6838        2.2894        .34971E-05   -1.5275    
  19  norm          .10000E-03    4.2622        .34556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2750        .24200        .53870E-04   -.84315    
  21  Prefactor     .84864        .14638        .82516E-05   -.97959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85087e-09
Minuit parameter uncertainties:
  1  4.23271
  2  4.44879e-05
  3  2.99074e-06
  4  12.2649
  5  1.04202e-05
  6  30.0179
  7  12.2259
  8  27.025
  9  24.0897
  10  2.30728e-06
  11  3.69357e-06
  12  0.0013669
  13  7.77642e-06
  14  3.83204e-05
  15  4.32137e-06
  16  0.00095062
  17  0.169476
  18  2.28945
  19  5.86265e-06
  20  0.242213
  21  0.146446
Done.

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

Extracting fit parameters...

4FGL J1424.2+0433
   Spectrum: LogParabola
258         norm:  3.841e+01  2.409e+01  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:  8.486e-01  1.464e-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.275e+00  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.62
Ra Dec: 216.051 4.563
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 3.48e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 1.44e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7433.99727628
delta logL = 0.00479775017902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7433.99706673
delta logL = 0.0050072914928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.214       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0439       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84929       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.

 FCN=   7433.997     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      233 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          38.132        621.82        .16209E-02    .22577E-04
   2  alpha         2.0410        2.5981        .32120        .47396E-04
   3  Normalizat    1.2722        .19991        .60954E-01    .10208E-03
   4  Prefactor     .84933        .69712E-01    .44355E-01    .15348E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 38.1325
  alpha      = 2.04096
  Normalizat = 1.27224
  Prefactor  = 0.849328
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.997     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          38.132        23.337        .64836E-04   -1.4472    
   2  alpha         2.0410        .60230        .16218E-01   -.18467    
   3  Normalizat    1.2722        .22691        .26959E-03   -.84399    
   4  Prefactor     .84933        .14472        .20621E-03   -.97935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91275e-11
Minuit parameter uncertainties:
  1  23.343
  2  0.608495
  3  0.227087
  4  0.144783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422925': 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) = 7433.99704482
delta logL = 0.00502920399958

Extracting fit parameters...

4FGL J1424.2+0433
   Spectrum: LogParabola
258         norm:  3.813e+01  2.334e+01  1.000e-04  1.000e+04 ( 1.000e-13)
259        alpha:  2.041e+00  6.085e-01  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:  8.493e-01  1.448e-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.272e+00  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.62
Ra Dec: 216.051 4.563
Photon Index (Free Index): 2.04 +/- 0.61
Photon Flux (Free Index): 3.75e-08 +/- 3.41e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.45e-05

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/422925/cmap_HighResolution_393292801_393552001_4FGL_J1424.2+0433_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.48e-08', energy_flux2='2.24e-05', photon_flux_error='2.19e-08', dlogl='5.03e-03', energy_flux='2.29e-05', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-09-09 13:59:40.723827', photon_index_error2='0.61', photon_index2='2.04', ts='9.62', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.28', time_epoch_completed='1631221180.72', return_code='0', job_id='422925', GAL2='0.85', EG2='1.27', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='3.41e-08', ts2='9.62', photon_index='1.98' WHERE bin_id='594' AND source_name='4FGL J1424.2+0433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 13:59:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 422925: <4FGL_J1424.2+0433_daily_bin594> in cluster <slac> Done

Job <4FGL_J1424.2+0433_daily_bin594> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 13:46:12 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 13:46:14 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:46:14 2021
Terminated at Thu Sep  9 13:59:41 2021
Results reported at Thu Sep  9 13:59:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.2+0433_daily_bin594 216.051 4.5628 393292801 393552001 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 :                                   569.24 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             259.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

