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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin651
RA = 66.1945, Dec = 0.6028
tmin = 408067201, tmax = 408326401
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='413781', job_status='RUN', time_executed='2021-08-20 13:42:54.105402', time_epoch_executed='1629492174.11' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413781/ft1_4FGL_J0424.7+0036_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413781/ft2_4FGL_J0424.7+0036_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413781/ft1_4FGL_J0424.7+0036_daily_bin651.fits outfile=/scratch/kocevski/413781/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin651.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=408067201.0 tmax=408326401.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 11.28
user 3.62
sys 7.60

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413781/ft2_4FGL_J0424.7+0036_daily_bin651.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/413781/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin651.fits evtable="EVENTS" outfile="/scratch/kocevski/413781/ft1_filtered_4FGL_J0424.7+0036_daily_bin651.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 7.81
user 0.31
sys 7.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413781/ft1_filtered_4FGL_J0424.7+0036_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/413781/ft2_4FGL_J0424.7+0036_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/413781/ltcube_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.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/413781/ft2_4FGL_J0424.7+0036_daily_bin651.fits
.....................!
real 20.59
user 11.85
sys 8.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413781/ft1_filtered_4FGL_J0424.7+0036_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/413781/ft2_4FGL_J0424.7+0036_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/413781/ltcube_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.fits outfile=/scratch/kocevski/413781/expmap_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.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/413781/ltcube_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.fits
.....................!
real 202.44
user 186.91
sys 15.11

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/413781/ft1_filtered_4FGL_J0424.7+0036_daily_bin651.fits scfile=/scratch/kocevski/413781/ft2_4FGL_J0424.7+0036_daily_bin651.fits outfile=/scratch/kocevski/413781/cmap_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.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 7.79
user 0.37
sys 7.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413781/ft1_filtered_4FGL_J0424.7+0036_daily_bin651.fits scfile=/scratch/kocevski/413781/ft2_4FGL_J0424.7+0036_daily_bin651.fits outfile=/scratch/kocevski/413781/cmap_HighResolution_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.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 7.78
user 0.39
sys 7.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413781/ft1_filtered_4FGL_J0424.7+0036_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/413781/ft2_4FGL_J0424.7+0036_daily_bin651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413781/Model_4FGL_J0424.7+0036_daily_bin651.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/413781/ft1_filtered_4FGL_J0424.7+0036_daily_bin651.fits......................!
real 50.54
user 38.96
sys 10.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/413781/ft1_filtered_4FGL_J0424.7+0036_daily_bin651.fits', '/scratch/kocevski/413781/ft2_4FGL_J0424.7+0036_daily_bin651.fits', expMap='/scratch/kocevski/413781/expmap_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.fits', expCube='/scratch/kocevski/413781/ltcube_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/413781/Model_4FGL_J0424.7+0036_daily_bin651.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/413781/ft1_filtered_4FGL_J0424.7+0036_daily_bin651.fits
Spacecraft file(s): /scratch/kocevski/413781/ft2_4FGL_J0424.7+0036_daily_bin651.fits
Exposure map: /scratch/kocevski/413781/expmap_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.fits
Exposure cube: /scratch/kocevski/413781/ltcube_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/413781/Model_4FGL_J0424.7+0036_daily_bin651.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) = 1889.03128492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1440       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48861E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10548E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    45.563       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2485       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    93.360       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11263E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.602       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10912E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.7789       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15854E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    97.009       1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.614       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86539       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84032       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=   1888.999     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2942 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1438        6.7097       -.32080E-07   -.26631E-04
   2  Prefactor     .10002E-03    954.58        .39297E-05** at limit **
   3  Prefactor     .10000E-03    144.00       -.22235E-05** at limit **
   4  norm          .10000E-03    50.055        .28203E-06** at limit **
   5  Prefactor     45.564        96.297        .86548E-06   -.29613E-05
   6  norm          2.2483        11.727        .12839E-05   -.83697E-05
   7  Prefactor     .10000E-03    85.126        .23715E-06** at limit **
   8  norm          .10000E-03    6.6225       -.19672E-07** at limit **
   9  norm          93.331        91.193        .27247E-05   -.15178E-04
  10  norm          .10000E-03    1.3112        .12501E-06** at limit **
  11  Prefactor     .10001E-03    6.0413       -.17540E-05** at limit **
  12  Prefactor     .10000E-03    21.838       -.75002E-07** at limit **
  13  Prefactor     52.649        99.280        .63514E-05    .53486E-04
  14  Prefactor     .10000E-03    14.561       -.64137E-07** at limit **
  15  norm          .10000E-03    2.7943       -.17124E-08** at limit **
  16  Prefactor     .10000E-03    76.116        .85327E-06** at limit **
  17  norm          9.7782        6.0468       -.16849E-07   -.61397E-04
  18  Prefactor     .10000E-03    25.860        .49584E-06** at limit **
  19  Prefactor     .10004E-03    713.75        .18581E-04** at limit **
  20  norm          .10000E-03    1.2766       -.56715E-07** at limit **
  21  Prefactor     97.300        119.78       -.47408E-05    .13006E-03
  22  norm          .10000E-03    .90300        .47890E-06** at limit **
  23  Prefactor     26.618        40.623       -.12155E-06   -.45913E-05
  24  Normalizat    .86536        .40360        .13964E-05   -.61545E-04
  25  Prefactor     .84036        .19172       -.46092E-07   -.71943E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.14376
  Prefactor  = 0.000100017
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 45.564
  norm       = 2.24826
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 93.3315
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 52.6485
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.77822
  Prefactor  = 0.0001
  Prefactor  = 0.000100037
  norm       = 0.0001
  Prefactor  = 97.3003
  norm       = 0.0001
  Prefactor  = 26.6181
  Normalizat = 0.865359
  Prefactor  = 0.840357
 **********
 **   18 **HESSE 
 **********

 FCN=   1888.999     FROM HESSE     STATUS=OK           415 CALLS     3357 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1438        6.7081        .12281E-03   -1.5254    
   2  Prefactor     .10002E-03    954.00        .21169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    143.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    50.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     45.564        96.459        .59398E-04   -1.4357    
   6  norm          2.2483        12.038        .13702E-02   -1.5408    
   7  Prefactor     .10000E-03    85.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.6363        .10923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          93.331        91.485        .41593E-04   -1.3773    
  10  norm          .10000E-03    1.3178        .48429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    11.469        .20030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     52.649        100.68        .55300E-04   -1.4256    
  14  Prefactor     .10000E-03    14.655        .16196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7960        .70959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    76.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.7782        6.0477        .78116E-04   -1.5082    
  18  Prefactor     .10000E-03    25.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    697.03        .20427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2879        .47924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     97.300        117.75        .20405E-03   -1.3732    
  22  norm          .10000E-03    .89676        .39852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.618        40.641        .77653E-04   -1.4676    
  24  Normalizat    .86536        .45646        .36681E-03   -.97688    
  25  Prefactor     .84036        .21962        .17762E-03   -.98257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82558e-09
