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


Performing analysis on: 4FGL_J0721.3+0405_daily_bin582
RA = 110.348, Dec = 4.0914
tmin = 390182401, tmax = 390441601
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='278460', job_status='RUN', time_executed='2021-08-27 03:24:38.348722', time_epoch_executed='1630059878.35' WHERE source_name='4FGL J0721.3+0405' and cadence='daily' and bin_id='582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278460

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278460/ft1_4FGL_J0721.3+0405_daily_bin582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278460/ft2_4FGL_J0721.3+0405_daily_bin582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278460/ft1_4FGL_J0721.3+0405_daily_bin582.fits outfile=/scratch/kocevski/278460/ft1_filteredMKT_4FGL_J0721.3+0405_daily_bin582.fits ra=110.348 dec=4.0914 rad=12.0 tmin=390182401.0 tmax=390441601.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.48
user 3.89
sys 0.56

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/278460/ft2_4FGL_J0721.3+0405_daily_bin582.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/278460/ft2_4FGL_J0721.3+0405_daily_bin582.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/278460/ft1_filteredMKT_4FGL_J0721.3+0405_daily_bin582.fits evtable="EVENTS" outfile="/scratch/kocevski/278460/ft1_filtered_4FGL_J0721.3+0405_daily_bin582.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 0.84
user 0.31
sys 0.51

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278460/ft1_filtered_4FGL_J0721.3+0405_daily_bin582.fits" evtable="EVENTS" scfile=/scratch/kocevski/278460/ft2_4FGL_J0721.3+0405_daily_bin582.fits sctable="SC_DATA" outfile=/scratch/kocevski/278460/ltcube_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.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/278460/ft2_4FGL_J0721.3+0405_daily_bin582.fits
.....................!
real 12.16
user 11.38
sys 0.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278460/ft1_filtered_4FGL_J0721.3+0405_daily_bin582.fits evtable="EVENTS" scfile=/scratch/kocevski/278460/ft2_4FGL_J0721.3+0405_daily_bin582.fits sctable="SC_DATA" expcube=/scratch/kocevski/278460/ltcube_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.fits outfile=/scratch/kocevski/278460/expmap_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.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/278460/ltcube_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.fits
.....................!
real 191.75
user 185.62
sys 5.76

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
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 161 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0721.3+0405 @ 110.348 4.0914

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/278460/ft1_filtered_4FGL_J0721.3+0405_daily_bin582.fits scfile=/scratch/kocevski/278460/ft2_4FGL_J0721.3+0405_daily_bin582.fits outfile=/scratch/kocevski/278460/cmap_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.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=110.348 yref=4.0914 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 0.88
user 0.36
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278460/ft1_filtered_4FGL_J0721.3+0405_daily_bin582.fits scfile=/scratch/kocevski/278460/ft2_4FGL_J0721.3+0405_daily_bin582.fits outfile=/scratch/kocevski/278460/cmap_HighResolution_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.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=110.348 yref=4.0914 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 0.89
user 0.36
sys 0.52

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/278460/ft1_filtered_4FGL_J0721.3+0405_daily_bin582.fits evtable="EVENTS" scfile=/scratch/kocevski/278460/ft2_4FGL_J0721.3+0405_daily_bin582.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/278460/Model_4FGL_J0721.3+0405_daily_bin582.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/278460/ft1_filtered_4FGL_J0721.3+0405_daily_bin582.fits.....................!
real 134.69
user 132.56
sys 1.77

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/278460/ft1_filtered_4FGL_J0721.3+0405_daily_bin582.fits', '/scratch/kocevski/278460/ft2_4FGL_J0721.3+0405_daily_bin582.fits', expMap='/scratch/kocevski/278460/expmap_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.fits', expCube='/scratch/kocevski/278460/ltcube_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/278460/Model_4FGL_J0721.3+0405_daily_bin582.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0721.3+0405'

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  1.260e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
222        alpha:  2.436e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
223         beta:  1.285e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
224           Eb:  4.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/278460/ft1_filtered_4FGL_J0721.3+0405_daily_bin582.fits
Spacecraft file(s): /scratch/kocevski/278460/ft2_4FGL_J0721.3+0405_daily_bin582.fits
Exposure map: /scratch/kocevski/278460/expmap_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.fits
Exposure cube: /scratch/kocevski/278460/ltcube_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/278460/Model_4FGL_J0721.3+0405_daily_bin582.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) = 8050.28286441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7610       1.0000         .10000E-03   10000.    
     2 'norm      '    32.225       1.0000         .10000E-03   10000.    
     3 'norm      '    20.246       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .25154E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.7306       1.0000         .10000E-03   10000.    
     8 'norm      '    2.2301       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.0519       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6427       1.0000         .10000E-03   10000.    
    16 'norm      '    .10887E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7390       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0640       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8050.264     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2086 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7382        41.480       -.39788E-05   -.72483E-04
   2  norm          32.219        15.823       -.12527E-05    .31162E-03
   3  norm          20.245        13.702        .59088E-06   -.36481E-04
   4  norm          .10000E-03    7.9646        .81000E-09** at limit **
   5  Prefactor     .10000E-03    39.436        .66428E-05** at limit **
   6  norm          .10009E-03    5.2407       -.11187E-05** at limit **
   7  norm          2.7308        3.1096       -.65294E-06   -.45426E-03
   8  norm          2.2302        1.7318       -.21337E-06   -.37324E-03
   9  Prefactor     .10003E-03    86.624       -.29867E-04** at limit **
  10  Prefactor     8.6147        11.863        .77443E-06   -.49027E-04
  11  Prefactor     .10000E-03    18.197       -.89605E-06** at limit **
  12  Prefactor     .10000E-03    16.340        .36167E-05** at limit **
  13  norm          4.0518        2.8153       -.30297E-06   -.55178E-04
  14  Prefactor     .10000E-03    16.094       -.27767E-05** at limit **
  15  Prefactor     2.6410        5.5270       -.64706E-05   -.34507E-03
  16  norm          .10002E-03    76.167        .25295E-04** at limit **
  17  Prefactor     4.7521        22.432        .21979E-05   -.11038E-03
  18  Prefactor     .10000E-03    38.160       -.54173E-05** at limit **
  19  Normalizat    1.0640        .28062        .60376E-05   -.27359E-04
  20  Prefactor     .89485        .64906E-01   -.27458E-06    .45356E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73824
  norm       = 32.2186
  norm       = 20.2451
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100091
  norm       = 2.7308
  norm       = 2.23016
  Prefactor  = 0.000100029
  Prefactor  = 8.61468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.05182
  Prefactor  = 0.0001
  Prefactor  = 2.64103
  norm       = 0.000100023
  Prefactor  = 4.75211
  Prefactor  = 0.000100001
  Normalizat = 1.06395
  Prefactor  = 0.894848
 **********
 **   18 **HESSE 
 **********

 FCN=   8050.264     FROM HESSE     STATUS=OK           295 CALLS     2381 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7382        40.296        .31575E-03   -1.5444    
   2  norm          32.219        15.435        .70585E-04   -1.4572    
   3  norm          20.245        13.742        .89016E-04   -1.4808    
   4  norm          .10000E-03    7.9675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10009E-03    45.978        .39328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.7308        3.1149        .15690E-03   -1.5377    
   8  norm          2.2302        1.7303        .97115E-04   -1.5409    
   9  Prefactor     .10003E-03    85.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6147        11.849        .13659E-03   -1.5121    
  11  Prefactor     .10000E-03    18.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.0518        2.8170        .11912E-03   -1.5305    
  14  Prefactor     .10000E-03    16.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6410        5.7181        .25080E-03   -1.5383    
  16  norm          .10002E-03    75.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7521        21.833        .18483E-03   -1.5272    
  18  Prefactor     .10000E-03    38.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0640        .29485        .52036E-03   -.90918    
  20  Prefactor     .89485        .67981E-01    .14212E-03   -.96321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10238e-09
