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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin1512
RA = 66.1945, Dec = 0.6028
tmin = 631238401, tmax = 631497601
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='418269', job_status='RUN', time_executed='2021-08-20 13:56:19.767216', time_epoch_executed='1629492979.77' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='1512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418269

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418269/ft1_4FGL_J0424.7+0036_daily_bin1512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418269/ft2_4FGL_J0424.7+0036_daily_bin1512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418269/ft1_4FGL_J0424.7+0036_daily_bin1512.fits outfile=/scratch/kocevski/418269/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin1512.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=631238401.0 tmax=631497601.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.66
user 2.53
sys 1.08

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/418269/ft2_4FGL_J0424.7+0036_daily_bin1512.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/418269/ft2_4FGL_J0424.7+0036_daily_bin1512.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/418269/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin1512.fits evtable="EVENTS" outfile="/scratch/kocevski/418269/ft1_filtered_4FGL_J0424.7+0036_daily_bin1512.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 1.38
user 0.33
sys 1.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418269/ft1_filtered_4FGL_J0424.7+0036_daily_bin1512.fits" evtable="EVENTS" scfile=/scratch/kocevski/418269/ft2_4FGL_J0424.7+0036_daily_bin1512.fits sctable="SC_DATA" outfile=/scratch/kocevski/418269/ltcube_631238401_631497601_4FGL_J0424.7+0036_daily_bin1512.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/418269/ft2_4FGL_J0424.7+0036_daily_bin1512.fits
.....................!
real 13.09
user 11.85
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418269/ft1_filtered_4FGL_J0424.7+0036_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/418269/ft2_4FGL_J0424.7+0036_daily_bin1512.fits sctable="SC_DATA" expcube=/scratch/kocevski/418269/ltcube_631238401_631497601_4FGL_J0424.7+0036_daily_bin1512.fits outfile=/scratch/kocevski/418269/expmap_631238401_631497601_4FGL_J0424.7+0036_daily_bin1512.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/418269/ltcube_631238401_631497601_4FGL_J0424.7+0036_daily_bin1512.fits
.....................!
real 191.86
user 185.93
sys 5.50

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

