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


Performing analysis on: 4FGL_J1424.2+0433_daily_bin227
RA = 216.051, Dec = 4.5628
tmin = 298166401, tmax = 298425601
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='421089', job_status='RUN', time_executed='2021-09-09 13:41:48.256474', time_epoch_executed='1631220108.26' WHERE source_name='4FGL J1424.2+0433' and cadence='daily' and bin_id='227'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/421089

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/421089/ft1_4FGL_J1424.2+0433_daily_bin227.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/421089/ft2_4FGL_J1424.2+0433_daily_bin227.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/421089/ft1_4FGL_J1424.2+0433_daily_bin227.fits outfile=/scratch/kocevski/421089/ft1_filteredMKT_4FGL_J1424.2+0433_daily_bin227.fits ra=216.051 dec=4.5628 rad=12.0 tmin=298166401.0 tmax=298425601.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.84
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/421089/ft2_4FGL_J1424.2+0433_daily_bin227.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/421089/ft1_filteredMKT_4FGL_J1424.2+0433_daily_bin227.fits evtable="EVENTS" outfile="/scratch/kocevski/421089/ft1_filtered_4FGL_J1424.2+0433_daily_bin227.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.59
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/421089/ft1_filtered_4FGL_J1424.2+0433_daily_bin227.fits" evtable="EVENTS" scfile=/scratch/kocevski/421089/ft2_4FGL_J1424.2+0433_daily_bin227.fits sctable="SC_DATA" outfile=/scratch/kocevski/421089/ltcube_298166401_298425601_4FGL_J1424.2+0433_daily_bin227.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/421089/ft2_4FGL_J1424.2+0433_daily_bin227.fits
.....................!
real 16.48
user 15.37
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/421089/ft1_filtered_4FGL_J1424.2+0433_daily_bin227.fits evtable="EVENTS" scfile=/scratch/kocevski/421089/ft2_4FGL_J1424.2+0433_daily_bin227.fits sctable="SC_DATA" expcube=/scratch/kocevski/421089/ltcube_298166401_298425601_4FGL_J1424.2+0433_daily_bin227.fits outfile=/scratch/kocevski/421089/expmap_298166401_298425601_4FGL_J1424.2+0433_daily_bin227.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/421089/ltcube_298166401_298425601_4FGL_J1424.2+0433_daily_bin227.fits
.....................!
real 191.93
user 186.13
sys 5.07

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/421089/ft1_filtered_4FGL_J1424.2+0433_daily_bin227.fits scfile=/scratch/kocevski/421089/ft2_4FGL_J1424.2+0433_daily_bin227.fits outfile=/scratch/kocevski/421089/cmap_298166401_298425601_4FGL_J1424.2+0433_daily_bin227.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/421089/ft1_filtered_4FGL_J1424.2+0433_daily_bin227.fits scfile=/scratch/kocevski/421089/ft2_4FGL_J1424.2+0433_daily_bin227.fits outfile=/scratch/kocevski/421089/cmap_HighResolution_298166401_298425601_4FGL_J1424.2+0433_daily_bin227.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0523       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2216       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.921       1.0000         .10000E-03   10000.    
     7 'norm      '    20.799       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    31.024       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9915       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .19851E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11414E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.172       1.0000         .10000E-03   10000.    
    14 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7923       1.0000         .10000E-03   10000.    
    17 'norm      '    .30595       1.0000         .10000E-03   10000.    
    18 'norm      '    .93727E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1711       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94511       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=   7459.485     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2260 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0505        4.5837        .90209E-07   -.12404E-03
   2  Prefactor     .10000E-03    9.4939        .68663E-10** at limit **
   3  Prefactor     .10000E-03    1.3096        .11002E-07** at limit **
   4  Prefactor     .10000E-03    7.9993       -.15571E-06** at limit **
   5  Prefactor     3.2123        12.735        .32382E-05   -.46222E-03
   6  Prefactor     21.887        29.771        .54750E-05    .19247E-03
   7  norm          20.797        13.624        .95441E-07    .34530E-05
   8  Prefactor     .10000E-03    18.054       -.16693E-07** at limit **
   9  norm          31.028        22.722       -.13366E-06   -.14402E-04
  10  Prefactor     4.9902        4.9462       -.13402E-06   -.27520E-04
  11  Prefactor     .10000E-03    4.1498       -.17809E-06** at limit **
  12  Prefactor     .10000E-03    283.30       -.54363E-05** at limit **
  13  Prefactor     31.162        29.981        .12097E-05    .53291E-04
  14  norm          .10000E-03    20.278       -.69337E-09** at limit **
  15  Prefactor     .10000E-03    5.9523        .13393E-07** at limit **
  16  Prefactor     3.7889        17.279       -.62788E-06   -.40561E-04
  17  norm          .30595        .17294        .79583E-08   -.20071E-03
  18  norm          .10000E-03    .82508        .48485E-07** at limit **
  19  norm          .10000E-03    1.6563        .13151E-07** at limit **
  20  Normalizat    1.1715        .19691       -.10139E-05    .38711E-04
  21  Prefactor     .94499        .12274        .43973E-07   -.47161E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.05051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.21229
  Prefactor  = 21.8865
  norm       = 20.7968
  Prefactor  = 0.0001
  norm       = 31.0283
  Prefactor  = 4.99019
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 31.162
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.78886
  norm       = 0.305951
  norm       = 0.000100003
  norm       = 0.0001
  Normalizat = 1.1715
  Prefactor  = 0.94499
 **********
 **   18 **HESSE 
 **********

 FCN=   7459.485     FROM HESSE     STATUS=OK           327 CALLS     2587 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0505        4.5935        .14242E-03   -1.5177    
   2  Prefactor     .10000E-03    9.5132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3131        .96519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.518        .46342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2123        31.176        .11285E-02   -1.5349    
   6  Prefactor     21.887        30.386        .85551E-04   -1.4772    
   7  norm          20.797        13.641        .87824E-04   -1.4796    
   8  Prefactor     .10000E-03    18.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          31.028        22.723        .71935E-04   -1.4593    
  10  Prefactor     4.9902        4.9179        .18000E-03   -1.5261    
  11  Prefactor     .10000E-03    30.706        .33886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    286.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.162        29.951        .71765E-04   -1.4591    
  14  norm          .10000E-03    20.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7889        17.360        .20729E-03   -1.5319    
  17  norm          .30595        .16983        .26148E-04   -1.5597    
  18  norm          .10000E-03    2.0388        .27287E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.6567        .10855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1715        .23465        .28510E-03   -.87488    
  21  Prefactor     .94499        .14818        .20270E-03   -.94586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8612e-09
