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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin162
RA = 66.1945, Dec = 0.6028
tmin = 281318401, tmax = 281577601
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='410906', job_status='RUN', time_executed='2021-08-20 13:32:35.628100', time_epoch_executed='1629491555.63' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='162'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410906

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410906/ft1_4FGL_J0424.7+0036_daily_bin162.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410906/ft2_4FGL_J0424.7+0036_daily_bin162.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410906/ft1_4FGL_J0424.7+0036_daily_bin162.fits outfile=/scratch/kocevski/410906/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin162.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=281318401.0 tmax=281577601.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 9.00
user 3.23
sys 5.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410906/ft1_filtered_4FGL_J0424.7+0036_daily_bin162.fits" evtable="EVENTS" scfile=/scratch/kocevski/410906/ft2_4FGL_J0424.7+0036_daily_bin162.fits sctable="SC_DATA" outfile=/scratch/kocevski/410906/ltcube_281318401_281577601_4FGL_J0424.7+0036_daily_bin162.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/410906/ft2_4FGL_J0424.7+0036_daily_bin162.fits
.....................!
real 17.91
user 11.33
sys 6.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410906/ft1_filtered_4FGL_J0424.7+0036_daily_bin162.fits evtable="EVENTS" scfile=/scratch/kocevski/410906/ft2_4FGL_J0424.7+0036_daily_bin162.fits sctable="SC_DATA" expcube=/scratch/kocevski/410906/ltcube_281318401_281577601_4FGL_J0424.7+0036_daily_bin162.fits outfile=/scratch/kocevski/410906/expmap_281318401_281577601_4FGL_J0424.7+0036_daily_bin162.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/410906/ltcube_281318401_281577601_4FGL_J0424.7+0036_daily_bin162.fits
.....................!
real 198.13
user 185.64
sys 12.16

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/410906/ft1_filtered_4FGL_J0424.7+0036_daily_bin162.fits scfile=/scratch/kocevski/410906/ft2_4FGL_J0424.7+0036_daily_bin162.fits outfile=/scratch/kocevski/410906/cmap_281318401_281577601_4FGL_J0424.7+0036_daily_bin162.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 5.90
user 0.37
sys 5.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410906/ft1_filtered_4FGL_J0424.7+0036_daily_bin162.fits scfile=/scratch/kocevski/410906/ft2_4FGL_J0424.7+0036_daily_bin162.fits outfile=/scratch/kocevski/410906/cmap_HighResolution_281318401_281577601_4FGL_J0424.7+0036_daily_bin162.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 5.93
user 0.39
sys 5.51

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410906/ft1_filtered_4FGL_J0424.7+0036_daily_bin162.fits evtable="EVENTS" scfile=/scratch/kocevski/410906/ft2_4FGL_J0424.7+0036_daily_bin162.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410906/Model_4FGL_J0424.7+0036_daily_bin162.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/410906/ft1_filtered_4FGL_J0424.7+0036_daily_bin162.fits.....................!
real 146.52
user 138.08
sys 8.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4627       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.431       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.255       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0434       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.038       1.0000         .10000E-03   10000.    
     6 'norm      '    .87637       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .68608       1.0000         .10000E-03   10000.    
     9 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .18500       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9172       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2380       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10769E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .16100E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.024       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .51320E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3281       1.0000         .10000E-03   10000.    
    20 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.796       1.0000         .10000E-03   10000.    
    22 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.923       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3571       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85741       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=   9964.132     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2977 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4631        1.5065        .25969E-06    .41084E-03
   2  Prefactor     59.428        47.334       -.70125E-06   -.45460E-04
   3  Prefactor     19.257        13.376        .38964E-07    .38555E-05
   4  norm          3.0418        11.098        .85944E-06    .22591E-04
   5  Prefactor     24.055        23.216        .15376E-05    .19769E-03
   6  norm          .87876        1.7904       -.27851E-06   -.41401E-03
   7  Prefactor     .10000E-03    23.979        .32475E-05** at limit **
   8  norm          .65504        11.971        .31638E-05   -.67367E-03
   9  norm          .10000E-03    17.186       -.57005E-06** at limit **
  10  norm          .18502        .50883        .40791E-07   -.17092E-02
  11  Prefactor     3.9166        1.6058       -.31693E-06   -.16284E-02
  12  Prefactor     4.2299        12.923        .25082E-06    .69101E-04
  13  Prefactor     .10000E-03    9.2714        .53883E-07** at limit **
  14  Prefactor     .10000E-03    4.8290       -.20012E-06** at limit **
  15  norm          .10000E-03    1.0841       -.68289E-06** at limit **
  16  Prefactor     .10000E-03    27.810       -.51071E-06** at limit **
  17  norm          12.021        3.0179       -.90168E-08   -.85639E-04
  18  Prefactor     .10004E-03    67.358       -.79341E-05** at limit **
  19  Prefactor     6.3269        22.823        .26063E-05    .17809E-03
  20  norm          .10000E-03    .76785        .56554E-06** at limit **
  21  Prefactor     34.777        26.270        .14844E-05    .32105E-03
  22  norm          .10000E-03    .26311        .47530E-06** at limit **
  23  Prefactor     16.913        27.086        .39854E-06   -.10174E-06
  24  Normalizat    1.3573        .20771       -.10488E-06    .13420E-03
  25  Prefactor     .85729        .75960E-01    .36419E-06    .66418E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46313
  Prefactor  = 59.4278
  Prefactor  = 19.2569
  norm       = 3.04181
  Prefactor  = 24.055
  norm       = 0.878758
  Prefactor  = 0.000100002
  norm       = 0.655037
  norm       = 0.0001
  norm       = 0.18502
  Prefactor  = 3.91657
  Prefactor  = 4.22992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 12.0212
  Prefactor  = 0.000100035
  Prefactor  = 6.32689
  norm       = 0.0001
  Prefactor  = 34.7767
  norm       = 0.0001
  Prefactor  = 16.9134
  Normalizat = 1.3573
  Prefactor  = 0.857287
 **********
 **   18 **HESSE 
 **********

 FCN=   9964.132     FROM HESSE     STATUS=OK           445 CALLS     3422 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4631        1.4886        .11900E-03   -1.5466    
   2  Prefactor     59.428        47.449        .52043E-04   -1.4165    
   3  Prefactor     19.257        13.371        .91275E-04   -1.4830    
   4  norm          3.0418        11.089        .23258E-03   -1.5359    
   5  Prefactor     24.055        23.334        .81700E-04   -1.4727    
   6  norm          .87876        1.7995        .22779E-02   -1.5520    
   7  Prefactor     .10000E-03    24.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .65504        24.814        .44007E-02   -1.5546    
   9  norm          .10000E-03    17.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .18502        .53832        .10782E-02   -1.5622    
  11  Prefactor     3.9166        1.6136        .77791E-04   -1.5312    
  12  Prefactor     4.2299        12.783        .19573E-03   -1.5297    
  13  Prefactor     .10000E-03    9.2730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.8762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3462        .18952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.021        3.0291        .82123E-04   -1.5014    
  18  Prefactor     .10004E-03    7.0060        .61465E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.3269        22.933        .15956E-03   -1.5205    
  20  norm          .10000E-03    1.1993        .16044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.777        26.244        .67936E-04   -1.4528    
  22  norm          .10000E-03    .32278        .85940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.913        26.809        .97359E-04   -1.4885    
  24  Normalizat    1.3573        .22972        .35490E-03   -.81872    
  25  Prefactor     .85729        .84751E-01    .17293E-03   -.97650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52188e-08
