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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin418
RA = 66.1945, Dec = 0.6028
tmin = 347673601, tmax = 347932801
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='412384', job_status='RUN', time_executed='2021-08-20 13:38:13.966164', time_epoch_executed='1629491893.97' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412384/ft1_4FGL_J0424.7+0036_daily_bin418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412384/ft2_4FGL_J0424.7+0036_daily_bin418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412384/ft1_4FGL_J0424.7+0036_daily_bin418.fits outfile=/scratch/kocevski/412384/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin418.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=347673601.0 tmax=347932801.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.19
user 3.23
sys 7.90

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412384/ft1_filtered_4FGL_J0424.7+0036_daily_bin418.fits" evtable="EVENTS" scfile=/scratch/kocevski/412384/ft2_4FGL_J0424.7+0036_daily_bin418.fits sctable="SC_DATA" outfile=/scratch/kocevski/412384/ltcube_347673601_347932801_4FGL_J0424.7+0036_daily_bin418.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/412384/ft2_4FGL_J0424.7+0036_daily_bin418.fits
.....................!
real 21.28
user 12.22
sys 9.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412384/ft1_filtered_4FGL_J0424.7+0036_daily_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/412384/ft2_4FGL_J0424.7+0036_daily_bin418.fits sctable="SC_DATA" expcube=/scratch/kocevski/412384/ltcube_347673601_347932801_4FGL_J0424.7+0036_daily_bin418.fits outfile=/scratch/kocevski/412384/expmap_347673601_347932801_4FGL_J0424.7+0036_daily_bin418.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/412384/ltcube_347673601_347932801_4FGL_J0424.7+0036_daily_bin418.fits
.....................!
real 201.12
user 186.36
sys 14.42

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/412384/ft1_filtered_4FGL_J0424.7+0036_daily_bin418.fits scfile=/scratch/kocevski/412384/ft2_4FGL_J0424.7+0036_daily_bin418.fits outfile=/scratch/kocevski/412384/cmap_347673601_347932801_4FGL_J0424.7+0036_daily_bin418.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 8.15
user 0.42
sys 7.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412384/ft1_filtered_4FGL_J0424.7+0036_daily_bin418.fits scfile=/scratch/kocevski/412384/ft2_4FGL_J0424.7+0036_daily_bin418.fits outfile=/scratch/kocevski/412384/cmap_HighResolution_347673601_347932801_4FGL_J0424.7+0036_daily_bin418.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.26
user 0.38
sys 7.81

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412384/ft1_filtered_4FGL_J0424.7+0036_daily_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/412384/ft2_4FGL_J0424.7+0036_daily_bin418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412384/Model_4FGL_J0424.7+0036_daily_bin418.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/412384/ft1_filtered_4FGL_J0424.7+0036_daily_bin418.fits.....................!
real 115.84
user 104.45
sys 11.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2217       1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0266       1.0000         .10000E-03   10000.    
     4 'norm      '    8.4667       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3354       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.292       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9571       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2069       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.935       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.243       1.0000         .10000E-03   10000.    
    17 'norm      '    .10766E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5446       1.0000         .10000E-03   10000.    
    19 'Prefactor '    21.494       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3019       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .21178       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69525       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1449       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=   7781.117     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2891 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2221        1.4844        .31703E-06   -.31869E-03
   2  Prefactor     61.984        48.332        .37460E-04   -.44368E-06
   3  Prefactor     3.0209        11.073       -.50232E-05   -.24644E-03
   4  norm          8.4690        17.599       -.46073E-06   -.20440E-04
   5  Prefactor     1.2666        118.91        .32283E-05   -.74853E-04
   6  norm          .10000E-03    3.3068        .33461E-06** at limit **
   7  Prefactor     .10000E-03    16.687        .12572E-04** at limit **
   8  norm          .10000E-03    8.0566        .54269E-06** at limit **
   9  norm          10.294        23.225        .98062E-05   -.48348E-04
  10  norm          6.9570        1.8645        .85652E-07   -.69720E-03
  11  Prefactor     2.2063        1.7773       -.27712E-06   -.53967E-03
  12  Prefactor     .10000E-03    11.704        .24358E-05** at limit **
  13  Prefactor     .10000E-03    26.915        .68926E-05** at limit **
  14  Prefactor     14.935        12.611        .11124E-05   -.17683E-03
  15  norm          .10000E-03    .81054       -.31967E-07** at limit **
  16  Prefactor     29.241        28.791       -.81780E-06   -.17288E-04
  17  norm          .10000E-03    1.4408        .67729E-06** at limit **
  18  Prefactor     3.5448        5.8159        .42563E-05   -.45460E-03
  19  Prefactor     21.513        32.248        .14995E-04    .11533E-03
  20  norm          3.3020        2.2136        .38957E-06   -.36335E-03
  21  Prefactor     .10000E-03    19.087       -.17254E-04** at limit **
  22  norm          .21151        .54978       -.49606E-06   -.33594E-02
  23  Prefactor     .10000E-03    11.486       -.34326E-05** at limit **
  24  Normalizat    .69483        .26022       -.11159E-04   -.25260E-03
  25  Prefactor     1.1450        .99934E-01   -.81849E-06   -.15746E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.22209
  Prefactor  = 61.9843
  Prefactor  = 3.02091
  norm       = 8.46902
  Prefactor  = 1.26663
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.2939
  norm       = 6.95704
  Prefactor  = 2.20627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9354
  norm       = 0.0001
  Prefactor  = 29.2406
  norm       = 0.000100001
  Prefactor  = 3.54475
  Prefactor  = 21.5134
  norm       = 3.30197
  Prefactor  = 0.0001
  norm       = 0.211507
  Prefactor  = 0.0001
  Normalizat = 0.694832
  Prefactor  = 1.14504
 **********
 **   18 **HESSE 
 **********

 FCN=   7781.117     FROM HESSE     STATUS=OK           431 CALLS     3322 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2221        1.4580        .11424E-03   -1.5487    
   2  Prefactor     61.984        48.095        .50985E-04   -1.4132    
   3  Prefactor     3.0209        11.079        .23326E-03   -1.5360    
   4  norm          8.4690        17.589        .13777E-03   -1.5126    
   5  Prefactor     1.2666        120.97        .37967E-03   -1.5483    
   6  norm          .10000E-03    3.3463        .15656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.1237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.294        23.093        .12490E-03   -1.5066    
  10  norm          6.9570        1.8597        .57455E-04   -1.5180    
  11  Prefactor     2.2063        1.7695        .97659E-04   -1.5411    
  12  Prefactor     .10000E-03    11.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.935        12.617        .10364E-03   -1.4935    
  15  norm          .10000E-03    .82036        .77490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.241        28.798        .74088E-04   -1.4626    
  17  norm          .10000E-03    2.6437        .20161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5448        5.7636        .21469E-03   -1.5331    
  19  Prefactor     21.513        32.061        .86395E-04   -1.4780    
  20  norm          3.3020        2.2085        .10256E-03   -1.5345    
  21  Prefactor     .10000E-03    19.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .21151        .54112        .99290E-04   -1.5616    
  23  Prefactor     .10000E-03    11.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .69483        .27134        .48397E-03   -1.0410    
  25  Prefactor     1.1450        .10716        .15867E-03   -.88040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2349e-09
