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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin7
RA = 110.488, Dec = 71.3405
tmin = 241142401, tmax = 241401601
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='286970', job_status='RUN', time_executed='2021-08-27 03:51:20.578198', time_epoch_executed='1630061480.58' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286970

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286970/ft1_4FGL_J0721.9+7120_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286970/ft2_4FGL_J0721.9+7120_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286970/ft1_4FGL_J0721.9+7120_daily_bin7.fits outfile=/scratch/kocevski/286970/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin7.fits ra=110.488 dec=71.3405 rad=12.0 tmin=241142401.0 tmax=241401601.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.62
user 1.30
sys 1.05

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286970/ft1_filtered_4FGL_J0721.9+7120_daily_bin7.fits" evtable="EVENTS" scfile=/scratch/kocevski/286970/ft2_4FGL_J0721.9+7120_daily_bin7.fits sctable="SC_DATA" outfile=/scratch/kocevski/286970/ltcube_241142401_241401601_4FGL_J0721.9+7120_daily_bin7.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/286970/ft2_4FGL_J0721.9+7120_daily_bin7.fits
.....................!
real 13.66
user 12.29
sys 1.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286970/ft1_filtered_4FGL_J0721.9+7120_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/286970/ft2_4FGL_J0721.9+7120_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/286970/ltcube_241142401_241401601_4FGL_J0721.9+7120_daily_bin7.fits outfile=/scratch/kocevski/286970/expmap_241142401_241401601_4FGL_J0721.9+7120_daily_bin7.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/286970/ltcube_241142401_241401601_4FGL_J0721.9+7120_daily_bin7.fits
.....................!
real 194.13
user 187.69
sys 6.02

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/286970/ft1_filtered_4FGL_J0721.9+7120_daily_bin7.fits scfile=/scratch/kocevski/286970/ft2_4FGL_J0721.9+7120_daily_bin7.fits outfile=/scratch/kocevski/286970/cmap_241142401_241401601_4FGL_J0721.9+7120_daily_bin7.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.47
user 0.36
sys 1.02

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286970/ft1_filtered_4FGL_J0721.9+7120_daily_bin7.fits scfile=/scratch/kocevski/286970/ft2_4FGL_J0721.9+7120_daily_bin7.fits outfile=/scratch/kocevski/286970/cmap_HighResolution_241142401_241401601_4FGL_J0721.9+7120_daily_bin7.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.31
user 0.38
sys 0.91

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.828       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40920E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.780       1.0000         .10000E-03   10000.    
     5 'Prefactor '    105.76       1.0000         .10000E-03   10000.    
     6 'norm      '    13.577       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2422       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.145       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8526       1.0000         .10000E-03   10000.    
    13 'norm      '    .21023E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9266       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6813       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7460       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18720E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .83711       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1509       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=   7579.776     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     2221 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.818        40.069       -.97343E-05    .72964E-04
   2  Prefactor     .10006E-03    224.87       -.10056E-03** at limit **
   3  Prefactor     .10000E-03    42.884        .68273E-05** at limit **
   4  Prefactor     67.794        44.067        .10478E-04   -.25131E-04
   5  Prefactor     105.72        65.577       -.26963E-04    .10406E-03
   6  norm          13.578        18.704       -.15010E-05   -.15305E-04
   7  norm          2.2422        .87163       -.21083E-06   -.31444E-03
   8  Prefactor     .10000E-03    41.924       -.17764E-04** at limit **
   9  Prefactor     21.149        48.850        .25243E-05   -.10334E-04
  10  norm          .10000E-03    7.0381       -.19524E-06** at limit **
  11  Prefactor     .10000E-03    14.206        .16628E-06** at limit **
  12  Prefactor     8.8559        40.977        .38952E-05   -.10411E-04
  13  norm          .10768E-03    1.5355       -.59602E-06** at limit **
  14  Prefactor     .10000E-03    4.0930       -.29846E-06** at limit **
  15  Prefactor     2.9279        2.3100        .12934E-07   -.63859E-04
  16  norm          1.6814        2.6412       -.56174E-06   -.11652E-02
  17  Prefactor     .10000E-03    43.008        .76192E-05** at limit **
  18  Prefactor     2.7463        32.699       -.63219E-06   -.86979E-04
  19  Prefactor     .10111E-03    8.3089        .22376E-05** at limit **
  20  Normalizat    .83712        .21539       -.11009E-05    .19515E-03
  21  Prefactor     1.1509        .11580        .13181E-05    .27130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.8179
  Prefactor  = 0.00010006
  Prefactor  = 0.000100005
  Prefactor  = 67.7942
  Prefactor  = 105.723
  norm       = 13.578
  norm       = 2.24221
  Prefactor  = 0.0001
  Prefactor  = 21.1491
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.85594
  norm       = 0.000107685
  Prefactor  = 0.0001
  Prefactor  = 2.92794
  norm       = 1.68137
  Prefactor  = 0.0001
  Prefactor  = 2.74635
  Prefactor  = 0.000101105
  Normalizat = 0.837117
  Prefactor  = 1.15089
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.776     FROM HESSE     STATUS=OK           325 CALLS     2546 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.818        40.086        .63514E-04   -1.4445    
   2  Prefactor     .10006E-03    225.24        .21253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     67.794        43.908        .48753E-04   -1.4059    
   5  Prefactor     105.72        65.606        .19552E-03   -1.3648    
   6  norm          13.578        18.705        .10871E-03   -1.4971    
   7  norm          2.2422        .86992        .47083E-04   -1.5408    
   8  Prefactor     .10000E-03    41.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.149        49.187        .87104E-04   -1.4788    
  10  norm          .10000E-03    7.0395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8559        41.100        .13471E-03   -1.5113    
  13  norm          .10768E-03    4.3405        .34880E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1424        .17184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9279        2.3064        .10886E-03   -1.5366    
  16  norm          1.6814        2.5691        .15128E-03   -1.5449    
  17  Prefactor     .10000E-03    43.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7463        31.372        .24568E-03   -1.5377    
  19  Prefactor     .10111E-03    80.773        .48124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .83712        .23858        .35544E-03   -.98706    
  21  Prefactor     1.1509        .12922        .18569E-03   -.87856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.624e-08
