/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 3 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0721.9+7120_daily_bin15
RA = 110.488, Dec = 71.3405
tmin = 243216001, tmax = 243475201
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='286983', job_status='RUN', time_executed='2021-08-27 03:51:22.024049', time_epoch_executed='1630061482.02' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286983

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286983/ft1_4FGL_J0721.9+7120_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286983/ft2_4FGL_J0721.9+7120_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286983/ft1_4FGL_J0721.9+7120_daily_bin15.fits outfile=/scratch/kocevski/286983/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin15.fits ra=110.488 dec=71.3405 rad=12.0 tmin=243216001.0 tmax=243475201.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.54
user 1.17
sys 1.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/286983/ft2_4FGL_J0721.9+7120_daily_bin15.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/286983/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/286983/ft1_filtered_4FGL_J0721.9+7120_daily_bin15.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 1.70
user 0.31
sys 1.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286983/ft1_filtered_4FGL_J0721.9+7120_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/286983/ft2_4FGL_J0721.9+7120_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/286983/ltcube_243216001_243475201_4FGL_J0721.9+7120_daily_bin15.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/286983/ft2_4FGL_J0721.9+7120_daily_bin15.fits
.....................!
real 13.86
user 12.20
sys 1.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286983/ft1_filtered_4FGL_J0721.9+7120_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/286983/ft2_4FGL_J0721.9+7120_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/286983/ltcube_243216001_243475201_4FGL_J0721.9+7120_daily_bin15.fits outfile=/scratch/kocevski/286983/expmap_243216001_243475201_4FGL_J0721.9+7120_daily_bin15.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/286983/ltcube_243216001_243475201_4FGL_J0721.9+7120_daily_bin15.fits
.....................!
real 192.41
user 185.22
sys 6.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
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/286983/ft1_filtered_4FGL_J0721.9+7120_daily_bin15.fits scfile=/scratch/kocevski/286983/ft2_4FGL_J0721.9+7120_daily_bin15.fits outfile=/scratch/kocevski/286983/cmap_243216001_243475201_4FGL_J0721.9+7120_daily_bin15.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 1.69
user 0.37
sys 1.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286983/ft1_filtered_4FGL_J0721.9+7120_daily_bin15.fits scfile=/scratch/kocevski/286983/ft2_4FGL_J0721.9+7120_daily_bin15.fits outfile=/scratch/kocevski/286983/cmap_HighResolution_243216001_243475201_4FGL_J0721.9+7120_daily_bin15.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 1.73
user 0.39
sys 1.30

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.989       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    70.894       1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.402       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9230       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8834       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9206       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97954       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93436       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=   8971.674     FROM MIGRAD    STATUS=CONVERGED    449 CALLS     2170 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3829        .15214E-05** at limit **
   2  Prefactor     42.989        31.525       -.45138E-06   -.31968E-05
   3  Prefactor     .10000E-03    8.0158       -.60595E-06** at limit **
   4  Prefactor     70.892        27.568       -.39589E-06   -.28566E-04
   5  Prefactor     22.401        28.152       -.35413E-06   -.30904E-05
   6  norm          .10000E-03    3.8446       -.66584E-08** at limit **
   7  norm          2.9230        .77898       -.80066E-08   -.42652E-03
   8  Prefactor     .10000E-03    91.243       -.40658E-05** at limit **
   9  Prefactor     .10000E-03    16.590        .98938E-05** at limit **
  10  norm          .10000E-03    7.7841       -.12873E-05** at limit **
  11  Prefactor     .10000E-03    18.144       -.79965E-05** at limit **
  12  Prefactor     .10000E-03    12.793       -.31428E-05** at limit **
  13  norm          2.8833        3.1448       -.25897E-06   -.82055E-03
  14  Prefactor     .10000E-03    1.4312       -.59121E-08** at limit **
  15  Prefactor     1.9209        1.6839       -.18256E-07   -.33238E-03
  16  norm          .10000E-03    .45186       -.81565E-09** at limit **
  17  Prefactor     .10000E-03    57.585        .32260E-05** at limit **
  18  Prefactor     .10000E-03    7.4766        .12167E-05** at limit **
  19  Prefactor     .10000E-03    6.2538       -.40168E-07** at limit **
  20  Normalizat    .97960        .16145        .14857E-06   -.47068E-04
  21  Prefactor     .93432        .93265E-01    .64068E-07   -.13301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 42.9886
  Prefactor  = 0.0001
  Prefactor  = 70.8924
  Prefactor  = 22.4015
  norm       = 0.0001
  norm       = 2.92303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.88332
  Prefactor  = 0.0001
  Prefactor  = 1.92092
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.979601
  Prefactor  = 0.934324
 **********
 **   18 **HESSE 
 **********

 FCN=   8971.674     FROM HESSE     STATUS=OK           309 CALLS     2479 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.989        31.550        .61143E-04   -1.4396    
   3  Prefactor     .10000E-03    8.0244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     70.892        27.594        .47677E-04   -1.4022    
   5  Prefactor     22.401        28.159        .84627E-04   -1.4761    
   6  norm          .10000E-03    3.8456        .18138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9230        .77932        .41330E-04   -1.5366    
   8  Prefactor     .10000E-03    91.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    7.7886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8833        3.1557        .16225E-03   -1.5368    
  14  Prefactor     .10000E-03    1.4376        .11065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9209        1.6657        .10636E-03   -1.5431    
  16  norm          .10000E-03    .45551        .62147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    57.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.4877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .97960        .18505        .30067E-03   -.93717    
  21  Prefactor     .93432        .10718        .18285E-03   -.94952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1788e-10
