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


Performing analysis on: 4FGL_J0721.3+0405_daily_bin615
RA = 110.348, Dec = 4.0914
tmin = 398736001, tmax = 398995201
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='279792', job_status='RUN', time_executed='2021-08-27 03:25:35.132088', time_epoch_executed='1630059935.13' WHERE source_name='4FGL J0721.3+0405' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279792

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279792/ft1_4FGL_J0721.3+0405_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279792/ft2_4FGL_J0721.3+0405_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279792/ft1_4FGL_J0721.3+0405_daily_bin615.fits outfile=/scratch/kocevski/279792/ft1_filteredMKT_4FGL_J0721.3+0405_daily_bin615.fits ra=110.348 dec=4.0914 rad=12.0 tmin=398736001.0 tmax=398995201.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 7.23
user 5.74
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279792/ft2_4FGL_J0721.3+0405_daily_bin615.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/279792/ft1_filteredMKT_4FGL_J0721.3+0405_daily_bin615.fits evtable="EVENTS" outfile="/scratch/kocevski/279792/ft1_filtered_4FGL_J0721.3+0405_daily_bin615.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.49
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279792/ft1_filtered_4FGL_J0721.3+0405_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/279792/ft2_4FGL_J0721.3+0405_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/279792/ltcube_398736001_398995201_4FGL_J0721.3+0405_daily_bin615.fits outfile=/scratch/kocevski/279792/expmap_398736001_398995201_4FGL_J0721.3+0405_daily_bin615.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/279792/ltcube_398736001_398995201_4FGL_J0721.3+0405_daily_bin615.fits
.....................!
real 193.19
user 187.51
sys 5.11

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/279792/ft1_filtered_4FGL_J0721.3+0405_daily_bin615.fits scfile=/scratch/kocevski/279792/ft2_4FGL_J0721.3+0405_daily_bin615.fits outfile=/scratch/kocevski/279792/cmap_398736001_398995201_4FGL_J0721.3+0405_daily_bin615.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279792/ft1_filtered_4FGL_J0721.3+0405_daily_bin615.fits scfile=/scratch/kocevski/279792/ft2_4FGL_J0721.3+0405_daily_bin615.fits outfile=/scratch/kocevski/279792/cmap_HighResolution_398736001_398995201_4FGL_J0721.3+0405_daily_bin615.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.62
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.431       1.0000         .10000E-03   10000.    
     2 'norm      '    13.811       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5965       1.0000         .10000E-03   10000.    
     6 'norm      '    14.447       1.0000         .10000E-03   10000.    
     7 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.617       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    81.779       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1904       1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.274       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .89625       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 '    28.948       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77093       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0165       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=   11003.22     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2071 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.431        12.682       -.15662E-06   -.14061E-05
   2  norm          13.813        11.230        .13780E-05   -.49415E-04
   3  norm          .10000E-03    3.5963        .95123E-07** at limit **
   4  norm          .10000E-03    15.055        .31735E-07** at limit **
   5  Prefactor     1.5520        333.39       -.93008E-05   -.32505E-04
   6  norm          14.448        6.4856        .33604E-06   -.25443E-04
   7  norm          .10000E-03    .91152       -.12063E-06** at limit **
   8  norm          .10000E-03    .44536        .16923E-06** at limit **
   9  Prefactor     .10000E-03    19.763        .69687E-07** at limit **
  10  Prefactor     13.617        10.413        .16011E-06   -.21059E-04
  11  Prefactor     .10000E-03    8.9762        .26530E-06** at limit **
  12  Prefactor     81.776        47.834       -.11199E-06   -.55445E-04
  13  norm          1.1890        2.1034        .94002E-06    .30153E-04
  14  Prefactor     64.273        43.055        .32489E-06   -.12104E-04
  15  Prefactor     .89672        3.5245        .34733E-05   -.12961E-03
  16  norm          .10000E-03    5.3986       -.48400E-09** at limit **
  17  Prefactor     .10000E-03    3.3536       -.17267E-07** at limit **
  18  Prefactor     28.932        44.061        .23815E-06   -.92466E-04
  19  Normalizat    .77113        .23497       -.40673E-05   -.10744E-03
  20  Prefactor     1.0164        .56012E-01   -.88470E-08   -.17327E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4311
  norm       = 13.8128
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.55204
  norm       = 14.4476
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6167
  Prefactor  = 0.0001
  Prefactor  = 81.7759
  norm       = 1.18898
  Prefactor  = 64.273
  Prefactor  = 0.896724
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9321
  Normalizat = 0.771133
  Prefactor  = 1.01643
 **********
 **   18 **HESSE 
 **********

 FCN=   11003.22     FROM HESSE     STATUS=OK           293 CALLS     2364 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.431        12.673        .10544E-03   -1.4948    
   2  norm          13.813        11.247        .53889E-03   -1.4964    
   3  norm          .10000E-03    3.6074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    15.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5520        351.17        .33565E-02   -1.5459    
   6  norm          14.448        6.4973        .52688E-03   -1.4948    
   7  norm          .10000E-03    .92662        .97564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .89976        .13572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.617        10.400        .10855E-03   -1.4970    
  11  Prefactor     .10000E-03    9.0360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     81.776        47.804        .44415E-04   -1.3897    
  13  norm          1.1890        2.0916        .18829E-03   -1.5490    
  14  Prefactor     64.273        43.031        .50056E-04   -1.4103    
  15  Prefactor     .89672        3.5407        .36455E-03   -1.5519    
  16  norm          .10000E-03    5.4005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.3552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.932        44.470        .74464E-04   -1.4632    
  19  Normalizat    .77113        .23908        .58870E-03   -1.0115    
  20  Prefactor     1.0164        .57408E-01    .13855E-03   -.92184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37775e-10