Minuit parameter uncertainties:
  1  40.1133
  2  0.00740763
  3  0.000906215
  4  43.9292
  5  65.6512
  6  18.7126
  7  0.869923
  8  5.716e-06
  9  49.2815
  10  6.43728e-06
  11  3.18822e-06
  12  38.1995
  13  0.0115518
  14  2.81501e-05
  15  2.3065
  16  2.56926
  17  3.84022e-05
  18  18.5763
  19  0.0189211
  20  0.238876
  21  0.129253
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.242e+00  8.699e-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.151e+00  1.293e-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.371e-01  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.51
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 4.15e-08
Energy Flux (Fixed Index): 6.35e-05 +/- 2.46e-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) = 7579.76825569
delta logL = 0.00761208783842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7579.76764936
delta logL = 0.00821842235109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2250       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9342       1.0000          .0000       5.0000    
     3 'Normalizat'    .84295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1493       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=   7579.768     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2252        1.9615        .68913E-02    .56187E-04
   2  alpha         1.9342        .75517        .30390       -.15571E-04
   3  Normalizat    .84274        .19640        .80062E-01    .28177E-04
   4  Prefactor     1.1494        .11515        .35958E-01   -.24694E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22515
  alpha      = 1.93425
  Normalizat = 0.842744
  Prefactor  = 1.14938
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.768     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .17E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2252        .86079        .47500E-04   -1.5410    
   2  alpha         1.9342        .40024        .11127E-01   -.22828    
   3  Normalizat    .84274        .21081        .35443E-03   -.98502    
   4  Prefactor     1.1494        .12502        .18581E-03   -.87904    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71383e-13
Minuit parameter uncertainties:
  1  0.860793
  2  0.402061
  3  0.211019
  4  0.125054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286970': 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) = 7579.76764884
delta logL = 0.00821894157798

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  2.225e+00  8.608e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.934e+00  4.021e-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.149e+00  1.251e-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.427e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.53
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.93 +/- 0.40
Photon Flux (Free Index): 1.01e-07 +/- 5.87e-08
Energy Flux (Free Index): 6.65e-05 +/- 3.58e-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/286970/cmap_HighResolution_241142401_241401601_4FGL_J0721.9+7120_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='6.65e-05', photon_flux_error='4.15e-08', dlogl='8.22e-03', energy_flux='6.35e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-08-27 04:03:24.220936', photon_index_error2='0.40', photon_index2='1.93', ts='31.51', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='3.58e-05', EG='0.84', time_epoch_completed='1630062204.22', return_code='0', job_id='286970', GAL2='1.15', EG2='0.84', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='5.87e-08', ts2='31.53', photon_index='1.99' WHERE bin_id='7' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:03:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 286970: <4FGL_J0721.9+7120_daily_bin7> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin7> 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) <bullet0044>, 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:03:25 2021
Results reported at Fri Aug 27 04:03:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin7 110.488 71.3405 241142401 241401601 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 :                                   735.02 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             327.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            764 sec.

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

