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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin171
RA = 66.1945, Dec = 0.6028
tmin = 283651201, tmax = 283910401
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='412020', job_status='RUN', time_executed='2021-08-20 13:37:29.954533', time_epoch_executed='1629491849.95' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412020

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412020/ft1_4FGL_J0424.7+0036_daily_bin171.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412020/ft2_4FGL_J0424.7+0036_daily_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412020/ft1_4FGL_J0424.7+0036_daily_bin171.fits outfile=/scratch/kocevski/412020/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin171.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=283651201.0 tmax=283910401.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.78
user 3.37
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412020/ft1_filtered_4FGL_J0424.7+0036_daily_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/412020/ft2_4FGL_J0424.7+0036_daily_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/412020/ltcube_283651201_283910401_4FGL_J0424.7+0036_daily_bin171.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/412020/ft2_4FGL_J0424.7+0036_daily_bin171.fits
.....................!
real 13.92
user 13.22
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412020/ft1_filtered_4FGL_J0424.7+0036_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/412020/ft2_4FGL_J0424.7+0036_daily_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/412020/ltcube_283651201_283910401_4FGL_J0424.7+0036_daily_bin171.fits outfile=/scratch/kocevski/412020/expmap_283651201_283910401_4FGL_J0424.7+0036_daily_bin171.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/412020/ltcube_283651201_283910401_4FGL_J0424.7+0036_daily_bin171.fits
.....................!
real 191.27
user 186.26
sys 4.46

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/412020/ft1_filtered_4FGL_J0424.7+0036_daily_bin171.fits scfile=/scratch/kocevski/412020/ft2_4FGL_J0424.7+0036_daily_bin171.fits outfile=/scratch/kocevski/412020/cmap_283651201_283910401_4FGL_J0424.7+0036_daily_bin171.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.00
user 0.38
sys 0.38

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412020/ft1_filtered_4FGL_J0424.7+0036_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/412020/ft2_4FGL_J0424.7+0036_daily_bin171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412020/Model_4FGL_J0424.7+0036_daily_bin171.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/412020/ft1_filtered_4FGL_J0424.7+0036_daily_bin171.fits.....................!
real 115.64
user 113.77
sys 1.58

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2621       1.0000         .10000E-03   10000.    
     2 'Prefactor '    189.09       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.3988       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34829E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.695       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    19.817       1.0000         .10000E-03   10000.    
    10 'norm      '    5.9391       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    51.367       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.2913       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.221       1.0000         .10000E-03   10000.    
    17 'norm      '    6.8735       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .95324       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.047       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3929       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74400       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.

 FCN=   8053.717     FROM MIGRAD    STATUS=CONVERGED   1079 CALLS     3436 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2623        1.5274        .88531E-04   -.38267E-04
   2  Prefactor     189.06        61.075        .14684E-03    .17807E-04
   3  Prefactor     .10000E-03    15.103        .18142E-02** at limit **
   4  norm          9.3993        10.124        .13072E-03    .59139E-05
   5  Prefactor     .10000E-03    34.769        .14057    ** at limit **
   6  norm          .10000E-03    1.2595        .98295E-03** at limit **
   7  Prefactor     24.706        22.826        .80609E-04    .30746E-04
   8  norm          .10000E-03    4.5129        .18142E-02** at limit **
   9  norm          19.806        30.316        .89973E-04    .36896E-04
  10  norm          5.9371        1.7279        .58177E-04   -.14304E-03
  11  Prefactor     .10000E-03    3.6958        .16658E-02** at limit **
  12  Prefactor     .10000E-03    48.504        .18142E-02** at limit **
  13  Prefactor     51.344        47.716        .55958E-04   -.46525E-04
  14  Prefactor     .10000E-03    17.806        .36285E-02** at limit **
  15  norm          6.2899        3.2119        .10816E-03    .23818E-03
  16  Prefactor     24.239        34.549        .81393E-04    .14666E-04
  17  norm          6.8732        2.8594        .92360E-04    .52683E-04
  18  Prefactor     .10000E-03    11.011        .36285E-03** at limit **
  19  Prefactor     .10000E-03    81.298        .18142E-02** at limit **
  20  norm          .95391        1.1180        .10139E-03   -.41494E-03
  21  Prefactor     .10000E-03    62.739        .18142E-02** at limit **
  22  norm          .10000E-03    .71880        .10437E-02** at limit **
  23  Prefactor     15.041        28.800        .10325E-03    .14094E-04
  24  Normalizat    1.3928        .25299        .35443E-03    .89942E-04
  25  Prefactor     .74397        .94016E-01    .17891E-03    .46869E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26229
  Prefactor  = 189.056
  Prefactor  = 0.0001
  norm       = 9.39934
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 24.7061
  norm       = 0.0001
  norm       = 19.8057
  norm       = 5.93708
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 51.3438
  Prefactor  = 0.0001
  norm       = 6.28991
  Prefactor  = 24.2392
  norm       = 6.87324
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.953909
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.0406
  Normalizat = 1.39277
  Prefactor  = 0.743968
 **********
 **   18 **HESSE 
 **********

 FCN=   8053.717     FROM HESSE     STATUS=OK           411 CALLS     3847 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2623        1.5274        .35412E-05   -1.5407    
   2  Prefactor     189.06        61.074        .58736E-05   -1.2949    
   3  Prefactor     .10000E-03    15.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.3993        10.124        .52289E-05   -1.5095    
   5  Prefactor     .10000E-03    35.146        .13952       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2595        .19659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.706        22.823        .32244E-05   -1.4713    
   8  norm          .10000E-03    4.5134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          19.806        30.309        .35989E-05   -1.4818    
  10  norm          5.9371        1.7277        .23271E-05   -1.5221    
  11  Prefactor     .10000E-03    3.7076        .33317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    48.523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     51.344        47.696        .11192E-04   -1.4274    
  14  Prefactor     .10000E-03    17.943        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.2899        3.2115        .43264E-05   -1.5206    
  16  Prefactor     24.239        34.549        .32557E-05   -1.4723    
  17  norm          6.8732        2.8594        .36944E-05   -1.5184    
  18  Prefactor     .10000E-03    11.011        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    81.353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .95391        1.1180        .20278E-04   -1.5513    
  21  Prefactor     .10000E-03    62.767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .72116        .20874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.041        28.799        .41301E-05   -1.4932    
  24  Normalizat    1.3928        .25307        .14177E-04   -.80838    
  25  Prefactor     .74397        .94067E-01    .35781E-04   -1.0183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32754e-10
