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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin1424
RA = 110.488, Dec = 71.3405
tmin = 608428801, tmax = 608688001
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='298202', job_status='RUN', time_executed='2021-08-27 04:32:55.421332', time_epoch_executed='1630063975.42' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298202/ft1_4FGL_J0721.9+7120_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298202/ft2_4FGL_J0721.9+7120_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298202/ft1_4FGL_J0721.9+7120_daily_bin1424.fits outfile=/scratch/kocevski/298202/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1424.fits ra=110.488 dec=71.3405 rad=12.0 tmin=608428801.0 tmax=608688001.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.84
user 3.48
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/298202/ft2_4FGL_J0721.9+7120_daily_bin1424.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/298202/ft2_4FGL_J0721.9+7120_daily_bin1424.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/298202/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1424.fits evtable="EVENTS" outfile="/scratch/kocevski/298202/ft1_filtered_4FGL_J0721.9+7120_daily_bin1424.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.47
user 0.25
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/298202/ft1_filtered_4FGL_J0721.9+7120_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/298202/ft2_4FGL_J0721.9+7120_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/298202/ltcube_608428801_608688001_4FGL_J0721.9+7120_daily_bin1424.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/298202/ft2_4FGL_J0721.9+7120_daily_bin1424.fits
.....................!
real 8.65
user 8.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298202/ft1_filtered_4FGL_J0721.9+7120_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/298202/ft2_4FGL_J0721.9+7120_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/298202/ltcube_608428801_608688001_4FGL_J0721.9+7120_daily_bin1424.fits outfile=/scratch/kocevski/298202/expmap_608428801_608688001_4FGL_J0721.9+7120_daily_bin1424.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/298202/ltcube_608428801_608688001_4FGL_J0721.9+7120_daily_bin1424.fits
.....................!
real 141.60
user 136.60
sys 4.03

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J0721.9+7120 @ 110.488 71.3405

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/298202/ft1_filtered_4FGL_J0721.9+7120_daily_bin1424.fits scfile=/scratch/kocevski/298202/ft2_4FGL_J0721.9+7120_daily_bin1424.fits outfile=/scratch/kocevski/298202/cmap_608428801_608688001_4FGL_J0721.9+7120_daily_bin1424.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.488 yref=71.3405 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.49
user 0.29
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298202/ft1_filtered_4FGL_J0721.9+7120_daily_bin1424.fits scfile=/scratch/kocevski/298202/ft2_4FGL_J0721.9+7120_daily_bin1424.fits outfile=/scratch/kocevski/298202/cmap_HighResolution_608428801_608688001_4FGL_J0721.9+7120_daily_bin1424.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.488 yref=71.3405 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.50
user 0.30
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/298202/ft1_filtered_4FGL_J0721.9+7120_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/298202/ft2_4FGL_J0721.9+7120_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/298202/Model_4FGL_J0721.9+7120_daily_bin1424.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/298202/ft1_filtered_4FGL_J0721.9+7120_daily_bin1424.fits.....................!
real 96.12
user 94.41
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/298202/ft1_filtered_4FGL_J0721.9+7120_daily_bin1424.fits', '/scratch/kocevski/298202/ft2_4FGL_J0721.9+7120_daily_bin1424.fits', expMap='/scratch/kocevski/298202/expmap_608428801_608688001_4FGL_J0721.9+7120_daily_bin1424.fits', expCube='/scratch/kocevski/298202/ltcube_608428801_608688001_4FGL_J0721.9+7120_daily_bin1424.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/298202/Model_4FGL_J0721.9+7120_daily_bin1424.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0721.9+7120'

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  4.731e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.986e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
258         beta:  5.814e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
259           Eb:  7.346e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/298202/ft1_filtered_4FGL_J0721.9+7120_daily_bin1424.fits
Spacecraft file(s): /scratch/kocevski/298202/ft2_4FGL_J0721.9+7120_daily_bin1424.fits
Exposure map: /scratch/kocevski/298202/expmap_608428801_608688001_4FGL_J0721.9+7120_daily_bin1424.fits
Exposure cube: /scratch/kocevski/298202/ltcube_608428801_608688001_4FGL_J0721.9+7120_daily_bin1424.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/298202/Model_4FGL_J0721.9+7120_daily_bin1424.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) = 11552.2007965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.846       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.563       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10320E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.6237       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4884       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.3683       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.101       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3366       1.0000         .10000E-03   10000.    
    13 'norm      '    .65068       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6160       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42180       1.0000         .10000E-03   10000.    
    16 'norm      '    4.5118       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.647       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13301E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .79852       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1368       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11552.19     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2227 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.845        30.855        .46531E-07   -.84365E-05
   2  Prefactor     .10000E-03    10.925        .85886E-07** at limit **
   3  Prefactor     13.564        16.744        .28903E-07   -.71319E-05
   4  Prefactor     .10000E-03    9.9473        .19560E-06** at limit **
   5  Prefactor     .10000E-03    51.355        .50732E-05** at limit **
   6  norm          .10000E-03    81.763       -.85957E-05** at limit **
   7  norm          9.6238        1.0901       -.21072E-08    .18791E-04
   8  Prefactor     9.4380        149.74       -.12076E-04   -.13939E-05
   9  Prefactor     .10000E-03    19.103        .28167E-06** at limit **
  10  norm          6.3673        12.115       -.15724E-06   -.92616E-05
  11  Prefactor     15.100        14.110       -.45145E-06    .36521E-04
  12  Prefactor     1.3351        48.728       -.27029E-05   -.15766E-04
  13  norm          .65111        1.5106       -.91889E-06    .14996E-03
  14  Prefactor     1.6158        3.5115       -.58789E-06   -.16244E-03
  15  Prefactor     .42174        1.1296       -.11515E-06    .28821E-03
  16  norm          4.5120        2.4780        .56737E-07    .20633E-03
  17  Prefactor     26.646        24.368       -.19502E-06    .34423E-05
  18  Prefactor     .10000E-03    36.894       -.10103E-06** at limit **
  19  Prefactor     .10000E-03    2.9767        .51549E-07** at limit **
  20  Normalizat    .79862        .16222        .16138E-06    .29601E-04
  21  Prefactor     1.1367        .93841E-01   -.41232E-06   -.29014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.8451
  Prefactor  = 0.0001
  Prefactor  = 13.5637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.62384
  Prefactor  = 9.438
  Prefactor  = 0.0001
  norm       = 6.36734
  Prefactor  = 15.0999
  Prefactor  = 1.33507
  norm       = 0.651106
  Prefactor  = 1.61579
  Prefactor  = 0.421744
  norm       = 4.51198
  Prefactor  = 26.6457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.79862
  Prefactor  = 1.1367
 **********
 **   18 **HESSE 
 **********

 FCN=   11552.19     FROM HESSE     STATUS=OK           327 CALLS     2554 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.845        30.858        .57376E-04   -1.4309    
   2  Prefactor     .10000E-03    10.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.564        16.735        .10876E-03   -1.4971    
   4  Prefactor     .10000E-03    9.9831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    51.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    78.637        .50710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.6238        1.0906        .36134E-04   -1.5087    
   8  Prefactor     9.4380        150.08        .13010E-03   -1.5093    
   9  Prefactor     .10000E-03    19.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.3673        12.086        .15905E-03   -1.5203    
  11  Prefactor     15.100        14.074        .10307E-03   -1.4931    
  12  Prefactor     1.3351        49.046        .37940E-03   -1.5477    
  13  norm          .65111        1.4990        .18351E-02   -1.5547    
  14  Prefactor     1.6158        3.5080        .28727E-03   -1.5454    
  15  Prefactor     .42174        1.1165        .17359E-03   -1.5578    
  16  norm          4.5120        2.4874        .11426E-03   -1.5283    
  17  Prefactor     26.646        24.366        .77606E-04   -1.4675    
  18  Prefactor     .10000E-03    37.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.9786        .18111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .79862        .17854        .35210E-03   -1.0012    
  21  Prefactor     1.1367        .10461        .18628E-03   -.88302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21191e-10
