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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin981
RA = 66.1945, Dec = 0.6028
tmin = 493603201, tmax = 493862401
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='415309', job_status='RUN', time_executed='2021-08-20 13:46:49.225939', time_epoch_executed='1629492409.23' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415309

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415309/ft1_4FGL_J0424.7+0036_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415309/ft2_4FGL_J0424.7+0036_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415309/ft1_4FGL_J0424.7+0036_daily_bin981.fits outfile=/scratch/kocevski/415309/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin981.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=493603201.0 tmax=493862401.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.33
user 3.26
sys 1.01

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415309/ft1_filtered_4FGL_J0424.7+0036_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/415309/ft2_4FGL_J0424.7+0036_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/415309/ltcube_493603201_493862401_4FGL_J0424.7+0036_daily_bin981.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/415309/ft2_4FGL_J0424.7+0036_daily_bin981.fits
.....................!
real 12.36
user 11.09
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415309/ft1_filtered_4FGL_J0424.7+0036_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/415309/ft2_4FGL_J0424.7+0036_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/415309/ltcube_493603201_493862401_4FGL_J0424.7+0036_daily_bin981.fits outfile=/scratch/kocevski/415309/expmap_493603201_493862401_4FGL_J0424.7+0036_daily_bin981.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/415309/ltcube_493603201_493862401_4FGL_J0424.7+0036_daily_bin981.fits
.....................!
real 192.02
user 186.19
sys 5.49

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/415309/ft1_filtered_4FGL_J0424.7+0036_daily_bin981.fits scfile=/scratch/kocevski/415309/ft2_4FGL_J0424.7+0036_daily_bin981.fits outfile=/scratch/kocevski/415309/cmap_493603201_493862401_4FGL_J0424.7+0036_daily_bin981.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.33
user 0.36
sys 0.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415309/ft1_filtered_4FGL_J0424.7+0036_daily_bin981.fits scfile=/scratch/kocevski/415309/ft2_4FGL_J0424.7+0036_daily_bin981.fits outfile=/scratch/kocevski/415309/cmap_HighResolution_493603201_493862401_4FGL_J0424.7+0036_daily_bin981.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.33
user 0.38
sys 0.93

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415309/ft1_filtered_4FGL_J0424.7+0036_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/415309/ft2_4FGL_J0424.7+0036_daily_bin981.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415309/Model_4FGL_J0424.7+0036_daily_bin981.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/415309/ft1_filtered_4FGL_J0424.7+0036_daily_bin981.fits.....................!
real 134.81
user 131.81
sys 2.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2628       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.2822       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8127       1.0000         .10000E-03   10000.    
     8 'norm      '    14.644       1.0000         .10000E-03   10000.    
     9 'norm      '    21.104       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0041       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5426       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12166E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7982       1.0000         .10000E-03   10000.    
    17 'norm      '    8.3176       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.7896       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43339E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.6820       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97400       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0269       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=   9767.923     FROM MIGRAD    STATUS=CONVERGED     73 CALLS     2386 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2627        2.0467       -.12151E-05    .20338E-03
   2  Prefactor     .10001E-03    4.9506        .21248E-04** at limit **
   3  Prefactor     .10001E-03    5.3400       -.10574E-04** at limit **
   4  norm          .10010E-03    3.2860        .14853E-04** at limit **
   5  Prefactor     .10006E-03    4.2715        .27939E-05** at limit **
   6  norm          6.2822        1.0075       -.30917E-06   -.55251E-03
   7  Prefactor     4.8146        1.0660        .12386E-05   -.92716E-03
   8  norm          14.646        1.0303        .39129E-06   -.52623E-03
   9  norm          21.108        1.3067        .14303E-05   -.47260E-02
  10  norm          1.0044        1.0242        .86665E-06    .22516E-03
  11  Prefactor     1.5424        1.3448        .70112E-07   -.29141E-03
  12  Prefactor     .10002E-03    4.6838        .19150E-04** at limit **
  13  Prefactor     .10082E-03    6.4306        .53299E-05** at limit **
  14  Prefactor     .10018E-03    19.613       -.40548E-04** at limit **
  15  norm          .10000E-03    .59543        .47366E-06** at limit **
  16  Prefactor     7.7979        1.0034       -.14849E-06    .17251E-03
  17  norm          8.3178        2.7073        .32034E-05   -.44393E-03
  18  Prefactor     .10000E-03    1.6422       -.73412E-06** at limit **
  19  Prefactor     .10023E-03    4.1531        .73265E-05** at limit **
  20  norm          2.7896        2.0648        .14333E-05   -.29787E-03
  21  Prefactor     .22452E-03    1.9345       -.20061E-04** at limit **
  22  norm          8.6823        1.2162       -.82092E-07    .24963E-03
  23  Prefactor     .10002E-03    8.0319       -.31000E-04** at limit **
  24  Normalizat    .97400        .23533       -.68769E-05   -.16544E-03
  25  Prefactor     1.0269        .91074E-01    .27121E-05   -.21695E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.26274
  Prefactor  = 0.00010001
  Prefactor  = 0.000100012
  norm       = 0.000100103
  Prefactor  = 0.000100059
  norm       = 6.2822
  Prefactor  = 4.81462
  norm       = 14.6462
  norm       = 21.1084
  norm       = 1.00441
  Prefactor  = 1.54244
  Prefactor  = 0.000100021
  Prefactor  = 0.000100825
  Prefactor  = 0.000100178
  norm       = 0.0001
  Prefactor  = 7.7979
  norm       = 8.31777
  Prefactor  = 0.0001
  Prefactor  = 0.000100227
  norm       = 2.7896
  Prefactor  = 0.00022452
  norm       = 8.68235
  Prefactor  = 0.000100018
  Normalizat = 0.974
  Prefactor  = 1.02689
 **********
 **   18 **HESSE 
 **********

 FCN=   9767.923     FROM HESSE     STATUS=OK           483 CALLS     2869 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2627        2.0566        .56049E-02   -1.5347    
   2  Prefactor     .10001E-03    15.033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    5.5989        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10010E-03    6.1001        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10006E-03    6.7075        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.2822        4.7875        .40038E-02   -1.5207    
   7  Prefactor     4.8146        29.863        .45845E-02   -1.5269    
   8  norm          14.646        11.626        .26167E-02   -1.4942    
   9  norm          21.108        26.098        .21797E-02   -1.4789    
  10  norm          1.0044        1.1653        .22322E-01   -1.5508    
  11  Prefactor     1.5424        1.3989        .85805E-02   -1.5460    
  12  Prefactor     .10002E-03    14.072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10082E-03    19.224        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10018E-03    5.4743        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .58972        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.7979        26.737        .35898E-02   -1.5149    
  17  norm          8.3178        2.7132        .34751E-02   -1.5131    
  18  Prefactor     .10000E-03    1.6372        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10023E-03    12.504        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7896        2.0760        .60903E-02   -1.5374    
  21  Prefactor     .22452E-03    192.68        .10613E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.6823        1.2250        .34010E-02   -1.5119    
  23  Prefactor     .10002E-03    9.6437        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97400        .22728        .97585E-01   -.93907    
  25  Prefactor     1.0269        .84317E-01    .41512E-01   -.91838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79557e-07