Setting source of interest to:
4FGL J0424.7+0036 @ 66.1945 0.6028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/418269/ft1_filtered_4FGL_J0424.7+0036_daily_bin1512.fits scfile=/scratch/kocevski/418269/ft2_4FGL_J0424.7+0036_daily_bin1512.fits outfile=/scratch/kocevski/418269/cmap_631238401_631497601_4FGL_J0424.7+0036_daily_bin1512.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=66.1945 yref=0.6028 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 1.39
user 0.38
sys 0.99

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418269/ft1_filtered_4FGL_J0424.7+0036_daily_bin1512.fits scfile=/scratch/kocevski/418269/ft2_4FGL_J0424.7+0036_daily_bin1512.fits outfile=/scratch/kocevski/418269/cmap_HighResolution_631238401_631497601_4FGL_J0424.7+0036_daily_bin1512.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=66.1945 yref=0.6028 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 1.40
user 0.39
sys 1.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/418269/ft1_filtered_4FGL_J0424.7+0036_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/418269/ft2_4FGL_J0424.7+0036_daily_bin1512.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/418269/Model_4FGL_J0424.7+0036_daily_bin1512.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/418269/ft1_filtered_4FGL_J0424.7+0036_daily_bin1512.fits......................!
real 58.03
user 55.70
sys 2.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/418269/ft1_filtered_4FGL_J0424.7+0036_daily_bin1512.fits', '/scratch/kocevski/418269/ft2_4FGL_J0424.7+0036_daily_bin1512.fits', expMap='/scratch/kocevski/418269/expmap_631238401_631497601_4FGL_J0424.7+0036_daily_bin1512.fits', expCube='/scratch/kocevski/418269/ltcube_631238401_631497601_4FGL_J0424.7+0036_daily_bin1512.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/418269/Model_4FGL_J0424.7+0036_daily_bin1512.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0424.7+0036'

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/418269/ft1_filtered_4FGL_J0424.7+0036_daily_bin1512.fits
Spacecraft file(s): /scratch/kocevski/418269/ft2_4FGL_J0424.7+0036_daily_bin1512.fits
Exposure map: /scratch/kocevski/418269/expmap_631238401_631497601_4FGL_J0424.7+0036_daily_bin1512.fits
Exposure cube: /scratch/kocevski/418269/ltcube_631238401_631497601_4FGL_J0424.7+0036_daily_bin1512.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/418269/Model_4FGL_J0424.7+0036_daily_bin1512.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) = 3663.05020065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    25.561       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .44609E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .15344E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7715       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8749       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3055       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12616E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3670       1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.382       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2536       1.0000         .10000E-03   10000.    
    23 'Prefactor '    118.91       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .41705       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1195       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3663.048     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2914 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5370        .99292E-06** at limit **
   2  Prefactor     .10000E-03    15.082       -.74031E-06** at limit **
   3  Prefactor     .10000E-03    11.694        .32677E-06** at limit **
   4  norm          25.562        24.487        .22128E-06    .78219E-05
   5  Prefactor     .10000E-03    30.462        .63508E-06** at limit **
   6  norm          .10000E-03    2.6229       -.24871E-07** at limit **
   7  Prefactor     .10000E-03    26.876       -.21334E-05** at limit **
   8  norm          .10003E-03    13.852       -.29423E-05** at limit **
   9  norm          .10001E-03    200.73       -.34381E-04** at limit **
  10  norm          .10000E-03    .76274       -.66060E-06** at limit **
  11  Prefactor     4.7773        3.3535        .35696E-06    .48044E-03
  12  Prefactor     .10000E-03    17.042        .13390E-05** at limit **
  13  Prefactor     9.9007        80.148       -.60058E-05    .17159E-04
  14  Prefactor     .10000E-03    28.140       -.14227E-05** at limit **
  15  norm          3.3077        5.1362       -.14185E-06    .17466E-03
  16  Prefactor     .10000E-03    40.411        .41963E-05** at limit **
  17  norm          .10000E-03    1.4308       -.29513E-06** at limit **
  18  Prefactor     .10000E-03    5.4355       -.38834E-06** at limit **
  19  Prefactor     .10000E-03    64.510       -.11540E-04** at limit **
  20  norm          2.3667        2.9285        .10253E-06    .10456E-03
  21  Prefactor     39.427        105.16       -.25719E-05    .17923E-04
  22  norm          1.2526        2.1529       -.78400E-06    .37943E-04
  23  Prefactor     118.94        84.166       -.41152E-05   -.25765E-04
  24  Normalizat    .41644        .30577       -.11154E-04   -.90357E-04
  25  Prefactor     1.1197        .12766        .19819E-05   -.32642E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.5615
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100029
  norm       = 0.000100013
  norm       = 0.0001
  Prefactor  = 4.77727
  Prefactor  = 0.0001
  Prefactor  = 9.90068
  Prefactor  = 0.000100001
  norm       = 3.30771
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.36672
  Prefactor  = 39.4272
  norm       = 1.25265
  Prefactor  = 118.944
  Normalizat = 0.41644
  Prefactor  = 1.11969
 **********
 **   18 **HESSE 
 **********

 FCN=   3663.048     FROM HESSE     STATUS=OK           421 CALLS     3335 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6199        .14696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          25.562        24.486        .79233E-04   -1.4696    
   5  Prefactor     .10000E-03    30.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6273        .95711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10003E-03    47.606        .37922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    209.59        .65258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .77377        .10243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7773        3.2639        .82768E-04   -1.5271    
  12  Prefactor     .10000E-03    17.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9007        79.480        .12752E-03   -1.5079    
  14  Prefactor     .10000E-03    28.732        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3077        5.1099        .16250E-03   -1.5344    
  16  Prefactor     .10000E-03    40.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4369        .70621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.4364        .13777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    64.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3667        2.9198        .11155E-03   -1.5400    
  21  Prefactor     39.427        104.35        .63871E-04   -1.4451    
  22  norm          1.2526        2.1095        .94180E-04   -1.5484    
  23  Prefactor     118.94        84.240        .18451E-03   -1.3522    
  24  Normalizat    .41644        .30394        .53945E-03   -1.1646    
  25  Prefactor     1.1197        .12958        .14456E-03   -.88840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56067e-10
