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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin9
RA = 110.488, Dec = 71.3405
tmin = 241660801, tmax = 241920001
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='286973', job_status='RUN', time_executed='2021-08-27 03:53:05.419779', time_epoch_executed='1630061585.42' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286973

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286973/ft1_4FGL_J0721.9+7120_daily_bin9.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286973/ft2_4FGL_J0721.9+7120_daily_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286973/ft1_4FGL_J0721.9+7120_daily_bin9.fits outfile=/scratch/kocevski/286973/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin9.fits ra=110.488 dec=71.3405 rad=12.0 tmin=241660801.0 tmax=241920001.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 1.53
user 1.28
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286973/ft1_filtered_4FGL_J0721.9+7120_daily_bin9.fits" evtable="EVENTS" scfile=/scratch/kocevski/286973/ft2_4FGL_J0721.9+7120_daily_bin9.fits sctable="SC_DATA" outfile=/scratch/kocevski/286973/ltcube_241660801_241920001_4FGL_J0721.9+7120_daily_bin9.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/286973/ft2_4FGL_J0721.9+7120_daily_bin9.fits
.....................!
real 12.83
user 12.36
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286973/ft1_filtered_4FGL_J0721.9+7120_daily_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/286973/ft2_4FGL_J0721.9+7120_daily_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/286973/ltcube_241660801_241920001_4FGL_J0721.9+7120_daily_bin9.fits outfile=/scratch/kocevski/286973/expmap_241660801_241920001_4FGL_J0721.9+7120_daily_bin9.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/286973/ltcube_241660801_241920001_4FGL_J0721.9+7120_daily_bin9.fits
.....................!
real 190.07
user 185.32
sys 4.38

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/286973/ft1_filtered_4FGL_J0721.9+7120_daily_bin9.fits scfile=/scratch/kocevski/286973/ft2_4FGL_J0721.9+7120_daily_bin9.fits outfile=/scratch/kocevski/286973/cmap_241660801_241920001_4FGL_J0721.9+7120_daily_bin9.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.60
user 0.39
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286973/ft1_filtered_4FGL_J0721.9+7120_daily_bin9.fits scfile=/scratch/kocevski/286973/ft2_4FGL_J0721.9+7120_daily_bin9.fits outfile=/scratch/kocevski/286973/cmap_HighResolution_241660801_241920001_4FGL_J0721.9+7120_daily_bin9.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.64
user 0.38
sys 0.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.621       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.523       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5672       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.384       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.7246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.640       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.8963       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36180       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14280E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.198       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .35309E-01   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87303       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0795       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=   8113.398     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2564 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.939       -.37545E-06** at limit **
   2  Prefactor     .10000E-03    11.393        .56064E-07** at limit **
   3  Prefactor     .10000E-03    21.483       -.11332E-05** at limit **
   4  Prefactor     44.624        31.496       -.27112E-08   -.12153E-03
   5  Prefactor     .10000E-03    14.154       -.18402E-07** at limit **
   6  norm          13.520        19.143        .22198E-06    .45944E-04
   7  norm          3.5672        .88894        .54001E-08   -.15282E-03
   8  Prefactor     17.454        225.81        .18250E-05    .84554E-05
   9  Prefactor     .10000E-03    11.537       -.26452E-06** at limit **
  10  norm          7.7232        19.690        .24696E-06    .76309E-05
  11  Prefactor     34.629        30.076       -.19556E-05   -.17370E-03
  12  Prefactor     .10000E-03    19.291       -.21210E-07** at limit **
  13  norm          6.8952        3.2869       -.20662E-06   -.68191E-03
  14  Prefactor     .36166        2.4533        .23627E-05   -.61664E-04
  15  Prefactor     .10007E-03    .81621        .65913E-06** at limit **
  16  norm          .10000E-03    .39737        .13740E-07** at limit **
  17  Prefactor     26.192        33.474        .11359E-06    .59305E-04
  18  Prefactor     .10000E-03    6.2035       -.34692E-08** at limit **
  19  Prefactor     .16453E-03    11.015       -.52975E-06** at limit **
  20  Normalizat    .87320        .18535       -.16000E-05   -.13730E-03
  21  Prefactor     1.0794        .10816        .34617E-06   -.29516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.6243
  Prefactor  = 0.0001
  norm       = 13.5204
  norm       = 3.5672
  Prefactor  = 17.4539
  Prefactor  = 0.0001
  norm       = 7.72317
  Prefactor  = 34.6286
  Prefactor  = 0.0001
  norm       = 6.89524
  Prefactor  = 0.361661
  Prefactor  = 0.000100075
  norm       = 0.0001
  Prefactor  = 26.1924
  Prefactor  = 0.0001
  Prefactor  = 0.000164527
  Normalizat = 0.873196
  Prefactor  = 1.07936
 **********
 **   18 **HESSE 
 **********

 FCN=   8113.398     FROM HESSE     STATUS=OK           319 CALLS     2883 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.624        31.467        .60019E-04   -1.4371    
   5  Prefactor     .10000E-03    14.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.520        19.134        .10892E-03   -1.4972    
   7  norm          3.5672        .88933        .40636E-04   -1.5330    
   8  Prefactor     17.454        224.88        .96060E-04   -1.4872    
   9  Prefactor     .10000E-03    11.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.7232        19.673        .14428E-03   -1.5152    
  11  Prefactor     34.629        29.467        .68088E-04   -1.4530    
  12  Prefactor     .10000E-03    19.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.8952        3.2742        .10619E-03   -1.5183    
  14  Prefactor     .36166        2.3597        .27343E-03   -1.5588    
  15  Prefactor     .10007E-03    12.292        .14045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .39875        .55437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.192        33.404        .78267E-04   -1.4684    
  18  Prefactor     .10000E-03    6.2115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16453E-03    11.126        .90993E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .87320        .20787        .33083E-03   -.97408    
  21  Prefactor     1.0794        .12211        .18285E-03   -.90129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.14799e-09
