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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin401
RA = 66.1945, Dec = 0.6028
tmin = 343267201, tmax = 343526401
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='412367', job_status='RUN', time_executed='2021-08-20 13:38:49.522740', time_epoch_executed='1629491929.52' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412367

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412367/ft1_4FGL_J0424.7+0036_daily_bin401.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412367/ft2_4FGL_J0424.7+0036_daily_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412367/ft1_4FGL_J0424.7+0036_daily_bin401.fits outfile=/scratch/kocevski/412367/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin401.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=343267201.0 tmax=343526401.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 5.66
user 3.24
sys 2.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412367/ft1_filtered_4FGL_J0424.7+0036_daily_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/412367/ft2_4FGL_J0424.7+0036_daily_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/412367/ltcube_343267201_343526401_4FGL_J0424.7+0036_daily_bin401.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/412367/ft2_4FGL_J0424.7+0036_daily_bin401.fits
.....................!
real 14.55
user 11.75
sys 2.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412367/ft1_filtered_4FGL_J0424.7+0036_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/412367/ft2_4FGL_J0424.7+0036_daily_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/412367/ltcube_343267201_343526401_4FGL_J0424.7+0036_daily_bin401.fits outfile=/scratch/kocevski/412367/expmap_343267201_343526401_4FGL_J0424.7+0036_daily_bin401.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/412367/ltcube_343267201_343526401_4FGL_J0424.7+0036_daily_bin401.fits
.....................!
real 193.40
user 185.51
sys 7.57

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/412367/ft1_filtered_4FGL_J0424.7+0036_daily_bin401.fits scfile=/scratch/kocevski/412367/ft2_4FGL_J0424.7+0036_daily_bin401.fits outfile=/scratch/kocevski/412367/cmap_343267201_343526401_4FGL_J0424.7+0036_daily_bin401.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.67
user 0.37
sys 2.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412367/ft1_filtered_4FGL_J0424.7+0036_daily_bin401.fits scfile=/scratch/kocevski/412367/ft2_4FGL_J0424.7+0036_daily_bin401.fits outfile=/scratch/kocevski/412367/cmap_HighResolution_343267201_343526401_4FGL_J0424.7+0036_daily_bin401.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.70
user 0.38
sys 2.32

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412367/ft1_filtered_4FGL_J0424.7+0036_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/412367/ft2_4FGL_J0424.7+0036_daily_bin401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412367/Model_4FGL_J0424.7+0036_daily_bin401.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/412367/ft1_filtered_4FGL_J0424.7+0036_daily_bin401.fits.....................!
real 113.16
user 108.84
sys 4.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9389       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.418       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5927       1.0000         .10000E-03   10000.    
     4 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9470       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.490       1.0000         .10000E-03   10000.    
     8 'norm      '    11.004       1.0000         .10000E-03   10000.    
     9 'norm      '    37.164       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3145       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .57369       1.0000         .10000E-03   10000.    
    13 'Prefactor '    99.558       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.997       1.0000         .10000E-03   10000.    
    15 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.4763       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.742       1.0000         .10000E-03   10000.    
    20 'norm      '    2.6264       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.122       1.0000         .10000E-03   10000.    
    22 'norm      '    .28100       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .46609       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0284       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=   7208.811     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     2526 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9400        2.7429       -.52398E-07    .31666E-03
   2  Prefactor     16.411        1.9779       -.45106E-05    .58663E-03
   3  Prefactor     1.5978        1.2339        .50518E-05   -.29382E-03
   4  norm          .10000E-03    10.076       -.68260E-05** at limit **
   5  Prefactor     .10133E-03    12.159       -.25615E-04** at limit **
   6  norm          1.9470        5.7978        .69447E-05    .12265E-03
   7  Prefactor     29.466        13.106       -.28312E-04   -.24404E-02
   8  norm          11.017        3.8217        .11973E-04    .77293E-02
   9  norm          37.124        18.346       -.35142E-04    .12965E-02
  10  norm          3.3138        1.6327        .69925E-06   -.78641E-03
  11  Prefactor     .10000E-03    2.9856       -.21425E-05** at limit **
  12  Prefactor     .74450        97.517       -.13601E-04    .64675E-05
  13  Prefactor     99.525        13.151       -.15317E-04    .16655E-01
  14  Prefactor     20.999        1.4066        .21820E-05    .49895E-02
  15  norm          .10000E-03    1.4289        .24799E-06** at limit **
  16  Prefactor     .10136E-03    12.087        .23234E-04** at limit **
  17  norm          8.4765        2.9601        .84334E-06    .36636E-03
  18  Prefactor     .10000E-03    2.9812       -.94247E-06** at limit **
  19  Prefactor     29.748        2.6579        .52102E-05    .11179E-02
  20  norm          2.6271        1.9322        .16719E-06    .45724E-03
  21  Prefactor     26.133        4.4687        .98687E-05   -.23610E-03
  22  norm          .28110        .35147       -.28870E-06   -.75777E-03
  23  Prefactor     .10000E-03    12.968        .54651E-05** at limit **
  24  Normalizat    .46574        .25579       -.32752E-04    .12084E-03
  25  Prefactor     1.0284        .99717E-01    .77093E-05    .52069E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.93998
  Prefactor  = 16.4107
  Prefactor  = 1.59778
  norm       = 0.000100001
  Prefactor  = 0.000101333
  norm       = 1.94698
  Prefactor  = 29.4662
  norm       = 11.0169
  norm       = 37.1243
  norm       = 3.31383
  Prefactor  = 0.0001
  Prefactor  = 0.744497
  Prefactor  = 99.5251
  Prefactor  = 20.9988
  norm       = 0.0001
  Prefactor  = 0.000101361
  norm       = 8.47646
  Prefactor  = 0.0001
  Prefactor  = 29.7482
  norm       = 2.62707
  Prefactor  = 26.1325
  norm       = 0.281102
  Prefactor  = 0.000100001
  Normalizat = 0.465742
  Prefactor  = 1.02837
 **********
 **   18 **HESSE 
 **********

 FCN=   7208.811     FROM HESSE     STATUS=OK           493 CALLS     3019 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9400        2.7607        .31776E-02   -1.5077    
   2  Prefactor     16.411        41.548        .24711E-02   -1.4898    
   3  Prefactor     1.5978        28.394        .84042E-02   -1.5455    
   4  norm          .10000E-03    10.045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10133E-03    21.557        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9470        5.9336        .74364E-02   -1.5429    
   7  Prefactor     29.466        24.926        .18445E-02   -1.4622    
   8  norm          11.017        14.430        .30194E-02   -1.5044    
   9  norm          37.124        30.391        .16436E-02   -1.4489    
  10  norm          3.3138        1.7542        .55589E-02   -1.5344    
  11  Prefactor     .10000E-03    1.8233        .32352E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .74450        12.779        .11568       -1.5535    
  13  Prefactor     99.525        65.969        .10073E-02   -1.3709    
  14  Prefactor     20.999        12.433        .21852E-02   -1.4791    
  15  norm          .10000E-03    1.3953        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10136E-03    22.148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.4765        2.9994        .34423E-02   -1.5126    
  18  Prefactor     .10000E-03    2.9477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.748        44.172        .18366E-02   -1.4617    
  20  norm          2.6271        1.9517        .62911E-02   -1.5384    
  21  Prefactor     26.133        43.815        .19595E-02   -1.4685    
  22  norm          .28110        .41055        .10341E-01   -1.5602    
  23  Prefactor     .10000E-03    12.924        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .46574        .29032        .12350       -1.1403    
  25  Prefactor     1.0284        .10073        .41390E-01   -.91790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7822e-06
