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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin928
RA = 66.1945, Dec = 0.6028
tmin = 479865601, tmax = 480124801
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='415234', job_status='RUN', time_executed='2021-08-20 13:48:13.451356', time_epoch_executed='1629492493.45' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415234

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415234/ft1_4FGL_J0424.7+0036_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415234/ft2_4FGL_J0424.7+0036_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415234/ft1_4FGL_J0424.7+0036_daily_bin928.fits outfile=/scratch/kocevski/415234/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin928.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=479865601.0 tmax=480124801.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.17
user 3.24
sys 0.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415234/ft1_filtered_4FGL_J0424.7+0036_daily_bin928.fits" evtable="EVENTS" scfile=/scratch/kocevski/415234/ft2_4FGL_J0424.7+0036_daily_bin928.fits sctable="SC_DATA" outfile=/scratch/kocevski/415234/ltcube_479865601_480124801_4FGL_J0424.7+0036_daily_bin928.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/415234/ft2_4FGL_J0424.7+0036_daily_bin928.fits
.....................!
real 12.80
user 11.69
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415234/ft1_filtered_4FGL_J0424.7+0036_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/415234/ft2_4FGL_J0424.7+0036_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/415234/ltcube_479865601_480124801_4FGL_J0424.7+0036_daily_bin928.fits outfile=/scratch/kocevski/415234/expmap_479865601_480124801_4FGL_J0424.7+0036_daily_bin928.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/415234/ltcube_479865601_480124801_4FGL_J0424.7+0036_daily_bin928.fits
.....................!
real 190.30
user 184.89
sys 5.01

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/415234/ft1_filtered_4FGL_J0424.7+0036_daily_bin928.fits scfile=/scratch/kocevski/415234/ft2_4FGL_J0424.7+0036_daily_bin928.fits outfile=/scratch/kocevski/415234/cmap_479865601_480124801_4FGL_J0424.7+0036_daily_bin928.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.24
user 0.36
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415234/ft1_filtered_4FGL_J0424.7+0036_daily_bin928.fits scfile=/scratch/kocevski/415234/ft2_4FGL_J0424.7+0036_daily_bin928.fits outfile=/scratch/kocevski/415234/cmap_HighResolution_479865601_480124801_4FGL_J0424.7+0036_daily_bin928.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.19
user 0.38
sys 0.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415234/ft1_filtered_4FGL_J0424.7+0036_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/415234/ft2_4FGL_J0424.7+0036_daily_bin928.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415234/Model_4FGL_J0424.7+0036_daily_bin928.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/415234/ft1_filtered_4FGL_J0424.7+0036_daily_bin928.fits.....................!
real 114.28
user 111.90
sys 2.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1259       1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.465       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3949       1.0000         .10000E-03   10000.    
     4 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3631       1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.005       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3401       1.0000         .10000E-03   10000.    
     9 'norm      '    10.252       1.0000         .10000E-03   10000.    
    10 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.461       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5884       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.686       1.0000         .10000E-03   10000.    
    15 'norm      '    .84305       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9333       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3666       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.314       1.0000         .10000E-03   10000.    
    20 'norm      '    .95099       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94581       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94922       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7840.508     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     2532 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1260        1.8541        .17877E-06    .38153E-04
   2  Prefactor     67.488        4.9432        .16487E-06   -.95232E-02
   3  Prefactor     6.3987        12.333       -.33605E-06   -.17149E-02
   4  norm          .10000E-03    7.8637       -.86536E-06** at limit **
   5  Prefactor     .10000E-03    11.193       -.60530E-06** at limit **
   6  norm          1.3610        4.2359        .28959E-06   -.24165E-04
   7  Prefactor     54.006        1.9076       -.20644E-07    .18244E-02
   8  norm          1.3410        1.1167       -.16383E-07    .20172E-04
   9  norm          10.255        1.3671        .18475E-07    .60615E-03
  10  norm          .10000E-03    .66765        .19486E-06** at limit **
  11  Prefactor     .10000E-03    .80097        .36609E-07** at limit **
  12  Prefactor     33.479        2.5834        .10943E-06    .47193E-03
  13  Prefactor     9.5768        2.8841       -.22754E-06    .19402E-02
  14  Prefactor     17.685        1.5935        .22595E-07    .44585E-03
  15  norm          .84007        2.6405       -.42108E-06   -.47187E-04
  16  Prefactor     1.9491        3.8261        .69124E-06   -.10320E-02
  17  norm          3.3657        2.6172        .15004E-06   -.43074E-04
  18  Prefactor     .10000E-03    3.6145       -.34307E-06** at limit **
  19  Prefactor     35.281        4.4744       -.20589E-06   -.12137E-02
  20  norm          .95214        1.8669        .35027E-06    .13994E-04
  21  Prefactor     .10049E-03    168.32       -.78715E-05** at limit **
  22  norm          .10000E-03    .32135       -.11300E-06** at limit **
  23  Prefactor     .10000E-03    8.6987        .57939E-06** at limit **
  24  Normalizat    .94610        .24773       -.35923E-05   -.64271E-04
  25  Prefactor     .94897        .96275E-01    .14871E-06   -.12733E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.12604
  Prefactor  = 67.4881
  Prefactor  = 6.39866
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.36104
  Prefactor  = 54.006
  norm       = 1.34097
  norm       = 10.2555
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.4789
  Prefactor  = 9.57678
  Prefactor  = 17.6855
  norm       = 0.840075
  Prefactor  = 1.94907
  norm       = 3.36565
  Prefactor  = 0.0001
  Prefactor  = 35.2807
  norm       = 0.952141
  Prefactor  = 0.000100487
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.946099
  Prefactor  = 0.94897
 **********
 **   18 **HESSE 
 **********

 FCN=   7840.508     FROM HESSE     STATUS=OK           497 CALLS     3029 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1260        1.8624        .57328E-02   -1.5354    
   2  Prefactor     67.488        50.216        .12216E-02   -1.4063    
   3  Prefactor     6.3987        12.641        .39679E-02   -1.5202    
   4  norm          .10000E-03    7.8474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.190        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3610        4.3504        .93475E-02   -1.5475    
   7  Prefactor     54.006        31.862        .13645E-02   -1.4237    
   8  norm          1.3410        9.8172        .94666E-02   -1.5476    
   9  norm          10.255        29.584        .31285E-02   -1.5067    
  10  norm          .10000E-03    .47086        .31004E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .79279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.479        32.542        .17318E-02   -1.4550    
  13  Prefactor     9.5768        56.399        .32354E-02   -1.5089    
  14  Prefactor     17.685        12.576        .23809E-02   -1.4867    
  15  norm          .84007        3.3533        .12599E-01   -1.5525    
  16  Prefactor     1.9491        325.78        .74670E-02   -1.5429    
  17  norm          3.3657        2.6782        .55137E-02   -1.5341    
  18  Prefactor     .10000E-03    3.5653        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.281        33.002        .16859E-02   -1.4519    
  20  norm          .95214        1.9169        .12991E-01   -1.5513    
  21  Prefactor     .10049E-03    25.776        .12583       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .24252        .21230E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.6976        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94610        .24216        .92581E-01   -.94859    
  25  Prefactor     .94897        .89296E-01    .45629E-01   -.94450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79857e-07