Minuit parameter uncertainties:
  1  6.70913
  2  0.00830168
  3  0.00149685
  4  0.000101186
  5  96.7919
  6  10.4076
  7  0.00015849
  8  1.20055e-05
  9  91.624
  10  1.89696e-05
  11  0.000703494
  12  1.1617e-05
  13  101.01
  14  5.2006e-05
  15  8.17871e-07
  16  0.000440648
  17  6.04805
  18  2.72477e-05
  19  0.0102232
  20  7.40764e-07
  21  118.039
  22  3.39292e-08
  23  40.6831
  24  0.45851
  25  0.219854
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  7.035e-04  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:  8.404e-01  2.199e-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:  8.654e-01  4.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 3.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413781/likelihoodResults_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1888.99965829
delta logL = -0.00041711691938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1888.9992412
delta logL = -2.60295109911e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1936       1.0000          .0000       10.000    
     3 'Normalizat'    .86532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84041       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.

 FCN=   1888.999     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      226 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91148        .34123E-01** at limit **
   2  Index         2.1781        8.4599        .50000        .88846E-05
   3  Normalizat    .86536        .43172E-02    .82849E-01    .51928E-04
   4  Prefactor     .84036        .20749E-02    .44241E-01    .17567E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.17814
  Normalizat = 0.865359
  Prefactor  = 0.840358
 **********
 **   18 **HESSE 
 **********

 FCN=   1888.999     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.783        .20269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1781        8.4450        .50000       -.59967    
   3  Normalizat    .86536        .20440E-01    .36682E-03   -.97688    
   4  Prefactor     .84036        .98439E-02    .17762E-03   -.98257    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.08689e-08
Minuit parameter uncertainties:
  1  0.000536089
  2  92.2183
  3  0.0204403
  4  0.0098439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413781': 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): 102
logL (Free Index) = 1888.99924108
delta logL = 9.86924533208e-08

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  5.361e-04  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.178e+00  9.222e+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:  8.404e-01  9.844e-03  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:  8.654e-01  2.044e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.195 0.603

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/413781/cmap_HighResolution_408067201_408326401_4FGL_J0424.7+0036_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-02', job_status='DONE', photon_flux_upper_limit='3.15e-07', time_completed='2021-08-20 13:51:35.524248', job_id='413781', GAL2='0.84', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1629492695.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='9.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='651' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 413781: <4FGL_J0424.7+0036_daily_bin651> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin651> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 13:40:43 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:40:44 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:40:44 2021
Terminated at Fri Aug 20 13:51:37 2021
Results reported at Fri Aug 20 13:51:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin651 66.1945 0.6028 408067201 408326401 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 :                                   633.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            654 sec.

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

