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


Performing analysis on: 4FGL_J0721.3+0405_daily_bin326
RA = 110.348, Dec = 4.0914
tmin = 323827201, tmax = 324086401
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='275629', job_status='RUN', time_executed='2021-08-27 03:13:59.751982', time_epoch_executed='1630059239.75' WHERE source_name='4FGL J0721.3+0405' and cadence='daily' and bin_id='326'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/275629

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/275629/ft1_4FGL_J0721.3+0405_daily_bin326.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/275629/ft2_4FGL_J0721.3+0405_daily_bin326.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/275629/ft1_4FGL_J0721.3+0405_daily_bin326.fits outfile=/scratch/kocevski/275629/ft1_filteredMKT_4FGL_J0721.3+0405_daily_bin326.fits ra=110.348 dec=4.0914 rad=12.0 tmin=323827201.0 tmax=324086401.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 2.90
user 2.34
sys 0.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/275629/ft2_4FGL_J0721.3+0405_daily_bin326.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/275629/ft1_filteredMKT_4FGL_J0721.3+0405_daily_bin326.fits evtable="EVENTS" outfile="/scratch/kocevski/275629/ft1_filtered_4FGL_J0721.3+0405_daily_bin326.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.75
user 0.25
sys 0.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/275629/ft1_filtered_4FGL_J0721.3+0405_daily_bin326.fits" evtable="EVENTS" scfile=/scratch/kocevski/275629/ft2_4FGL_J0721.3+0405_daily_bin326.fits sctable="SC_DATA" outfile=/scratch/kocevski/275629/ltcube_323827201_324086401_4FGL_J0721.3+0405_daily_bin326.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/275629/ft2_4FGL_J0721.3+0405_daily_bin326.fits
.....................!
real 9.43
user 8.79
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/275629/ft1_filtered_4FGL_J0721.3+0405_daily_bin326.fits evtable="EVENTS" scfile=/scratch/kocevski/275629/ft2_4FGL_J0721.3+0405_daily_bin326.fits sctable="SC_DATA" expcube=/scratch/kocevski/275629/ltcube_323827201_324086401_4FGL_J0721.3+0405_daily_bin326.fits outfile=/scratch/kocevski/275629/expmap_323827201_324086401_4FGL_J0721.3+0405_daily_bin326.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/275629/ltcube_323827201_324086401_4FGL_J0721.3+0405_daily_bin326.fits
.....................!
real 146.50
user 141.40
sys 4.81

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/275629/ft1_filtered_4FGL_J0721.3+0405_daily_bin326.fits scfile=/scratch/kocevski/275629/ft2_4FGL_J0721.3+0405_daily_bin326.fits outfile=/scratch/kocevski/275629/cmap_323827201_324086401_4FGL_J0721.3+0405_daily_bin326.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.76
user 0.29
sys 0.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/275629/ft1_filtered_4FGL_J0721.3+0405_daily_bin326.fits scfile=/scratch/kocevski/275629/ft2_4FGL_J0721.3+0405_daily_bin326.fits outfile=/scratch/kocevski/275629/cmap_HighResolution_323827201_324086401_4FGL_J0721.3+0405_daily_bin326.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.77
user 0.30
sys 0.46

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19868E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    22.080       1.0000         .10000E-03   10000.    
     3 'norm      '    14.850       1.0000         .10000E-03   10000.    
     4 'norm      '    28.935       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.2078       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.956       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.883       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.0567       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.463       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2163       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.317       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0748       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0089       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=   12099.56     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1775 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.3057        .10875    ** at limit **
   2  norm          22.102        11.243        .21310E-02    .19776E-02
   3  norm          14.852        10.229        .25984E-02    .41499E-03
   4  norm          28.932        28.232        .18620E-02    .11739E-02
   5  Prefactor     .10000E-03    21.896        .90712E-02** at limit **
   6  norm          .10000E-03    3.2801        .90712E-02** at limit **
   7  norm          .10000E-03    .99008        .90712E-02** at limit **
   8  norm          7.2076        1.8442        .37352E-02    .13493E-03
   9  Prefactor     39.955        34.225        .15853E-02    .57897E-03
  10  Prefactor     .10000E-03    6.0424        .90712E-02** at limit **
  11  Prefactor     13.882        13.015        .26875E-02   -.15364E-04
  12  Prefactor     .10000E-03    12.637        .90712E-02** at limit **
  13  norm          7.0561        2.5447        .37753E-02    .32030E-03
  14  Prefactor     20.462        23.784        .22136E-02    .21774E-03
  15  Prefactor     2.2159        3.2829        .69063E-02    .14367E-02
  16  norm          .10000E-03    6.0411        .90712E-02** at limit **
  17  Prefactor     12.316        11.673        .28535E-02    .87548E-03
  18  Prefactor     .10000E-03    14.094        .90712E-02** at limit **
  19  Normalizat    1.0750        .21470        .11979        .58115E-04
  20  Prefactor     1.0088        .55828E-01    .32723E-01    .11311E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  norm       = 22.1023
  norm       = 14.8515
  norm       = 28.9317
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.20762
  Prefactor  = 39.9548
  Prefactor  = 0.0001
  Prefactor  = 13.8821
  Prefactor  = 0.0001
  norm       = 7.05606
  Prefactor  = 20.4621
  Prefactor  = 2.2159
  norm       = 0.0001
  Prefactor  = 12.3155
  Prefactor  = 0.0001
  Normalizat = 1.07501
  Prefactor  = 1.00883
 **********
 **   18 **HESSE 
 **********

 FCN=   12099.56     FROM HESSE     STATUS=OK           291 CALLS     2066 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    68.303        .58821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          22.102        10.859        .85241E-04   -1.4767    
   3  norm          14.852        10.277        .10394E-03   -1.4937    
   4  norm          28.932        28.283        .74481E-04   -1.4632    
   5  Prefactor     .10000E-03    21.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.3218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0339        .21344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.2076        1.8465        .72399E-04   -1.5171    
   9  Prefactor     39.955        34.218        .63412E-04   -1.4443    
  10  Prefactor     .10000E-03    6.1121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.882        13.016        .10750E-03   -1.4963    
  12  Prefactor     .10000E-03    12.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0561        2.5509        .99359E-04   -1.5177    
  14  Prefactor     20.462        23.786        .88542E-04   -1.4803    
  15  Prefactor     2.2159        3.2743        .22928E-03   -1.5410    
  16  norm          .10000E-03    6.0420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.316        11.685        .57070E-03   -1.5006    
  18  Prefactor     .10000E-03    14.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0750        .22233        .53153E-03   -.90558    
  20  Prefactor     1.0088        .58203E-01    .14461E-03   -.92436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28599e-09