Minuit parameter uncertainties:
  1  4.59372
  2  4.67679e-06
  3  1.73324e-07
  4  0.000285527
  5  20.0279
  6  30.4071
  7  13.6432
  8  2.05854e-06
  9  22.7295
  10  4.9183
  11  0.000199424
  12  0.00106942
  13  29.9656
  14  4.65719e-05
  15  1.17811e-06
  16  16.2281
  17  0.169835
  18  0.000153556
  19  3.74505e-07
  20  0.234863
  21  0.14824
Done.

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

Extracting fit parameters...

4FGL J1424.2+0433
   Spectrum: LogParabola
258         norm:  3.103e+01  2.273e+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:  9.450e-01  1.482e-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.172e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.64
Ra Dec: 216.051 4.563
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.81e-08 +/- 2.06e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.36e-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) = 7459.46393329
delta logL = 0.0209342531252

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7459.45925967
delta logL = 0.025607868095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.785       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1789       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94811       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=   7459.459     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      255 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.764        25.454        .74674E-04   -.93234E-04
   2  alpha         2.1811        .92352        .17062E-01   -.58824E-05
   3  Normalizat    1.1631        .22962        .28599E-03    .10025E-03
   4  Prefactor     .94810        .14734        .20241E-03   -.19301E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 28.7637
  alpha      = 2.18113
  Normalizat = 1.16307
  Prefactor  = 0.948101
 **********
 **   18 **HESSE 
 **********

 FCN=   7459.459     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.764        24.599        .14935E-04   -1.4635    
   2  alpha         2.1811        .89275        .68246E-03   -.12790    
   3  Normalizat    1.1631        .22931        .11440E-04   -.87752    
   4  Prefactor     .94810        .14733        .40481E-04   -.94480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94044e-10
Minuit parameter uncertainties:
  1  24.6078
  2  0.91326
  3  0.22951
  4  0.147397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/421089': 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) = 7459.45925642
delta logL = 0.025611116539

Extracting fit parameters...

4FGL J1424.2+0433
   Spectrum: LogParabola
258         norm:  2.876e+01  2.461e+01  1.000e-04  1.000e+04 ( 1.000e-13)
259        alpha:  2.181e+00  9.133e-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:  9.481e-01  1.474e-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.163e+00  2.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.68
Ra Dec: 216.051 4.563
Photon Index (Free Index): 2.18 +/- 0.91
Photon Flux (Free Index): 3.43e-08 +/- 3.86e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.35e-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/421089/cmap_HighResolution_298166401_298425601_4FGL_J1424.2+0433_daily_bin227.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.81e-08', energy_flux2='1.68e-05', photon_flux_error='2.06e-08', dlogl='2.56e-02', energy_flux='1.85e-05', photon_flux2='3.43e-08', job_status='DONE', time_completed='2021-09-09 13:51:35.104471', photon_index_error2='0.91', photon_index2='2.18', ts='4.64', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='1.17', time_epoch_completed='1631220695.1', return_code='0', job_id='421089', GAL2='0.95', EG2='1.16', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='3.86e-08', ts2='4.68', photon_index='1.98' WHERE bin_id='227' AND source_name='4FGL J1424.2+0433' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 13:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 421089: <4FGL_J1424.2+0433_daily_bin227> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1424.2+0433_daily_bin227 216.051 4.5628 298166401 298425601 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 :                                   571.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            602 sec.

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

