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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin1511
RA = 66.1945, Dec = 0.6028
tmin = 630979201, tmax = 631238401
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='418267', job_status='RUN', time_executed='2021-08-20 13:58:14.099980', time_epoch_executed='1629493094.1' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='1511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418267

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418267/ft1_4FGL_J0424.7+0036_daily_bin1511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418267/ft2_4FGL_J0424.7+0036_daily_bin1511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418267/ft1_4FGL_J0424.7+0036_daily_bin1511.fits outfile=/scratch/kocevski/418267/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin1511.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=630979201.0 tmax=631238401.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 10.94
user 2.64
sys 8.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/418267/ft2_4FGL_J0424.7+0036_daily_bin1511.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/418267/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin1511.fits evtable="EVENTS" outfile="/scratch/kocevski/418267/ft1_filtered_4FGL_J0424.7+0036_daily_bin1511.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.91
user 0.34
sys 7.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418267/ft1_filtered_4FGL_J0424.7+0036_daily_bin1511.fits" evtable="EVENTS" scfile=/scratch/kocevski/418267/ft2_4FGL_J0424.7+0036_daily_bin1511.fits sctable="SC_DATA" outfile=/scratch/kocevski/418267/ltcube_630979201_631238401_4FGL_J0424.7+0036_daily_bin1511.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/418267/ft2_4FGL_J0424.7+0036_daily_bin1511.fits
.....................!
real 21.94
user 12.41
sys 9.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418267/ft1_filtered_4FGL_J0424.7+0036_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/418267/ft2_4FGL_J0424.7+0036_daily_bin1511.fits sctable="SC_DATA" expcube=/scratch/kocevski/418267/ltcube_630979201_631238401_4FGL_J0424.7+0036_daily_bin1511.fits outfile=/scratch/kocevski/418267/expmap_630979201_631238401_4FGL_J0424.7+0036_daily_bin1511.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/418267/ltcube_630979201_631238401_4FGL_J0424.7+0036_daily_bin1511.fits
.....................!
real 201.34
user 186.30
sys 14.69

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/418267/ft1_filtered_4FGL_J0424.7+0036_daily_bin1511.fits scfile=/scratch/kocevski/418267/ft2_4FGL_J0424.7+0036_daily_bin1511.fits outfile=/scratch/kocevski/418267/cmap_630979201_631238401_4FGL_J0424.7+0036_daily_bin1511.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 9.12
user 0.37
sys 8.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418267/ft1_filtered_4FGL_J0424.7+0036_daily_bin1511.fits scfile=/scratch/kocevski/418267/ft2_4FGL_J0424.7+0036_daily_bin1511.fits outfile=/scratch/kocevski/418267/cmap_HighResolution_630979201_631238401_4FGL_J0424.7+0036_daily_bin1511.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 8.07
user 0.37
sys 7.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/418267/ft1_filtered_4FGL_J0424.7+0036_daily_bin1511.fits evtable="EVENTS" scfile=/scratch/kocevski/418267/ft2_4FGL_J0424.7+0036_daily_bin1511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/418267/Model_4FGL_J0424.7+0036_daily_bin1511.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/418267/ft1_filtered_4FGL_J0424.7+0036_daily_bin1511.fits.....................!
real 64.10
user 52.05
sys 11.82

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9201       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.836       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21234E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.185       1.0000         .10000E-03   10000.    
     9 'norm      '    71.530       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2779       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4897       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.7861       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78808       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92044       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=   2950.770     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2817 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9205        2.2100       -.50286E-06    .10845E-03
   2  Prefactor     21.744        81.671       -.15447E-03    .27279E-04
   3  Prefactor     .10000E-03    12.161        .10009E-05** at limit **
   4  norm          .10000E-03    27.304        .97407E-05** at limit **
   5  Prefactor     .10000E-03    26.576       -.12767E-04** at limit **
   6  norm          .10000E-03    2.3460       -.56243E-07** at limit **
   7  Prefactor     .10000E-03    155.11       -.25021E-04** at limit **
   8  norm          10.187        13.251       -.25210E-05    .70910E-05
   9  norm          71.515        51.741       -.91970E-05    .13924E-04
  10  norm          2.2782        1.8141       -.18995E-06    .25136E-03
  11  Prefactor     .10000E-03    1.2481        .55380E-07** at limit **
  12  Prefactor     .10000E-03    35.279        .26059E-04** at limit **
  13  Prefactor     .10000E-03    43.642       -.22133E-04** at limit **
  14  Prefactor     .10000E-03    6.1103       -.77454E-07** at limit **
  15  norm          .10000E-03    2.7600        .17610E-07** at limit **
  16  Prefactor     .10000E-03    46.752       -.27105E-04** at limit **
  17  norm          5.4899        5.0619       -.58857E-07    .30911E-04
  18  Prefactor     .10000E-03    7.0907       -.97991E-08** at limit **
  19  Prefactor     .10000E-03    53.742       -.15387E-04** at limit **
  20  norm          3.7861        6.9376       -.37392E-05   -.30090E-03
  21  Prefactor     .10000E-03    65.621        .37142E-04** at limit **
  22  norm          .10000E-03    2.0019       -.73665E-07** at limit **
  23  Prefactor     .10000E-03    62.229        .21284E-04** at limit **
  24  Normalizat    .78828        .33565        .12988E-04    .12587E-03
  25  Prefactor     .92026        .13285        .51246E-05   -.22083E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.92046
  Prefactor  = 21.7444
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 10.1873
  norm       = 71.5155
  norm       = 2.27822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.48987
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.78614
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.788282
  Prefactor  = 0.920262
 **********
 **   18 **HESSE 
 **********

 FCN=   2950.770     FROM HESSE     STATUS=OK           413 CALLS     3230 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9205        2.2081        .67041E-04   -1.5366    
   2  Prefactor     21.744        81.783        .85717E-04   -1.4775    
   3  Prefactor     .10000E-03    12.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    27.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.3476        .81251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    156.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.187        13.270        .12555E-03   -1.5070    
   9  norm          71.515        51.726        .47466E-04   -1.4015    
  10  norm          2.2782        1.8101        .62524E-04   -1.5406    
  11  Prefactor     .10000E-03    1.2514        .59213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1312        .13114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7656        .88126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    46.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4899        5.0514        .11170E-03   -1.5239    
  18  Prefactor     .10000E-03    7.0922        .14129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    53.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.7861        6.9245        .18306E-03   -1.5319    
  21  Prefactor     .10000E-03    65.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0297        .75052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    62.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .78828        .37003        .41285E-03   -1.0050    
  25  Prefactor     .92026        .14783        .15614E-03   -.95437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11754e-09
