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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin707
RA = 66.1945, Dec = 0.6028
tmin = 422582401, tmax = 422841601
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='413863', job_status='RUN', time_executed='2021-08-20 13:41:12.306215', time_epoch_executed='1629492072.31' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413863

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413863/ft1_4FGL_J0424.7+0036_daily_bin707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413863/ft2_4FGL_J0424.7+0036_daily_bin707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413863/ft1_4FGL_J0424.7+0036_daily_bin707.fits outfile=/scratch/kocevski/413863/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin707.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=422582401.0 tmax=422841601.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 4.24
user 3.28
sys 0.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413863/ft2_4FGL_J0424.7+0036_daily_bin707.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/413863/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin707.fits evtable="EVENTS" outfile="/scratch/kocevski/413863/ft1_filtered_4FGL_J0424.7+0036_daily_bin707.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 1.21
user 0.33
sys 0.86

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413863/ft1_filtered_4FGL_J0424.7+0036_daily_bin707.fits" evtable="EVENTS" scfile=/scratch/kocevski/413863/ft2_4FGL_J0424.7+0036_daily_bin707.fits sctable="SC_DATA" outfile=/scratch/kocevski/413863/ltcube_422582401_422841601_4FGL_J0424.7+0036_daily_bin707.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/413863/ft2_4FGL_J0424.7+0036_daily_bin707.fits
.....................!
real 12.52
user 11.38
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413863/ft1_filtered_4FGL_J0424.7+0036_daily_bin707.fits evtable="EVENTS" scfile=/scratch/kocevski/413863/ft2_4FGL_J0424.7+0036_daily_bin707.fits sctable="SC_DATA" expcube=/scratch/kocevski/413863/ltcube_422582401_422841601_4FGL_J0424.7+0036_daily_bin707.fits outfile=/scratch/kocevski/413863/expmap_422582401_422841601_4FGL_J0424.7+0036_daily_bin707.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/413863/ltcube_422582401_422841601_4FGL_J0424.7+0036_daily_bin707.fits
.....................!
real 190.97
user 184.90
sys 5.63

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/413863/ft1_filtered_4FGL_J0424.7+0036_daily_bin707.fits scfile=/scratch/kocevski/413863/ft2_4FGL_J0424.7+0036_daily_bin707.fits outfile=/scratch/kocevski/413863/cmap_422582401_422841601_4FGL_J0424.7+0036_daily_bin707.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 1.16
user 0.37
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413863/ft1_filtered_4FGL_J0424.7+0036_daily_bin707.fits scfile=/scratch/kocevski/413863/ft2_4FGL_J0424.7+0036_daily_bin707.fits outfile=/scratch/kocevski/413863/cmap_HighResolution_422582401_422841601_4FGL_J0424.7+0036_daily_bin707.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 1.24
user 0.37
sys 0.86

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413863/ft1_filtered_4FGL_J0424.7+0036_daily_bin707.fits evtable="EVENTS" scfile=/scratch/kocevski/413863/ft2_4FGL_J0424.7+0036_daily_bin707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413863/Model_4FGL_J0424.7+0036_daily_bin707.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/413863/ft1_filtered_4FGL_J0424.7+0036_daily_bin707.fits.....................!
real 142.49
user 140.11
sys 2.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1312       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .44398E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.257       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.760       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.994       1.0000         .10000E-03   10000.    
     8 'norm      '    11.094       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3078       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5781       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7424       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.0212       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .46854       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4475       1.0000         .10000E-03   10000.    
    20 'norm      '    2.4864       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.615       1.0000         .10000E-03   10000.    
    22 'norm      '    .51538       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.615       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .62909       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2100       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=   9968.469     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2971 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1311        1.8207        .44060E-07   -.15553E-04
   2  Prefactor     .10000E-03    227.43       -.49620E-05** at limit **
   3  Prefactor     22.263        20.794       -.85949E-06    .43923E-04
   4  norm          .10000E-03    6.1390        .43604E-08** at limit **
   5  Prefactor     33.775        41.357       -.32797E-06   -.48729E-04
   6  norm          .10000E-03    1.5155        .16586E-07** at limit **
   7  Prefactor     40.987        33.122        .15136E-06   -.55901E-04
   8  norm          11.094        9.8238        .13462E-05   -.88550E-04
   9  norm          .10000E-03    14.095        .32705E-06** at limit **
  10  norm          2.3080        1.2902       -.46505E-07   -.86411E-03
  11  Prefactor     .10000E-03    .80260        .55973E-06** at limit **
  12  Prefactor     .10000E-03    40.385        .97195E-07** at limit **
  13  Prefactor     .10000E-03    25.639       -.67965E-07** at limit **
  14  Prefactor     3.5781        7.1538        .37942E-06   -.67159E-04
  15  norm          3.7395        3.4452        .21174E-06   -.29532E-03
  16  Prefactor     .10000E-03    18.091       -.63049E-09** at limit **
  17  norm          4.0212        2.3347        .54028E-07   -.23346E-03
  18  Prefactor     .47354        5.9798        .61323E-06   -.81552E-04
  19  Prefactor     2.4568        161.39       -.53729E-05   -.15416E-04
  20  norm          2.4863        2.1622        .23842E-06   -.68134E-04
  21  Prefactor     13.605        31.951        .11615E-05   -.43595E-04
  22  norm          .51595        .61503        .15619E-06    .55256E-03
  23  Prefactor     23.616        24.993        .56792E-07   -.74930E-05
  24  Normalizat    .62909        .25037       -.19035E-05   -.12881E-03
  25  Prefactor     1.2100        .94275E-01   -.29664E-06   -.30437E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.13115
  Prefactor  = 0.000100003
  Prefactor  = 22.2626
  norm       = 0.0001
  Prefactor  = 33.7753
  norm       = 0.0001
  Prefactor  = 40.9874
  norm       = 11.0942
  norm       = 0.0001
  norm       = 2.30797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.57808
  norm       = 3.73948
  Prefactor  = 0.0001
  norm       = 4.02116
  Prefactor  = 0.473544
  Prefactor  = 2.45678
  norm       = 2.48627
  Prefactor  = 13.6055
  norm       = 0.515953
  Prefactor  = 23.6157
  Normalizat = 0.629088
  Prefactor  = 1.21002
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.469     FROM HESSE     STATUS=OK           439 CALLS     3410 TOTAL
                     EDM=   .69E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1311        1.8190        .86307E-04   -1.5301    
   2  Prefactor     .10000E-03    228.98        .42430E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.263        20.655        .84902E-04   -1.4764    
   4  norm          .10000E-03    6.1412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     33.775        40.871        .68967E-04   -1.4545    
   6  norm          .10000E-03    1.5200        .11998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.987        33.059        .62607E-04   -1.4427    
   8  norm          11.094        9.7672        .60140E-03   -1.5042    
   9  norm          .10000E-03    14.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3080        1.2695        .77844E-04   -1.5404    
  11  Prefactor     .10000E-03    1.1970        .16394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5781        7.1150        .21364E-03   -1.5330    
  15  norm          3.7395        3.3702        .15811E-03   -1.5321    
  16  Prefactor     .10000E-03    18.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.0212        2.3238        .10942E-03   -1.5307    
  18  Prefactor     .47354        29.733        .42076E-02   -1.5570    
  19  Prefactor     2.4568        149.82        .26149E-03   -1.5394    
  20  norm          2.4863        2.1430        .12469E-03   -1.5393    
  21  Prefactor     13.605        30.602        .10855E-03   -1.4970    
  22  norm          .51595        .54912        .78524E-03   -1.5564    
  23  Prefactor     23.616        24.920        .82428E-04   -1.4736    
  24  Normalizat    .62909        .25318        .52921E-03   -1.0676    
  25  Prefactor     1.2100        .98568E-01    .16321E-03   -.86023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87869e-08