Minuit parameter uncertainties:
  1  1.52745
  2  61.0943
  3  8.85339e-05
  4  10.1261
  5  0.000312353
  6  6.24189e-06
  7  22.8306
  8  1.16461e-06
  9  30.3322
  10  1.72775
  11  1.51638e-05
  12  0.000328213
  13  47.7316
  14  0.000103087
  15  3.21158
  16  34.5771
  17  2.85948
  18  0.000110703
  19  0.000254334
  20  1.11799
  21  7.4433e-05
  22  1.93111e-05
  23  28.8252
  24  0.253301
  25  0.0940876
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  1.516e-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:  7.440e-01  9.409e-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.393e+00  2.533e-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: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412020/likelihoodResults_283651201_283910401_4FGL_J0424.7+0036_daily_bin171.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) = 8053.71802462
delta logL = -0.00129496246882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8053.71672558
delta logL = 4.07059633289e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10950E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3069       1.0000          .0000       10.000    
     3 'Normalizat'    1.3926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74402       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=   8053.546     FROM MIGRAD    STATUS=CONVERGED    191 CALLS      368 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .29332E-02    .48297E-03** at limit **
   2  Index         6.6092        2.6939        .14667        .13180E-03
   3  Normalizat    1.3526        .40450E-01    .80963E-01    .53018E-04
   4  Prefactor     .75271        .15432E-01    .42984E-01    .46138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.60924
  Normalizat = 1.35263
  Prefactor  = 0.752714
 **********
 **   18 **HESSE 
 **********

 FCN=   8053.546     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      409 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .30019E-01    .24966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.6092        8.2875        .85933E-02    .32768    
   3  Normalizat    1.3526        .96699E-01    .35838E-03   -.82009    
   4  Prefactor     .75271        .36776E-01    .17794E-03   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31777e-06
Minuit parameter uncertainties:
  1  2.14154e-07
  2  8.43265
  3  0.0967118
  4  0.036777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412020': 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): 102
logL (Free Index) = 8053.54631295
delta logL = 0.170416708726

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  2.142e-07  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  6.609e+00  8.433e+00  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:  7.527e-01  3.678e-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.353e+00  9.671e-02  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/412020/cmap_HighResolution_283651201_283910401_4FGL_J0424.7+0036_daily_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-08-20 13:51:21.825542', job_id='412020', GAL2='0.75', fit_tolerance='1e-08', EG2='1.35', EG='1.39', time_epoch_completed='1629492681.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.70e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='171' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:51:21 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin171 66.1945 0.6028 283651201 283910401 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 :                                   831.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            954 sec.

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

