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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin796
RA = 66.1945, Dec = 0.6028
tmin = 445651201, tmax = 445910401
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='415039', job_status='RUN', time_executed='2021-08-20 13:45:54.994869', time_epoch_executed='1629492354.99' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='796'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415039

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415039/ft1_4FGL_J0424.7+0036_daily_bin796.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415039/ft2_4FGL_J0424.7+0036_daily_bin796.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415039/ft1_4FGL_J0424.7+0036_daily_bin796.fits outfile=/scratch/kocevski/415039/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin796.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=445651201.0 tmax=445910401.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.52
user 3.25
sys 1.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415039/ft1_filtered_4FGL_J0424.7+0036_daily_bin796.fits" evtable="EVENTS" scfile=/scratch/kocevski/415039/ft2_4FGL_J0424.7+0036_daily_bin796.fits sctable="SC_DATA" outfile=/scratch/kocevski/415039/ltcube_445651201_445910401_4FGL_J0424.7+0036_daily_bin796.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/415039/ft2_4FGL_J0424.7+0036_daily_bin796.fits
.....................!
real 13.51
user 11.83
sys 1.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415039/ft1_filtered_4FGL_J0424.7+0036_daily_bin796.fits evtable="EVENTS" scfile=/scratch/kocevski/415039/ft2_4FGL_J0424.7+0036_daily_bin796.fits sctable="SC_DATA" expcube=/scratch/kocevski/415039/ltcube_445651201_445910401_4FGL_J0424.7+0036_daily_bin796.fits outfile=/scratch/kocevski/415039/expmap_445651201_445910401_4FGL_J0424.7+0036_daily_bin796.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/415039/ltcube_445651201_445910401_4FGL_J0424.7+0036_daily_bin796.fits
.....................!
real 190.97
user 185.09
sys 5.39

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/415039/ft1_filtered_4FGL_J0424.7+0036_daily_bin796.fits scfile=/scratch/kocevski/415039/ft2_4FGL_J0424.7+0036_daily_bin796.fits outfile=/scratch/kocevski/415039/cmap_445651201_445910401_4FGL_J0424.7+0036_daily_bin796.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.63
user 0.38
sys 1.23

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415039/ft1_filtered_4FGL_J0424.7+0036_daily_bin796.fits scfile=/scratch/kocevski/415039/ft2_4FGL_J0424.7+0036_daily_bin796.fits outfile=/scratch/kocevski/415039/cmap_HighResolution_445651201_445910401_4FGL_J0424.7+0036_daily_bin796.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.63
user 0.38
sys 1.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415039/ft1_filtered_4FGL_J0424.7+0036_daily_bin796.fits evtable="EVENTS" scfile=/scratch/kocevski/415039/ft2_4FGL_J0424.7+0036_daily_bin796.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415039/Model_4FGL_J0424.7+0036_daily_bin796.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/415039/ft1_filtered_4FGL_J0424.7+0036_daily_bin796.fits.....................!
real 155.42
user 152.42
sys 2.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21778       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.932       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7433       1.0000         .10000E-03   10000.    
     4 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.566       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.2420       1.0000         .10000E-03   10000.    
     8 'norm      '    20.794       1.0000         .10000E-03   10000.    
     9 'norm      '    .17040E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2587       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.842       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58374E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3040       1.0000         .10000E-03   10000.    
    15 'norm      '    .14367E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.616       1.0000         .10000E-03   10000.    
    17 'norm      '    6.8822       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .69359E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.6226       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.242       1.0000         .10000E-03   10000.    
    22 'norm      '    15.550       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11539E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84556       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0222       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=   10532.72     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2592 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21789        .86538        .13763E-06   -.24081E-03
   2  Prefactor     17.935        49.821       -.48795E-06    .73407E-05
   3  Prefactor     9.7419        10.630       -.12838E-06    .23530E-04
   4  norm          .10000E-03    5.4819        .97085E-08** at limit **
   5  Prefactor     24.559        25.141        .51421E-06    .53570E-04
   6  norm          .10000E-03    1.4403        .25239E-08** at limit **
   7  Prefactor     1.2336        209.96        .24846E-04    .21228E-04
   8  norm          20.796        11.778       -.11449E-08    .11611E-04
   9  norm          .10000E-03    70.712       -.91870E-05** at limit **
  10  norm          .10000E-03    .37772        .13866E-07** at limit **
  11  Prefactor     1.2597        1.2080       -.12653E-06   -.21334E-03
  12  Prefactor     11.813        24.096        .11483E-05    .33390E-03
  13  Prefactor     .10000E-03    126.95        .12358E-04** at limit **
  14  Prefactor     6.3062        8.9999       -.39721E-06   -.11770E-04
  15  norm          .10000E-03    1.1806       -.57151E-06** at limit **
  16  Prefactor     13.599        49.229        .37206E-05    .47678E-04
  17  norm          6.8827        2.4632       -.11463E-07    .77606E-04
  18  Prefactor     .10004E-03    4.8700       -.15196E-05** at limit **
  19  Prefactor     .10000E-03    21.209       -.56267E-06** at limit **
  20  norm          2.6219        2.0130        .50265E-08   -.62602E-04
  21  Prefactor     17.251        39.564       -.11153E-05    .51880E-04
  22  norm          15.549        1.6665        .27752E-07    .97449E-03
  23  Prefactor     .10000E-03    39.717        .20664E-05** at limit **
  24  Normalizat    .84570        .23156       -.13706E-06    .21161E-03
  25  Prefactor     1.0221        .85586E-01   -.12286E-06    .75341E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.217891
  Prefactor  = 17.9349
  Prefactor  = 9.74191
  norm       = 0.0001
  Prefactor  = 24.5585
  norm       = 0.0001
  Prefactor  = 1.23359
  norm       = 20.796
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.25971
  Prefactor  = 11.8134
  Prefactor  = 0.000100004
  Prefactor  = 6.30622
  norm       = 0.0001
  Prefactor  = 13.599
  norm       = 6.88267
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  norm       = 2.62188
  Prefactor  = 17.2506
  norm       = 15.5491
  Prefactor  = 0.0001
  Normalizat = 0.8457
  Prefactor  = 1.02214
 **********
 **   18 **HESSE 
 **********

 FCN=   10532.72     FROM HESSE     STATUS=OK           439 CALLS     3031 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21789        3.3223        .17826E-02   -1.5615    
   2  Prefactor     17.935        49.811        .94580E-04   -1.4861    
   3  Prefactor     9.7419        10.632        .12838E-03   -1.5084    
   4  norm          .10000E-03    5.4837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.559        25.094        .80820E-04   -1.4716    
   6  norm          .10000E-03    1.4453        .12024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.2336        213.56        .20111E-02   -1.5486    
   8  norm          20.796        11.805        .87835E-04   -1.4796    
   9  norm          .10000E-03    71.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .59137        .12074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2597        1.1928        .10527E-03   -1.5483    
  12  Prefactor     11.813        22.612        .11641E-03   -1.5020    
  13  Prefactor     .10000E-03    125.19        .37962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3062        8.9621        .15987E-03   -1.5206    
  15  norm          .10000E-03    3.3583        .19658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.599        49.348        .10855E-03   -1.4970    
  17  norm          6.8827        2.4634        .91708E-04   -1.5183    
  18  Prefactor     .10004E-03    23.949        .40999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6219        2.0059        .12036E-03   -1.5384    
  21  Prefactor     17.251        39.492        .96455E-04   -1.4877    
  22  norm          15.549        1.6698        .38720E-04   -1.4919    
  23  Prefactor     .10000E-03    39.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84570        .24974        .46716E-03   -.98395    
  25  Prefactor     1.0221        .95084E-01    .17281E-03   -.91995    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13247e-08