Minuit parameter uncertainties:
  1  30.8677
  2  5.00207e-06
  3  16.7409
  4  9.57123e-06
  5  7.15796e-05
  6  8.96598e-05
  7  1.09058
  8  75.4966
  9  2.75504e-05
  10  12.0902
  11  14.0774
  12  16.1977
  13  1.49907
  14  3.50844
  15  1.11658
  16  2.48745
  17  24.3747
  18  0.000111826
  19  1.47636e-06
  20  0.178668
  21  0.10463
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  9.624e+00  1.091e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.986e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
258         beta:  5.814e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
259           Eb:  7.346e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.137e+00  1.046e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  7.986e-01  1.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 363.08
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 4.59e-07 +/- 5.20e-08
Energy Flux (Fixed Index): 2.73e-04 +/- 3.09e-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) = 11551.9471573
delta logL = 0.247666464527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11551.9295494
delta logL = 0.265274339499

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11551.93     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      199 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.8419        1.2544        .31935E-02   -.89283E-04
   2  alpha         1.9125        .10858        .93263E-01    .32752E-04
   3  Normalizat    .81806        .15115        .78757E-01    .42292E-04
   4  Prefactor     1.1304        .92683E-01    .36528E-01   -.66948E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.84186
  alpha      = 1.91252
  Normalizat = 0.818055
  Prefactor  = 1.13041
 **********
 **   18 **HESSE 
 **********

 FCN=   11551.93     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .41E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.8419        1.1477        .36937E-04   -1.5080    
   2  alpha         1.9125        .10024        .40860E-03   -.23721    
   3  Normalizat    .81806        .16741        .34864E-03   -.99402    
   4  Prefactor     1.1304        .10279        .18679E-03   -.88501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12112e-15
