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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin102
RA = 110.488, Dec = 71.3405
tmin = 265766401, tmax = 266025601
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='288184', job_status='RUN', time_executed='2021-08-27 03:56:24.267622', time_epoch_executed='1630061784.27' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/288184

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/288184/ft1_4FGL_J0721.9+7120_daily_bin102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/288184/ft2_4FGL_J0721.9+7120_daily_bin102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/288184/ft1_4FGL_J0721.9+7120_daily_bin102.fits outfile=/scratch/kocevski/288184/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin102.fits ra=110.488 dec=71.3405 rad=12.0 tmin=265766401.0 tmax=266025601.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 4.27
user 1.27
sys 2.93

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/288184/ft2_4FGL_J0721.9+7120_daily_bin102.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/288184/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin102.fits evtable="EVENTS" outfile="/scratch/kocevski/288184/ft1_filtered_4FGL_J0721.9+7120_daily_bin102.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 3.65
user 0.29
sys 3.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/288184/ft1_filtered_4FGL_J0721.9+7120_daily_bin102.fits" evtable="EVENTS" scfile=/scratch/kocevski/288184/ft2_4FGL_J0721.9+7120_daily_bin102.fits sctable="SC_DATA" outfile=/scratch/kocevski/288184/ltcube_265766401_266025601_4FGL_J0721.9+7120_daily_bin102.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/288184/ft2_4FGL_J0721.9+7120_daily_bin102.fits
.....................!
real 15.62
user 12.00
sys 3.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/288184/ft1_filtered_4FGL_J0721.9+7120_daily_bin102.fits evtable="EVENTS" scfile=/scratch/kocevski/288184/ft2_4FGL_J0721.9+7120_daily_bin102.fits sctable="SC_DATA" expcube=/scratch/kocevski/288184/ltcube_265766401_266025601_4FGL_J0721.9+7120_daily_bin102.fits outfile=/scratch/kocevski/288184/expmap_265766401_266025601_4FGL_J0721.9+7120_daily_bin102.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/288184/ltcube_265766401_266025601_4FGL_J0721.9+7120_daily_bin102.fits
.....................!
real 194.28
user 185.98
sys 7.83

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/288184/ft1_filtered_4FGL_J0721.9+7120_daily_bin102.fits scfile=/scratch/kocevski/288184/ft2_4FGL_J0721.9+7120_daily_bin102.fits outfile=/scratch/kocevski/288184/cmap_265766401_266025601_4FGL_J0721.9+7120_daily_bin102.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=110.488 yref=71.3405 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 3.29
user 0.34
sys 2.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/288184/ft1_filtered_4FGL_J0721.9+7120_daily_bin102.fits scfile=/scratch/kocevski/288184/ft2_4FGL_J0721.9+7120_daily_bin102.fits outfile=/scratch/kocevski/288184/cmap_HighResolution_265766401_266025601_4FGL_J0721.9+7120_daily_bin102.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=110.488 yref=71.3405 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 3.30
user 0.36
sys 2.92

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.887       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.530       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.023       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.5401       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6608       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1766       1.0000         .10000E-03   10000.    
    16 'norm      '    4.9940       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2899       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92732       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=   10041.92     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2165 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.521       -.11306E-04** at limit **
   2  Prefactor     9.6166        23.424       -.24492E-05   -.10515E-04
   3  Prefactor     .10000E-03    9.1610        .12084E-04** at limit **
   4  Prefactor     17.887        26.612        .60311E-07   -.85720E-04
   5  Prefactor     30.524        29.095       -.72284E-05    .36239E-05
   6  norm          .10000E-03    6.9511       -.24464E-05** at limit **
   7  norm          3.2115        .78728        .21999E-07    .11002E-03
   8  Prefactor     18.023        279.65       -.34773E-07    .10551E-05
   9  Prefactor     .10000E-03    11.099       -.80821E-05** at limit **
  10  norm          .10000E-03    27.075       -.73886E-05** at limit **
  11  Prefactor     .10000E-03    10.432       -.26970E-05** at limit **
  12  Prefactor     .10000E-03    15.356        .40319E-05** at limit **
  13  norm          5.5399        3.2346        .20556E-06   -.42421E-03
  14  Prefactor     1.6606        2.9760       -.54916E-06   -.81607E-03
  15  Prefactor     2.1767        1.5769       -.16888E-06   -.67039E-03
  16  norm          4.9938        3.0931        .77464E-07   -.46687E-03
  17  Prefactor     .10000E-03    16.594        .12753E-04** at limit **
  18  Prefactor     33.758        31.768       -.12330E-05    .74357E-06
  19  Prefactor     .10000E-03    5.0331        .94417E-07** at limit **
  20  Normalizat    1.2899        .17587        .35331E-06    .19093E-04
  21  Prefactor     .92730        .95999E-01    .33795E-06    .32442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.61655
  Prefactor  = 0.0001
  Prefactor  = 17.8869
  Prefactor  = 30.5244
  norm       = 0.0001
  norm       = 3.21152
  Prefactor  = 18.0231
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.53993
  Prefactor  = 1.66061
  Prefactor  = 2.17667
  norm       = 4.99384
  Prefactor  = 0.0001
  Prefactor  = 33.7583
  Prefactor  = 0.0001
  Normalizat = 1.28993
  Prefactor  = 0.9273
 **********
 **   18 **HESSE 
 **********

 FCN=   10041.92     FROM HESSE     STATUS=OK           315 CALLS     2480 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6166        23.436        .12922E-03   -1.5088    
   3  Prefactor     .10000E-03    9.1461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.887        26.665        .94701E-04   -1.4862    
   5  Prefactor     30.524        29.100        .72513E-04   -1.4602    
   6  norm          .10000E-03    6.9682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2115        .78819        .42220E-04   -1.5350    
   8  Prefactor     18.023        280.22        .94342E-04   -1.4859    
   9  Prefactor     .10000E-03    11.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    27.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.5399        3.2335        .12927E-03   -1.5237    
  14  Prefactor     1.6606        2.9597        .22586E-03   -1.5450    
  15  Prefactor     2.1767        1.5676        .10143E-03   -1.5413    
  16  norm          4.9938        3.0965        .10736E-03   -1.5261    
  17  Prefactor     .10000E-03    16.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     33.758        31.861        .68968E-04   -1.4545    
  19  Prefactor     .10000E-03    5.0403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2899        .20269        .30051E-03   -.83867    
  21  Prefactor     .92730        .11013        .20182E-03   -.95194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23684e-10
