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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin1006
RA = 110.488, Dec = 71.3405
tmin = 500083201, tmax = 500342401
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='294421', job_status='RUN', time_executed='2021-08-27 04:18:07.094844', time_epoch_executed='1630063087.09' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/294421

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/294421/ft1_4FGL_J0721.9+7120_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/294421/ft2_4FGL_J0721.9+7120_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/294421/ft1_4FGL_J0721.9+7120_daily_bin1006.fits outfile=/scratch/kocevski/294421/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin1006.fits ra=110.488 dec=71.3405 rad=12.0 tmin=500083201.0 tmax=500342401.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 6.02
user 5.43
sys 0.56

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/294421/ft1_filtered_4FGL_J0721.9+7120_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/294421/ft2_4FGL_J0721.9+7120_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/294421/ltcube_500083201_500342401_4FGL_J0721.9+7120_daily_bin1006.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/294421/ft2_4FGL_J0721.9+7120_daily_bin1006.fits
.....................!
real 12.30
user 11.55
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/294421/ft1_filtered_4FGL_J0721.9+7120_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/294421/ft2_4FGL_J0721.9+7120_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/294421/ltcube_500083201_500342401_4FGL_J0721.9+7120_daily_bin1006.fits outfile=/scratch/kocevski/294421/expmap_500083201_500342401_4FGL_J0721.9+7120_daily_bin1006.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/294421/ltcube_500083201_500342401_4FGL_J0721.9+7120_daily_bin1006.fits
.....................!
real 192.72
user 186.24
sys 5.89

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/294421/ft1_filtered_4FGL_J0721.9+7120_daily_bin1006.fits scfile=/scratch/kocevski/294421/ft2_4FGL_J0721.9+7120_daily_bin1006.fits outfile=/scratch/kocevski/294421/cmap_500083201_500342401_4FGL_J0721.9+7120_daily_bin1006.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.86
user 0.36
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/294421/ft1_filtered_4FGL_J0721.9+7120_daily_bin1006.fits scfile=/scratch/kocevski/294421/ft2_4FGL_J0721.9+7120_daily_bin1006.fits outfile=/scratch/kocevski/294421/cmap_HighResolution_500083201_500342401_4FGL_J0721.9+7120_daily_bin1006.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.86
user 0.37
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.370       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.641       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.651       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    22.681       1.0000         .10000E-03   10000.    
     7 'norm      '    .58894       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .70603       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8297       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2747       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0770       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4601       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.038       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .94512       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1313       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=   9549.732     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2175 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.365        29.071       -.51729E-05    .14473E-04
   2  Prefactor     25.632        32.530       -.11503E-04    .12889E-04
   3  Prefactor     .10000E-03    6.9183       -.17004E-05** at limit **
   4  Prefactor     31.647        24.129       -.31819E-05    .41493E-04
   5  Prefactor     .10000E-03    7.8033       -.87055E-05** at limit **
   6  norm          22.681        16.179        .12557E-05    .43598E-04
   7  norm          .58895        .42829       -.34765E-07   -.50032E-04
   8  Prefactor     .10000E-03    51.437       -.52673E-05** at limit **
   9  Prefactor     .10000E-03    10.762       -.29805E-05** at limit **
  10  norm          .64210        12.497       -.28541E-05    .28106E-04
  11  Prefactor     .10000E-03    17.294       -.12361E-04** at limit **
  12  Prefactor     .10000E-03    23.154        .12585E-04** at limit **
  13  norm          1.8298        1.9620       -.20228E-06   -.41575E-03
  14  Prefactor     1.2748        2.7498       -.81720E-06   -.11494E-02
  15  Prefactor     1.0774        1.4557       -.42027E-06   -.11952E-02
  16  norm          1.4617        2.0599        .36748E-06   -.11034E-02
  17  Prefactor     .10000E-03    11.512        .77927E-05** at limit **
  18  Prefactor     12.027        21.355       -.76169E-05   -.36601E-04
  19  Prefactor     .10000E-03    7.4566        .92875E-05** at limit **
  20  Normalizat    .94503        .16941        .23538E-05    .61304E-04
  21  Prefactor     1.1314        .98929E-01    .74555E-06    .16778E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.3652
  Prefactor  = 25.632
  Prefactor  = 0.0001
  Prefactor  = 31.6468
  Prefactor  = 0.0001
  norm       = 22.6813
  norm       = 0.588948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.642104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82979
  Prefactor  = 1.27478
  Prefactor  = 1.07743
  norm       = 1.46165
  Prefactor  = 0.0001
  Prefactor  = 12.0271
  Prefactor  = 0.0001
  Normalizat = 0.94503
  Prefactor  = 1.13136
 **********
 **   18 **HESSE 
 **********

 FCN=   9549.732     FROM HESSE     STATUS=OK           321 CALLS     2496 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.365        29.107        .71539E-04   -1.4587    
   2  Prefactor     25.632        32.555        .79110E-04   -1.4695    
   3  Prefactor     .10000E-03    6.9216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.647        24.150        .71222E-04   -1.4582    
   5  Prefactor     .10000E-03    7.7861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          22.681        16.185        .84106E-04   -1.4755    
   7  norm          .58895        .41787        .52623E-04   -1.5554    
   8  Prefactor     .10000E-03    51.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .64210        90.879        .66960E-02   -1.5548    
  11  Prefactor     .10000E-03    17.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8298        1.9476        .13585E-03   -1.5437    
  14  Prefactor     1.2748        2.7219        .23287E-03   -1.5482    
  15  Prefactor     1.0774        1.4256        .13037E-03   -1.5500    
  16  norm          1.4617        2.0140        .14352E-03   -1.5466    
  17  Prefactor     .10000E-03    11.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.027        21.035        .11546E-03   -1.5014    
  19  Prefactor     .10000E-03    7.4647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .94503        .18897        .32099E-03   -.94895    
  21  Prefactor     1.1314        .11125        .18066E-03   -.88470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6888e-09