Minuit parameter uncertainties:
  1  1.70136
  2  49.9272
  3  10.6339
  4  3.75726e-07
  5  25.1045
  6  5.21232e-07
  7  32.5792
  8  11.8064
  9  0.000101813
  10  1.30129e-06
  11  1.19282
  12  22.6281
  13  0.00134553
  14  8.964
  15  1.51469e-06
  16  49.4965
  17  2.46339
  18  0.00189878
  19  2.06883e-05
  20  2.00599
  21  39.5518
  22  1.6698
  23  3.84872e-05
  24  0.250076
  25  0.0950996
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.260e+00  1.193e+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:  1.022e+00  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:  8.457e-01  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.72
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.32e-05

TS (Fixed Index): 2.72
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415039/likelihoodResults_445651201_445910401_4FGL_J0424.7+0036_daily_bin796.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) = 10532.6238393
delta logL = 0.0964212985764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10532.6210165
delta logL = 0.0992440776936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5180       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9225       1.0000          .0000       10.000    
     3 'Normalizat'    .85287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0209       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=   10532.62     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5183        38.619        .86721E-02    .27008E-03
   2  Index         1.9217        5.8653        .26255        .49884E-04
   3  Normalizat    .85282        .94638E-01    .10499        .28840E-03
   4  Prefactor     1.0209        .30494E-01    .42052E-01    .75819E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51828
  Index      = 1.92165
  Normalizat = 0.852817
  Prefactor  = 1.02088
 **********
 **   18 **HESSE 
 **********

 FCN=   10532.62     FROM HESSE     STATUS=OK            31 CALLS      265 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5183        1.4613        .11513E-03   -1.5462    
   2  Index         1.9217        .62768        .10938E-01   -.66324    
   3  Normalizat    .85282        .22074        .46541E-03   -.98138    
   4  Prefactor     1.0209        .89614E-01    .17290E-03   -.92037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85397e-10
Minuit parameter uncertainties:
  1  1.46134
  2  0.630365
  3  0.220975
  4  0.089627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415039': 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) = 10532.6210149
delta logL = 0.0992456871609

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.518e+00  1.461e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.922e+00  6.304e-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:  1.021e+00  8.963e-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:  8.528e-01  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.92
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.92 +/- 0.63
Photon Flux (Free Index): 2.36e-08 +/- 2.79e-08
Energy Flux (Free Index): 2.00e-05 +/- 2.70e-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/415039/cmap_HighResolution_445651201_445910401_4FGL_J0424.7+0036_daily_bin796.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='2.00e-05', photon_flux_error='3.00e-08', dlogl='9.92e-02', energy_flux='1.39e-05', photon_flux2='2.36e-08', job_status='DONE', time_completed='2021-08-20 14:00:55.080827', photon_index_error2='0.63', photon_index2='1.92', ts='2.72', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='2.70e-05', EG='0.85', time_epoch_completed='1629493255.08', return_code='0', job_id='415039', GAL2='1.02', EG2='0.85', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='2.79e-08', ts2='2.92', photon_index='2.21' WHERE bin_id='796' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:00:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 415039: <4FGL_J0424.7+0036_daily_bin796> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin796 66.1945 0.6028 445651201 445910401 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 :                                   916.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

