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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin433
RA = 66.1945, Dec = 0.6028
tmin = 351561601, tmax = 351820801
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='412448', job_status='RUN', time_executed='2021-08-20 13:39:15.184110', time_epoch_executed='1629491955.18' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412448

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412448/ft1_4FGL_J0424.7+0036_daily_bin433.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412448/ft2_4FGL_J0424.7+0036_daily_bin433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412448/ft1_4FGL_J0424.7+0036_daily_bin433.fits outfile=/scratch/kocevski/412448/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin433.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=351561601.0 tmax=351820801.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 7.25
user 6.61
sys 0.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412448/ft1_filtered_4FGL_J0424.7+0036_daily_bin433.fits" evtable="EVENTS" scfile=/scratch/kocevski/412448/ft2_4FGL_J0424.7+0036_daily_bin433.fits sctable="SC_DATA" outfile=/scratch/kocevski/412448/ltcube_351561601_351820801_4FGL_J0424.7+0036_daily_bin433.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/412448/ft2_4FGL_J0424.7+0036_daily_bin433.fits
.....................!
real 13.37
user 12.75
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412448/ft1_filtered_4FGL_J0424.7+0036_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/412448/ft2_4FGL_J0424.7+0036_daily_bin433.fits sctable="SC_DATA" expcube=/scratch/kocevski/412448/ltcube_351561601_351820801_4FGL_J0424.7+0036_daily_bin433.fits outfile=/scratch/kocevski/412448/expmap_351561601_351820801_4FGL_J0424.7+0036_daily_bin433.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/412448/ltcube_351561601_351820801_4FGL_J0424.7+0036_daily_bin433.fits
.....................!
real 191.12
user 186.26
sys 4.27

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/412448/ft1_filtered_4FGL_J0424.7+0036_daily_bin433.fits scfile=/scratch/kocevski/412448/ft2_4FGL_J0424.7+0036_daily_bin433.fits outfile=/scratch/kocevski/412448/cmap_351561601_351820801_4FGL_J0424.7+0036_daily_bin433.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.77
user 0.39
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412448/ft1_filtered_4FGL_J0424.7+0036_daily_bin433.fits scfile=/scratch/kocevski/412448/ft2_4FGL_J0424.7+0036_daily_bin433.fits outfile=/scratch/kocevski/412448/cmap_HighResolution_351561601_351820801_4FGL_J0424.7+0036_daily_bin433.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.79
user 0.39
sys 0.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412448/ft1_filtered_4FGL_J0424.7+0036_daily_bin433.fits evtable="EVENTS" scfile=/scratch/kocevski/412448/ft2_4FGL_J0424.7+0036_daily_bin433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412448/Model_4FGL_J0424.7+0036_daily_bin433.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/412448/ft1_filtered_4FGL_J0424.7+0036_daily_bin433.fits.....................!
real 109.25
user 107.35
sys 1.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0267       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.230       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.465       1.0000         .10000E-03   10000.    
     9 'norm      '    .10606E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9322       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4831       1.0000         .10000E-03   10000.    
    12 'Prefactor '    44.736       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.148       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.5616       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    60.739       1.0000         .10000E-03   10000.    
    22 'norm      '    .10554E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2694       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90088       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=   7056.632     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2906 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0266        2.2614       -.75343E-07    .78534E-04
   2  Prefactor     .10000E-03    27.414       -.20804E-05** at limit **
   3  Prefactor     17.227        20.089       -.59831E-06    .65792E-04
   4  norm          .10000E-03    6.0726       -.47750E-07** at limit **
   5  Prefactor     .10000E-03    11.922        .26753E-06** at limit **
   6  norm          .10000E-03    2.2328       -.56202E-07** at limit **
   7  Prefactor     .10000E-03    59.969       -.32748E-05** at limit **
   8  norm          10.470        13.845       -.44106E-06    .48401E-04
   9  norm          .10000E-03    63.852       -.34256E-05** at limit **
  10  norm          1.9321        1.2790       -.32795E-07    .13776E-03
  11  Prefactor     2.4831        2.2539       -.26120E-07    .22848E-03
  12  Prefactor     44.736        28.401       -.16839E-06    .13085E-03
  13  Prefactor     40.152        77.220       -.35268E-06    .39445E-04
  14  Prefactor     .10000E-03    5.2690       -.10546E-06** at limit **
  15  norm          .10000E-03    1.6006       -.99339E-07** at limit **
  16  Prefactor     .10000E-03    37.569        .46946E-05** at limit **
  17  norm          9.5623        3.6054        .15200E-07    .16828E-03
  18  Prefactor     .10000E-03    6.4306       -.40019E-06** at limit **
  19  Prefactor     .10000E-03    10.958       -.51837E-06** at limit **
  20  norm          .10000E-03    .61558       -.79101E-07** at limit **
  21  Prefactor     60.833        35.779        .18088E-05   -.35459E-04
  22  norm          .10000E-03    .95960        .15375E-05** at limit **
  23  Prefactor     .10000E-03    12.042        .13611E-07** at limit **
  24  Normalizat    1.2692        .27181        .12392E-05    .46257E-04
  25  Prefactor     .90100        .93174E-01    .77299E-06    .50053E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.02663
  Prefactor  = 0.0001
  Prefactor  = 17.2269
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.4699
  norm       = 0.0001
  norm       = 1.93215
  Prefactor  = 2.48314
  Prefactor  = 44.7359
  Prefactor  = 40.1517
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.56231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 60.8325
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26922
  Prefactor  = 0.900998
 **********
 **   18 **HESSE 
 **********

 FCN=   7056.632     FROM HESSE     STATUS=OK           419 CALLS     3325 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0266        2.2631        .91120E-04   -1.5307    
   2  Prefactor     .10000E-03    27.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.227        20.083        .96488E-04   -1.4878    
   4  norm          .10000E-03    6.0732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.2419        .12256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.470        13.936        .12386E-03   -1.5061    
   9  norm          .10000E-03    64.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9321        1.2720        .71044E-04   -1.5430    
  11  Prefactor     2.4831        2.2306        .10247E-03   -1.5393    
  12  Prefactor     44.736        28.303        .59942E-04   -1.4369    
  13  Prefactor     40.152        76.777        .63261E-04   -1.4440    
  14  Prefactor     .10000E-03    5.2908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6201        .10348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.5623        3.6124        .90708E-04   -1.5089    
  18  Prefactor     .10000E-03    6.5405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .61993        .64392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     60.833        35.768        .25742E-03   -1.4146    
  22  norm          .10000E-03    .96864        .11035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2692        .30360        .38544E-03   -.84490    
  25  Prefactor     .90100        .10621        .17193E-03   -.96106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56977e-10
