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


Performing analysis on: 4FGL_J0721.9+7120_daily_bin437
RA = 110.488, Dec = 71.3405
tmin = 352598401, tmax = 352857601
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='289976', job_status='RUN', time_executed='2021-08-27 04:01:28.596311', time_epoch_executed='1630062088.6' WHERE source_name='4FGL J0721.9+7120' and cadence='daily' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289976

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/289976/ft1_4FGL_J0721.9+7120_daily_bin437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/289976/ft2_4FGL_J0721.9+7120_daily_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289976/ft1_4FGL_J0721.9+7120_daily_bin437.fits outfile=/scratch/kocevski/289976/ft1_filteredMKT_4FGL_J0721.9+7120_daily_bin437.fits ra=110.488 dec=71.3405 rad=12.0 tmin=352598401.0 tmax=352857601.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 5.03
user 3.94
sys 1.04

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289976/ft1_filtered_4FGL_J0721.9+7120_daily_bin437.fits" evtable="EVENTS" scfile=/scratch/kocevski/289976/ft2_4FGL_J0721.9+7120_daily_bin437.fits sctable="SC_DATA" outfile=/scratch/kocevski/289976/ltcube_352598401_352857601_4FGL_J0721.9+7120_daily_bin437.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/289976/ft2_4FGL_J0721.9+7120_daily_bin437.fits
.....................!
real 12.68
user 11.33
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289976/ft1_filtered_4FGL_J0721.9+7120_daily_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/289976/ft2_4FGL_J0721.9+7120_daily_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/289976/ltcube_352598401_352857601_4FGL_J0721.9+7120_daily_bin437.fits outfile=/scratch/kocevski/289976/expmap_352598401_352857601_4FGL_J0721.9+7120_daily_bin437.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/289976/ltcube_352598401_352857601_4FGL_J0721.9+7120_daily_bin437.fits
.....................!
real 194.40
user 186.92
sys 7.05

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/289976/ft1_filtered_4FGL_J0721.9+7120_daily_bin437.fits scfile=/scratch/kocevski/289976/ft2_4FGL_J0721.9+7120_daily_bin437.fits outfile=/scratch/kocevski/289976/cmap_352598401_352857601_4FGL_J0721.9+7120_daily_bin437.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.60
user 0.37
sys 1.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289976/ft1_filtered_4FGL_J0721.9+7120_daily_bin437.fits scfile=/scratch/kocevski/289976/ft2_4FGL_J0721.9+7120_daily_bin437.fits outfile=/scratch/kocevski/289976/cmap_HighResolution_352598401_352857601_4FGL_J0721.9+7120_daily_bin437.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.38
user 0.38
sys 0.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.819       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.766       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0128       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.9204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .24458E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7953       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    70.454       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3343       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1118       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0885       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.958       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71459       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .59229       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1547       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=   9452.163     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     2214 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.818        26.884        .17486E-02   -.70098E-04
   2  Prefactor     33.767        27.951        .17240E-02    .19654E-03
   3  Prefactor     3.0124        18.167        .58456E-02    .20695E-03
   4  Prefactor     .10000E-03    6.9374        .90712E-02** at limit **
   5  Prefactor     .10000E-03    11.623        .90712E-02** at limit **
   6  norm          .10000E-03    11.221        .90712E-02** at limit **
   7  norm          6.9203        1.0320        .38127E-03    .22441E-03
   8  Prefactor     .10004E-03    244.75        .90712E-02** at limit **
   9  Prefactor     5.8137        34.634        .41709E-02    .11060E-02
  10  norm          .10000E-03    7.1947        .90712E-02** at limit **
  11  Prefactor     .10000E-03    35.327        .90712E-02** at limit **
  12  Prefactor     70.459        40.309        .11956E-02   -.46160E-03
  13  norm          .10000E-03    .49213        .90712E-02** at limit **
  14  Prefactor     7.3342        4.0488        .37025E-02   -.10228E-03
  15  Prefactor     1.1118        .97125        .11190E-01    .25149E-03
  16  norm          6.0879        3.1293        .40678E-02    .41766E-03
  17  Prefactor     .10000E-03    18.520        .90712E-02** at limit **
  18  Prefactor     38.962        25.852        .16054E-02    .63399E-03
  19  Prefactor     .79778        7.4681        .12118        .41446E-03
  20  Normalizat    .59222        .18028        .87542E-01    .56145E-04
  21  Prefactor     1.1547        .10324        .35802E-01    .56974E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.8184
  Prefactor  = 33.7672
  Prefactor  = 3.01243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.92027
  Prefactor  = 0.00010004
  Prefactor  = 5.81366
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 70.4587
  norm       = 0.0001
  Prefactor  = 7.3342
  Prefactor  = 1.1118
  norm       = 6.08791
  Prefactor  = 0.0001
  Prefactor  = 38.9618
  Prefactor  = 0.797776
  Normalizat = 0.592217
  Prefactor  = 1.15474
 **********
 **   18 **HESSE 
 **********

 FCN=   9452.163     FROM HESSE     STATUS=OK           313 CALLS     2527 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.818        26.896        .69946E-04   -1.4562    
   2  Prefactor     33.767        27.969        .68961E-04   -1.4545    
   3  Prefactor     3.0124        18.150        .23382E-03   -1.5361    
   4  Prefactor     .10000E-03    6.9451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.9203        1.0293        .15251E-04   -1.5182    
   8  Prefactor     .10004E-03    245.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8137        34.452        .16684E-03   -1.5226    
  10  norm          .10000E-03    7.1969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     70.459        40.418        .47825E-04   -1.4027    
  13  norm          .10000E-03    .49442        .66589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3342        4.0468        .14001E-03   -1.5166    
  15  Prefactor     1.1118        .98732        .86511E-04   -1.5497    
  16  norm          6.0879        3.1347        .10074E-03   -1.5214    
  17  Prefactor     .10000E-03    18.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     38.962        25.907        .64216E-04   -1.4459    
  19  Prefactor     .79778        49.959        .51062E-02   -1.5529    
  20  Normalizat    .59222        .19515        .38781E-03   -1.0832    
  21  Prefactor     1.1547        .11280        .17600E-03   -.87736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83252e-08
