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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin645
RA = 66.1945, Dec = 0.6028
tmin = 406512001, tmax = 406771201
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='413773', job_status='RUN', time_executed='2021-08-20 13:44:11.291041', time_epoch_executed='1629492251.29' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413773

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413773/ft1_4FGL_J0424.7+0036_daily_bin645.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413773/ft2_4FGL_J0424.7+0036_daily_bin645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413773/ft1_4FGL_J0424.7+0036_daily_bin645.fits outfile=/scratch/kocevski/413773/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin645.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=406512001.0 tmax=406771201.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.73
user 3.28
sys 0.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413773/ft2_4FGL_J0424.7+0036_daily_bin645.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/413773/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin645.fits evtable="EVENTS" outfile="/scratch/kocevski/413773/ft1_filtered_4FGL_J0424.7+0036_daily_bin645.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.72
user 0.32
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413773/ft1_filtered_4FGL_J0424.7+0036_daily_bin645.fits" evtable="EVENTS" scfile=/scratch/kocevski/413773/ft2_4FGL_J0424.7+0036_daily_bin645.fits sctable="SC_DATA" outfile=/scratch/kocevski/413773/ltcube_406512001_406771201_4FGL_J0424.7+0036_daily_bin645.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/413773/ft2_4FGL_J0424.7+0036_daily_bin645.fits
.....................!
real 12.35
user 11.75
sys 0.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413773/ft1_filtered_4FGL_J0424.7+0036_daily_bin645.fits evtable="EVENTS" scfile=/scratch/kocevski/413773/ft2_4FGL_J0424.7+0036_daily_bin645.fits sctable="SC_DATA" expcube=/scratch/kocevski/413773/ltcube_406512001_406771201_4FGL_J0424.7+0036_daily_bin645.fits outfile=/scratch/kocevski/413773/expmap_406512001_406771201_4FGL_J0424.7+0036_daily_bin645.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/413773/ltcube_406512001_406771201_4FGL_J0424.7+0036_daily_bin645.fits
.....................!
real 191.03
user 185.55
sys 5.10

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/413773/ft1_filtered_4FGL_J0424.7+0036_daily_bin645.fits scfile=/scratch/kocevski/413773/ft2_4FGL_J0424.7+0036_daily_bin645.fits outfile=/scratch/kocevski/413773/cmap_406512001_406771201_4FGL_J0424.7+0036_daily_bin645.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 0.75
user 0.36
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413773/ft1_filtered_4FGL_J0424.7+0036_daily_bin645.fits scfile=/scratch/kocevski/413773/ft2_4FGL_J0424.7+0036_daily_bin645.fits outfile=/scratch/kocevski/413773/cmap_HighResolution_406512001_406771201_4FGL_J0424.7+0036_daily_bin645.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 0.75
user 0.37
sys 0.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413773/ft1_filtered_4FGL_J0424.7+0036_daily_bin645.fits evtable="EVENTS" scfile=/scratch/kocevski/413773/ft2_4FGL_J0424.7+0036_daily_bin645.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413773/Model_4FGL_J0424.7+0036_daily_bin645.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/413773/ft1_filtered_4FGL_J0424.7+0036_daily_bin645.fits.....................!
real 114.39
user 112.55
sys 1.56

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4624       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.257       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12570E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0478       1.0000         .10000E-03   10000.    
     9 'norm      '    38.618       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2073       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9661       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.276       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8381       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2246       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.569       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34456E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3206       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.998       1.0000         .10000E-03   10000.    
    22 'norm      '    .97190       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97580       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89677       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=   7611.499     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2962 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4625        2.1203        .10710E-06   -.74398E-04
   2  Prefactor     .10000E-03    35.048        .44863E-05** at limit **
   3  Prefactor     .10000E-03    10.559        .25702E-06** at limit **
   4  norm          10.256        16.044        .27325E-07   -.73233E-05
   5  Prefactor     .10000E-03    12.299       -.36596E-06** at limit **
   6  norm          .10000E-03    2.1143       -.31733E-07** at limit **
   7  Prefactor     .10000E-03    48.192        .42360E-06** at limit **
   8  norm          4.0487        8.9697        .58716E-05   -.81773E-03
   9  norm          38.616        26.058       -.35574E-06   -.37075E-04
  10  norm          .10000E-03    .42434       -.40793E-07** at limit **
  11  Prefactor     1.2073        1.9939        .18272E-06   -.12185E-03
  12  Prefactor     8.9687        25.769        .12540E-05    .45390E-04
  13  Prefactor     38.281        44.725        .12656E-05    .92139E-04
  14  Prefactor     .10000E-03    4.1684       -.69951E-07** at limit **
  15  norm          4.8379        3.9085       -.67710E-07    .24083E-04
  16  Prefactor     .10000E-03    28.049       -.38183E-05** at limit **
  17  norm          1.2245        1.6246        .11170E-06   -.98387E-04
  18  Prefactor     14.567        9.2414        .40218E-06   -.10387E-04
  19  Prefactor     .10018E-03    149.09       -.25445E-04** at limit **
  20  norm          5.3201        2.5442        .92807E-07   -.41985E-04
  21  Prefactor     14.013        39.543        .52619E-05    .35922E-03
  22  norm          .97184        .86575       -.15526E-06    .59609E-03
  23  Prefactor     .10000E-03    17.605        .10038E-05** at limit **
  24  Normalizat    .97565        .22856       -.32909E-05    .12589E-03
  25  Prefactor     .89684        .83482E-01    .23664E-06    .74222E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.46249
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 10.2557
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.04867
  norm       = 38.616
  norm       = 0.0001
  Prefactor  = 1.20734
  Prefactor  = 8.96866
  Prefactor  = 38.281
  Prefactor  = 0.0001
  norm       = 4.83789
  Prefactor  = 0.000100002
  norm       = 1.22454
  Prefactor  = 14.5669
  Prefactor  = 0.000100184
  norm       = 5.3201
  Prefactor  = 14.0128
  norm       = 0.971845
  Prefactor  = 0.0001
  Normalizat = 0.975645
  Prefactor  = 0.896841
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.499     FROM HESSE     STATUS=OK           429 CALLS     3391 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4625        2.1198        .95202E-04   -1.5336    
   2  Prefactor     .10000E-03    35.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.256        16.039        .12511E-03   -1.5067    
   5  Prefactor     .10000E-03    12.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.1276        .12384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0487        9.8201        .10021E-02   -1.5306    
   9  norm          38.616        25.928        .64498E-04   -1.4464    
  10  norm          .10000E-03    .64388        .10680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2073        1.9037        .13084E-03   -1.5488    
  12  Prefactor     8.9687        25.523        .13385E-03   -1.5109    
  13  Prefactor     38.281        43.940        .64784E-04   -1.4470    
  14  Prefactor     .10000E-03    4.1989        .17391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8379        3.8674        .11841E-03   -1.5268    
  16  Prefactor     .10000E-03    28.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2245        1.5915        .12289E-03   -1.5487    
  18  Prefactor     14.567        9.2783        .52468E-03   -1.4944    
  19  Prefactor     .10018E-03    171.92        .42661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3201        2.5455        .91825E-04   -1.5247    
  21  Prefactor     14.013        41.451        .10706E-03   -1.4959    
  22  norm          .97184        .83424        .63059E-03   -1.5511    
  23  Prefactor     .10000E-03    17.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97565        .25179        .39236E-03   -.93851    
  25  Prefactor     .89684        .93123E-01    .16150E-03   -.96252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37514e-09
