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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin738
RA = 110.488, Dec = 71.3405
tmin = 430617601, tmax = 430876801
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='292736', job_status='RUN', time_executed='2021-08-27 04:13:43.128520', time_epoch_executed='1630062823.13' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/292736

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/292736/ft1_4FGL_J0721.9+7120_daily_bin738.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/292736/ft2_4FGL_J0721.9+7120_daily_bin738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/292736/ft1_4FGL_J0721.9+7120_daily_bin738.fits outfile=/scratch/kocevski/292736/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin738.fits ra=110.488 dec=71.3405 rad=12.0 tmin=430617601.0 tmax=430876801.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 8.58
user 5.08
sys 3.42

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/292736/ft2_4FGL_J0721.9+7120_daily_bin738.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/292736/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin738.fits evtable="EVENTS" outfile="/scratch/kocevski/292736/ft1_filtered_4FGL_J0721.9+7120_daily_bin738.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 3.75
user 0.33
sys 3.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/292736/ft1_filtered_4FGL_J0721.9+7120_daily_bin738.fits" evtable="EVENTS" scfile=/scratch/kocevski/292736/ft2_4FGL_J0721.9+7120_daily_bin738.fits sctable="SC_DATA" outfile=/scratch/kocevski/292736/ltcube_430617601_430876801_4FGL_J0721.9+7120_daily_bin738.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/292736/ft2_4FGL_J0721.9+7120_daily_bin738.fits
.....................!
real 15.81
user 11.86
sys 3.85

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/292736/ft1_filtered_4FGL_J0721.9+7120_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/292736/ft2_4FGL_J0721.9+7120_daily_bin738.fits sctable="SC_DATA" expcube=/scratch/kocevski/292736/ltcube_430617601_430876801_4FGL_J0721.9+7120_daily_bin738.fits outfile=/scratch/kocevski/292736/expmap_430617601_430876801_4FGL_J0721.9+7120_daily_bin738.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/292736/ltcube_430617601_430876801_4FGL_J0721.9+7120_daily_bin738.fits
.....................!
real 193.58
user 184.91
sys 8.19

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/292736/ft1_filtered_4FGL_J0721.9+7120_daily_bin738.fits scfile=/scratch/kocevski/292736/ft2_4FGL_J0721.9+7120_daily_bin738.fits outfile=/scratch/kocevski/292736/cmap_430617601_430876801_4FGL_J0721.9+7120_daily_bin738.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 3.73
user 0.38
sys 3.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/292736/ft1_filtered_4FGL_J0721.9+7120_daily_bin738.fits scfile=/scratch/kocevski/292736/ft2_4FGL_J0721.9+7120_daily_bin738.fits outfile=/scratch/kocevski/292736/cmap_HighResolution_430617601_430876801_4FGL_J0721.9+7120_daily_bin738.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 3.69
user 0.39
sys 3.26

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/292736/ft1_filtered_4FGL_J0721.9+7120_daily_bin738.fits evtable="EVENTS" scfile=/scratch/kocevski/292736/ft2_4FGL_J0721.9+7120_daily_bin738.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/292736/Model_4FGL_J0721.9+7120_daily_bin738.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/292736/ft1_filtered_4FGL_J0721.9+7120_daily_bin738.fits.....................!
real 86.25
user 79.99
sys 5.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/292736/ft1_filtered_4FGL_J0721.9+7120_daily_bin738.fits', '/scratch/kocevski/292736/ft2_4FGL_J0721.9+7120_daily_bin738.fits', expMap='/scratch/kocevski/292736/expmap_430617601_430876801_4FGL_J0721.9+7120_daily_bin738.fits', expCube='/scratch/kocevski/292736/ltcube_430617601_430876801_4FGL_J0721.9+7120_daily_bin738.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/292736/Model_4FGL_J0721.9+7120_daily_bin738.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/292736/ft1_filtered_4FGL_J0721.9+7120_daily_bin738.fits
Spacecraft file(s): /scratch/kocevski/292736/ft2_4FGL_J0721.9+7120_daily_bin738.fits
Exposure map: /scratch/kocevski/292736/expmap_430617601_430876801_4FGL_J0721.9+7120_daily_bin738.fits
Exposure cube: /scratch/kocevski/292736/ltcube_430617601_430876801_4FGL_J0721.9+7120_daily_bin738.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/292736/Model_4FGL_J0721.9+7120_daily_bin738.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) = 6917.07931011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9243       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .15487E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.825       1.0000         .10000E-03   10000.    
    10 'norm      '    20.535       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10894E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5196       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .41437       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5327       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.101       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0609       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0434       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=   6917.069     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2191 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9226        36.233       -.70928E-05   -.38305E-03
   2  Prefactor     .10000E-03    31.922        .32997E-05** at limit **
   3  Prefactor     .10000E-03    12.604        .32114E-05** at limit **
   4  Prefactor     .10000E-03    79.653       -.76556E-05** at limit **
   5  Prefactor     .10000E-03    13.080       -.55147E-05** at limit **
   6  norm          .10000E-03    5.7235        .23073E-06** at limit **
   7  norm          4.1608        1.0881        .22353E-07    .60670E-04
   8  Prefactor     .10000E-03    84.088       -.14379E-04** at limit **
   9  Prefactor     36.824        39.845       -.85315E-06    .70340E-05
  10  norm          20.538        32.744        .16322E-05   -.86623E-04
  11  Prefactor     .10000E-03    40.510       -.87260E-05** at limit **
  12  Prefactor     .10001E-03    69.236        .25906E-04** at limit **
  13  norm          1.5226        3.5064       -.62139E-06   -.76578E-03
  14  Prefactor     4.1142        3.7442        .26415E-07    .64883E-04
  15  Prefactor     .42175        1.9790       -.37916E-06   -.62839E-03
  16  norm          1.5346        2.1842       -.33109E-06   -.56166E-03
  17  Prefactor     .10000E-03    13.947        .16089E-05** at limit **
  18  Prefactor     10.096        25.280       -.18457E-05    .13022E-04
  19  Prefactor     .10000E-03    7.3805       -.31928E-06** at limit **
  20  Normalizat    1.0605        .20964        .10663E-05    .58885E-04
  21  Prefactor     1.0435        .11406        .55097E-06    .90217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.92262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.1608
  Prefactor  = 0.000100002
  Prefactor  = 36.8242
  norm       = 20.5379
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  norm       = 1.52257
  Prefactor  = 4.1142
  Prefactor  = 0.421746
  norm       = 1.53458
  Prefactor  = 0.0001
  Prefactor  = 10.0961
  Prefactor  = 0.0001
  Normalizat = 1.0605
  Prefactor  = 1.04354
 **********
 **   18 **HESSE 
 **********

 FCN=   6917.069     FROM HESSE     STATUS=OK           317 CALLS     2508 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9226        41.907        .82491E-03   -1.5221    
   2  Prefactor     .10000E-03    32.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    81.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.7239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.1608        1.0885        .41347E-04   -1.5300    
   8  Prefactor     .10000E-03    83.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.824        40.238        .66043E-04   -1.4494    
  10  norm          20.538        32.666        .88386E-04   -1.4801    
  11  Prefactor     .10000E-03    40.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    65.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5226        3.3484        .20150E-03   -1.5461    
  14  Prefactor     4.1142        3.7482        .14933E-03   -1.5302    
  15  Prefactor     .42175        3.3559        .19025E-02   -1.5578    
  16  norm          1.5346        2.1466        .13097E-03   -1.5460    
  17  Prefactor     .10000E-03    13.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.096        25.028        .12608E-03   -1.5072    
  19  Prefactor     .10000E-03    7.3946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0605        .23880        .30963E-03   -.91030    
  21  Prefactor     1.0435        .13028        .18714E-03   -.91292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69074e-09
