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


Performing analysis on: 4FGL_J0721.3+0405_daily_bin898
RA = 110.348, Dec = 4.0914
tmin = 472089601, tmax = 472348801
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='281189', job_status='RUN', time_executed='2021-08-27 03:30:58.931258', time_epoch_executed='1630060258.93' WHERE source_name='4FGL J0721.3+0405' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/281189

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/281189/ft1_4FGL_J0721.3+0405_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/281189/ft2_4FGL_J0721.3+0405_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/281189/ft1_4FGL_J0721.3+0405_daily_bin898.fits outfile=/scratch/kocevski/281189/ft1_filteredMKT_4FGL_J0721.3+0405_daily_bin898.fits ra=110.348 dec=4.0914 rad=12.0 tmin=472089601.0 tmax=472348801.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 3.49
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/281189/ft2_4FGL_J0721.3+0405_daily_bin898.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/281189/ft1_filteredMKT_4FGL_J0721.3+0405_daily_bin898.fits evtable="EVENTS" outfile="/scratch/kocevski/281189/ft1_filtered_4FGL_J0721.3+0405_daily_bin898.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/281189/ft1_filtered_4FGL_J0721.3+0405_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/281189/ft2_4FGL_J0721.3+0405_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/281189/ltcube_472089601_472348801_4FGL_J0721.3+0405_daily_bin898.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/281189/ft2_4FGL_J0721.3+0405_daily_bin898.fits
.....................!
real 11.88
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/281189/ft1_filtered_4FGL_J0721.3+0405_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/281189/ft2_4FGL_J0721.3+0405_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/281189/ltcube_472089601_472348801_4FGL_J0721.3+0405_daily_bin898.fits outfile=/scratch/kocevski/281189/expmap_472089601_472348801_4FGL_J0721.3+0405_daily_bin898.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/281189/ltcube_472089601_472348801_4FGL_J0721.3+0405_daily_bin898.fits
.....................!
real 192.86
user 187.37
sys 4.88

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/281189/ft1_filtered_4FGL_J0721.3+0405_daily_bin898.fits scfile=/scratch/kocevski/281189/ft2_4FGL_J0721.3+0405_daily_bin898.fits outfile=/scratch/kocevski/281189/cmap_472089601_472348801_4FGL_J0721.3+0405_daily_bin898.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/281189/ft1_filtered_4FGL_J0721.3+0405_daily_bin898.fits scfile=/scratch/kocevski/281189/ft2_4FGL_J0721.3+0405_daily_bin898.fits outfile=/scratch/kocevski/281189/cmap_HighResolution_472089601_472348801_4FGL_J0721.3+0405_daily_bin898.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/281189/ft1_filtered_4FGL_J0721.3+0405_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/281189/ft2_4FGL_J0721.3+0405_daily_bin898.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/281189/Model_4FGL_J0721.3+0405_daily_bin898.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/281189/ft1_filtered_4FGL_J0721.3+0405_daily_bin898.fits.....................!
real 190.97
user 189.42
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/281189/ft1_filtered_4FGL_J0721.3+0405_daily_bin898.fits', '/scratch/kocevski/281189/ft2_4FGL_J0721.3+0405_daily_bin898.fits', expMap='/scratch/kocevski/281189/expmap_472089601_472348801_4FGL_J0721.3+0405_daily_bin898.fits', expCube='/scratch/kocevski/281189/ltcube_472089601_472348801_4FGL_J0721.3+0405_daily_bin898.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/281189/Model_4FGL_J0721.3+0405_daily_bin898.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/281189/ft1_filtered_4FGL_J0721.3+0405_daily_bin898.fits
Spacecraft file(s): /scratch/kocevski/281189/ft2_4FGL_J0721.3+0405_daily_bin898.fits
Exposure map: /scratch/kocevski/281189/expmap_472089601_472348801_4FGL_J0721.3+0405_daily_bin898.fits
Exposure cube: /scratch/kocevski/281189/ltcube_472089601_472348801_4FGL_J0721.3+0405_daily_bin898.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/281189/Model_4FGL_J0721.3+0405_daily_bin898.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) = 12075.2223039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.775       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    32.867       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.040       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.0451       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.191       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4124       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.593       1.0000         .10000E-03   10000.    
    13 'norm      '    5.7971       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.281       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7727       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77301       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95095       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=   12075.16     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2065 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.308        .90712E-02** at limit **
   2  norm          14.777        9.5376        .26050E-02    .49613E-04
   3  norm          .10000E-03    3.4712        .90712E-02** at limit **
   4  norm          32.868        22.105        .17474E-02   -.36756E-03
   5  Prefactor     14.040        46.641        .26724E-02   -.17486E-03
   6  norm          .10000E-03    1.7450        .90712E-02** at limit **
   7  norm          4.0453        2.3078        .50122E-02    .42197E-03
   8  norm          .10000E-03    .64062        .90712E-02** at limit **
   9  Prefactor     45.191        48.177        .14910E-02    .56484E-04
  10  Prefactor     2.4123        4.8584        .65892E-02    .53297E-03
  11  Prefactor     .10000E-03    9.5068        .90712E-02** at limit **
  12  Prefactor     19.593        44.957        .22621E-02    .59887E-03
  13  norm          5.7971        2.2178        .41702E-02    .13588E-03
  14  Prefactor     14.281        16.009        .26497E-02   -.73445E-04
  15  Prefactor     6.7730        4.2973        .38544E-02    .70451E-02
  16  norm          .10000E-03    6.6656        .90712E-02** at limit **
  17  Prefactor     .10000E-03    3.7499        .90712E-02** at limit **
  18  Prefactor     .10000E-03    13.082        .90712E-02** at limit **
  19  Normalizat    .77300        .20651        .12809        .78503E-04
  20  Prefactor     .95095        .50256E-01    .30696E-01    .83855E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 14.7771
  norm       = 0.0001
  norm       = 32.8678
  Prefactor  = 14.0404
  norm       = 0.0001
  norm       = 4.04532
  norm       = 0.0001
  Prefactor  = 45.1908
  Prefactor  = 2.41232
  Prefactor  = 0.0001
  Prefactor  = 19.5931
  norm       = 5.79709
  Prefactor  = 14.281
  Prefactor  = 6.77298
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.773004
  Prefactor  = 0.950947
 **********
 **   18 **HESSE 
 **********

 FCN=   12075.16     FROM HESSE     STATUS=OK           287 CALLS     2352 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.777        9.5426        .10420E-03   -1.4939    
   3  norm          .10000E-03    3.4868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          32.868        22.135        .69894E-04   -1.4561    
   5  Prefactor     14.040        46.624        .10689E-03   -1.4958    
   6  norm          .10000E-03    1.7580        .14173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0453        2.2974        .11615E-03   -1.5306    
   8  norm          .10000E-03    .66844        .17144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.191        48.136        .59641E-04   -1.4362    
  10  Prefactor     2.4123        4.8314        .26357E-03   -1.5397    
  11  Prefactor     .10000E-03    9.5535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.593        44.957        .90484E-04   -1.4822    
  13  norm          5.7971        2.2162        .95029E-04   -1.5226    
  14  Prefactor     14.281        16.009        .10599E-03   -1.4952    
  15  Prefactor     6.7730        4.3128        .77089E-03   -1.5187    
  16  norm          .10000E-03    6.6759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.7549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .77300        .20973        .56886E-03   -1.0108    
  20  Prefactor     .95095        .51566E-01    .13565E-03   -.94383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31889e-09
