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


Performing analysis on: 4FGL_J1424.2+0433_daily_bin982
RA = 216.051, Dec = 4.5628
tmin = 493862401, tmax = 494121601
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='424880', job_status='RUN', time_executed='2021-09-09 13:55:21.337217', time_epoch_executed='1631220921.34' WHERE source_name='4FGL J1424.2+0433' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424880

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424880/ft1_4FGL_J1424.2+0433_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424880/ft2_4FGL_J1424.2+0433_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424880/ft1_4FGL_J1424.2+0433_daily_bin982.fits outfile=/scratch/kocevski/424880/ft1_filteredMKT_4FGL_J1424.2+0433_daily_bin982.fits ra=216.051 dec=4.5628 rad=12.0 tmin=493862401.0 tmax=494121601.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.65
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424880/ft1_filtered_4FGL_J1424.2+0433_daily_bin982.fits" evtable="EVENTS" scfile=/scratch/kocevski/424880/ft2_4FGL_J1424.2+0433_daily_bin982.fits sctable="SC_DATA" outfile=/scratch/kocevski/424880/ltcube_493862401_494121601_4FGL_J1424.2+0433_daily_bin982.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/424880/ft2_4FGL_J1424.2+0433_daily_bin982.fits
.....................!
real 14.14
user 13.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424880/ft1_filtered_4FGL_J1424.2+0433_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/424880/ft2_4FGL_J1424.2+0433_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/424880/ltcube_493862401_494121601_4FGL_J1424.2+0433_daily_bin982.fits outfile=/scratch/kocevski/424880/expmap_493862401_494121601_4FGL_J1424.2+0433_daily_bin982.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/424880/ltcube_493862401_494121601_4FGL_J1424.2+0433_daily_bin982.fits
.....................!
real 189.70
user 185.13
sys 4.22

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/424880/ft1_filtered_4FGL_J1424.2+0433_daily_bin982.fits scfile=/scratch/kocevski/424880/ft2_4FGL_J1424.2+0433_daily_bin982.fits outfile=/scratch/kocevski/424880/cmap_493862401_494121601_4FGL_J1424.2+0433_daily_bin982.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424880/ft1_filtered_4FGL_J1424.2+0433_daily_bin982.fits scfile=/scratch/kocevski/424880/ft2_4FGL_J1424.2+0433_daily_bin982.fits outfile=/scratch/kocevski/424880/cmap_HighResolution_493862401_494121601_4FGL_J1424.2+0433_daily_bin982.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.0505       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4883       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.248       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.321       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.615       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1559       1.0000         .10000E-03   10000.    
    18 'norm      '    5.9453       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4792       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .84276       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=   6978.887     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2156 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0454       -.18542E-06** at limit **
   2  Prefactor     9.0430        17.826       -.52612E-05    .43768E-04
   3  Prefactor     6.4881        4.8066       -.33515E-06   -.10285E-03
   4  Prefactor     .10000E-03    12.134       -.92907E-05** at limit **
   5  Prefactor     .10000E-03    15.101       -.45422E-05** at limit **
   6  Prefactor     47.243        35.929       -.59345E-05    .20246E-04
   7  norm          .10000E-03    7.8735       -.38526E-06** at limit **
   8  Prefactor     .10000E-03    16.608        .85205E-05** at limit **
   9  norm          .10000E-03    7.8338       -.22998E-05** at limit **
  10  Prefactor     .10000E-03    2.6362        .80008E-07** at limit **
  11  Prefactor     .10000E-03    5.0008        .16243E-06** at limit **
  12  Prefactor     27.269        50.547       -.83811E-04    .15438E-04
  13  Prefactor     .10000E-03    39.477        .16517E-05** at limit **
  14  norm          .10000E-03    39.626       -.34020E-05** at limit **
  15  Prefactor     .10000E-03    9.6833        .86695E-05** at limit **
  16  Prefactor     18.614        19.740       -.13172E-05   -.21910E-06
  17  norm          1.1559        .28220       -.32450E-07    .36683E-03
  18  norm          5.9449        3.1131       -.20221E-06   -.16859E-03
  19  norm          .10000E-03    2.0589        .45342E-07** at limit **
  20  Normalizat    1.4793        .21605        .45650E-05   -.23896E-04
  21  Prefactor     .84280        .13276        .18262E-05    .21819E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.04299
  Prefactor  = 6.4881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.2425
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.2685
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6145
  norm       = 1.15585
  norm       = 5.94492
  norm       = 0.0001
  Normalizat = 1.47927
  Prefactor  = 0.842805
 **********
 **   18 **HESSE 
 **********

 FCN=   6978.887     FROM HESSE     STATUS=OK           313 CALLS     2469 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1295        .16397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.0430        17.822        .13323E-03   -1.5106    
   3  Prefactor     6.4881        4.8047        .15328E-03   -1.5198    
   4  Prefactor     .10000E-03    12.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     47.243        36.027        .58334E-04   -1.4332    
   7  norm          .10000E-03    7.9383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.8397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6404        .13245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.0137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.269        50.579        .76645E-04   -1.4663    
  13  Prefactor     .10000E-03    39.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    40.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.6957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.614        19.745        .92830E-04   -1.4845    
  17  norm          1.1559        .28235        .21264E-04   -1.5493    
  18  norm          5.9449        3.1119        .10140E-03   -1.5220    
  19  norm          .10000E-03    2.0605        .11707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4793        .25680        .28479E-03   -.78363    
  21  Prefactor     .84280        .15768        .22628E-03   -.98169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63065e-10