Minuit parameter uncertainties:
  1  31.54
  2  0.000178174
  3  8.20021e-05
  4  0.000412223
  5  0.000129062
  6  6.61787e-06
  7  1.08852
  8  0.000878858
  9  40.2677
  10  32.6941
  11  0.000481023
  12  0.00165188
  13  3.34886
  14  3.74839
  15  2.37926
  16  2.14671
  17  4.15856e-05
  18  25.0544
  19  3.48164e-06
  20  0.239045
  21  0.130316
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  4.161e+00  1.089e+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.044e+00  1.303e-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:  1.061e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 59.94
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.98e-07 +/- 5.19e-08
Energy Flux (Fixed Index): 1.18e-04 +/- 3.08e-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) = 6917.06936084
delta logL = 0.000139102109642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6917.06935273
delta logL = 0.000147210274918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1610       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9821       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0432       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=   6917.069     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      198 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1628        1.4114        .49397E-02   -.23849E-04
   2  alpha         1.9821        .29265        .16618        .17732E-04
   3  Normalizat    1.0612        .18977        .69963E-01    .38154E-04
   4  Prefactor     1.0433        .11224        .40323E-01    .22769E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.16282
  alpha      = 1.98214
  Normalizat = 1.06118
  Prefactor  = 1.04334
 **********
 **   18 **HESSE 
 **********

 FCN=   6917.069     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .99E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1628        1.0672        .41396E-04   -1.5300    
   2  alpha         1.9821        .22958        .70558E-02   -.20866    
   3  Normalizat    1.0612        .21295        .30955E-03   -.91008    
   4  Prefactor     1.0433        .12595        .18716E-03   -.91299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93527e-13
Minuit parameter uncertainties:
  1  1.06722
  2  0.22992
  3  0.213125
  4  0.125982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/292736': 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) = 6917.0693509
delta logL = 0.000149037354277

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  4.163e+00  1.067e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.982e+00  2.299e-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.043e+00  1.260e-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:  1.061e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 60.03
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.98 +/- 0.23
Photon Flux (Free Index): 1.98e-07 +/- 6.28e-08
Energy Flux (Free Index): 1.18e-04 +/- 4.25e-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/292736/cmap_HighResolution_430617601_430876801_4FGL_J0721.9+7120_daily_bin738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.98e-07', energy_flux2='1.18e-04', photon_flux_error='5.19e-08', dlogl='1.49e-04', energy_flux='1.18e-04', photon_flux2='1.98e-07', job_status='DONE', time_completed='2021-08-27 04:26:07.198063', photon_index_error2='0.23', photon_index2='1.98', ts='59.94', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='4.25e-05', EG='1.06', time_epoch_completed='1630063567.2', return_code='0', job_id='292736', GAL2='1.04', EG2='1.06', return_code2='0', energy_flux_error='3.08e-05', photon_flux_error2='6.28e-08', ts2='60.03', photon_index='1.99' WHERE bin_id='738' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:26:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 292736: <4FGL_J0721.9+7120_daily_bin738> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin738 110.488 71.3405 430617601 430876801 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 :                                   791.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            930 sec.

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