Minuit parameter uncertainties:
  1  26.9055
  2  27.9802
  3  14.7952
  4  2.25902e-05
  5  4.84644e-05
  6  4.93111e-05
  7  1.02932
  8  0.00626165
  9  28.3293
  10  1.91593e-05
  11  0.000296814
  12  40.4336
  13  1.95751e-06
  14  4.04692
  15  0.987339
  16  3.13482
  17  1.57606e-05
  18  25.914
  19  12.6366
  20  0.195379
  21  0.11282
Done.

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

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  6.920e+00  1.029e+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:  1.155e+00  1.128e-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:  5.922e-01  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 235.32
Ra Dec: 110.488 71.341
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 3.30e-07 +/- 4.91e-08
Energy Flux (Fixed Index): 1.96e-04 +/- 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) = 9449.87396982
delta logL = 2.2885654189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9449.84468558
delta logL = 2.31784965512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1637       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7163       1.0000          .0000       5.0000    
     3 'Normalizat'    .64835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1372       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=   9449.845     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      200 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1637        1.0804        .37468E-02   -.21846E-02
   2  alpha         1.7163        .12150        .10854       -.14772E-04
   3  Normalizat    .64835        .16218        .84148E-01    .11532E-03
   4  Prefactor     1.1372        .99108E-01    .36319E-01   -.33097E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.16368
  alpha      = 1.71632
  Normalizat = 0.64835
  Prefactor  = 1.13717
 **********
 **   18 **HESSE 
 **********

 FCN=   9449.845     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1637        1.0749        .37568E-04   -1.5173    
   2  alpha         1.7163        .12242        .47363E-03   -.31885    
   3  Normalizat    .64835        .17673        .37269E-03   -1.0597    
   4  Prefactor     1.1372        .10822        .17736E-03   -.88287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10052e-10
Minuit parameter uncertainties:
  1  1.07493
  2  0.122475
  3  0.176882
  4  0.108246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289976': 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) = 9449.84468558
delta logL = 2.31784965771

Extracting fit parameters...

4FGL J0721.9+7120
   Spectrum: LogParabola
256         norm:  7.164e+00  1.075e+00  1.000e-04  1.000e+04 ( 1.000e-11)
257        alpha:  1.716e+00  1.225e-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.137e+00  1.082e-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:  6.483e-01  1.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 239.12
Ra Dec: 110.488 71.341
Photon Index (Free Index): 1.72 +/- 0.12
Photon Flux (Free Index): 2.73e-07 +/- 4.87e-08
Energy Flux (Free Index): 2.95e-04 +/- 7.61e-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/289976/cmap_HighResolution_352598401_352857601_4FGL_J0721.9+7120_daily_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.30e-07', energy_flux2='2.95e-04', photon_flux_error='4.91e-08', dlogl='2.32e+00', energy_flux='1.96e-04', photon_flux2='2.73e-07', job_status='DONE', time_completed='2021-08-27 04:15:27.938584', photon_index_error2='0.12', photon_index2='1.72', ts='235.32', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='7.61e-05', EG='0.59', time_epoch_completed='1630062927.94', return_code='0', job_id='289976', GAL2='1.14', EG2='0.65', return_code2='0', energy_flux_error='2.92e-05', photon_flux_error2='4.87e-08', ts2='239.12', photon_index='1.99' WHERE bin_id='437' AND source_name='4FGL J0721.9+7120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 04:15:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 289976: <4FGL_J0721.9+7120_daily_bin437> in cluster <slac> Done

Job <4FGL_J0721.9+7120_daily_bin437> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 27 04:00:49 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 04:00:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 04:00:59 2021
Terminated at Fri Aug 27 04:15:28 2021
Results reported at Fri Aug 27 04:15:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0721.9+7120_daily_bin437 110.488 71.3405 352598401 352857601 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 :                                   847.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            879 sec.

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