Minuit parameter uncertainties:
  1  1.48862
  2  47.4791
  3  13.3735
  4  11.0969
  5  23.3431
  6  1.79962
  7  0.000457331
  8  8.06623
  9  0.000114098
  10  0.538331
  11  1.6136
  12  12.7911
  13  4.76098e-07
  14  4.22401e-05
  15  0.000106817
  16  9.20925e-05
  17  3.02918
  18  0.000996718
  19  22.9647
  20  1.58718e-05
  21  26.2524
  22  1.11657e-05
  23  26.8277
  24  0.229895
  25  0.0847641
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  3.917e+00  1.614e+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.573e-01  8.476e-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:  1.357e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.80
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 9.86e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 4.32e-05 +/- 1.78e-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) = 9963.79531812
delta logL = 0.336985677723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9963.79514546
delta logL = 0.337158329176

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7226       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9349       1.0000          .0000       10.000    
     3 'Normalizat'    1.3771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85379       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=   9963.795     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      237 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7226        37.355        .46291E-02   -.22703E-03
   2  Index         1.9349        3.0502        .17235        .57784E-04
   3  Normalizat    1.3771        .17756        .79739E-01   -.10129E-03
   4  Prefactor     .85379        .43966E-01    .44413E-01   -.12425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.72256
  Index      = 1.93488
  Normalizat = 1.37712
  Prefactor  = 0.853791
 **********
 **   18 **HESSE 
 **********

 FCN=   9963.795     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7226        2.0894        .88302E-04   -1.5273    
   2  Index         1.9349        .33084        .63091E-02   -.65988    
   3  Normalizat    1.3771        .20778        .35293E-03   -.81293    
   4  Prefactor     .85379        .82602E-01    .17326E-03   -.97775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12399e-10
Minuit parameter uncertainties:
  1  2.08947
  2  0.331228
  3  0.20791
  4  0.0826143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410906': 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) = 9963.79514546
delta logL = 0.337158329266

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  4.723e+00  2.089e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.935e+00  3.312e-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.538e-01  8.261e-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:  1.377e+00  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.49
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.93 +/- 0.33
Photon Flux (Free Index): 7.50e-08 +/- 4.17e-08
Energy Flux (Free Index): 6.12e-05 +/- 4.06e-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/410906/cmap_HighResolution_281318401_281577601_4FGL_J0424.7+0036_daily_bin162.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.86e-08', energy_flux2='6.12e-05', photon_flux_error='4.06e-08', dlogl='3.37e-01', energy_flux='4.32e-05', photon_flux2='7.50e-08', job_status='DONE', time_completed='2021-08-20 13:46:58.220393', photon_index_error2='0.33', photon_index2='1.93', ts='16.80', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='4.06e-05', EG='1.36', time_epoch_completed='1629492418.22', return_code='0', job_id='410906', GAL2='0.85', EG2='1.38', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='4.17e-08', ts2='17.49', photon_index='2.21' WHERE bin_id='162' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:46:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 410906: <4FGL_J0424.7+0036_daily_bin162> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin162> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 13:30:56 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:30:57 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:30:57 2021
Terminated at Fri Aug 20 13:46:59 2021
Results reported at Fri Aug 20 13:46:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin162 66.1945 0.6028 281318401 281577601 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 :                                   938.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             313.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            963 sec.

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