Minuit parameter uncertainties:
  1  16.7507
  2  15.4364
  3  13.7443
  4  2.25008e-06
  5  0.000485665
  6  0.00409777
  7  3.11509
  8  1.73034
  9  0.00313105
  10  11.8524
  11  3.34528e-06
  12  0.000167804
  13  2.81705
  14  0.00011537
  15  5.71932
  16  0.00265497
  17  20.384
  18  0.000310856
  19  0.295303
  20  0.0679874
Done.

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

Extracting fit parameters...

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  2.731e+00  3.115e+00  1.000e-04  1.000e+04 ( 1.000e-11)
222        alpha:  2.436e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
223         beta:  1.285e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
224           Eb:  4.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  8.948e-01  6.799e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.064e+00  2.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 110.348 4.091
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 7.07e-08 +/- 8.06e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 2.30e-05

TS (Fixed Index): 1.03
Ra Dec: 110.348 4.091
Photon Flux Upper Limit: 2.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278460/likelihoodResults_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.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) = 8047.45028484
delta logL = 2.81343250762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8047.42619089
delta logL = 2.83752645668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1145       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5580       1.0000          .0000       5.0000    
     3 'Normalizat'    .92376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90645       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8047.426     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      253 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1133        10.019        .96520E-02    .51959E-03
   2  alpha         4.5587        3.6026        .50000       -.17021E-04
   3  Normalizat    .92376        .15749        .12424        .26316E-04
   4  Prefactor     .90645        .35774E-01    .31932E-01   -.25685E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11326
  alpha      = 4.55869
  Normalizat = 0.923765
  Prefactor  = 0.906452
 **********
 **   18 **HESSE 
 **********

 FCN=   8047.426     FROM HESSE     STATUS=OK            33 CALLS      286 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1133        2.2486        .43388E-04   -1.5497    
   2  alpha         4.5587        3.7285        .27900E-01    .96751    
   3  Normalizat    .92376        .25208        .55143E-03   -.95630    
   4  Prefactor     .90645        .62456E-01    .14111E-03   -.95916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12207e-11