Minuit parameter uncertainties:
  1  2.05666
  2  0.000778804
  3  0.000512881
  4  0.0015828
  5  0.00125318
  6  4.78776
  7  23.9992
  8  11.6274
  9  26.1123
  10  1.16535
  11  1.39895
  12  0.00109911
  13  0.00796528
  14  0.00197538
  15  1.01685e-05
  16  26.778
  17  2.71321
  18  1.27485e-05
  19  0.00336944
  20  2.07609
  21  0.310796
  22  1.22499
  23  0.000824415
  24  0.227501
  25  0.0843281
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.542e+00  1.399e+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.027e+00  8.433e-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.740e-01  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.84
Ra Dec: 66.195 0.603
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.52e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.54e-05

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

Saving results to:
/scratch/kocevski/415309/likelihoodResults_493603201_493862401_4FGL_J0424.7+0036_daily_bin981.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) = 9767.4078687
delta logL = 0.515337711677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9767.40772462
delta logL = 0.515481788811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9821       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6592       1.0000          .0000       10.000    
     3 'Normalizat'    .98870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0243       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=   9767.408     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      262 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9838        61.515        .73596E-02    .19915E-04
   2  Index         1.6598        5.5593        .28214       -.17841E-04
   3  Normalizat    .98862        .13221        .96973E-01    .33035E-04
   4  Prefactor     1.0243        .41913E-01    .41740E-01   -.10904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98381
  Index      = 1.65981
  Normalizat = 0.988617
  Prefactor  = 1.02428
 **********
 **   18 **HESSE 
 **********

 FCN=   9767.408     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9838        1.7437        .11687E-03   -1.5426    
   2  Index         1.6598        .50885        .97123E-02   -.73157    
   3  Normalizat    .98862        .22410        .42960E-03   -.93413    
   4  Prefactor     1.0243        .90663E-01    .16974E-03   -.91925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19246e-10
Minuit parameter uncertainties:
  1  1.74379
  2  0.51045
  3  0.224308
  4  0.090677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415309': 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) = 9767.40772361
delta logL = 0.515482800354

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.984e+00  1.744e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.660e+00  5.105e-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.024e+00  9.068e-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.886e-01  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.88
Ra Dec: 66.195 0.603
Photon Index (Free Index): 1.66 +/- 0.51
Photon Flux (Free Index): 2.17e-08 +/- 2.47e-08
Energy Flux (Free Index): 4.04e-05 +/- 5.09e-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/415309/cmap_HighResolution_493603201_493862401_4FGL_J0424.7+0036_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.23e-03', comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='4.04e-05', photon_flux_error='3.52e-08', dlogl='5.15e-01', energy_flux='1.70e-05', photon_flux2='2.17e-08', job_status='DONE', time_completed='2021-08-20 14:00:24.220540', photon_index_error2='0.51', photon_index2='1.66', ts='3.84', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='5.09e-05', EG='0.97', time_epoch_completed='1629493224.22', return_code='0', job_id='415309', GAL2='1.02', EG2='0.99', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='2.47e-08', ts2='4.88', photon_index='2.21' WHERE bin_id='981' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:00:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 415309: <4FGL_J0424.7+0036_daily_bin981> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin981 66.1945 0.6028 493603201 493862401 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 :                                   826.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