Minuit parameter uncertainties:
  1  1.14774
  2  0.100269
  3  0.167515
  4  0.102807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298202': 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) = 11551.9295481
delta logL = 0.265275640364

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  9.842e+00  1.148e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.913e+00  1.003e-01  0.000e+00  5.000e+00 ( 1.000e+00)
258         beta:  5.814e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
259           Eb:  7.346e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  1.130e+00  1.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  8.181e-01  1.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 362.82
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.91 +/- 0.10
Photon Flux (Free Index): 4.38e-07 +/- 5.76e-08
Energy Flux (Free Index): 3.02e-04 +/- 5.54e-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/298202/cmap_HighResolution_608428801_608688001_4FGL_J0721.9+7120_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.59e-07', energy_flux2='3.02e-04', photon_flux_error='5.20e-08', dlogl='2.65e-01', energy_flux='2.73e-04', photon_flux2='4.38e-07', job_status='DONE', time_completed='2021-08-27 04:44:43.860312', photon_index_error2='0.10', photon_index2='1.91', ts='363.08', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='5.54e-05', EG='0.80', time_epoch_completed='1630064683.86', return_code='0', job_id='298202', GAL2='1.13', EG2='0.82', return_code2='0', energy_flux_error='3.09e-05', photon_flux_error2='5.76e-08', ts2='362.82', photon_index='1.99' WHERE bin_id='1424' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:44:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 298202: <4FGL_J0721.9+7120_daily_bin1424> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin1424> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 27 04:30:26 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:30: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 04:30:28 2021
Terminated at Fri Aug 27 04:44:44 2021
Results reported at Fri Aug 27 04:44:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin1424 110.488 71.3405 608428801 608688001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0721.9+7120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   696.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             313.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            858 sec.

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