Minuit parameter uncertainties:
  1  1.86244
  2  50.2479
  3  12.6467
  4  2.43288e-05
  5  3.0385e-05
  6  4.35145
  7  31.8717
  8  7.25802
  9  29.6259
  10  6.75812e-07
  11  1.08596e-07
  12  32.5593
  13  46.5468
  14  12.5779
  15  3.35405
  16  50.6784
  17  2.6783
  18  2.18027e-06
  19  33.0195
  20  1.91705
  21  0.00708677
  22  2.3864e-07
  23  3.25937e-05
  24  0.24244
  25  0.0893099
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  1.086e-07  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.490e-01  8.931e-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:  9.461e-01  2.424e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415234/likelihoodResults_479865601_480124801_4FGL_J0424.7+0036_daily_bin928.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) = 7840.51434895
delta logL = -0.00593855964144

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7840.50841014
delta logL = 2.54424776358e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2031       1.0000          .0000       10.000    
     3 'Normalizat'    .94610       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94896       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=   7840.508     FROM MIGRAD    STATUS=FAILED        84 CALLS      235 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    23.302        .76945E-03** at limit **
   2  Index         2.1643        5.1466        .50000        .83567E-04
   3  Normalizat    .94610        .33919E-01    .41007E-03    .59135E-04
   4  Prefactor     .94897        .13571E-01    .16259E-03    .16679E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7840.508     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      371 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10047E-03    23.302        .15569E-03** at limit **
   2  Index         2.1643        5.1466        .42706E-03    .83567E-04
   3  Normalizat    .94610        .33919E-01    .91637E-05    .59135E-04
   4  Prefactor     .94897        .13571E-01    .30679E-05    .16679E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7840.508     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      414 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    126.87        .15389E-03** at limit **
   2  Index         1.9923        7.0453        .50000        .14520E-06
   3  Normalizat    .94610        .97593E-01    .16403E-04   -.48919E-03
   4  Prefactor     .94897        .38859E-01    .32518E-04   -.12282E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99228
  Normalizat = 0.946098
  Prefactor  = 0.948969
 **********
 **   18 **HESSE 
 **********

 FCN=   7840.508     FROM HESSE     STATUS=OK            29 CALLS      443 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0638        .30778E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9923        5.5636        .50000       -.64543    
   3  Normalizat    .94610        .23744        .32806E-05   -.94859    
   4  Prefactor     .94897        .95083E-01    .65035E-05   -.94450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92182e-10
Minuit parameter uncertainties:
  1  2.16763e-06
  2  49.1546
  3  0.237704
  4  0.0950995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415234': 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) = 7840.50840755
delta logL = 2.84408088191e-06

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  2.168e-06  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.992e+00  4.915e+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.490e-01  9.510e-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:  9.461e-01  2.377e-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/415234/cmap_HighResolution_479865601_480124801_4FGL_J0424.7+0036_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.46e-03', job_status='DONE', photon_flux_upper_limit='8.47e-08', time_completed='2021-08-20 14:00:32.228114', job_id='415234', GAL2='0.95', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1629493232.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='928' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:00:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 415234: <4FGL_J0424.7+0036_daily_bin928> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin928 66.1945 0.6028 479865601 480124801 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 :                                   749.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