Minuit parameter uncertainties:
  1  2.2631
  2  3.89326e-05
  3  20.0913
  4  2.35669e-06
  5  8.57233e-06
  6  5.60059e-06
  7  0.000204015
  8  13.9408
  9  6.26616e-05
  10  1.272
  11  2.2307
  12  28.3119
  13  76.9673
  14  1.54604e-05
  15  7.77451e-06
  16  9.94523e-05
  17  3.61247
  18  4.40094e-05
  19  5.93582e-06
  20  3.85787e-06
  21  35.7801
  22  8.27458e-06
  23  2.18902e-05
  24  0.304029
  25  0.106235
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  2.483e+00  2.231e+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:  9.010e-01  1.062e-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:  1.269e+00  3.040e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.44
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 5.61e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 2.46e-05

TS (Fixed Index): 3.44
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 1.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412448/likelihoodResults_351561601_351820801_4FGL_J0424.7+0036_daily_bin433.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7055.66165238
delta logL = 0.969981536598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7055.63192006
delta logL = 0.999713848568

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .81581       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3292       1.0000          .0000       10.000    
     3 'Normalizat'    1.1546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92398       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=   7055.632     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      292 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81727        5.1566        .84138E-02    .79321E-03
   2  Index         3.3285        2.0708        .10148        .19502E-03
   3  Normalizat    1.1546        .82400E-01    .90278E-01    .18462E-04
   4  Prefactor     .92408        .30294E-01    .45310E-01   -.12744E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.817275
  Index      = 3.32854
  Normalizat = 1.1546
  Prefactor  = 0.924084
 **********
 **   18 **HESSE 
 **********

 FCN=   7055.632     FROM HESSE     STATUS=OK            33 CALLS      325 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81727        115.57        .37818E-04   -1.5527    
   2  Index         3.3285        5.4961        .37826E-02   -.34085    
   3  Normalizat    1.1546        .78844        .39984E-03   -.88018    
   4  Prefactor     .92408        .24642        .16985E-03   -.95305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51428e-06
Minuit parameter uncertainties:
  1  19.4747
  2  12.5558
  3  0.796741
  4  0.246718
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412448': 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) = 7055.63191733
delta logL = 0.999716579032

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  8.173e-01  1.947e+01  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  3.329e+00  1.256e+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:  9.241e-01  2.467e-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:  1.155e+00  7.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.67
Ra Dec: 66.195 0.603
Photon Index (Free Index): 3.33 +/- 12.56
Photon Flux (Free Index): 1.92e-07 +/- 6.28e-07
Energy Flux (Free Index): 3.36e-05 +/- 3.24e-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/412448/cmap_HighResolution_351561601_351820801_4FGL_J0424.7+0036_daily_bin433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='3.36e-05', photon_flux_error='5.61e-08', dlogl='1.00e+00', energy_flux='2.74e-05', photon_flux2='1.92e-07', job_status='DONE', time_completed='2021-08-20 13:51:47.344742', photon_index_error2='12.56', photon_index2='3.33', ts='3.44', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='3.24e-05', EG='1.27', time_epoch_completed='1629492707.34', return_code='0', job_id='412448', GAL2='0.92', EG2='1.15', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='6.28e-07', ts2='5.67', photon_index='2.21' WHERE bin_id='433' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 412448: <4FGL_J0424.7+0036_daily_bin433> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin433 66.1945 0.6028 351561601 351820801 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 :                                   748.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