Minuit parameter uncertainties:
  1  2.20813
  2  82.2089
  3  0.000336451
  4  0.000184342
  5  3.52465e-06
  6  8.08643e-06
  7  0.000914132
  8  13.274
  9  51.7584
  10  1.81013
  11  5.65505e-06
  12  0.000155807
  13  1.12829e-05
  14  2.46366e-05
  15  4.01384e-06
  16  2.78181e-05
  17  5.05179
  18  4.14275e-06
  19  1.61031e-05
  20  6.92599
  21  2.59709e-05
  22  9.01422e-06
  23  2.56899e-05
  24  0.371221
  25  0.14789
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  5.655e-06  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:  9.203e-01  1.479e-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:  7.883e-01  3.712e-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: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/418267/likelihoodResults_630979201_631238401_4FGL_J0424.7+0036_daily_bin1511.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) = 2950.77371658
delta logL = -0.00370110835547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2950.77001517
delta logL = 2.96689449897e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1975       1.0000          .0000       10.000    
     3 'Normalizat'    .78823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92030       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=   2950.770     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      248 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.074        .59851E-02** at limit **
   2  Index         1.7333        8.9742        .50000       -.11948E-06
   3  Normalizat    .78827        .26641E-01    .41284E-03   -.23923E-03
   4  Prefactor     .92027        .10910E-01    .15614E-03   -.61934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.73332
  Normalizat = 0.788271
  Prefactor  = 0.920265
 **********
 **   18 **HESSE 
 **********

 FCN=   2950.770     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.34        .64763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7333        5.6415        .50000       -.71198    
   3  Normalizat    .78827        .88506E-01    .82569E-04   -1.0051    
   4  Prefactor     .92027        .36247E-01    .31228E-04   -.95437    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.72748e-10
Minuit parameter uncertainties:
  1  6.32661e-06
  2  623.254
  3  0.0885224
  4  0.0362477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418267': 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) = 2950.77000904
delta logL = 6.42515715299e-06

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  6.327e-06  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.733e+00  6.233e+02  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:  9.203e-01  3.625e-02  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:  7.883e-01  8.852e-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/418267/cmap_HighResolution_630979201_631238401_4FGL_J0424.7+0036_daily_bin1511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-08-20 14:08:00.042555', job_id='418267', GAL2='0.92', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1629493680.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1511' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:08:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0143>
Subject: Job 418267: <4FGL_J0424.7+0036_daily_bin1511> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin1511> 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) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:55:48 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:48 2021
Terminated at Fri Aug 20 14:08:01 2021
Results reported at Fri Aug 20 14:08:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin1511 66.1945 0.6028 630979201 631238401 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 :                                   706.18 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             268.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   733 sec.
    Turnaround time :                            733 sec.

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