Minuit parameter uncertainties:
  1  29.1201
  2  32.5774
  3  1.50802e-05
  4  24.1575
  5  6.78363e-06
  6  16.1878
  7  0.417867
  8  1.64794e-05
  9  4.53285e-06
  10  15.3005
  11  1.98998e-05
  12  2.21567e-05
  13  1.94763
  14  2.72213
  15  1.42564
  16  2.01414
  17  7.51514e-06
  18  21.0483
  19  2.10712e-05
  20  0.1891
  21  0.11127
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  5.889e-01  4.179e-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:  1.131e+00  1.113e-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.450e-01  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.99
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 2.81e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.18e-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) = 9549.72645556
delta logL = 0.00577889858687

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9549.7263271
delta logL = 0.00590736021695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .59160       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0523       1.0000          .0000       5.0000    
     3 'Normalizat'    .94251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1321       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=   9549.726     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      227 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .59134        9.9257        .11540E-01    .37115E-03
   2  alpha         2.0519        3.1246        .42018        .41198E-05
   3  Normalizat    .94261        .68921E-01    .72627E-01   -.12065E-04
   4  Prefactor     1.1321        .38223E-01    .36477E-01    .53001E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.591343
  alpha      = 2.05185
  Normalizat = 0.942615
  Prefactor  = 1.13207
 **********
 **   18 **HESSE 
 **********

 FCN=   9549.726     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .59134        .41472        .52099E-04   -1.5554    
   2  alpha         2.0519        .60144        .18281E-01   -.18023    
   3  Normalizat    .94261        .18035        .32136E-03   -.94978    
   4  Prefactor     1.1321        .10973        .18061E-03   -.88448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02948e-11
Minuit parameter uncertainties:
  1  0.414717
  2  0.6076
  3  0.180468
  4  0.109755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/294421': 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) = 9549.72632649
delta logL = 0.00590796599317

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  5.913e-01  4.147e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.052e+00  6.076e-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.132e+00  1.098e-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.426e-01  1.805e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.00
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.05 +/- 0.61
Photon Flux (Free Index): 3.01e-08 +/- 2.76e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.35e-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/294421/cmap_HighResolution_500083201_500342401_4FGL_J0721.9+7120_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.81e-08', energy_flux2='1.58e-05', photon_flux_error='1.99e-08', dlogl='5.91e-03', energy_flux='1.67e-05', photon_flux2='3.01e-08', job_status='DONE', time_completed='2021-08-27 04:32:15.632909', photon_index_error2='0.61', photon_index2='2.05', ts='4.99', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.95', time_epoch_completed='1630063935.63', return_code='0', job_id='294421', GAL2='1.13', EG2='0.94', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.76e-08', ts2='5.00', photon_index='1.99' WHERE bin_id='1006' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:32:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 294421: <4FGL_J0721.9+7120_daily_bin1006> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin1006> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 27 04:16:02 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:16:13 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:16:13 2021
Terminated at Fri Aug 27 04:32:16 2021
Results reported at Fri Aug 27 04:32:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin1006 110.488 71.3405 500083201 500342401 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 :                                   848.60 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            974 sec.

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