Minuit parameter uncertainties:
  1  6.59028e-07
  2  31.5621
  3  3.18217e-06
  4  27.5985
  5  28.1754
  6  4.53416e-08
  7  0.779323
  8  9.20887e-06
  9  8.32603e-06
  10  3.90301e-09
  11  2.44036e-05
  12  5.98638e-07
  13  3.15585
  14  3.99229e-07
  15  1.66571
  16  2.55931e-07
  17  1.82426e-05
  18  2.20483e-06
  19  8.26147e-07
  20  0.185169
  21  0.107204
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.923e+00  7.793e-01  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:  9.343e-01  1.072e-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:  9.796e-01  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 48.81
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 3.71e-08
Energy Flux (Fixed Index): 8.28e-05 +/- 2.21e-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) = 8971.66099136
delta logL = 0.0134655992188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8971.66031302
delta logL = 0.0141439483359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9081       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0239       1.0000          .0000       5.0000    
     3 'Normalizat'    .97503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93567       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=   8971.660     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      206 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9081        1.3076        .59565E-02   -.17438E-03
   2  alpha         2.0239        .36268        .18560        .87999E-04
   3  Normalizat    .97502        .15768        .68099E-01   -.24253E-04
   4  Prefactor     .93567        .93124E-01    .45458E-01    .31877E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9081
  alpha      = 2.02391
  Normalizat = 0.975024
  Prefactor  = 0.935674
 **********
 **   18 **HESSE 
 **********

 FCN=   8971.660     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9081        .77700        .40886E-04   -1.5367    
   2  alpha         2.0239        .22552        .78335E-02   -.19161    
   3  Normalizat    .97502        .18022        .30124E-03   -.93872    
   4  Prefactor     .93567        .10640        .18271E-03   -.94905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06448e-11
Minuit parameter uncertainties:
  1  0.777
  2  0.22584
  3  0.18033
  4  0.106425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286983': 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) = 8971.66031302
delta logL = 0.0141439485542

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.908e+00  7.770e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.024e+00  2.258e-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:  9.357e-01  1.064e-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:  9.750e-01  1.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 48.84
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.02 +/- 0.23
Photon Flux (Free Index): 1.44e-07 +/- 4.61e-08
Energy Flux (Free Index): 7.96e-05 +/- 2.80e-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/286983/cmap_HighResolution_243216001_243475201_4FGL_J0721.9+7120_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='7.96e-05', photon_flux_error='3.71e-08', dlogl='1.41e-02', energy_flux='8.28e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-08-27 04:04:37.778200', photon_index_error2='0.23', photon_index2='2.02', ts='48.81', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='0.98', time_epoch_completed='1630062277.78', return_code='0', job_id='286983', GAL2='0.94', EG2='0.98', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='4.61e-08', ts2='48.84', photon_index='1.99' WHERE bin_id='15' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:04:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 286983: <4FGL_J0721.9+7120_daily_bin15> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin15> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 03:50:42 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 03:50:51 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:50:51 2021
Terminated at Fri Aug 27 04:04:38 2021
Results reported at Fri Aug 27 04:04:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin15 110.488 71.3405 243216001 243475201 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 :                                   810.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            836 sec.

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

