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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin875
RA = 66.1945, Dec = 0.6028
tmin = 466128001, tmax = 466387201
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='415158', job_status='RUN', time_executed='2021-08-20 13:48:34.248080', time_epoch_executed='1629492514.25' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='875'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415158

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415158/ft1_4FGL_J0424.7+0036_daily_bin875.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415158/ft2_4FGL_J0424.7+0036_daily_bin875.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415158/ft1_4FGL_J0424.7+0036_daily_bin875.fits outfile=/scratch/kocevski/415158/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin875.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=466128001.0 tmax=466387201.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.74
user 3.28
sys 0.44

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415158/ft1_filtered_4FGL_J0424.7+0036_daily_bin875.fits" evtable="EVENTS" scfile=/scratch/kocevski/415158/ft2_4FGL_J0424.7+0036_daily_bin875.fits sctable="SC_DATA" outfile=/scratch/kocevski/415158/ltcube_466128001_466387201_4FGL_J0424.7+0036_daily_bin875.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/415158/ft2_4FGL_J0424.7+0036_daily_bin875.fits
.....................!
real 11.96
user 11.37
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415158/ft1_filtered_4FGL_J0424.7+0036_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/415158/ft2_4FGL_J0424.7+0036_daily_bin875.fits sctable="SC_DATA" expcube=/scratch/kocevski/415158/ltcube_466128001_466387201_4FGL_J0424.7+0036_daily_bin875.fits outfile=/scratch/kocevski/415158/expmap_466128001_466387201_4FGL_J0424.7+0036_daily_bin875.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/415158/ltcube_466128001_466387201_4FGL_J0424.7+0036_daily_bin875.fits
.....................!
real 190.86
user 185.72
sys 4.83

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/415158/ft1_filtered_4FGL_J0424.7+0036_daily_bin875.fits scfile=/scratch/kocevski/415158/ft2_4FGL_J0424.7+0036_daily_bin875.fits outfile=/scratch/kocevski/415158/cmap_466128001_466387201_4FGL_J0424.7+0036_daily_bin875.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.73
user 0.37
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415158/ft1_filtered_4FGL_J0424.7+0036_daily_bin875.fits scfile=/scratch/kocevski/415158/ft2_4FGL_J0424.7+0036_daily_bin875.fits outfile=/scratch/kocevski/415158/cmap_HighResolution_466128001_466387201_4FGL_J0424.7+0036_daily_bin875.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.71
user 0.39
sys 0.31

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415158/ft1_filtered_4FGL_J0424.7+0036_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/415158/ft2_4FGL_J0424.7+0036_daily_bin875.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415158/Model_4FGL_J0424.7+0036_daily_bin875.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/415158/ft1_filtered_4FGL_J0424.7+0036_daily_bin875.fits.....................!
real 123.75
user 122.01
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1408       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.308       1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10940E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .43204E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.731       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10958E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.022       1.0000         .10000E-03   10000.    
    17 'norm      '    .12298E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.736       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.6778       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2047       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4056       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88294       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=   8765.427     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2565 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1411        2.1636       -.11332E-06    .14007E-03
   2  Prefactor     .10000E-03    38.291        .56293E-08** at limit **
   3  Prefactor     17.313        13.770       -.19686E-06    .32964E-04
   4  norm          .10000E-03    21.920       -.14357E-05** at limit **
   5  Prefactor     .10000E-03    39.591       -.56664E-06** at limit **
   6  norm          .76031E-01    7.3562       -.29251E-05    .81965E-03
   7  Prefactor     .10000E-03    9.6771       -.25112E-06** at limit **
   8  norm          .10000E-03    2.8523       -.76341E-07** at limit **
   9  norm          10.784        27.367        .13598E-05    .12458E-03
  10  norm          .10000E-03    .38390       -.14314E-07** at limit **
  11  Prefactor     .10000E-03    1.4671        .12208E-05** at limit **
  12  Prefactor     .10000E-03    6.6409       -.49819E-07** at limit **
  13  Prefactor     .10000E-03    27.435        .23008E-05** at limit **
  14  Prefactor     .10000E-03    4.1953       -.10670E-06** at limit **
  15  norm          .10000E-03    .88374       -.78080E-07** at limit **
  16  Prefactor     14.019        28.216       -.12587E-06    .90751E-05
  17  norm          .10000E-03    .98216       -.30414E-06** at limit **
  18  Prefactor     14.739        8.2382       -.91211E-07    .14174E-03
  19  Prefactor     .10000E-03    11.504        .18525E-06** at limit **
  20  norm          2.6781        1.9928       -.69430E-07    .25620E-03
  21  Prefactor     .10000E-03    23.205       -.56075E-06** at limit **
  22  norm          1.2047        .61551       -.27623E-07    .18159E-03
  23  Prefactor     .10000E-03    37.837        .52133E-07** at limit **
  24  Normalizat    1.4056        .21289        .18135E-05    .43792E-03
  25  Prefactor     .88292        .79988E-01    .30712E-06    .87786E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.14112
  Prefactor  = 0.0001
  Prefactor  = 17.3126
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0760315
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.7845
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.0189
  norm       = 0.0001
  Prefactor  = 14.7391
  Prefactor  = 0.0001
  norm       = 2.6781
  Prefactor  = 0.0001
  norm       = 1.2047
  Prefactor  = 0.0001
  Normalizat = 1.40555
  Prefactor  = 0.882922
 **********
 **   18 **HESSE 
 **********

 FCN=   8765.427     FROM HESSE     STATUS=OK           429 CALLS     2994 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1411        2.1606        .10938E-03   -1.5353    
   2  Prefactor     .10000E-03    38.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.313        13.780        .96272E-04   -1.4876    
   4  norm          .10000E-03    22.463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .76031E-01    3.4340        .50283E-01   -1.5653    
   7  Prefactor     .10000E-03    9.7091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8597        .15445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.784        27.372        .12231E-03   -1.5051    
  10  norm          .10000E-03    .39363        .11282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5244        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .90365        .85983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.019        28.242        .10696E-03   -1.4959    
  17  norm          .10000E-03    6.3245        .17635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.739        8.2395        .10434E-03   -1.4940    
  19  Prefactor     .10000E-03    11.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6781        1.9850        .10912E-03   -1.5381    
  21  Prefactor     .10000E-03    23.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2047        .60796        .50768E-04   -1.5488    
  23  Prefactor     .10000E-03    38.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4056        .23484        .35284E-03   -.80468    
  25  Prefactor     .88292        .90135E-01    .17041E-03   -.96740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1004e-09
