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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin757
RA = 66.1945, Dec = 0.6028
tmin = 435542401, tmax = 435801601
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='414983', job_status='RUN', time_executed='2021-08-20 13:48:25.729970', time_epoch_executed='1629492505.73' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414983

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414983/ft1_4FGL_J0424.7+0036_daily_bin757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414983/ft2_4FGL_J0424.7+0036_daily_bin757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414983/ft1_4FGL_J0424.7+0036_daily_bin757.fits outfile=/scratch/kocevski/414983/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin757.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=435542401.0 tmax=435801601.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.87
user 5.30
sys 2.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/414983/ft2_4FGL_J0424.7+0036_daily_bin757.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/414983/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin757.fits evtable="EVENTS" outfile="/scratch/kocevski/414983/ft1_filtered_4FGL_J0424.7+0036_daily_bin757.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 2.41
user 0.32
sys 2.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414983/ft1_filtered_4FGL_J0424.7+0036_daily_bin757.fits" evtable="EVENTS" scfile=/scratch/kocevski/414983/ft2_4FGL_J0424.7+0036_daily_bin757.fits sctable="SC_DATA" outfile=/scratch/kocevski/414983/ltcube_435542401_435801601_4FGL_J0424.7+0036_daily_bin757.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/414983/ft2_4FGL_J0424.7+0036_daily_bin757.fits
.....................!
real 13.94
user 11.45
sys 2.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414983/ft1_filtered_4FGL_J0424.7+0036_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/414983/ft2_4FGL_J0424.7+0036_daily_bin757.fits sctable="SC_DATA" expcube=/scratch/kocevski/414983/ltcube_435542401_435801601_4FGL_J0424.7+0036_daily_bin757.fits outfile=/scratch/kocevski/414983/expmap_435542401_435801601_4FGL_J0424.7+0036_daily_bin757.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/414983/ltcube_435542401_435801601_4FGL_J0424.7+0036_daily_bin757.fits
.....................!
real 192.43
user 184.83
sys 7.20

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/414983/ft1_filtered_4FGL_J0424.7+0036_daily_bin757.fits scfile=/scratch/kocevski/414983/ft2_4FGL_J0424.7+0036_daily_bin757.fits outfile=/scratch/kocevski/414983/cmap_435542401_435801601_4FGL_J0424.7+0036_daily_bin757.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 2.40
user 0.37
sys 2.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414983/ft1_filtered_4FGL_J0424.7+0036_daily_bin757.fits scfile=/scratch/kocevski/414983/ft2_4FGL_J0424.7+0036_daily_bin757.fits outfile=/scratch/kocevski/414983/cmap_HighResolution_435542401_435801601_4FGL_J0424.7+0036_daily_bin757.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 2.47
user 0.39
sys 2.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/414983/ft1_filtered_4FGL_J0424.7+0036_daily_bin757.fits evtable="EVENTS" scfile=/scratch/kocevski/414983/ft2_4FGL_J0424.7+0036_daily_bin757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/414983/Model_4FGL_J0424.7+0036_daily_bin757.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/414983/ft1_filtered_4FGL_J0424.7+0036_daily_bin757.fits.....................!
real 101.09
user 97.06
sys 3.65

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.8967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3061       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12108E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7161       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7630       1.0000         .10000E-03   10000.    
     8 'norm      '    10.740       1.0000         .10000E-03   10000.    
     9 'norm      '    9.0413       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.012       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.187       1.0000         .10000E-03   10000.    
    15 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.2610       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5828       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.6187       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25773E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5376       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79711       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99549       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=   6764.734     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2569 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8966        3.1195       -.13092E-07   -.54874E-04
   2  Prefactor     5.3201        122.95        .16917E-04   -.73908E-04
   3  Prefactor     .10000E-03    73.400       -.65672E-05** at limit **
   4  norm          .10000E-03    6.0751       -.28103E-07** at limit **
   5  Prefactor     5.7326        30.577       -.74866E-05    .73830E-04
   6  norm          .10000E-03    2.6563        .27525E-07** at limit **
   7  Prefactor     5.7726        25.769       -.12571E-06   -.26100E-04
   8  norm          10.742        14.379       -.90495E-06    .41124E-04
   9  norm          9.0387        28.879        .74199E-05   -.17386E-03
  10  norm          .10000E-03    .42452       -.57516E-08** at limit **
  11  Prefactor     .10000E-03    .71930        .29414E-07** at limit **
  12  Prefactor     10.063        22.026       -.13050E-04   -.12688E-03
  13  Prefactor     .10000E-03    9.6721       -.20778E-07** at limit **
  14  Prefactor     27.189        13.306        .14191E-06   -.74921E-04
  15  norm          .10001E-03    1.5030        .18509E-05** at limit **
  16  Prefactor     .10000E-03    18.808       -.79937E-08** at limit **
  17  norm          6.2612        2.9426       -.83697E-08   -.44735E-03
  18  Prefactor     5.5830        5.8144       -.17068E-08   -.36131E-03
  19  Prefactor     .10000E-03    41.165        .38646E-06** at limit **
  20  norm          7.6185        2.9189       -.33979E-07   -.12730E-03
  21  Prefactor     .10134E-03    32.131       -.13930E-05** at limit **
  22  norm          1.5374        .86025       -.10166E-08    .33061E-03
  23  Prefactor     .10000E-03    20.553       -.17387E-06** at limit **
  24  Normalizat    .79706        .27299        .10046E-05   -.22089E-03
  25  Prefactor     .99555        .96776E-01   -.13531E-06   -.55871E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.89658
  Prefactor  = 5.32011
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.73257
  norm       = 0.0001
  Prefactor  = 5.77258
  norm       = 10.7422
  norm       = 9.03872
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0629
  Prefactor  = 0.0001
  Prefactor  = 27.1893
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 6.26119
  Prefactor  = 5.58305
  Prefactor  = 0.0001
  norm       = 7.61848
  Prefactor  = 0.000101336
  norm       = 1.53743
  Prefactor  = 0.0001
  Normalizat = 0.797055
  Prefactor  = 0.995548
 **********
 **   18 **HESSE 
 **********

 FCN=   6764.734     FROM HESSE     STATUS=OK           439 CALLS     3008 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8966        3.1197        .78366E-04   -1.5079    
   2  Prefactor     5.3201        120.32        .17448E-03   -1.5247    
   3  Prefactor     .10000E-03    75.497        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.0755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7326        30.020        .16800E-03   -1.5229    
   6  norm          .10000E-03    2.7202        .13087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7726        25.661        .16731E-03   -1.5227    
   8  norm          10.742        14.386        .12225E-03   -1.5052    
   9  norm          9.0387        28.458        .13329E-03   -1.5107    
  10  norm          .10000E-03    .44283        .10450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .73713        .13581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.063        22.277        .12663E-03   -1.5073    
  13  Prefactor     .10000E-03    9.6731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.189        13.332        .76833E-04   -1.4665    
  15  norm          .10001E-03    4.5362        .18478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.2612        2.9443        .91205E-04   -1.5207    
  18  Prefactor     5.5830        5.8013        .17003E-03   -1.5235    
  19  Prefactor     .10000E-03    41.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.6185        2.9192        .82508E-04   -1.5156    
  21  Prefactor     .10134E-03    36.122        .11962       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5374        .85611        .50996E-04   -1.5460    
  23  Prefactor     .10000E-03    20.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .79706        .29853        .44386E-03   -1.0018    
  25  Prefactor     .99555        .10800        .15942E-03   -.92878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8414e-09