Minuit parameter uncertainties:
  1  7.51781e-05
  2  9.54356
  3  6.82209e-07
  4  22.1409
  5  46.7456
  6  2.58999e-06
  7  2.29747
  8  1.81649e-06
  9  48.1772
  10  4.83222
  11  1.04183e-05
  12  45.0351
  13  2.21623
  14  16.0141
  15  4.31297
  16  2.01393e-07
  17  4.17485e-06
  18  3.95437e-05
  19  0.209947
  20  0.051569
Done.

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

Extracting fit parameters...

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  4.045e+00  2.297e+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:  9.509e-01  5.157e-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:  7.730e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.35
Ra Dec: 110.348 4.091
Photon Index (Fixed Index): 2.44 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.94e-08
Energy Flux (Fixed Index): 2.98e-05 +/- 1.69e-05

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) = 12075.140616
delta logL = 0.0197893933164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12075.1399887
delta logL = 0.0204166970634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0072       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3237       1.0000          .0000       5.0000    
     3 'Normalizat'    .77976       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95050       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12075.14     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      253 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0071        2.2718        .11826E-03    .13311E-02
   2  alpha         2.3236        .55309        .20134E-01    .32907E-04
   3  Normalizat    .77975        .19251        .56673E-03   -.40923E-04
   4  Prefactor     .95050        .49749E-01    .13569E-03    .67364E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.00706
  alpha      = 2.32362
  Normalizat = 0.779748
  Prefactor  = 0.950499
 **********
 **   18 **HESSE 
 **********

 FCN=   12075.14     FROM HESSE     STATUS=OK            23 CALLS      276 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0071        2.2859        .47302E-05   -1.5308    
   2  alpha         2.3236        .55631        .80536E-03   -.70612E-01
   3  Normalizat    .77975        .19264        .22669E-04   -1.0082    
   4  Prefactor     .95050        .49751E-01    .54274E-05   -.94398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71583e-10
Minuit parameter uncertainties:
  1  2.28591
  2  0.561029
  3  0.192806
  4  0.0497532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/281189': 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) = 12075.1399886
delta logL = 0.0204167201264

Extracting fit parameters...

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  4.007e+00  2.286e+00  1.000e-04  1.000e+04 ( 1.000e-11)
222        alpha:  2.324e+00  5.610e-01  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.505e-01  4.975e-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:  7.797e-01  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.40
Ra Dec: 110.348 4.091
Photon Index (Free Index): 2.32 +/- 0.56
Photon Flux (Free Index): 9.48e-08 +/- 7.32e-08
Energy Flux (Free Index): 2.97e-05 +/- 1.67e-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/281189/cmap_HighResolution_472089601_472348801_4FGL_J0721.3+0405_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.97e-05', photon_flux_error='5.94e-08', dlogl='2.04e-02', energy_flux='2.98e-05', photon_flux2='9.48e-08', job_status='DONE', time_completed='2021-08-27 03:45:08.238411', photon_index_error2='0.56', photon_index2='2.32', ts='6.35', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='0.77', time_epoch_completed='1630061108.24', return_code='0', job_id='281189', GAL2='0.95', EG2='0.78', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='7.32e-08', ts2='6.40', photon_index='2.44' WHERE bin_id='898' AND source_name='4FGL J0721.3+0405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 03:45:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 281189: <4FGL_J0721.3+0405_daily_bin898> in cluster <slac> Done

Job <4FGL_J0721.3+0405_daily_bin898> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 27 03:30:34 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 03:30:36 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:30:36 2021
Terminated at Fri Aug 27 03:45:09 2021
Results reported at Fri Aug 27 03:45:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.3+0405_daily_bin898 110.348 4.0914 472089601 472348801 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 :                                   845.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             404.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