Minuit parameter uncertainties:
  1  2.76077
  2  41.6215
  3  13.4782
  4  0.000146096
  5  0.0107248
  6  5.93537
  7  24.9344
  8  14.4344
  9  30.4035
  10  1.75426
  11  1.36065e-05
  12  6.16995
  13  66.0175
  14  12.4341
  15  1.09475e-06
  16  0.0109855
  17  2.99945
  18  4.18512e-06
  19  44.2206
  20  1.95177
  21  43.8686
  22  0.41055
  23  0.00019132
  24  0.291268
  25  0.100752
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  1.361e-05  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.028e+00  1.008e-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:  4.657e-01  2.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/412367/likelihoodResults_343267201_343526401_4FGL_J0424.7+0036_daily_bin401.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) = 7208.81212386
delta logL = -0.00160314231289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7208.81052018
delta logL = 5.35022991244e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20981E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3183       1.0000          .0000       10.000    
     3 'Normalizat'    .46595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0283       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=   7208.072     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      269 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89252E-01    1.0948        .47924E-02    .33641E-02
   2  Index         4.0556        2.3037        .96546E-01    .13251E-03
   3  Normalizat    .38138        .53178E-01    .13538       -.77246E-04
   4  Prefactor     1.0447        .21793E-01    .41395E-01   -.52985E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0892523
  Index      = 4.05565
  Normalizat = 0.381376
  Prefactor  = 1.04466
 **********
 **   18 **HESSE 
 **********

 FCN=   7208.072     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      300 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89252E-01    3.4103        .21624E-04   -1.5648    
   2  Index         4.0556        6.9145        .50466E-02   -.19001    
   3  Normalizat    .38138        .21954        .59971E-03   -1.1828    
   4  Prefactor     1.0447        .88735E-01    .15191E-03   -.91255    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03447e-09
Minuit parameter uncertainties:
  1  1.10286
  2  5.29554
  3  0.220035
  4  0.0887478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412367': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7208.07178673
delta logL = 0.738733985999

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  8.925e-02  1.103e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  4.056e+00  5.296e+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:  1.045e+00  8.875e-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:  3.814e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 66.195 0.603
Photon Index (Free Index): 4.06 +/- 5.30
Photon Flux (Free Index): 1.05e-07 +/- 9.85e-08
Energy Flux (Free Index): 1.55e-05 +/- 2.31e-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/412367/cmap_HighResolution_343267201_343526401_4FGL_J0424.7+0036_daily_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.31e-03', comment='SUCCESS', energy_flux2='1.55e-05', dlogl='7.39e-01', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-08-20 13:51:10.030140', photon_index_error2='5.30', photon_index2='4.06', ts='-0.00', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='2.31e-05', EG='0.47', time_epoch_completed='1629492670.03', return_code='0', job_id='412367', GAL2='1.04', EG2='0.38', return_code2='102', photon_flux_error2='9.85e-08', ts2='1.59', photon_index='2.21' WHERE bin_id='401' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:51:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 412367: <4FGL_J0424.7+0036_daily_bin401> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin401> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 13:35:58 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:35:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 13:35:59 2021
Terminated at Fri Aug 20 13:51:11 2021
Results reported at Fri Aug 20 13:51:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin401 66.1945 0.6028 343267201 343526401 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 :                                   772.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