Minuit parameter uncertainties:
  1  2.93671e-06
  2  23.4581
  3  1.25808e-05
  4  26.6828
  5  29.1137
  6  8.22789e-08
  7  0.788188
  8  142.937
  9  1.74668e-06
  10  5.41659e-05
  11  7.28628e-07
  12  1.48204e-06
  13  3.23364
  14  2.96001
  15  1.56766
  16  3.09658
  17  9.28228e-06
  18  31.8769
  19  9.57317e-07
  20  0.202817
  21  0.11016
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  3.212e+00  7.882e-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.273e-01  1.102e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  1.290e+00  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 67.63
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 3.76e-08
Energy Flux (Fixed Index): 9.10e-05 +/- 2.23e-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) = 10041.806575
delta logL = 0.11294665911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10041.7911958
delta logL = 0.128325846486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2271       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8735       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92211       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=   10041.79     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      202 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2270        .96269        .56375E-02   -.29305E-02
   2  alpha         1.8734        .24849        .19809        .71990E-05
   3  Normalizat    1.3064        .16597        .67594E-01    .14748E-04
   4  Prefactor     .92214        .95603E-01    .45286E-01   -.15776E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.22703
  alpha      = 1.87336
  Normalizat = 1.30637
  Prefactor  = 0.922141
 **********
 **   18 **HESSE 
 **********

 FCN=   10041.79     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2270        .80838        .43403E-04   -1.5349    
   2  alpha         1.8734        .22106        .82523E-02   -.25336    
   3  Normalizat    1.3064        .18970        .29904E-03   -.83376    
   4  Prefactor     .92214        .10895        .20235E-03   -.95372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73966e-10
Minuit parameter uncertainties:
  1  0.80838
  2  0.22137
  3  0.189802
  4  0.108974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/288184': 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) = 10041.7911957
delta logL = 0.128326004653

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  3.227e+00  8.084e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.873e+00  2.214e-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.221e-01  1.090e-01  0.000e+00  1.000e+01 ( 1.000e+00)
689        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
690        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
687   Normalization:  1.306e+00  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 67.75
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.87 +/- 0.22
Photon Flux (Free Index): 1.39e-07 +/- 4.45e-08
Energy Flux (Free Index): 1.04e-04 +/- 3.91e-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/288184/cmap_HighResolution_265766401_266025601_4FGL_J0721.9+7120_daily_bin102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='1.04e-04', photon_flux_error='3.76e-08', dlogl='1.28e-01', energy_flux='9.10e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-08-27 04:11:03.213859', photon_index_error2='0.22', photon_index2='1.87', ts='67.63', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='3.91e-05', EG='1.29', time_epoch_completed='1630062663.21', return_code='0', job_id='288184', GAL2='0.92', EG2='1.31', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='4.45e-08', ts2='67.75', photon_index='1.99' WHERE bin_id='102' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 288184: <4FGL_J0721.9+7120_daily_bin102> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin102 110.488 71.3405 265766401 266025601 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 :                                   919.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            941 sec.

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