Minuit parameter uncertainties:
  1  1.81904
  2  0.00164424
  3  20.6618
  4  1.06562e-06
  5  40.9047
  6  6.10367e-07
  7  33.0734
  8  9.76862
  9  1.77071e-06
  10  1.26948
  11  2.53223e-05
  12  0.000158699
  13  5.32954e-05
  14  7.11672
  15  3.37037
  16  2.42988e-05
  17  2.32382
  18  7.50779
  19  38.4707
  20  2.14309
  21  30.6376
  22  0.549126
  23  24.9311
  24  0.253651
  25  0.0985834
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  2.532e-05  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.210e+00  9.858e-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:  6.291e-01  2.537e-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: 8.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413863/likelihoodResults_422582401_422841601_4FGL_J0424.7+0036_daily_bin707.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) = 9968.47298053
delta logL = -0.00398108281115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9968.46899983
delta logL = -3.82920916309e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2037       1.0000          .0000       10.000    
     3 'Normalizat'    .62915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2101       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9968.469     FROM MIGRAD    STATUS=FAILED        93 CALLS      258 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    13.154        .16494E-02** at limit **
   2  Index         2.1689        5.5488        .50000        .44705E-04
   3  Normalizat    .62909        .19365E-01    .52921E-03   -.11777E-03
   4  Prefactor     1.2100        .81204E-02    .16321E-03   -.28660E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9968.469     FROM SIMPLEX   STATUS=PROGRESS     120 CALLS      378 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    13.154        .13714E-03** at limit **
   2  Index         2.1681        5.5488        .27391E-03    .44705E-04
   3  Normalizat    .62908        .19365E-01    .48945E-05   -.11777E-03
   4  Prefactor     1.2100        .81204E-02    .13035E-05   -.28660E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9968.469     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      456 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    265.31        .65975E-04** at limit **
   2  Index         2.0833        5.0292        .50000        .29559E-06
   3  Normalizat    .62909        .15056        .42337E-05    .20408E-04
   4  Prefactor     1.2100        .61695E-01    .65282E-05    .25077E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08326
  Normalizat = 0.62909
  Prefactor  = 1.21002
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.469     FROM HESSE     STATUS=OK            29 CALLS      485 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3194        .13195E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0833        8.8086        .50000       -.62285    
   3  Normalizat    .62909        .22530        .84674E-06   -1.0676    
   4  Prefactor     1.2100        .94945E-01    .13056E-05   -.86023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22722e-11
Minuit parameter uncertainties:
  1  3.25192e-07
  2  43.5377
  3  0.225629
  4  0.0949586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413863': 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) = 9968.46899839
delta logL = 1.05622711999e-06

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  3.252e-07  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.083e+00  4.354e+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.210e+00  9.496e-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:  6.291e-01  2.256e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/413863/cmap_HighResolution_422582401_422841601_4FGL_J0424.7+0036_daily_bin707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', job_status='DONE', photon_flux_upper_limit='8.43e-08', time_completed='2021-08-20 13:56:06.890739', job_id='413863', GAL2='1.21', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1629492966.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='707' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:56:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 413863: <4FGL_J0424.7+0036_daily_bin707> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin707 66.1945 0.6028 422582401 422841601 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.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            919 sec.

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