Minuit parameter uncertainties:
  1  12.6756
  2  11.2488
  3  2.81972e-06
  4  1.2853e-05
  5  46.9716
  6  6.49761
  7  4.94874e-06
  8  8.36361e-06
  9  3.30998e-05
  10  10.4009
  11  1.41946e-05
  12  47.827
  13  2.09173
  14  43.0521
  15  3.54157
  16  2.19559e-06
  17  2.13097e-06
  18  44.5205
  19  0.239404
  20  0.0574117
Done.

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

Extracting fit parameters...

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  1.000e-04  4.949e-06  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:  1.016e+00  5.741e-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.711e-01  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 110.348 4.091
Photon Flux Upper Limit: 9.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279792/likelihoodResults_398736001_398995201_4FGL_J0721.3+0405_daily_bin615.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) = 11003.2292215
delta logL = -0.00514158896476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11003.2240671
delta logL = 1.28952324303e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6313       1.0000          .0000       5.0000    
     3 'Normalizat'    .77104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0164       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11003.22     FROM MIGRAD    STATUS=FAILED        95 CALLS      288 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10024E-03    1.4817        .12359E-02** at limit **
   2  alpha         3.8545        3.9712        .19365       -.21876E-05
   3  Normalizat    .77113        .20209        .58869E-03    .18088E-03
   4  Prefactor     1.0164        .54573E-01    .13855E-03    .40123E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11003.22     FROM SIMPLEX   STATUS=PROGRESS     109 CALLS      397 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10006E-03    1.4817        .62368E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.8543        3.9712        .89393E-03    .57249    
   3  Normalizat    .77111        .20209        .73163E-04   -1.0115    
   4  Prefactor     1.0164        .54573E-01    .22609E-04   -.92184    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11003.22     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      431 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2785        .24718E-03** at limit **
   2  alpha         3.9556        2.8933        .77459E-01   -.68101E-07
   3  Normalizat    .77113        .20206        .23547E-04    .90573E-04
   4  Prefactor     1.0164        .54575E-01    .27709E-04    .48069E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.95559
  Normalizat = 0.771128
  Prefactor  = 1.01643
 **********
 **   18 **HESSE 
 **********

 FCN=   11003.22     FROM HESSE     STATUS=OK            23 CALLS      454 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2774        .49437E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.9556        2.8648        .30984E-02    .62148    
   3  Normalizat    .77113        .20206        .47095E-05   -1.0115    
   4  Prefactor     1.0164        .54579E-01    .55418E-05   -.92184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22182e-10
Minuit parameter uncertainties:
  1  2.08248e-05
  2  316.311
  3  0.202253
  4  0.0545818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279792': 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) = 11003.2240651
delta logL = 1.48138497025e-05

Extracting fit parameters...

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  1.000e-04  2.082e-05  1.000e-04  1.000e+04 ( 1.000e-11)
222        alpha:  3.956e+00  3.163e+02  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:  1.016e+00  5.458e-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.711e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 110.348 4.091

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/279792/cmap_HighResolution_398736001_398995201_4FGL_J0721.3+0405_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', job_status='DONE', photon_flux_upper_limit='9.57e-08', time_completed='2021-08-27 03:40:45.952755', job_id='279792', GAL2='1.02', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630060845.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.48e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='615' AND source_name='4FGL J0721.3+0405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 03:40:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 279792: <4FGL_J0721.3+0405_daily_bin615> in cluster <slac> Done

Job <4FGL_J0721.3+0405_daily_bin615> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 27 03:25:18 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 03:25:20 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:25:20 2021
Terminated at Fri Aug 27 03:40:46 2021
Results reported at Fri Aug 27 03:40:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.3+0405_daily_bin615 110.348 4.0914 398736001 398995201 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 :                                   905.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             363.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