Minuit parameter uncertainties:
  1  2.11983
  2  0.000720574
  3  2.78898e-05
  4  16.0459
  5  3.1756e-05
  6  1.15943e-06
  7  9.12338e-05
  8  9.82403
  9  25.9351
  10  4.80667e-06
  11  1.90384
  12  25.554
  13  43.9768
  14  4.49255e-06
  15  3.86764
  16  0.000530736
  17  1.59151
  18  9.27918
  19  0.0112911
  20  2.54556
  21  41.5362
  22  0.834253
  23  0.000119691
  24  0.252095
  25  0.0931396
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.207e+00  1.904e+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:  8.968e-01  9.314e-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:  9.756e-01  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.64
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413773/likelihoodResults_406512001_406771201_4FGL_J0424.7+0036_daily_bin645.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7611.08078894
delta logL = 0.418073156182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7611.08015553
delta logL = 0.418706566453

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67643       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9881       1.0000          .0000       10.000    
     3 'Normalizat'    .93756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90326       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=   7611.080     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      251 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67443        10.341        .11971E-01    .13177E-02
   2  Index         2.9897        2.9043        .11667        .16282E-03
   3  Normalizat    .93763        .57870E-01    .90077E-01   -.13169E-03
   4  Prefactor     .90326        .22738E-01    .45047E-01   -.41885E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.674425
  Index      = 2.98968
  Normalizat = 0.937628
  Prefactor  = 0.90326
 **********
 **   18 **HESSE 
 **********

 FCN=   7611.080     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67443        9.1337        .64009E-03   -1.5544    
   2  Index         2.9897        3.3760        .68346E-02   -.41377    
   3  Normalizat    .93763        .24572        .39893E-03   -.95150    
   4  Prefactor     .90326        .95740E-01    .16089E-03   -.96027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07729e-08
Minuit parameter uncertainties:
  1  4.96443
  2  3.79643
  3  0.24602
  4  0.0957581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413773': 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) = 7611.08015366
delta logL = 0.418708434619

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  6.744e-01  4.964e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.990e+00  3.796e+00  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.033e-01  9.576e-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:  9.376e-01  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 66.195 0.603
Photon Index (Free Index): 2.99 +/- 3.80
Photon Flux (Free Index): 7.71e-08 +/- 8.47e-08
Energy Flux (Free Index): 1.55e-05 +/- 2.46e-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/413773/cmap_HighResolution_406512001_406771201_4FGL_J0424.7+0036_daily_bin645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.90e-03', comment='SUCCESS', energy_flux2='1.55e-05', dlogl='4.19e-01', photon_flux2='7.71e-08', job_status='DONE', time_completed='2021-08-20 13:56:33.534617', photon_index_error2='3.80', photon_index2='2.99', ts='0.64', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='2.46e-05', EG='0.98', time_epoch_completed='1629492993.53', return_code='0', job_id='413773', GAL2='0.90', EG2='0.94', return_code2='0', photon_flux_error2='8.47e-08', ts2='1.52', photon_index='2.21' WHERE bin_id='645' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:56:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 413773: <4FGL_J0424.7+0036_daily_bin645> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin645> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 13:40:42 2021
Job was executed on host(s) <bullet0043>, 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:56:33 2021
Results reported at Fri Aug 20 13:56:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin645 66.1945 0.6028 406512001 406771201 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 :                                   745.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