Minuit parameter uncertainties:
  1  0.000897869
  2  10.8599
  3  10.2783
  4  28.2959
  5  0.000152378
  6  4.77947e-06
  7  4.84787e-08
  8  1.84651
  9  34.2343
  10  1.29677e-05
  11  13.0184
  12  6.55443e-05
  13  2.55092
  14  23.7966
  15  3.27458
  16  8.70682e-07
  17  11.687
  18  0.000160255
  19  0.222527
  20  0.0582068
Done.

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

Extracting fit parameters...

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  1.000e-04  4.848e-08  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.009e+00  5.821e-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.075e+00  2.225e-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: 8.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/275629/likelihoodResults_323827201_324086401_4FGL_J0721.3+0405_daily_bin326.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) = 12099.5694169
delta logL = -0.00461707307659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12099.5647998
delta logL = 7.57117959438e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4495       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0089       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=   12099.56     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      254 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    233.96        .21468E-02** at limit **
   2  alpha         3.1608        3.1492        .16465        .42119E-07
   3  Normalizat    1.0750        .13081        .53153E-03   -.67502E-04
   4  Prefactor     1.0088        .34265E-01    .14461E-03    .25315E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.16083
  Normalizat = 1.07501
  Prefactor  = 1.00883
 **********
 **   18 **HESSE 
 **********

 FCN=   12099.56     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2659        .42937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.1608        3.9402        .65860E-02    .26751    
   3  Normalizat    1.0750        .20206        .21261E-04   -.90558    
   4  Prefactor     1.0088        .53971E-01    .57843E-05   -.92436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.60687e-11
Minuit parameter uncertainties:
  1  2.05651e-06
  2  169.921
  3  0.202205
  4  0.0539735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/275629': 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) = 12099.564791
delta logL = 8.86854286364e-06

Extracting fit parameters...

4FGL J0721.3+0405
   Spectrum: LogParabola
221         norm:  1.000e-04  2.057e-06  1.000e-04  1.000e+04 ( 1.000e-11)
222        alpha:  3.161e+00  1.699e+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.009e+00  5.397e-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.075e+00  2.022e-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/275629/cmap_HighResolution_323827201_324086401_4FGL_J0721.3+0405_daily_bin326.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-08-27 03:25:53.301865', job_id='275629', GAL2='1.01', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630059953.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='8.87e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='326' AND source_name='4FGL J0721.3+0405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 03:25:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0026>
Subject: Job 275629: <4FGL_J0721.3+0405_daily_bin326> in cluster <slac> Done

Job <4FGL_J0721.3+0405_daily_bin326> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 27 03:10:27 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 03:10:28 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:10:28 2021
Terminated at Fri Aug 27 03:25:53 2021
Results reported at Fri Aug 27 03:25:53 2021

Your job looked like:

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

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