Minuit parameter uncertainties:
  1  3.11975
  2  50.7171
  3  0.000586685
  4  1.71893e-06
  5  26.2573
  6  3.60005e-07
  7  24.359
  8  14.3907
  9  28.5009
  10  4.56241e-07
  11  3.56705e-07
  12  22.2952
  13  3.21226e-06
  14  13.3334
  15  0.000378448
  16  1.02125e-05
  17  2.94437
  18  5.80186
  19  4.74819e-06
  20  2.91927
  21  0.0139012
  22  0.856114
  23  1.62095e-05
  24  0.299142
  25  0.108024
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  3.567e-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.955e-01  1.080e-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:  7.971e-01  2.991e-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: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414983/likelihoodResults_435542401_435801601_4FGL_J0424.7+0036_daily_bin757.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) = 6764.74081269
delta logL = -0.00644136146275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6764.73436486
delta logL = 6.46978151053e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1642       1.0000          .0000       10.000    
     3 'Normalizat'    .79708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99554       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=   6764.727     FROM MIGRAD    STATUS=CONVERGED    222 CALLS      377 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10855        1.9341        .15151E-02   -.50233E-03
   2  Index         1.2208        1.6536        .29696E-01   -.18499E-04
   3  Normalizat    .79717        .26133        .44381E-03    .88990E-04
   4  Prefactor     .99508        .10495        .15945E-03    .42372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.108547
  Index      = 1.22077
  Normalizat = 0.797169
  Prefactor  = 0.995084
 **********
 **   18 **HESSE 
 **********

 FCN=   6764.727     FROM HESSE     STATUS=OK            27 CALLS      404 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10855        2.0375        .60605E-04   -1.5774    
   2  Index         1.2208        1.6947        .11878E-02   -.85695    
   3  Normalizat    .79717        .26142        .17753E-04   -1.0017    
   4  Prefactor     .99508        .10499        .31890E-04   -.92894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34944e-10
Minuit parameter uncertainties:
  1  0.940158
  2  1.7813
  3  0.261831
  4  0.10501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414983': 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) = 6764.72666486
delta logL = 0.00770647411355

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.085e-01  9.402e-01  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.221e+00  1.781e+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:  9.951e-01  1.050e-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:  7.972e-01  2.618e-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/414983/cmap_HighResolution_435542401_435801601_4FGL_J0424.7+0036_daily_bin757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-08-20 14:00:28.725459', job_id='414983', GAL2='1.00', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1629493228.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='7.71e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='757' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:00:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 414983: <4FGL_J0424.7+0036_daily_bin757> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin757 66.1945 0.6028 435542401 435801601 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 :                                   750.08 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             271.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            910 sec.

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