Minuit parameter uncertainties:
  1  1.458
  2  48.1248
  3  11.0867
  4  17.5992
  5  24.8071
  6  1.98619e-05
  7  8.32946e-06
  8  7.64538e-05
  9  23.1132
  10  1.85967
  11  1.76955
  12  2.23294e-05
  13  1.32665e-05
  14  12.6195
  15  2.93509e-06
  16  28.8114
  17  8.61542e-05
  18  5.76447
  19  32.0863
  20  2.20857
  21  0.000177558
  22  0.541137
  23  2.3207e-05
  24  0.271866
  25  0.107179
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.145e+00  1.072e-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:  6.948e-01  2.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.17
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 4.45e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.95e-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) = 7779.44836651
delta logL = 1.66849997061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7779.40841378
delta logL = 1.70845270682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9026       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2455       1.0000          .0000       10.000    
     3 'Normalizat'    .72338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1415       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=   7779.408     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      206 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9026        1.5684        .75374E-02    .30348E-02
   2  Index         1.2455        .34223        .21555       -.29707E-04
   3  Normalizat    .72337        .23440        .10724       -.16472E-04
   4  Prefactor     1.1415        .96949E-01    .36186E-01   -.70178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.9026
  Index      = 1.24552
  Normalizat = 0.723368
  Prefactor  = 1.14154
 **********
 **   18 **HESSE 
 **********

 FCN=   7779.408     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9026        2.1147        .96254E-04   -1.5432    
   2  Index         1.2455        .49802        .87895E-02   -.84942    
   3  Normalizat    .72337        .25037        .47545E-03   -1.0298    
   4  Prefactor     1.1415        .10401        .15895E-03   -.88150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70825e-09
Minuit parameter uncertainties:
  1  2.11479
  2  0.499933
  3  0.250762
  4  0.104028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412384': 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) = 7779.40841378
delta logL = 1.70845270837

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.142e+00  1.040e-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.234e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.59
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.25 +/- 0.50
Photon Flux (Free Index): 1.58e-08 +/- 1.79e-08
Energy Flux (Free Index): 1.15e-04 +/- 1.28e-04

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/412384/cmap_HighResolution_347673601_347932801_4FGL_J0424.7+0036_daily_bin418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='1.15e-04', photon_flux_error='4.45e-08', dlogl='1.71e+00', energy_flux='2.43e-05', photon_flux2='1.58e-08', job_status='DONE', time_completed='2021-08-20 13:51:18.908243', photon_index_error2='0.50', photon_index2='1.25', ts='10.17', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.28e-04', EG='0.69', time_epoch_completed='1629492678.91', return_code='0', job_id='412384', GAL2='1.14', EG2='0.72', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='1.79e-08', ts2='13.59', photon_index='2.21' WHERE bin_id='418' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:51:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 412384: <4FGL_J0424.7+0036_daily_bin418> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin418> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:36:00 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:36:01 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:36:01 2021
Terminated at Fri Aug 20 13:51:20 2021
Results reported at Fri Aug 20 13:51:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin418 66.1945 0.6028 347673601 347932801 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 :                                   904.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             276.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            920 sec.

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

