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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin42
RA = 110.488, Dec = 71.3405
tmin = 250214401, tmax = 250473601
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='287027', job_status='RUN', time_executed='2021-08-27 03:53:45.046927', time_epoch_executed='1630061625.05' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287027

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287027/ft1_4FGL_J0721.9+7120_daily_bin42.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287027/ft2_4FGL_J0721.9+7120_daily_bin42.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287027/ft1_4FGL_J0721.9+7120_daily_bin42.fits outfile=/scratch/kocevski/287027/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin42.fits ra=110.488 dec=71.3405 rad=12.0 tmin=250214401.0 tmax=250473601.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.67
user 1.24
sys 3.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287027/ft2_4FGL_J0721.9+7120_daily_bin42.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/287027/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin42.fits evtable="EVENTS" outfile="/scratch/kocevski/287027/ft1_filtered_4FGL_J0721.9+7120_daily_bin42.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.75
user 0.32
sys 3.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287027/ft1_filtered_4FGL_J0721.9+7120_daily_bin42.fits" evtable="EVENTS" scfile=/scratch/kocevski/287027/ft2_4FGL_J0721.9+7120_daily_bin42.fits sctable="SC_DATA" outfile=/scratch/kocevski/287027/ltcube_250214401_250473601_4FGL_J0721.9+7120_daily_bin42.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/287027/ft2_4FGL_J0721.9+7120_daily_bin42.fits
.....................!
real 16.12
user 12.14
sys 3.93

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287027/ft1_filtered_4FGL_J0721.9+7120_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/287027/ft2_4FGL_J0721.9+7120_daily_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/287027/ltcube_250214401_250473601_4FGL_J0721.9+7120_daily_bin42.fits outfile=/scratch/kocevski/287027/expmap_250214401_250473601_4FGL_J0721.9+7120_daily_bin42.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/287027/ltcube_250214401_250473601_4FGL_J0721.9+7120_daily_bin42.fits
.....................!
real 194.51
user 185.68
sys 8.42

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/287027/ft1_filtered_4FGL_J0721.9+7120_daily_bin42.fits scfile=/scratch/kocevski/287027/ft2_4FGL_J0721.9+7120_daily_bin42.fits outfile=/scratch/kocevski/287027/cmap_250214401_250473601_4FGL_J0721.9+7120_daily_bin42.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.98
user 0.36
sys 3.30

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287027/ft1_filtered_4FGL_J0721.9+7120_daily_bin42.fits scfile=/scratch/kocevski/287027/ft2_4FGL_J0721.9+7120_daily_bin42.fits outfile=/scratch/kocevski/287027/cmap_HighResolution_250214401_250473601_4FGL_J0721.9+7120_daily_bin42.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 4.00
user 0.39
sys 3.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.998       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9252       1.0000         .10000E-03   10000.    
     7 'norm      '    3.2739       1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.068       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.233       1.0000         .10000E-03   10000.    
    10 'norm      '    5.6517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.1830       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11455E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10762E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.753       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.963       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.192       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97327       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99777       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=   6875.036     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2241 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.853        .99443E-07** at limit **
   2  Prefactor     .10000E-03    47.206       -.70300E-06** at limit **
   3  Prefactor     10.995        28.611        .94726E-06   -.42868E-04
   4  Prefactor     .10000E-03    72.017        .73622E-06** at limit **
   5  Prefactor     .10000E-03    24.806       -.67681E-07** at limit **
   6  norm          3.9232        17.106        .45961E-06   -.19159E-04
   7  norm          3.2740        1.0324        .14360E-07   -.77352E-03
   8  Prefactor     32.185        126.68        .21778E-05    .46313E-04
   9  Prefactor     42.256        47.885        .12444E-06   -.14416E-03
  10  norm          5.6489        16.350        .23752E-06   -.15073E-04
  11  Prefactor     .10000E-03    19.683        .20063E-06** at limit **
  12  Prefactor     .10000E-03    127.75        .64361E-07** at limit **
  13  norm          8.1849        4.3453        .60560E-07   -.15559E-03
  14  Prefactor     .10000E-03    1.3633        .41358E-07** at limit **
  15  Prefactor     .10000E-03    1.0719        .64784E-07** at limit **
  16  norm          .10000E-03    1.7396        .23010E-05** at limit **
  17  Prefactor     16.748        30.999       -.14238E-06   -.33497E-04
  18  Prefactor     34.039        27.059       -.34391E-05   -.55560E-03
  19  Prefactor     15.191        12.151       -.11938E-07   -.69574E-04
  20  Normalizat    .97292        .21390       -.24031E-05   -.28057E-03
  21  Prefactor     .99799        .11426        .94295E-06   -.60094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.92324
  norm       = 3.274
  Prefactor  = 32.1849
  Prefactor  = 42.2556
  norm       = 5.64885
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.18492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 16.7485
  Prefactor  = 34.0388
  Prefactor  = 15.1909
  Normalizat = 0.972917
  Prefactor  = 0.99799
 **********
 **   18 **HESSE 
 **********

 FCN=   6875.036     FROM HESSE     STATUS=OK           315 CALLS     2556 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.995        28.564        .12081E-03   -1.5045    
   4  Prefactor     .10000E-03    72.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9232        17.087        .20363E-03   -1.5312    
   7  norm          3.2740        1.0309        .43752E-04   -1.5346    
   8  Prefactor     32.185        126.28        .70758E-04   -1.4573    
   9  Prefactor     42.256        48.528        .61685E-04   -1.4407    
  10  norm          5.6489        16.327        .16897E-03   -1.5233    
  11  Prefactor     .10000E-03    19.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    129.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.1849        4.2835        .11887E-03   -1.5136    
  14  Prefactor     .10000E-03    1.3651        .94542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4051        .16198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4673        .19264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.748        30.981        .97854E-04   -1.4889    
  18  Prefactor     34.039        29.793        .68761E-04   -1.4540    
  19  Prefactor     15.191        12.153        .10276E-03   -1.4928    
  20  Normalizat    .97292        .24426        .32423E-03   -.93943    
  21  Prefactor     .99799        .13123        .18592E-03   -.92797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82336e-09