Minuit parameter uncertainties:
  1  4.44204e-05
  2  17.8322
  3  4.80499
  4  1.77119e-05
  5  1.83864e-05
  6  36.0441
  7  2.49291e-05
  8  6.72937e-06
  9  1.13923e-05
  10  2.17415e-07
  11  6.3267e-06
  12  50.6586
  13  0.000196487
  14  0.000200873
  15  1.76563e-05
  16  19.7524
  17  0.282352
  18  3.11197
  19  1.69185e-06
  20  0.257026
  21  0.157767
Done.

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

Extracting fit parameters...

4FGL J1424.2+0433
   Spectrum: LogParabola
258         norm:  1.000e-04  1.139e-05  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.428e-01  1.578e-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.479e+00  2.570e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424880/likelihoodResults_493862401_494121601_4FGL_J1424.2+0433_daily_bin982.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): 0
logL (Free Index) = 6978.88728536
delta logL = -0.00060540123377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6978.88667995
delta logL = 3.36149241775e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9760       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84280       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=   6978.887     FROM MIGRAD    STATUS=FAILED        84 CALLS      224 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10031E-03    1341.7        .18142E-02** at limit **
   2  alpha         1.8955        2.6815        .16943        .12595E-05
   3  Normalizat    1.4793        .10408        .28479E-03   -.27146E-05
   4  Prefactor     .84280        .64955E-01    .22628E-03   -.27633E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6978.887     FROM SIMPLEX   STATUS=UNCHANGED    165 CALLS      389 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10031E-03    1341.7        .42737E-03** at limit **
   2  alpha         1.8955        2.6815        .11265E-04    .12595E-05
   3  Normalizat    1.4793        .10408        .88136E-06   -.27146E-05
   4  Prefactor     .84280        .64955E-01    .42830E-06   -.27633E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6978.887     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      420 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.9491        .36285E-03** at limit **
   2  alpha         1.8146        4.0756        .67770E-02   -.77167E-08
   3  Normalizat    1.4793        .25203        .11392E-04    .75848E-05
   4  Prefactor     .84280        .15733        .90513E-05    .10048E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.81456
  Normalizat = 1.47927
  Prefactor  = 0.842802
 **********
 **   18 **HESSE 
 **********

 FCN=   6978.887     FROM HESSE     STATUS=OK            23 CALLS      443 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.9483        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8146        2.9142        .13554E-02   -.27773    
   3  Normalizat    1.4793        .25177        .22783E-05   -.78362    
   4  Prefactor     .84280        .15715        .18103E-05   -.98169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74848e-12
Minuit parameter uncertainties:
  1  1.92535e-05
  2  391.952
  3  0.251983
  4  0.157235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424880': 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) = 6978.88667987
delta logL = 8.69904397405e-08

Extracting fit parameters...

4FGL J1424.2+0433
   Spectrum: LogParabola
258         norm:  1.000e-04  1.925e-05  1.000e-04  1.000e+04 ( 1.000e-13)
259        alpha:  1.815e+00  3.920e+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:  8.428e-01  1.572e-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.479e+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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/424880/cmap_HighResolution_493862401_494121601_4FGL_J1424.2+0433_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2021-09-09 14:05:10.868177', job_id='424880', GAL2='0.84', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1631221510.87', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='8.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='982' AND source_name='4FGL J1424.2+0433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 14:05:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 424880: <4FGL_J1424.2+0433_daily_bin982> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.2+0433_daily_bin982 216.051 4.5628 493862401 494121601 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 :                                   587.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            817 sec.

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