Minuit parameter uncertainties:
  1  5.33807e-05
  2  2.84157e-05
  3  4.89103e-05
  4  31.4788
  5  8.05897e-07
  6  19.1425
  7  0.889333
  8  125.887
  9  3.07002e-05
  10  19.6894
  11  29.4794
  12  8.76438e-07
  13  3.27432
  14  1.84746
  15  0.00191678
  16  4.84321e-07
  17  33.4274
  18  3.87209e-06
  19  0.0535991
  20  0.208059
  21  0.122143
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  3.567e+00  8.893e-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.079e+00  1.221e-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.732e-01  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 72.09
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.70e-07 +/- 4.24e-08
Energy Flux (Fixed Index): 1.01e-04 +/- 2.52e-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) = 8112.65275167
delta logL = 0.74518127904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8112.64948251
delta logL = 0.748450437821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5064       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7293       1.0000          .0000       5.0000    
     3 'Normalizat'    .91139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0677       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=   8112.649     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5064        .92353        .53977E-02    .85721E-04
   2  alpha         1.7294        .19576        .16591       -.99909E-05
   3  Normalizat    .91144        .17717        .73407E-01    .46856E-05
   4  Prefactor     1.0676        .10715        .38971E-01    .11883E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.50641
  alpha      = 1.72941
  Normalizat = 0.91144
  Prefactor  = 1.06761
 **********
 **   18 **HESSE 
 **********

 FCN=   8112.649     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5064        .94473        .42519E-04   -1.5333    
   2  alpha         1.7294        .20699        .70882E-02   -.31334    
   3  Normalizat    .91144        .20113        .32483E-03   -.96059    
   4  Prefactor     1.0676        .12160        .18384E-03   -.90508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.53985e-12
Minuit parameter uncertainties:
  1  0.944735
  2  0.20725
  3  0.201294
  4  0.121634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286973': 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) = 8112.64948227
delta logL = 0.748450677454

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  3.506e+00  9.447e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.729e+00  2.072e-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.068e+00  1.216e-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.114e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 73.46
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.73 +/- 0.21
Photon Flux (Free Index): 1.35e-07 +/- 4.52e-08
Energy Flux (Free Index): 1.41e-04 +/- 5.67e-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/286973/cmap_HighResolution_241660801_241920001_4FGL_J0721.9+7120_daily_bin9.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-07', energy_flux2='1.41e-04', photon_flux_error='4.24e-08', dlogl='7.48e-01', energy_flux='1.01e-04', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-08-27 04:06:06.835817', photon_index_error2='0.21', photon_index2='1.73', ts='72.09', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='5.67e-05', EG='0.87', time_epoch_completed='1630062366.84', return_code='0', job_id='286973', GAL2='1.07', EG2='0.91', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='4.52e-08', ts2='73.46', photon_index='1.99' WHERE bin_id='9' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:06:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 286973: <4FGL_J0721.9+7120_daily_bin9> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin9 110.488 71.3405 241660801 241920001 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 :                                   781.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            926 sec.

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