Minuit parameter uncertainties:
  1  0.000199837
  2  0.000263889
  3  28.5996
  4  0.000271562
  5  3.23407e-06
  6  16.3829
  7  1.03094
  8  127.355
  9  48.5729
  10  16.3395
  11  2.17883e-05
  12  0.000325484
  13  4.28369
  14  9.71489e-08
  15  1.33182e-05
  16  0.000138616
  17  31.0111
  18  29.8057
  19  12.1548
  20  0.244545
  21  0.131274
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  3.274e+00  1.031e+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

GAL_V02
   Spectrum: PowerLaw
688    Prefactor:  9.980e-01  1.313e-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.729e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.36
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 1.56e-07 +/- 4.91e-08
Energy Flux (Fixed Index): 9.27e-05 +/- 2.92e-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) = 6874.32610978
delta logL = 0.710340505469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6874.32015709
delta logL = 0.716293195966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1165       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3170       1.0000          .0000       5.0000    
     3 'Normalizat'    .91687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0136       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=   6874.320     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      235 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1174        11.835        .57419E-02    .21930E-03
   2  alpha         2.3172        3.6391        .17877        .49764E-04
   3  Normalizat    .91678        .22018        .75076E-01    .80731E-04
   4  Prefactor     1.0137        .93608E-01    .42840E-01    .11688E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11745
  alpha      = 2.31724
  Normalizat = 0.916776
  Prefactor  = 1.01373
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.320     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1174        .95806        .38844E-04   -1.5355    
   2  alpha         2.3172        .28072        .75254E-02   -.73171E-01
   3  Normalizat    .91678        .22243        .33224E-03   -.95873    
   4  Prefactor     1.0137        .12652        .18442E-03   -.92273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55366e-12
Minuit parameter uncertainties:
  1  0.958064
  2  0.281317
  3  0.222652
  4  0.126553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287027': 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) = 6874.32015522
delta logL = 0.716295067466

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  3.117e+00  9.581e-01  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  2.317e+00  2.813e-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.014e+00  1.266e-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.168e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.01
Ra Dec: 110.488 71.341
Photon Index (Free Index): 2.32 +/- 0.28
Photon Flux (Free Index): 2.14e-07 +/- 7.47e-08
Energy Flux (Free Index): 7.56e-05 +/- 2.35e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/287027/cmap_HighResolution_250214401_250473601_4FGL_J0721.9+7120_daily_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.56e-07', energy_flux2='7.56e-05', photon_flux_error='4.91e-08', dlogl='7.16e-01', energy_flux='9.27e-05', photon_flux2='2.14e-07', job_status='DONE', time_completed='2021-08-27 04:05:44.423231', photon_index_error2='0.28', photon_index2='2.32', ts='33.36', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='0.97', time_epoch_completed='1630062344.42', return_code='0', job_id='287027', GAL2='1.01', EG2='0.92', return_code2='0', energy_flux_error='2.92e-05', photon_flux_error2='7.47e-08', ts2='35.01', photon_index='1.99' WHERE bin_id='42' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 287027: <4FGL_J0721.9+7120_daily_bin42> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin42 110.488 71.3405 250214401 250473601 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 :                                   766.52 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             289.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            899 sec.

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