Minuit parameter uncertainties:
  1  2.24881
  2  1.59923
  3  0.2524
  4  0.0624606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278460': 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) = 8047.42619053
delta logL = 2.83752681267

Extracting fit parameters...

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  1.113e+00  2.249e+00  1.000e-04  1.000e+04 ( 1.000e-11)
222        alpha:  4.559e+00  1.599e+00  0.000e+00  5.000e+00 ( 1.000e+00)
223         beta:  1.285e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
224           Eb:  4.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  9.065e-01  6.246e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  9.238e-01  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.21
Ra Dec: 110.348 4.091
Photon Index (Free Index): 4.56 +/- 1.60
Photon Flux (Free Index): 2.90e-07 +/- 1.40e-07
Energy Flux (Free Index): 4.13e-05 +/- 2.11e-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/278460/cmap_HighResolution_390182401_390441601_4FGL_J0721.3+0405_daily_bin582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-05', comment='SUCCESS', photon_flux='7.07e-08', energy_flux2='4.13e-05', photon_flux_error='8.06e-08', dlogl='2.84e+00', energy_flux='2.01e-05', photon_flux2='2.90e-07', job_status='DONE', time_completed='2021-08-27 03:36:59.440722', photon_index_error2='1.60', photon_index2='4.56', ts='1.03', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='2.39e-07', energy_flux_error2='2.11e-05', EG='1.06', time_epoch_completed='1630060619.44', return_code='0', job_id='278460', GAL2='0.91', EG2='0.92', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='1.40e-07', ts2='7.21', photon_index='2.44' WHERE bin_id='582' AND source_name='4FGL J0721.3+0405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 03:36:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 278460: <4FGL_J0721.3+0405_daily_bin582> in cluster <slac> Done

Job <4FGL_J0721.3+0405_daily_bin582> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 27 03:20:30 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 03:20:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 03:20:32 2021
Terminated at Fri Aug 27 03:37:00 2021
Results reported at Fri Aug 27 03:37:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.3+0405_daily_bin582 110.348 4.0914 390182401 390441601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0721.3+0405 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   745.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            990 sec.

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