Minuit parameter uncertainties:
  1  1.56426e-05
  2  8.92422e-06
  3  1.61938e-05
  4  24.4956
  5  3.10625e-05
  6  6.21583e-06
  7  1.86914e-05
  8  0.00233963
  9  0.00333694
  10  9.30333e-06
  11  3.26398
  12  6.4686e-05
  13  56.2059
  14  0.000336376
  15  5.11059
  16  0.000149447
  17  9.26208e-06
  18  1.47502e-05
  19  1.9587e-05
  20  2.91994
  21  104.834
  22  2.10961
  23  84.3254
  24  0.305155
  25  0.129612
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  4.777e+00  3.264e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.120e+00  1.296e-01  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  4.164e-01  3.052e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.98
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 8.21e-08
Energy Flux (Fixed Index): 5.27e-05 +/- 3.60e-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) = 3663.04708579
delta logL = 0.000431326850048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3663.04674398
delta logL = 0.000773139520788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8807       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1898       1.0000          .0000       10.000    
     3 'Normalizat'    .41826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1193       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4620E+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=   3663.047     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      231 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8802        4.2522        .83903E-04    .18690E-02
   2  Index         2.1900        .61169        .52238E-02    .27711E-03
   3  Normalizat    .41813        .30200        .53845E-03   -.88762E-04
   4  Prefactor     1.1194        .12864        .14458E-03   -.50522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.88023
  Index      = 2.19002
  Normalizat = 0.418126
  Prefactor  = 1.11937
 **********
 **   18 **HESSE 
 **********

 FCN=   3663.047     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8802        4.1051        .16781E-04   -1.5266    
   2  Index         2.1900        .59025        .20895E-03   -.59680    
   3  Normalizat    .41813        .30172        .21538E-04   -1.1637    
   4  Prefactor     1.1194        .12859        .28916E-04   -.88850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28041e-09
Minuit parameter uncertainties:
  1  4.10532
  2  0.592272
  3  0.302899
  4  0.128623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418269': 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) = 3663.04674379
delta logL = 0.000773333745656

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  4.880e+00  4.105e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.190e+00  5.923e-01  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.119e+00  1.286e-01  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  4.181e-01  3.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.98
Ra Dec: 66.195 0.603
Photon Index (Free Index): 2.19 +/- 0.59
Photon Flux (Free Index): 1.18e-07 +/- 9.72e-08
Energy Flux (Free Index): 5.39e-05 +/- 4.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/418269/cmap_HighResolution_631238401_631497601_4FGL_J0424.7+0036_daily_bin1512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='5.39e-05', photon_flux_error='8.21e-08', dlogl='7.73e-04', energy_flux='5.27e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-08-20 14:04:24.135243', photon_index_error2='0.59', photon_index2='2.19', ts='4.98', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='4.82e-05', EG='0.42', time_epoch_completed='1629493464.14', return_code='0', job_id='418269', GAL2='1.12', EG2='0.42', return_code2='0', energy_flux_error='3.60e-05', photon_flux_error2='9.72e-08', ts2='4.98', photon_index='2.21' WHERE bin_id='1512' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:04:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 418269: <4FGL_J0424.7+0036_daily_bin1512> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin1512> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 13:55:48 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:55:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 13:55:49 2021
Terminated at Fri Aug 20 14:04:25 2021
Results reported at Fri Aug 20 14:04:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin1512 66.1945 0.6028 631238401 631497601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0424.7+0036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   494.19 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             377.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   515 sec.
    Turnaround time :                            517 sec.

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