Minuit parameter uncertainties:
  1  2.16062
  2  9.71911e-05
  3  13.7822
  4  1.6068e-05
  5  0.000122323
  6  1.02134
  7  2.05373e-05
  8  7.9201e-06
  9  27.4037
  10  3.83926e-07
  11  7.08529e-05
  12  5.54062e-06
  13  2.68185e-05
  14  1.47863e-05
  15  3.02925e-06
  16  28.2685
  17  9.99033e-05
  18  8.24009
  19  1.33183e-05
  20  1.98504
  21  5.30305e-05
  22  0.60796
  23  0.000125999
  24  0.235021
  25  0.0901504
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  7.085e-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:  8.829e-01  9.015e-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.406e+00  2.350e-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: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415158/likelihoodResults_466128001_466387201_4FGL_J0424.7+0036_daily_bin875.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) = 8765.42993999
delta logL = -0.00313123606065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8765.42680864
delta logL = 1.19631295092e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2555       1.0000          .0000       10.000    
     3 'Normalizat'    1.4054       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88300       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8765.169     FROM MIGRAD    STATUS=CONVERGED    212 CALLS      379 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13627E-01    .25385E-01     .0000       -.32439    
   2  Index         4.6541        .63232         .0000        .43304E-04
   3  Normalizat    1.3417        .22409         .0000        .13920E-03
   4  Prefactor     .89546        .81109E-01     .0000       -.31602E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0136267
  Index      = 4.65415
  Normalizat = 1.34168
  Prefactor  = 0.89546
 **********
 **   18 **HESSE 
 **********

 FCN=   8765.169     FROM HESSE     STATUS=OK            33 CALLS      412 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13627E-01    .21903E-01    .69852E-03   -1.5731    
   2  Index         4.6541        .69719        .74275E-02   -.69226E-01
   3  Normalizat    1.3417        .24509        .35992E-03   -.82331    
   4  Prefactor     .89546        .91406E-01    .16935E-03   -.96300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31867e-07
Minuit parameter uncertainties:
  1  0.0219034
  2  0.699478
  3  0.2453
  4  0.0914219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415158': 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) = 8765.1689928
delta logL = 0.257815961222

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.363e-02  2.190e-02  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  4.654e+00  6.995e-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.955e-01  9.142e-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.342e+00  2.453e-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/415158/cmap_HighResolution_466128001_466387201_4FGL_J0424.7+0036_daily_bin875.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.18e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-08-20 14:01:30.237112', job_id='415158', GAL2='0.90', fit_tolerance='1e-08', EG2='1.34', EG='1.41', time_epoch_completed='1629493290.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.58e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='875' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:01:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 415158: <4FGL_J0424.7+0036_daily_bin875> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin875> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 13:45:32 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:45:33 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:45:33 2021
Terminated at Fri Aug 20 14:01:31 2021
Results reported at Fri Aug 20 14:01:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin875 66.1945 0.6028 466128001 466387201 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 :                                   778.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

